react-schema-form 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-schema-form.js +30020 -13839
- package/dist/react-schema-form.js.map +1 -1
- package/dist/react-schema-form.umd.cjs +92 -74
- package/dist/react-schema-form.umd.cjs.map +1 -1
- package/package.json +6 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_t,_e){typeof exports=="object"&&typeof module<"u"?_e(exports,require("react"),require("@emotion/styled"),require("@emotion/react"),require("react-dom"),require("@uiw/react-markdown-editor"),require("@mui/material")):typeof define=="function"&&define.amd?define(["exports","react","@emotion/styled","@emotion/react","react-dom","@uiw/react-markdown-editor","@mui/material"],_e):(_t=typeof globalThis<"u"?globalThis:_t||self,_e(_t["react-schema-form"]={},_t.React,_t.EmotionStyled,_t.EmotionReact,_t["React-dom"],_t.UiwReactMarkdownEditor,_t.MuiMaterial))})(this,function(_t,_e,Fr,ho,mo,Rd,gr){"use strict";var UN=Object.defineProperty;var WN=(_t,_e,Fr)=>_e in _t?UN(_t,_e,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):_t[_e]=Fr;var Vt=(_t,_e,Fr)=>WN(_t,typeof _e!="symbol"?_e+"":_e,Fr);function Pd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=Pd(_e),Uv=Pd(mo);var ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mi={exports:{}},bo={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
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 kd;function Wv(){if(kd)return bo;kd=1;var e=_e,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=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 l(a,c,u){var d,p={},h=null,b=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(b=c.ref);for(d in c)o.call(c,d)&&!s.hasOwnProperty(d)&&(p[d]=c[d]);if(a&&a.defaultProps)for(d in c=a.defaultProps,c)p[d]===void 0&&(p[d]=c[d]);return{$$typeof:t,type:a,key:h,ref:b,props:p,_owner:i.current}}return bo.Fragment=n,bo.jsx=l,bo.jsxs=l,bo}var go={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,50 +14,50 @@
|
|
|
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
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var Md;function Hv(){return Md||(Md=1,process.env.NODE_ENV!=="production"&&function(){var e=_e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.iterator,m="@@iterator";function g(V){if(V===null||typeof V!="object")return null;var be=y&&V[y]||V[m];return typeof be=="function"?be:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(V){{for(var be=arguments.length,Pe=new Array(be>1?be-1:0),ae=1;ae<be;ae++)Pe[ae-1]=arguments[ae];O("error",V,Pe)}}function O(V,be,Pe){{var ae=w.ReactDebugCurrentFrame,ce=ae.getStackAddendum();ce!==""&&(be+="%s",Pe=Pe.concat([ce]));var Ce=Pe.map(function(ke){return String(ke)});Ce.unshift("Warning: "+be),Function.prototype.apply.call(console[V],console,Ce)}}var T=!1,R=!1,A=!1,N=!1,S=!1,v;v=Symbol.for("react.module.reference");function f(V){return!!(typeof V=="string"||typeof V=="function"||V===o||V===s||S||V===i||V===u||V===d||N||V===b||T||R||A||typeof V=="object"&&V!==null&&(V.$$typeof===h||V.$$typeof===p||V.$$typeof===l||V.$$typeof===a||V.$$typeof===c||V.$$typeof===v||V.getModuleId!==void 0))}function C(V,be,Pe){var ae=V.displayName;if(ae)return ae;var ce=be.displayName||be.name||"";return ce!==""?Pe+"("+ce+")":Pe}function P(V){return V.displayName||"Context"}function M(V){if(V==null)return null;if(typeof V.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof V=="function")return V.displayName||V.name||null;if(typeof V=="string")return V;switch(V){case o:return"Fragment";case n:return"Portal";case s:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof V=="object")switch(V.$$typeof){case a:var be=V;return P(be)+".Consumer";case l:var Pe=V;return P(Pe._context)+".Provider";case c:return C(V,V.render,"ForwardRef");case p:var ae=V.displayName||null;return ae!==null?ae:M(V.type)||"Memo";case h:{var ce=V,Ce=ce._payload,ke=ce._init;try{return M(ke(Ce))}catch{return null}}}return null}var D=Object.assign,I=0,j,$,F,L,_,B,oe;function X(){}X.__reactDisabledLog=!0;function ee(){{if(I===0){j=console.log,$=console.info,F=console.warn,L=console.error,_=console.group,B=console.groupCollapsed,oe=console.groupEnd;var V={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:V,log:V,warn:V,error:V,group:V,groupCollapsed:V,groupEnd:V})}I++}}function Y(){{if(I--,I===0){var V={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},V,{value:j}),info:D({},V,{value:$}),warn:D({},V,{value:F}),error:D({},V,{value:L}),group:D({},V,{value:_}),groupCollapsed:D({},V,{value:B}),groupEnd:D({},V,{value:oe})})}I<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=w.ReactCurrentDispatcher,se;function z(V,be,Pe){{if(se===void 0)try{throw Error()}catch(ce){var ae=ce.stack.trim().match(/\n( *(at )?)/);se=ae&&ae[1]||""}return`
|
|
18
|
+
`+se+V}}var H=!1,G;{var ue=typeof WeakMap=="function"?WeakMap:Map;G=new ue}function U(V,be){if(!V||H)return"";{var Pe=G.get(V);if(Pe!==void 0)return Pe}var ae;H=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ce;Ce=J.current,J.current=null,ee();try{if(be){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(Bt){ae=Bt}Reflect.construct(V,[],ke)}else{try{ke.call()}catch(Bt){ae=Bt}V.call(ke.prototype)}}else{try{throw Error()}catch(Bt){ae=Bt}V()}}catch(Bt){if(Bt&&ae&&typeof Bt.stack=="string"){for(var Me=Bt.stack.split(`
|
|
19
|
+
`),Be=ae.stack.split(`
|
|
20
|
+
`),Ve=Me.length-1,rt=Be.length-1;Ve>=1&&rt>=0&&Me[Ve]!==Be[rt];)rt--;for(;Ve>=1&&rt>=0;Ve--,rt--)if(Me[Ve]!==Be[rt]){if(Ve!==1||rt!==1)do if(Ve--,rt--,rt<0||Me[Ve]!==Be[rt]){var Ft=`
|
|
21
|
+
`+Me[Ve].replace(" at new "," at ");return V.displayName&&Ft.includes("<anonymous>")&&(Ft=Ft.replace("<anonymous>",V.displayName)),typeof V=="function"&&G.set(V,Ft),Ft}while(Ve>=1&&rt>=0);break}}}finally{H=!1,J.current=Ce,Y(),Error.prepareStackTrace=ce}var rr=V?V.displayName||V.name:"",Nt=rr?z(rr):"";return typeof V=="function"&&G.set(V,Nt),Nt}function Q(V,be,Pe){return U(V,!1)}function q(V){var be=V.prototype;return!!(be&&be.isReactComponent)}function ne(V,be,Pe){if(V==null)return"";if(typeof V=="function")return U(V,q(V));if(typeof V=="string")return z(V);switch(V){case u:return z("Suspense");case d:return z("SuspenseList")}if(typeof V=="object")switch(V.$$typeof){case c:return Q(V.render);case p:return ne(V.type,be,Pe);case h:{var ae=V,ce=ae._payload,Ce=ae._init;try{return ne(Ce(ce),be,Pe)}catch{}}}return""}var Z=Object.prototype.hasOwnProperty,te={},le=w.ReactDebugCurrentFrame;function fe(V){if(V){var be=V._owner,Pe=ne(V.type,V._source,be?be.type:null);le.setExtraStackFrame(Pe)}else le.setExtraStackFrame(null)}function xe(V,be,Pe,ae,ce){{var Ce=Function.call.bind(Z);for(var ke in V)if(Ce(V,ke)){var Me=void 0;try{if(typeof V[ke]!="function"){var Be=Error((ae||"React class")+": "+Pe+" type `"+ke+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof V[ke]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Be.name="Invariant Violation",Be}Me=V[ke](be,ke,ae,Pe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ve){Me=Ve}Me&&!(Me instanceof Error)&&(fe(ce),x("%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).",ae||"React class",Pe,ke,typeof Me),fe(null)),Me instanceof Error&&!(Me.message in te)&&(te[Me.message]=!0,fe(ce),x("Failed %s type: %s",Pe,Me.message),fe(null))}}}var Ee=Array.isArray;function Te(V){return Ee(V)}function $e(V){{var be=typeof Symbol=="function"&&Symbol.toStringTag,Pe=be&&V[Symbol.toStringTag]||V.constructor.name||"Object";return Pe}}function Ze(V){try{return We(V),!1}catch{return!0}}function We(V){return""+V}function it(V){if(Ze(V))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$e(V)),We(V)}var st=w.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},Ke,ut,ze;ze={};function ct(V){if(Z.call(V,"ref")){var be=Object.getOwnPropertyDescriptor(V,"ref").get;if(be&&be.isReactWarning)return!1}return V.ref!==void 0}function Tt(V){if(Z.call(V,"key")){var be=Object.getOwnPropertyDescriptor(V,"key").get;if(be&&be.isReactWarning)return!1}return V.key!==void 0}function dt(V,be){if(typeof V.ref=="string"&&st.current&&be&&st.current.stateNode!==be){var Pe=M(st.current.type);ze[Pe]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(st.current.type),V.ref),ze[Pe]=!0)}}function ge(V,be){{var Pe=function(){Ke||(Ke=!0,x("%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)",be))};Pe.isReactWarning=!0,Object.defineProperty(V,"key",{get:Pe,configurable:!0})}}function Se(V,be){{var Pe=function(){ut||(ut=!0,x("%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)",be))};Pe.isReactWarning=!0,Object.defineProperty(V,"ref",{get:Pe,configurable:!0})}}var Ae=function(V,be,Pe,ae,ce,Ce,ke){var Me={$$typeof:t,type:V,key:be,ref:Pe,props:ke,_owner:Ce};return Me._store={},Object.defineProperty(Me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.defineProperty(Me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(Me.props),Object.freeze(Me)),Me};function Fe(V,be,Pe,ae,ce){{var Ce,ke={},Me=null,Be=null;Pe!==void 0&&(it(Pe),Me=""+Pe),Tt(be)&&(it(be.key),Me=""+be.key),ct(be)&&(Be=be.ref,dt(be,ce));for(Ce in be)Z.call(be,Ce)&&!Ge.hasOwnProperty(Ce)&&(ke[Ce]=be[Ce]);if(V&&V.defaultProps){var Ve=V.defaultProps;for(Ce in Ve)ke[Ce]===void 0&&(ke[Ce]=Ve[Ce])}if(Me||Be){var rt=typeof V=="function"?V.displayName||V.name||"Unknown":V;Me&&ge(ke,rt),Be&&Se(ke,rt)}return Ae(V,Me,Be,ce,ae,st.current,ke)}}var De=w.ReactCurrentOwner,at=w.ReactDebugCurrentFrame;function pt(V){if(V){var be=V._owner,Pe=ne(V.type,V._source,be?be.type:null);at.setExtraStackFrame(Pe)}else at.setExtraStackFrame(null)}var Rt;Rt=!1;function Jt(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function de(){{if(De.current){var V=M(De.current.type);if(V)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+V+"`."}return""}}function K(V){return""}var me={};function pe(V){{var be=de();if(!be){var Pe=typeof V=="string"?V:V.displayName||V.name;Pe&&(be=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+Pe+">.")}return be}}function Ne(V,be){{if(!V._store||V._store.validated||V.key!=null)return;V._store.validated=!0;var Pe=pe(be);if(me[Pe])return;me[Pe]=!0;var ae="";V&&V._owner&&V._owner!==De.current&&(ae=" It was passed a child from "+M(V._owner.type)+"."),pt(V),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Pe,ae),pt(null)}}function Ue(V,be){{if(typeof V!="object")return;if(Te(V))for(var Pe=0;Pe<V.length;Pe++){var ae=V[Pe];Jt(ae)&&Ne(ae,be)}else if(Jt(V))V._store&&(V._store.validated=!0);else if(V){var ce=g(V);if(typeof ce=="function"&&ce!==V.entries)for(var Ce=ce.call(V),ke;!(ke=Ce.next()).done;)Jt(ke.value)&&Ne(ke.value,be)}}}function He(V){{var be=V.type;if(be==null||typeof be=="string")return;var Pe;if(typeof be=="function")Pe=be.propTypes;else if(typeof be=="object"&&(be.$$typeof===c||be.$$typeof===p))Pe=be.propTypes;else return;if(Pe){var ae=M(be);xe(Pe,V.props,"prop",ae,V)}else if(be.PropTypes!==void 0&&!Rt){Rt=!0;var ce=M(be);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof be.getDefaultProps=="function"&&!be.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ve(V){{for(var be=Object.keys(V.props),Pe=0;Pe<be.length;Pe++){var ae=be[Pe];if(ae!=="children"&&ae!=="key"){pt(V),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ae),pt(null);break}}V.ref!==null&&(pt(V),x("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}var ie={};function he(V,be,Pe,ae,ce,Ce){{var ke=f(V);if(!ke){var Me="";(V===void 0||typeof V=="object"&&V!==null&&Object.keys(V).length===0)&&(Me+=" 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 Be=K();Be?Me+=Be:Me+=de();var Ve;V===null?Ve="null":Te(V)?Ve="array":V!==void 0&&V.$$typeof===t?(Ve="<"+(M(V.type)||"Unknown")+" />",Me=" Did you accidentally export a JSX literal instead of a component?"):Ve=typeof V,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ve,Me)}var rt=Fe(V,be,Pe,ce,Ce);if(rt==null)return rt;if(ke){var Ft=be.children;if(Ft!==void 0)if(ae)if(Te(Ft)){for(var rr=0;rr<Ft.length;rr++)Ue(Ft[rr],V);Object.freeze&&Object.freeze(Ft)}else x("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 Ue(Ft,V)}if(Z.call(be,"key")){var Nt=M(V),Bt=Object.keys(be).filter(function($r){return $r!=="key"}),zt=Bt.length>0?"{key: someKey, "+Bt.join(": ..., ")+": ...}":"{key: someKey}";if(!ie[Nt+zt]){var mr=Bt.length>0?"{"+Bt.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,It,vt,Mr,vt),L[vt+It]=!0}}return I===n?ee(ze):je(ze),ze}}function ie(I,J,fe){return H(I,J,fe,!0)}function Oe(I,J,fe){return H(I,J,fe,!1)}var Me=Oe,lt=ie;yn.Fragment=n,yn.jsx=Me,yn.jsxs=lt}()),yn}var xc;function Bm(){return xc||(xc=1,process.env.NODE_ENV==="production"?ao.exports=Lm():ao.exports=Fm()),ao.exports}var N=Bm(),vi,Oc;function qm(){if(Oc)return vi;Oc=1;function e(){this.__data__=[],this.size=0}return vi=e,vi}var bi,Ec;function so(){if(Ec)return bi;Ec=1;function e(t,r){return t===r||t!==t&&r!==r}return bi=e,bi}var xi,Cc;function lo(){if(Cc)return xi;Cc=1;var e=so();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return xi=t,xi}var Oi,Sc;function zm(){if(Sc)return Oi;Sc=1;var e=lo(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,l=e(a,i);if(l<0)return!1;var s=a.length-1;return l==s?a.pop():r.call(a,l,1),--this.size,!0}return Oi=n,Oi}var Ei,Tc;function Vm(){if(Tc)return Ei;Tc=1;var e=lo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ei=t,Ei}var Ci,wc;function Um(){if(wc)return Ci;wc=1;var e=lo();function t(r){return e(this.__data__,r)>-1}return Ci=t,Ci}var Si,Rc;function Wm(){if(Rc)return Si;Rc=1;var e=lo();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Si=t,Si}var Ti,Pc;function co(){if(Pc)return Ti;Pc=1;var e=qm(),t=zm(),r=Vm(),n=Um(),i=Wm();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ti=a,Ti}var wi,_c;function Hm(){if(_c)return wi;_c=1;var e=co();function t(){this.__data__=new e,this.size=0}return wi=t,wi}var Ri,Ic;function Gm(){if(Ic)return Ri;Ic=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ri=e,Ri}var Pi,kc;function Km(){if(kc)return Pi;kc=1;function e(t){return this.__data__.get(t)}return Pi=e,Pi}var _i,jc;function Ym(){if(jc)return _i;jc=1;function e(t){return this.__data__.has(t)}return _i=e,_i}var Ii,Ac;function Nc(){if(Ac)return Ii;Ac=1;var e=typeof io=="object"&&io&&io.Object===Object&&io;return Ii=e,Ii}var ki,$c;function ar(){if($c)return ki;$c=1;var e=Nc(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ki=r,ki}var ji,Mc;function Ai(){if(Mc)return ji;Mc=1;var e=ar(),t=e.Symbol;return ji=t,ji}var Ni,Dc;function Xm(){if(Dc)return Ni;Dc=1;var e=Ai(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(l){var s=r.call(l,i),c=l[i];try{l[i]=void 0;var u=!0}catch{}var f=n.call(l);return u&&(s?l[i]=c:delete l[i]),f}return Ni=a,Ni}var $i,Lc;function Jm(){if(Lc)return $i;Lc=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return $i=r,$i}var Mi,Fc;function vn(){if(Fc)return Mi;Fc=1;var e=Ai(),t=Xm(),r=Jm(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function l(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return Mi=l,Mi}var Di,Bc;function xr(){if(Bc)return Di;Bc=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Di=e,Di}var Li,qc;function Fi(){if(qc)return Li;qc=1;var e=vn(),t=xr(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function l(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==a}return Li=l,Li}var Bi,zc;function Qm(){if(zc)return Bi;zc=1;var e=ar(),t=e["__core-js_shared__"];return Bi=t,Bi}var qi,Vc;function Zm(){if(Vc)return qi;Vc=1;var e=Qm(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return qi=r,qi}var zi,Uc;function Wc(){if(Uc)return zi;Uc=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return zi=r,zi}var Vi,Hc;function eg(){if(Hc)return Vi;Hc=1;var e=Fi(),t=Zm(),r=xr(),n=Wc(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,c=l.toString,u=s.hasOwnProperty,f=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(y){if(!r(y)||t(y))return!1;var m=e(y)?f:a;return m.test(n(y))}return Vi=d,Vi}var Ui,Gc;function tg(){if(Gc)return Ui;Gc=1;function e(t,r){return t==null?void 0:t[r]}return Ui=e,Ui}var Wi,Kc;function Fr(){if(Kc)return Wi;Kc=1;var e=eg(),t=tg();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Wi=r,Wi}var Hi,Yc;function Gi(){if(Yc)return Hi;Yc=1;var e=Fr(),t=ar(),r=e(t,"Map");return Hi=r,Hi}var Ki,Xc;function uo(){if(Xc)return Ki;Xc=1;var e=Fr(),t=e(Object,"create");return Ki=t,Ki}var Yi,Jc;function rg(){if(Jc)return Yi;Jc=1;var e=uo();function t(){this.__data__=e?e(null):{},this.size=0}return Yi=t,Yi}var Xi,Qc;function ng(){if(Qc)return Xi;Qc=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Xi=e,Xi}var Ji,Zc;function og(){if(Zc)return Ji;Zc=1;var e=uo(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var l=this.__data__;if(e){var s=l[a];return s===t?void 0:s}return n.call(l,a)?l[a]:void 0}return Ji=i,Ji}var Qi,eu;function ig(){if(eu)return Qi;eu=1;var e=uo(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Qi=n,Qi}var Zi,tu;function ag(){if(tu)return Zi;tu=1;var e=uo(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Zi=r,Zi}var ea,ru;function sg(){if(ru)return ea;ru=1;var e=rg(),t=ng(),r=og(),n=ig(),i=ag();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,ea=a,ea}var ta,nu;function lg(){if(nu)return ta;nu=1;var e=sg(),t=co(),r=Gi();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return ta=n,ta}var ra,ou;function cg(){if(ou)return ra;ou=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return ra=e,ra}var na,iu;function po(){if(iu)return na;iu=1;var e=cg();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return na=t,na}var oa,au;function ug(){if(au)return oa;au=1;var e=po();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return oa=t,oa}var ia,su;function pg(){if(su)return ia;su=1;var e=po();function t(r){return e(this,r).get(r)}return ia=t,ia}var aa,lu;function fg(){if(lu)return aa;lu=1;var e=po();function t(r){return e(this,r).has(r)}return aa=t,aa}var sa,cu;function dg(){if(cu)return sa;cu=1;var e=po();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return sa=t,sa}var la,uu;function hg(){if(uu)return la;uu=1;var e=lg(),t=ug(),r=pg(),n=fg(),i=dg();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,la=a,la}var ca,pu;function mg(){if(pu)return ca;pu=1;var e=co(),t=Gi(),r=hg(),n=200;function i(a,l){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,l]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,l),this.size=s.size,this}return ca=i,ca}var ua,fu;function du(){if(fu)return ua;fu=1;var e=co(),t=Hm(),r=Gm(),n=Km(),i=Ym(),a=mg();function l(s){var c=this.__data__=new e(s);this.size=c.size}return l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=n,l.prototype.has=i,l.prototype.set=a,ua=l,ua}var pa,hu;function mu(){if(hu)return pa;hu=1;var e=Fr(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return pa=t,pa}var fa,gu;function da(){if(gu)return fa;gu=1;var e=mu();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return fa=t,fa}var ha,yu;function vu(){if(yu)return ha;yu=1;var e=da(),t=so();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return ha=r,ha}var ma,bu;function gg(){if(bu)return ma;bu=1;function e(t){return function(r,n,i){for(var a=-1,l=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++a];if(n(l[u],u,l)===!1)break}return r}}return ma=e,ma}var ga,xu;function yg(){if(xu)return ga;xu=1;var e=gg(),t=e();return ga=t,ga}var bn={exports:{}};bn.exports;var Ou;function Eu(){return Ou||(Ou=1,function(e,t){var r=ar(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a?r.Buffer:void 0,s=l?l.allocUnsafe:void 0;function c(u,f){if(f)return u.slice();var d=u.length,y=s?s(d):new u.constructor(d);return u.copy(y),y}e.exports=c}(bn,bn.exports)),bn.exports}var ya,Cu;function vg(){if(Cu)return ya;Cu=1;var e=ar(),t=e.Uint8Array;return ya=t,ya}var va,Su;function ba(){if(Su)return va;Su=1;var e=vg();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return va=t,va}var xa,Tu;function wu(){if(Tu)return xa;Tu=1;var e=ba();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return xa=t,xa}var Oa,Ru;function Pu(){if(Ru)return Oa;Ru=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Oa=e,Oa}var Ea,_u;function bg(){if(_u)return Ea;_u=1;var e=xr(),t=Object.create,r=function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var a=new n;return n.prototype=void 0,a}}();return Ea=r,Ea}var Ca,Iu;function ku(){if(Iu)return Ca;Iu=1;function e(t,r){return function(n){return t(r(n))}}return Ca=e,Ca}var Sa,ju;function Ta(){if(ju)return Sa;ju=1;var e=ku(),t=e(Object.getPrototypeOf,Object);return Sa=t,Sa}var wa,Au;function Ra(){if(Au)return wa;Au=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return wa=t,wa}var Pa,Nu;function $u(){if(Nu)return Pa;Nu=1;var e=bg(),t=Ta(),r=Ra();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return Pa=n,Pa}var _a,Mu;function Br(){if(Mu)return _a;Mu=1;function e(t){return t!=null&&typeof t=="object"}return _a=e,_a}var Ia,Du;function xg(){if(Du)return Ia;Du=1;var e=vn(),t=Br(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Ia=n,Ia}var ka,Lu;function Fu(){if(Lu)return ka;Lu=1;var e=xg(),t=Br(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(l){return t(l)&&n.call(l,"callee")&&!i.call(l,"callee")};return ka=a,ka}var ja,Bu;function fo(){if(Bu)return ja;Bu=1;var e=Array.isArray;return ja=e,ja}var Aa,qu;function zu(){if(qu)return Aa;qu=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Aa=t,Aa}var Na,Vu;function ho(){if(Vu)return Na;Vu=1;var e=Fi(),t=zu();function r(n){return n!=null&&t(n.length)&&!e(n)}return Na=r,Na}var $a,Uu;function Og(){if(Uu)return $a;Uu=1;var e=ho(),t=Br();function r(n){return t(n)&&e(n)}return $a=r,$a}var xn={exports:{}},Ma,Wu;function Eg(){if(Wu)return Ma;Wu=1;function e(){return!1}return Ma=e,Ma}xn.exports;var Hu;function Da(){return Hu||(Hu=1,function(e,t){var r=ar(),n=Eg(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===i,s=l?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u}(xn,xn.exports)),xn.exports}var La,Gu;function Cg(){if(Gu)return La;Gu=1;var e=vn(),t=Ta(),r=Br(),n="[object Object]",i=Function.prototype,a=Object.prototype,l=i.toString,s=a.hasOwnProperty,c=l.call(Object);function u(f){if(!r(f)||e(f)!=n)return!1;var d=t(f);if(d===null)return!0;var y=s.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&l.call(y)==c}return La=u,La}var Fa,Ku;function Sg(){if(Ku)return Fa;Ku=1;var e=vn(),t=zu(),r=Br(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",f="[object Number]",d="[object Object]",y="[object RegExp]",m="[object Set]",b="[object String]",h="[object WeakMap]",v="[object ArrayBuffer]",C="[object DataView]",E="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",w="[object Int16Array]",A="[object Int32Array]",M="[object Uint8Array]",O="[object Uint8ClampedArray]",g="[object Uint16Array]",p="[object Uint32Array]",x={};x[E]=x[S]=x[T]=x[w]=x[A]=x[M]=x[O]=x[g]=x[p]=!0,x[n]=x[i]=x[v]=x[a]=x[C]=x[l]=x[s]=x[c]=x[u]=x[f]=x[d]=x[y]=x[m]=x[b]=x[h]=!1;function R(P){return r(P)&&t(P.length)&&!!x[e(P)]}return Fa=R,Fa}var Ba,Yu;function qa(){if(Yu)return Ba;Yu=1;function e(t){return function(r){return t(r)}}return Ba=e,Ba}var On={exports:{}};On.exports;var Xu;function za(){return Xu||(Xu=1,function(e,t){var r=Nc(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a&&r.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}}();e.exports=s}(On,On.exports)),On.exports}var Va,Ju;function Qu(){if(Ju)return Va;Ju=1;var e=Sg(),t=qa(),r=za(),n=r&&r.isTypedArray,i=n?t(n):e;return Va=i,Va}var Ua,Zu;function ep(){if(Zu)return Ua;Zu=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return Ua=e,Ua}var Wa,tp;function rp(){if(tp)return Wa;tp=1;var e=da(),t=so(),r=Object.prototype,n=r.hasOwnProperty;function i(a,l,s){var c=a[l];(!(n.call(a,l)&&t(c,s))||s===void 0&&!(l in a))&&e(a,l,s)}return Wa=i,Wa}var Ha,np;function Xr(){if(np)return Ha;np=1;var e=rp(),t=da();function r(n,i,a,l){var s=!a;a||(a={});for(var c=-1,u=i.length;++c<u;){var f=i[c],d=l?l(a[f],n[f],f,a,n):void 0;d===void 0&&(d=n[f]),s?t(a,f,d):e(a,f,d)}return a}return Ha=r,Ha}var Ga,op;function Tg(){if(op)return Ga;op=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ga=e,Ga}var Ka,ip;function ap(){if(ip)return Ka;ip=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Ka=r,Ka}var Ya,sp;function lp(){if(sp)return Ya;sp=1;var e=Tg(),t=Fu(),r=fo(),n=Da(),i=ap(),a=Qu(),l=Object.prototype,s=l.hasOwnProperty;function c(u,f){var d=r(u),y=!d&&t(u),m=!d&&!y&&n(u),b=!d&&!y&&!m&&a(u),h=d||y||m||b,v=h?e(u.length,String):[],C=v.length;for(var E in u)(f||s.call(u,E))&&!(h&&(E=="length"||m&&(E=="offset"||E=="parent")||b&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||i(E,C)))&&v.push(E);return v}return Ya=c,Ya}var Xa,cp;function wg(){if(cp)return Xa;cp=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return Xa=e,Xa}var Ja,up;function Rg(){if(up)return Ja;up=1;var e=xr(),t=Ra(),r=wg(),n=Object.prototype,i=n.hasOwnProperty;function a(l){if(!e(l))return r(l);var s=t(l),c=[];for(var u in l)u=="constructor"&&(s||!i.call(l,u))||c.push(u);return c}return Ja=a,Ja}var Qa,pp;function Jr(){if(pp)return Qa;pp=1;var e=lp(),t=Rg(),r=ho();function n(i){return r(i)?e(i,!0):t(i)}return Qa=n,Qa}var Za,fp;function Pg(){if(fp)return Za;fp=1;var e=Xr(),t=Jr();function r(n){return e(n,t(n))}return Za=r,Za}var es,dp;function _g(){if(dp)return es;dp=1;var e=vu(),t=Eu(),r=wu(),n=Pu(),i=$u(),a=Fu(),l=fo(),s=Og(),c=Da(),u=Fi(),f=xr(),d=Cg(),y=Qu(),m=ep(),b=Pg();function h(v,C,E,S,T,w,A){var M=m(v,E),O=m(C,E),g=A.get(O);if(g){e(v,E,g);return}var p=w?w(M,O,E+"",v,C,A):void 0,x=p===void 0;if(x){var R=l(O),P=!R&&c(O),_=!R&&!P&&y(O);p=O,R||P||_?l(M)?p=M:s(M)?p=n(M):P?(x=!1,p=t(O,!0)):_?(x=!1,p=r(O,!0)):p=[]:d(O)||a(O)?(p=M,a(M)?p=b(M):(!f(M)||u(M))&&(p=i(O))):x=!1}x&&(A.set(O,p),T(p,O,S,w,A),A.delete(O)),e(v,E,p)}return es=h,es}var ts,hp;function Ig(){if(hp)return ts;hp=1;var e=du(),t=vu(),r=yg(),n=_g(),i=xr(),a=Jr(),l=ep();function s(c,u,f,d,y){c!==u&&r(u,function(m,b){if(y||(y=new e),i(m))n(c,u,b,f,s,d,y);else{var h=d?d(l(c,b),m,b+"",c,u,y):void 0;h===void 0&&(h=m),t(c,b,h)}},a)}return ts=s,ts}var rs,mp;function gp(){if(mp)return rs;mp=1;function e(t){return t}return rs=e,rs}var ns,yp;function kg(){if(yp)return ns;yp=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return ns=e,ns}var os,vp;function jg(){if(vp)return os;vp=1;var e=kg(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var l=arguments,s=-1,c=t(l.length-i,0),u=Array(c);++s<c;)u[s]=l[i+s];s=-1;for(var f=Array(i+1);++s<i;)f[s]=l[s];return f[i]=a(u),e(n,this,f)}}return os=r,os}var is,bp;function Ag(){if(bp)return is;bp=1;function e(t){return function(){return t}}return is=e,is}var as,xp;function Ng(){if(xp)return as;xp=1;var e=Ag(),t=mu(),r=gp(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return as=n,as}var ss,Op;function $g(){if(Op)return ss;Op=1;var e=800,t=16,r=Date.now;function n(i){var a=0,l=0;return function(){var s=r(),c=t-(s-l);if(l=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return ss=n,ss}var ls,Ep;function Mg(){if(Ep)return ls;Ep=1;var e=Ng(),t=$g(),r=t(e);return ls=r,ls}var cs,Cp;function Dg(){if(Cp)return cs;Cp=1;var e=gp(),t=jg(),r=Mg();function n(i,a){return r(t(i,a,e),i+"")}return cs=n,cs}var us,Sp;function Lg(){if(Sp)return us;Sp=1;var e=so(),t=ho(),r=ap(),n=xr();function i(a,l,s){if(!n(s))return!1;var c=typeof l;return(c=="number"?t(s)&&r(l,s.length):c=="string"&&l in s)?e(s[l],a):!1}return us=i,us}var ps,Tp;function wp(){if(Tp)return ps;Tp=1;var e=Dg(),t=Lg();function r(n){return e(function(i,a){var l=-1,s=a.length,c=s>1?a[s-1]:void 0,u=s>2?a[2]:void 0;for(c=n.length>3&&typeof c=="function"?(s--,c):void 0,u&&t(a[0],a[1],u)&&(c=s<3?void 0:c,s=1),i=Object(i);++l<s;){var f=a[l];f&&n(i,f,l,c)}return i})}return ps=r,ps}var fs,Rp;function Fg(){if(Rp)return fs;Rp=1;var e=Ig(),t=wp(),r=t(function(n,i,a){e(n,i,a)});return fs=r,fs}var Bg=Fg();const qg=Jt(Bg);var ds,Pp;function zg(){if(Pp)return ds;Pp=1;function e(t){return t==null}return ds=e,ds}var Vg=zg();const _p=Jt(Vg);var Ug=xr();const Wg=Jt(Ug);var hs,Ip;function Hg(){if(Ip)return hs;Ip=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return hs=e,hs}var ms,kp;function Gg(){if(kp)return ms;kp=1;var e=ku(),t=e(Object.keys,Object);return ms=t,ms}var gs,jp;function Kg(){if(jp)return gs;jp=1;var e=Ra(),t=Gg(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var l=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&l.push(s);return l}return gs=i,gs}var ys,Ap;function vs(){if(Ap)return ys;Ap=1;var e=lp(),t=Kg(),r=ho();function n(i){return r(i)?e(i):t(i)}return ys=n,ys}var bs,Np;function Yg(){if(Np)return bs;Np=1;var e=Xr(),t=vs();function r(n,i){return n&&e(i,t(i),n)}return bs=r,bs}var xs,$p;function Xg(){if($p)return xs;$p=1;var e=Xr(),t=Jr();function r(n,i){return n&&e(i,t(i),n)}return xs=r,xs}var Os,Mp;function Jg(){if(Mp)return Os;Mp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,l=[];++n<i;){var s=t[n];r(s,n,t)&&(l[a++]=s)}return l}return Os=e,Os}var Es,Dp;function Lp(){if(Dp)return Es;Dp=1;function e(){return[]}return Es=e,Es}var Cs,Fp;function Ss(){if(Fp)return Cs;Fp=1;var e=Jg(),t=Lp(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(s){return n.call(l,s)}))}:t;return Cs=a,Cs}var Ts,Bp;function Qg(){if(Bp)return Ts;Bp=1;var e=Xr(),t=Ss();function r(n,i){return e(n,t(n),i)}return Ts=r,Ts}var ws,qp;function zp(){if(qp)return ws;qp=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return ws=e,ws}var Rs,Vp;function Up(){if(Vp)return Rs;Vp=1;var e=zp(),t=Ta(),r=Ss(),n=Lp(),i=Object.getOwnPropertySymbols,a=i?function(l){for(var s=[];l;)e(s,r(l)),l=t(l);return s}:n;return Rs=a,Rs}var Ps,Wp;function Zg(){if(Wp)return Ps;Wp=1;var e=Xr(),t=Up();function r(n,i){return e(n,t(n),i)}return Ps=r,Ps}var _s,Hp;function Gp(){if(Hp)return _s;Hp=1;var e=zp(),t=fo();function r(n,i,a){var l=i(n);return t(n)?l:e(l,a(n))}return _s=r,_s}var Is,Kp;function ey(){if(Kp)return Is;Kp=1;var e=Gp(),t=Ss(),r=vs();function n(i){return e(i,r,t)}return Is=n,Is}var ks,Yp;function ty(){if(Yp)return ks;Yp=1;var e=Gp(),t=Up(),r=Jr();function n(i){return e(i,r,t)}return ks=n,ks}var js,Xp;function ry(){if(Xp)return js;Xp=1;var e=Fr(),t=ar(),r=e(t,"DataView");return js=r,js}var As,Jp;function ny(){if(Jp)return As;Jp=1;var e=Fr(),t=ar(),r=e(t,"Promise");return As=r,As}var Ns,Qp;function oy(){if(Qp)return Ns;Qp=1;var e=Fr(),t=ar(),r=e(t,"Set");return Ns=r,Ns}var $s,Zp;function iy(){if(Zp)return $s;Zp=1;var e=Fr(),t=ar(),r=e(t,"WeakMap");return $s=r,$s}var Ms,ef;function Ds(){if(ef)return Ms;ef=1;var e=ry(),t=Gi(),r=ny(),n=oy(),i=iy(),a=vn(),l=Wc(),s="[object Map]",c="[object Object]",u="[object Promise]",f="[object Set]",d="[object WeakMap]",y="[object DataView]",m=l(e),b=l(t),h=l(r),v=l(n),C=l(i),E=a;return(e&&E(new e(new ArrayBuffer(1)))!=y||t&&E(new t)!=s||r&&E(r.resolve())!=u||n&&E(new n)!=f||i&&E(new i)!=d)&&(E=function(S){var T=a(S),w=T==c?S.constructor:void 0,A=w?l(w):"";if(A)switch(A){case m:return y;case b:return s;case h:return u;case v:return f;case C:return d}return T}),Ms=E,Ms}var Ls,tf;function ay(){if(tf)return Ls;tf=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,a=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(a.index=n.index,a.input=n.input),a}return Ls=r,Ls}var Fs,rf;function sy(){if(rf)return Fs;rf=1;var e=ba();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Fs=t,Fs}var Bs,nf;function ly(){if(nf)return Bs;nf=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return Bs=t,Bs}var qs,of;function cy(){if(of)return qs;of=1;var e=Ai(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return qs=n,qs}var zs,af;function uy(){if(af)return zs;af=1;var e=ba(),t=sy(),r=ly(),n=cy(),i=wu(),a="[object Boolean]",l="[object Date]",s="[object Map]",c="[object Number]",u="[object RegExp]",f="[object Set]",d="[object String]",y="[object Symbol]",m="[object ArrayBuffer]",b="[object DataView]",h="[object Float32Array]",v="[object Float64Array]",C="[object Int8Array]",E="[object Int16Array]",S="[object Int32Array]",T="[object Uint8Array]",w="[object Uint8ClampedArray]",A="[object Uint16Array]",M="[object Uint32Array]";function O(g,p,x){var R=g.constructor;switch(p){case m:return e(g);case a:case l:return new R(+g);case b:return t(g,x);case h:case v:case C:case E:case S:case T:case w:case A:case M:return i(g,x);case s:return new R;case c:case d:return new R(g);case u:return r(g);case f:return new R;case y:return n(g)}}return zs=O,zs}var Vs,sf;function py(){if(sf)return Vs;sf=1;var e=Ds(),t=Br(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return Vs=n,Vs}var Us,lf;function fy(){if(lf)return Us;lf=1;var e=py(),t=qa(),r=za(),n=r&&r.isMap,i=n?t(n):e;return Us=i,Us}var Ws,cf;function dy(){if(cf)return Ws;cf=1;var e=Ds(),t=Br(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Ws=n,Ws}var Hs,uf;function hy(){if(uf)return Hs;uf=1;var e=dy(),t=qa(),r=za(),n=r&&r.isSet,i=n?t(n):e;return Hs=i,Hs}var Gs,pf;function my(){if(pf)return Gs;pf=1;var e=du(),t=Hg(),r=rp(),n=Yg(),i=Xg(),a=Eu(),l=Pu(),s=Qg(),c=Zg(),u=ey(),f=ty(),d=Ds(),y=ay(),m=uy(),b=$u(),h=fo(),v=Da(),C=fy(),E=xr(),S=hy(),T=vs(),w=Jr(),A=1,M=2,O=4,g="[object Arguments]",p="[object Array]",x="[object Boolean]",R="[object Date]",P="[object Error]",_="[object Function]",k="[object GeneratorFunction]",D="[object Map]",W="[object Number]",Z="[object Object]",G="[object RegExp]",B="[object Set]",Y="[object String]",ae="[object Symbol]",oe="[object WeakMap]",ne="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",ye="[object Float64Array]",se="[object Int8Array]",le="[object Int16Array]",te="[object Int32Array]",ve="[object Uint8Array]",X="[object Uint8ClampedArray]",Re="[object Uint16Array]",z="[object Uint32Array]",pe={};pe[g]=pe[p]=pe[ne]=pe[ue]=pe[x]=pe[R]=pe[ce]=pe[ye]=pe[se]=pe[le]=pe[te]=pe[D]=pe[W]=pe[Z]=pe[G]=pe[B]=pe[Y]=pe[ae]=pe[ve]=pe[X]=pe[Re]=pe[z]=!0,pe[P]=pe[_]=pe[oe]=!1;function de(Ce,Te,$e,He,Ne,be){var Fe,Ye=Te&A,ht=Te&M,Ct=Te&O;if($e&&(Fe=Ne?$e(Ce,He,Ne,be):$e(Ce)),Fe!==void 0)return Fe;if(!E(Ce))return Ce;var pt=h(Ce);if(pt){if(Fe=y(Ce),!Ye)return l(Ce,Fe)}else{var Ue=d(Ce),Be=Ue==_||Ue==k;if(v(Ce))return a(Ce,Ye);if(Ue==Z||Ue==g||Be&&!Ne){if(Fe=ht||Be?{}:b(Ce),!Ye)return ht?c(Ce,i(Fe,Ce)):s(Ce,n(Fe,Ce))}else{if(!pe[Ue])return Ne?Ce:{};Fe=m(Ce,Ue,Ye)}}be||(be=new e);var st=be.get(Ce);if(st)return st;be.set(Ce,Fe),S(Ce)?Ce.forEach(function(mt){Fe.add(de(mt,Te,$e,mt,Ce,be))}):C(Ce)&&Ce.forEach(function(mt,ft){Fe.set(ft,de(mt,Te,$e,ft,Ce,be))});var De=Ct?ht?f:u:ht?w:T,Ze=pt?void 0:De(Ce);return t(Ze||Ce,function(mt,ft){Ze&&(ft=mt,mt=Ce[ft]),r(Fe,ft,de(mt,Te,$e,ft,Ce,be))}),Fe}return Gs=de,Gs}var Ks,ff;function gy(){if(ff)return Ks;ff=1;var e=my(),t=1,r=4;function n(i){return e(i,t|r)}return Ks=n,Ks}var yy=gy();const Ys=Jt(yy);var Xs,df;function vy(){if(df)return Xs;df=1;var e=Xr(),t=wp(),r=Jr(),n=t(function(i,a){e(a,r(a),i)});return Xs=n,Xs}var Js,hf;function by(){return hf||(hf=1,Js=vy()),Js}var xy=by();const Oy=Jt(xy);var Qs,mf;function Ey(){if(mf)return Qs;mf=1;function e(t){return t===void 0}return Qs=e,Qs}var Cy=Ey();const Sy=Jt(Cy);var Zs={},gf;function Ty(){return gf||(gf=1,function(e){(function(t){var r={"'":/\\\'/g,'"':/\\\"/g},n={parse:function(i){if(typeof i!="string")throw new TypeError("ObjectPath.parse must be passed a string");for(var a=0,l=[],s,c,u,f;a<i.length;)if(s=i.indexOf(".",a),c=i.indexOf("[",a),s===-1&&c===-1)l.push(i.slice(a,i.length)),a=i.length;else if(c===-1||s!==-1&&s<c)l.push(i.slice(a,s)),a=s+1;else if(c>a&&(l.push(i.slice(a,c)),a=c),u=i.slice(c+1,c+2),u!=='"'&&u!=="'")f=i.indexOf("]",c),f===-1&&(f=i.length),l.push(i.slice(a+1,f)),a=i.slice(f+1,f+2)==="."?f+2:f+1;else{for(f=i.indexOf(u+"]",c),f===-1&&(f=i.length);i.slice(f-1,f)==="\\"&&c<i.length;)c++,f=i.indexOf(u+"]",c);l.push(i.slice(a+2,f).replace(r[u],u).replace(/\\+/g,function(d){return new Array(Math.ceil(d.length/2)+1).join("\\")})),a=i.slice(f+2,f+3)==="."?f+3:f+2}return l},stringify:function(i,a,l){Array.isArray(i)||(i=[i]),a=a==='"'?'"':"'";var s=new RegExp("(\\\\|"+a+")","g");return i.map(function(c,u){let f=c.toString();return!l&&/^[A-z_]\w*$/.exec(f)?u!==0?"."+f:f:!l&&/^\d+$/.exec(f)?"["+f+"]":(f=f.replace(s,"\\$1"),"["+a+f+a+"]")}).join("")},normalize:function(i,a,l){return n.stringify(Array.isArray(i)?i:n.parse(i),a,l)},registerModule:function(i){i.module("ObjectPath",[]).provider("ObjectPath",function(){this.parse=n.parse,this.stringify=n.stringify,this.normalize=n.normalize,this.$get=function(){return n}})}};e.ObjectPath=n})()}(Zs)),Zs}var el,yf;function wy(){return yf||(yf=1,el=Ty().ObjectPath),el}var Ry=wy();const kt=Jt(Ry);var mo={exports:{}},Py=mo.exports,vf;function _y(){return vf||(vf=1,function(e){(function(t,r){e.exports?e.exports=r():t.tv4=r()})(Py,function(){Object.keys||(Object.keys=function(){var O=Object.prototype.hasOwnProperty,g=!{toString:null}.propertyIsEnumerable("toString"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],x=p.length;return function(R){if(typeof R!="object"&&typeof R!="function"||R===null)throw new TypeError("Object.keys called on non-object");var P=[];for(var _ in R)O.call(R,_)&&P.push(_);if(g)for(var k=0;k<x;k++)O.call(R,p[k])&&P.push(p[k]);return P}}()),Object.create||(Object.create=function(){function O(){}return function(g){if(arguments.length!==1)throw new Error("Object.create implementation only accepts one parameter.");return O.prototype=g,new O}}()),Array.isArray||(Array.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"}),Array.prototype.indexOf||(Array.prototype.indexOf=function(O){if(this===null)throw new TypeError;var g=Object(this),p=g.length>>>0;if(p===0)return-1;var x=0;if(arguments.length>1&&(x=Number(arguments[1]),x!==x?x=0:x!==0&&x!==1/0&&x!==-1/0&&(x=(x>0||-1)*Math.floor(Math.abs(x)))),x>=p)return-1;for(var R=x>=0?x:Math.max(p-Math.abs(x),0);R<p;R++)if(R in g&&g[R]===O)return R;return-1}),Object.isFrozen||(Object.isFrozen=function(O){for(var g="tv4_test_frozen_key";O.hasOwnProperty(g);)g+=Math.random();try{return O[g]=!0,delete O[g],!1}catch{return!0}});var t={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},r={"*":!0};function n(O){return encodeURI(O).replace(/%25[0-9][0-9]/g,function(g){return"%"+g.substring(3)})}function i(O){var g="";t[O.charAt(0)]&&(g=O.charAt(0),O=O.substring(1));var p="",x="",R=!0,P=!1,_=!1;g==="+"?R=!1:g==="."?(x=".",p="."):g==="/"?(x="/",p="/"):g==="#"?(x="#",R=!1):g===";"?(x=";",p=";",P=!0,_=!0):g==="?"?(x="?",p="&",P=!0):g==="&"&&(x="&",p="&",P=!0);for(var k=[],D=O.split(","),W=[],Z=0;Z<D.length;Z++){var G=D[Z],B=null;if(G.indexOf(":")!==-1){var Y=G.split(":");G=Y[0],B=parseInt(Y[1],10)}for(var ae={};r[G.charAt(G.length-1)];)ae[G.charAt(G.length-1)]=!0,G=G.substring(0,G.length-1);var oe={truncate:B,name:G,suffices:ae};W.push(oe),k.push(G)}var ne=function(ue){for(var ce="",ye=0,se=0;se<W.length;se++){var le=W[se],te=ue(le.name);if(te==null||Array.isArray(te)&&te.length===0||typeof te=="object"&&Object.keys(te).length===0){ye++;continue}if(se===ye?ce+=x:ce+=p||",",Array.isArray(te)){P&&(ce+=le.name+"=");for(var ve=0;ve<te.length;ve++)ve>0&&(ce+=le.suffices["*"]&&p||",",le.suffices["*"]&&P&&(ce+=le.name+"=")),ce+=R?encodeURIComponent(te[ve]).replace(/!/g,"%21"):n(te[ve])}else if(typeof te=="object"){P&&!le.suffices["*"]&&(ce+=le.name+"=");var X=!0;for(var Re in te)X||(ce+=le.suffices["*"]&&p||","),X=!1,ce+=R?encodeURIComponent(Re).replace(/!/g,"%21"):n(Re),ce+=le.suffices["*"]?"=":",",ce+=R?encodeURIComponent(te[Re]).replace(/!/g,"%21"):n(te[Re])}else P&&(ce+=le.name,(!_||te!=="")&&(ce+="=")),le.truncate!=null&&(te=te.substring(0,le.truncate)),ce+=R?encodeURIComponent(te).replace(/!/g,"%21"):n(te)}return ce};return ne.varNames=k,{prefix:x,substitution:ne}}function a(O){if(!(this instanceof a))return new a(O);for(var g=O.split("{"),p=[g.shift()],x=[],R=[],P=[];g.length>0;){var _=g.shift(),k=_.split("}")[0],D=_.substring(k.length+1),W=i(k);R.push(W.substitution),x.push(W.prefix),p.push(D),P=P.concat(W.substitution.varNames)}this.fill=function(Z){for(var G=p[0],B=0;B<R.length;B++){var Y=R[B];G+=Y(Z),G+=p[B+1]}return G},this.varNames=P,this.template=O}a.prototype={toString:function(){return this.template},fillFromObject:function(O){return this.fill(function(g){return O[g]})}};var l=function(g,p,x,R,P){if(this.missing=[],this.missingMap={},this.formatValidators=g?Object.create(g.formatValidators):{},this.schemas=g?Object.create(g.schemas):{},this.collectMultiple=p,this.errors=[],this.handleError=p?this.collectError:this.returnError,R&&(this.checkRecursive=!0,this.scanned=[],this.scannedFrozen=[],this.scannedFrozenSchemas=[],this.scannedFrozenValidationErrors=[],this.validatedSchemasKey="tv4_validation_id",this.validationErrorsKey="tv4_validation_errors_id"),P&&(this.trackUnknownProperties=!0,this.knownPropertyPaths={},this.unknownPropertyPaths={}),this.errorReporter=x||b("en"),typeof this.errorReporter=="string")throw new Error("debug");if(this.definedKeywords={},g)for(var _ in g.definedKeywords)this.definedKeywords[_]=g.definedKeywords[_].slice(0)};l.prototype.defineKeyword=function(O,g){this.definedKeywords[O]=this.definedKeywords[O]||[],this.definedKeywords[O].push(g)},l.prototype.createError=function(O,g,p,x,R,P,_){var k=new S(O,g,p,x,R);return k.message=this.errorReporter(k,P,_),k},l.prototype.returnError=function(O){return O},l.prototype.collectError=function(O){return O&&this.errors.push(O),null},l.prototype.prefixErrors=function(O,g,p){for(var x=O;x<this.errors.length;x++)this.errors[x]=this.errors[x].prefixWith(g,p);return this},l.prototype.banUnknownProperties=function(O,g){for(var p in this.unknownPropertyPaths){var x=this.createError(h.UNKNOWN_PROPERTY,{path:p},p,"",null,O,g),R=this.handleError(x);if(R)return R}return null},l.prototype.addFormat=function(O,g){if(typeof O=="object"){for(var p in O)this.addFormat(p,O[p]);return this}this.formatValidators[O]=g},l.prototype.resolveRefs=function(O,g){if(O.$ref!==void 0){if(g=g||{},g[O.$ref])return this.createError(h.CIRCULAR_REFERENCE,{urls:Object.keys(g).join(", ")},"","",null,void 0,O);g[O.$ref]=!0,O=this.getSchema(O.$ref,g)}return O},l.prototype.getSchema=function(O,g){var p;if(this.schemas[O]!==void 0)return p=this.schemas[O],this.resolveRefs(p,g);var x=O,R="";if(O.indexOf("#")!==-1&&(R=O.substring(O.indexOf("#")+1),x=O.substring(0,O.indexOf("#"))),typeof this.schemas[x]=="object"){p=this.schemas[x];var P=decodeURIComponent(R);if(P==="")return this.resolveRefs(p,g);if(P.charAt(0)!=="/")return;for(var _=P.split("/").slice(1),k=0;k<_.length;k++){var D=_[k].replace(/~1/g,"/").replace(/~0/g,"~");if(p[D]===void 0){p=void 0;break}p=p[D]}if(p!==void 0)return this.resolveRefs(p,g)}this.missing[x]===void 0&&(this.missing.push(x),this.missing[x]=x,this.missingMap[x]=x)},l.prototype.searchSchemas=function(O,g){if(Array.isArray(O))for(var p=0;p<O.length;p++)this.searchSchemas(O[p],g);else if(O&&typeof O=="object"){typeof O.id=="string"&&T(g,O.id)&&this.schemas[O.id]===void 0&&(this.schemas[O.id]=O);for(var x in O)if(x!=="enum"){if(typeof O[x]=="object")this.searchSchemas(O[x],g);else if(x==="$ref"){var R=y(O[x]);R&&this.schemas[R]===void 0&&this.missingMap[R]===void 0&&(this.missingMap[R]=R)}}}},l.prototype.addSchema=function(O,g){if(typeof O!="string"||typeof g>"u")if(typeof O=="object"&&typeof O.id=="string")g=O,O=g.id;else return;O===y(O)+"#"&&(O=y(O)),this.schemas[O]=g,delete this.missingMap[O],m(g,O),this.searchSchemas(g,O)},l.prototype.getSchemaMap=function(){var O={};for(var g in this.schemas)O[g]=this.schemas[g];return O},l.prototype.getSchemaUris=function(O){var g=[];for(var p in this.schemas)(!O||O.test(p))&&g.push(p);return g},l.prototype.getMissingUris=function(O){var g=[];for(var p in this.missingMap)(!O||O.test(p))&&g.push(p);return g},l.prototype.dropSchemas=function(){this.schemas={},this.reset()},l.prototype.reset=function(){this.missing=[],this.missingMap={},this.errors=[]},l.prototype.validateAll=function(O,g,p,x,R){var P;if(g=this.resolveRefs(g),g){if(g instanceof S)return this.errors.push(g),g}else return null;var _=this.errors.length,k,D=null,W=null;if(this.checkRecursive&&O&&typeof O=="object"){if(P=!this.scanned.length,O[this.validatedSchemasKey]){var Z=O[this.validatedSchemasKey].indexOf(g);if(Z!==-1)return this.errors=this.errors.concat(O[this.validationErrorsKey][Z]),null}if(Object.isFrozen(O)&&(k=this.scannedFrozen.indexOf(O),k!==-1)){var G=this.scannedFrozenSchemas[k].indexOf(g);if(G!==-1)return this.errors=this.errors.concat(this.scannedFrozenValidationErrors[k][G]),null}if(this.scanned.push(O),Object.isFrozen(O))k===-1&&(k=this.scannedFrozen.length,this.scannedFrozen.push(O),this.scannedFrozenSchemas.push([])),D=this.scannedFrozenSchemas[k].length,this.scannedFrozenSchemas[k][D]=g,this.scannedFrozenValidationErrors[k][D]=[];else{if(!O[this.validatedSchemasKey])try{Object.defineProperty(O,this.validatedSchemasKey,{value:[],configurable:!0}),Object.defineProperty(O,this.validationErrorsKey,{value:[],configurable:!0})}catch{O[this.validatedSchemasKey]=[],O[this.validationErrorsKey]=[]}W=O[this.validatedSchemasKey].length,O[this.validatedSchemasKey][W]=g,O[this.validationErrorsKey][W]=[]}}var B=this.errors.length,Y=this.validateBasic(O,g,R)||this.validateNumeric(O,g,R)||this.validateString(O,g,R)||this.validateArray(O,g,R)||this.validateObject(O,g,R)||this.validateCombinations(O,g,R)||this.validateHypermedia(O,g,R)||this.validateFormat(O,g,R)||this.validateDefinedKeywords(O,g,R)||null;if(P){for(;this.scanned.length;){var ae=this.scanned.pop();delete ae[this.validatedSchemasKey]}this.scannedFrozen=[],this.scannedFrozenSchemas=[]}if(Y||B!==this.errors.length)for(;p&&p.length||x&&x.length;){var oe=p&&p.length?""+p.pop():null,ne=x&&x.length?""+x.pop():null;Y&&(Y=Y.prefixWith(oe,ne)),this.prefixErrors(B,oe,ne)}return D!==null?this.scannedFrozenValidationErrors[k][D]=this.errors.slice(_):W!==null&&(O[this.validationErrorsKey][W]=this.errors.slice(_)),this.handleError(Y)},l.prototype.validateFormat=function(O,g){if(typeof g.format!="string"||!this.formatValidators[g.format])return null;var p=this.formatValidators[g.format].call(null,O,g);return typeof p=="string"||typeof p=="number"?this.createError(h.FORMAT_CUSTOM,{message:p},"","/format",null,O,g):p&&typeof p=="object"?this.createError(h.FORMAT_CUSTOM,{message:p.message||"?"},p.dataPath||"",p.schemaPath||"/format",null,O,g):null},l.prototype.validateDefinedKeywords=function(O,g,p){for(var x in this.definedKeywords)if(!(typeof g[x]>"u"))for(var R=this.definedKeywords[x],P=0;P<R.length;P++){var _=R[P],k=_(O,g[x],g,p);if(typeof k=="string"||typeof k=="number")return this.createError(h.KEYWORD_CUSTOM,{key:x,message:k},"","",null,O,g).prefixWith(null,x);if(k&&typeof k=="object"){var D=k.code;if(typeof D=="string"){if(!h[D])throw new Error("Undefined error code (use defineError): "+D);D=h[D]}else typeof D!="number"&&(D=h.KEYWORD_CUSTOM);var W=typeof k.message=="object"?k.message:{key:x,message:k.message||"?"},Z=k.schemaPath||"/"+x.replace(/~/g,"~0").replace(/\//g,"~1");return this.createError(D,W,k.dataPath||null,Z,null,O,g)}}return null};function s(O,g){if(O===g)return!0;if(O&&g&&typeof O=="object"&&typeof g=="object"){if(Array.isArray(O)!==Array.isArray(g))return!1;if(Array.isArray(O)){if(O.length!==g.length)return!1;for(var p=0;p<O.length;p++)if(!s(O[p],g[p]))return!1}else{var x;for(x in O)if(g[x]===void 0&&O[x]!==void 0)return!1;for(x in g)if(O[x]===void 0&&g[x]!==void 0)return!1;for(x in O)if(!s(O[x],g[x]))return!1}return!0}return!1}l.prototype.validateBasic=function(g,p,x){var R;return(R=this.validateType(g,p,x))||(R=this.validateEnum(g,p,x))?R.prefixWith(null,"type"):null},l.prototype.validateType=function(g,p){if(p.type===void 0)return null;var x=typeof g;g===null?x="null":Array.isArray(g)&&(x="array");var R=p.type;Array.isArray(R)||(R=[R]);for(var P=0;P<R.length;P++){var _=R[P];if(_===x||_==="integer"&&x==="number"&&g%1===0)return null}return this.createError(h.INVALID_TYPE,{type:x,expected:R.join("/")},"","",null,g,p)},l.prototype.validateEnum=function(g,p){if(p.enum===void 0)return null;for(var x=0;x<p.enum.length;x++){var R=p.enum[x];if(s(g,R))return null}return this.createError(h.ENUM_MISMATCH,{value:typeof JSON<"u"?JSON.stringify(g):g},"","",null,g,p)},l.prototype.validateNumeric=function(g,p,x){return this.validateMultipleOf(g,p,x)||this.validateMinMax(g,p,x)||this.validateNaN(g,p,x)||null};var c=Math.pow(2,-51),u=1-c;l.prototype.validateMultipleOf=function(g,p){var x=p.multipleOf||p.divisibleBy;if(x===void 0)return null;if(typeof g=="number"){var R=g/x%1;if(R>=c&&R<u)return this.createError(h.NUMBER_MULTIPLE_OF,{value:g,multipleOf:x},"","",null,g,p)}return null},l.prototype.validateMinMax=function(g,p){if(typeof g!="number")return null;if(p.minimum!==void 0){if(g<p.minimum)return this.createError(h.NUMBER_MINIMUM,{value:g,minimum:p.minimum},"","/minimum",null,g,p);if(p.exclusiveMinimum&&g===p.minimum)return this.createError(h.NUMBER_MINIMUM_EXCLUSIVE,{value:g,minimum:p.minimum},"","/exclusiveMinimum",null,g,p)}if(p.maximum!==void 0){if(g>p.maximum)return this.createError(h.NUMBER_MAXIMUM,{value:g,maximum:p.maximum},"","/maximum",null,g,p);if(p.exclusiveMaximum&&g===p.maximum)return this.createError(h.NUMBER_MAXIMUM_EXCLUSIVE,{value:g,maximum:p.maximum},"","/exclusiveMaximum",null,g,p)}return null},l.prototype.validateNaN=function(g,p){return typeof g!="number"?null:isNaN(g)===!0||g===1/0||g===-1/0?this.createError(h.NUMBER_NOT_A_NUMBER,{value:g},"","/type",null,g,p):null},l.prototype.validateString=function(g,p,x){return this.validateStringLength(g,p,x)||this.validateStringPattern(g,p,x)||null},l.prototype.validateStringLength=function(g,p){return typeof g!="string"?null:p.minLength!==void 0&&g.length<p.minLength?this.createError(h.STRING_LENGTH_SHORT,{length:g.length,minimum:p.minLength},"","/minLength",null,g,p):p.maxLength!==void 0&&g.length>p.maxLength?this.createError(h.STRING_LENGTH_LONG,{length:g.length,maximum:p.maxLength},"","/maxLength",null,g,p):null},l.prototype.validateStringPattern=function(g,p){if(typeof g!="string"||typeof p.pattern!="string"&&!(p.pattern instanceof RegExp))return null;var x;if(p.pattern instanceof RegExp)x=p.pattern;else{var R,P="",_=p.pattern.match(/^\/(.+)\/([img]*)$/);_?(R=_[1],P=_[2]):R=p.pattern,x=new RegExp(R,P)}return x.test(g)?null:this.createError(h.STRING_PATTERN,{pattern:p.pattern},"","/pattern",null,g,p)},l.prototype.validateArray=function(g,p,x){return Array.isArray(g)&&(this.validateArrayLength(g,p,x)||this.validateArrayUniqueItems(g,p,x)||this.validateArrayItems(g,p,x))||null},l.prototype.validateArrayLength=function(g,p){var x;return p.minItems!==void 0&&g.length<p.minItems&&(x=this.createError(h.ARRAY_LENGTH_SHORT,{length:g.length,minimum:p.minItems},"","/minItems",null,g,p),this.handleError(x))||p.maxItems!==void 0&&g.length>p.maxItems&&(x=this.createError(h.ARRAY_LENGTH_LONG,{length:g.length,maximum:p.maxItems},"","/maxItems",null,g,p),this.handleError(x))?x:null},l.prototype.validateArrayUniqueItems=function(g,p){if(p.uniqueItems){for(var x=0;x<g.length;x++)for(var R=x+1;R<g.length;R++)if(s(g[x],g[R])){var P=this.createError(h.ARRAY_UNIQUE,{match1:x,match2:R},"","/uniqueItems",null,g,p);if(this.handleError(P))return P}}return null},l.prototype.validateArrayItems=function(g,p,x){if(p.items===void 0)return null;var R,P;if(Array.isArray(p.items)){for(P=0;P<g.length;P++)if(P<p.items.length){if(R=this.validateAll(g[P],p.items[P],[P],["items",P],x+"/"+P))return R}else if(p.additionalItems!==void 0){if(typeof p.additionalItems=="boolean"){if(!p.additionalItems&&(R=this.createError(h.ARRAY_ADDITIONAL_ITEMS,{},"/"+P,"/additionalItems",null,g,p),this.handleError(R)))return R}else if(R=this.validateAll(g[P],p.additionalItems,[P],["additionalItems"],x+"/"+P))return R}}else for(P=0;P<g.length;P++)if(R=this.validateAll(g[P],p.items,[P],["items"],x+"/"+P))return R;return null},l.prototype.validateObject=function(g,p,x){return typeof g!="object"||g===null||Array.isArray(g)?null:this.validateObjectMinMaxProperties(g,p,x)||this.validateObjectRequiredProperties(g,p,x)||this.validateObjectProperties(g,p,x)||this.validateObjectDependencies(g,p,x)||null},l.prototype.validateObjectMinMaxProperties=function(g,p){var x=Object.keys(g),R;return p.minProperties!==void 0&&x.length<p.minProperties&&(R=this.createError(h.OBJECT_PROPERTIES_MINIMUM,{propertyCount:x.length,minimum:p.minProperties},"","/minProperties",null,g,p),this.handleError(R))||p.maxProperties!==void 0&&x.length>p.maxProperties&&(R=this.createError(h.OBJECT_PROPERTIES_MAXIMUM,{propertyCount:x.length,maximum:p.maxProperties},"","/maxProperties",null,g,p),this.handleError(R))?R:null},l.prototype.validateObjectRequiredProperties=function(g,p){if(p.required!==void 0)for(var x=0;x<p.required.length;x++){var R=p.required[x];if(g[R]===void 0){var P=this.createError(h.OBJECT_REQUIRED,{key:R},"","/required/"+x,null,g,p);if(this.handleError(P))return P}}return null},l.prototype.validateObjectProperties=function(g,p,x){var R;for(var P in g){var _=x+"/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),k=!1;if(p.properties!==void 0&&p.properties[P]!==void 0&&(k=!0,R=this.validateAll(g[P],p.properties[P],[P],["properties",P],_)))return R;if(p.patternProperties!==void 0)for(var D in p.patternProperties){var W=new RegExp(D);if(W.test(P)&&(k=!0,R=this.validateAll(g[P],p.patternProperties[D],[P],["patternProperties",D],_)))return R}if(k)this.trackUnknownProperties&&(this.knownPropertyPaths[_]=!0,delete this.unknownPropertyPaths[_]);else if(p.additionalProperties!==void 0){if(this.trackUnknownProperties&&(this.knownPropertyPaths[_]=!0,delete this.unknownPropertyPaths[_]),typeof p.additionalProperties=="boolean"){if(!p.additionalProperties&&(R=this.createError(h.OBJECT_ADDITIONAL_PROPERTIES,{key:P},"","/additionalProperties",null,g,p).prefixWith(P,null),this.handleError(R)))return R}else if(R=this.validateAll(g[P],p.additionalProperties,[P],["additionalProperties"],_))return R}else this.trackUnknownProperties&&!this.knownPropertyPaths[_]&&(this.unknownPropertyPaths[_]=!0)}return null},l.prototype.validateObjectDependencies=function(g,p,x){var R;if(p.dependencies!==void 0){for(var P in p.dependencies)if(g[P]!==void 0){var _=p.dependencies[P];if(typeof _=="string"){if(g[_]===void 0&&(R=this.createError(h.OBJECT_DEPENDENCY_KEY,{key:P,missing:_},"","",null,g,p).prefixWith(null,P).prefixWith(null,"dependencies"),this.handleError(R)))return R}else if(Array.isArray(_))for(var k=0;k<_.length;k++){var D=_[k];if(g[D]===void 0&&(R=this.createError(h.OBJECT_DEPENDENCY_KEY,{key:P,missing:D},"","/"+k,null,g,p).prefixWith(null,P).prefixWith(null,"dependencies"),this.handleError(R)))return R}else if(R=this.validateAll(g,_,[],["dependencies",P],x))return R}}return null},l.prototype.validateCombinations=function(g,p,x){return this.validateAllOf(g,p,x)||this.validateAnyOf(g,p,x)||this.validateOneOf(g,p,x)||this.validateNot(g,p,x)||null},l.prototype.validateAllOf=function(g,p,x){if(p.allOf===void 0)return null;for(var R,P=0;P<p.allOf.length;P++){var _=p.allOf[P];if(R=this.validateAll(g,_,[],["allOf",P],x))return R}return null},l.prototype.validateAnyOf=function(g,p,x){if(p.anyOf===void 0)return null;var R=[],P=this.errors.length,_,k;this.trackUnknownProperties&&(_=this.unknownPropertyPaths,k=this.knownPropertyPaths);for(var D=!0,W=0;W<p.anyOf.length;W++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var Z=p.anyOf[W],G=this.errors.length,B=this.validateAll(g,Z,[],["anyOf",W],x);if(B===null&&G===this.errors.length){if(this.errors=this.errors.slice(0,P),this.trackUnknownProperties){for(var Y in this.knownPropertyPaths)k[Y]=!0,delete _[Y];for(var ae in this.unknownPropertyPaths)k[ae]||(_[ae]=!0);D=!1;continue}return null}B&&R.push(B.prefixWith(null,""+W).prefixWith(null,"anyOf"))}if(this.trackUnknownProperties&&(this.unknownPropertyPaths=_,this.knownPropertyPaths=k),D)return R=R.concat(this.errors.slice(P)),this.errors=this.errors.slice(0,P),this.createError(h.ANY_OF_MISSING,{},"","/anyOf",R,g,p)},l.prototype.validateOneOf=function(g,p,x){if(p.oneOf===void 0)return null;var R=null,P=[],_=this.errors.length,k,D;this.trackUnknownProperties&&(k=this.unknownPropertyPaths,D=this.knownPropertyPaths);for(var W=0;W<p.oneOf.length;W++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var Z=p.oneOf[W],G=this.errors.length,B=this.validateAll(g,Z,[],["oneOf",W],x);if(B===null&&G===this.errors.length){if(R===null)R=W;else return this.errors=this.errors.slice(0,_),this.createError(h.ONE_OF_MULTIPLE,{index1:R,index2:W},"","/oneOf",null,g,p);if(this.trackUnknownProperties){for(var Y in this.knownPropertyPaths)D[Y]=!0,delete k[Y];for(var ae in this.unknownPropertyPaths)D[ae]||(k[ae]=!0)}}else B&&P.push(B)}return this.trackUnknownProperties&&(this.unknownPropertyPaths=k,this.knownPropertyPaths=D),R===null?(P=P.concat(this.errors.slice(_)),this.errors=this.errors.slice(0,_),this.createError(h.ONE_OF_MISSING,{},"","/oneOf",P,g,p)):(this.errors=this.errors.slice(0,_),null)},l.prototype.validateNot=function(g,p,x){if(p.not===void 0)return null;var R=this.errors.length,P,_;this.trackUnknownProperties&&(P=this.unknownPropertyPaths,_=this.knownPropertyPaths,this.unknownPropertyPaths={},this.knownPropertyPaths={});var k=this.validateAll(g,p.not,null,null,x),D=this.errors.slice(R);return this.errors=this.errors.slice(0,R),this.trackUnknownProperties&&(this.unknownPropertyPaths=P,this.knownPropertyPaths=_),k===null&&D.length===0?this.createError(h.NOT_PASSED,{},"","/not",null,g,p):null},l.prototype.validateHypermedia=function(g,p,x){if(!p.links)return null;for(var R,P=0;P<p.links.length;P++){var _=p.links[P];if(_.rel==="describedby"){for(var k=new a(_.href),D=!0,W=0;W<k.varNames.length;W++)if(!(k.varNames[W]in g)){D=!1;break}if(D){var Z=k.fillFromObject(g),G={$ref:Z};if(R=this.validateAll(g,G,[],["links",P],x))return R}}}};function f(O){var g=String(O).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return g?{href:g[0]||"",protocol:g[1]||"",authority:g[2]||"",host:g[3]||"",hostname:g[4]||"",port:g[5]||"",pathname:g[6]||"",search:g[7]||"",hash:g[8]||""}:null}function d(O,g){function p(x){var R=[];return x.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(P){P==="/.."?R.pop():R.push(P)}),R.join("").replace(/^\//,x.charAt(0)==="/"?"/":"")}return g=f(g||""),O=f(O||""),!g||!O?null:(g.protocol||O.protocol)+(g.protocol||g.authority?g.authority:O.authority)+p(g.protocol||g.authority||g.pathname.charAt(0)==="/"?g.pathname:g.pathname?(O.authority&&!O.pathname?"/":"")+O.pathname.slice(0,O.pathname.lastIndexOf("/")+1)+g.pathname:O.pathname)+(g.protocol||g.authority||g.pathname?g.search:g.search||O.search)+g.hash}function y(O){return O.split("#")[0]}function m(O,g){if(O&&typeof O=="object")if(g===void 0?g=O.id:typeof O.id=="string"&&(g=d(g,O.id),O.id=g),Array.isArray(O))for(var p=0;p<O.length;p++)m(O[p],g);else{typeof O.$ref=="string"&&(O.$ref=d(g,O.$ref));for(var x in O)x!=="enum"&&m(O[x],g)}}function b(O){O=O||"en";var g=w[O];return function(p){var x=g[p.code]||E[p.code];if(typeof x!="string")return"Unknown error code "+p.code+": "+JSON.stringify(p.messageParams);var R=p.params;return x.replace(/\{([^{}]*)\}/g,function(P,_){var k=R[_];return typeof k=="string"||typeof k=="number"?k:P})}}var h={INVALID_TYPE:0,ENUM_MISMATCH:1,ANY_OF_MISSING:10,ONE_OF_MISSING:11,ONE_OF_MULTIPLE:12,NOT_PASSED:13,NUMBER_MULTIPLE_OF:100,NUMBER_MINIMUM:101,NUMBER_MINIMUM_EXCLUSIVE:102,NUMBER_MAXIMUM:103,NUMBER_MAXIMUM_EXCLUSIVE:104,NUMBER_NOT_A_NUMBER:105,STRING_LENGTH_SHORT:200,STRING_LENGTH_LONG:201,STRING_PATTERN:202,OBJECT_PROPERTIES_MINIMUM:300,OBJECT_PROPERTIES_MAXIMUM:301,OBJECT_REQUIRED:302,OBJECT_ADDITIONAL_PROPERTIES:303,OBJECT_DEPENDENCY_KEY:304,ARRAY_LENGTH_SHORT:400,ARRAY_LENGTH_LONG:401,ARRAY_UNIQUE:402,ARRAY_ADDITIONAL_ITEMS:403,FORMAT_CUSTOM:500,KEYWORD_CUSTOM:501,CIRCULAR_REFERENCE:600,UNKNOWN_PROPERTY:1e3},v={};for(var C in h)v[h[C]]=C;var E={INVALID_TYPE:"Invalid type: {type} (expected {expected})",ENUM_MISMATCH:"No enum match for: {value}",ANY_OF_MISSING:'Data does not match any schemas from "anyOf"',ONE_OF_MISSING:'Data does not match any schemas from "oneOf"',ONE_OF_MULTIPLE:'Data is valid against more than one schema from "oneOf": indices {index1} and {index2}',NOT_PASSED:'Data matches schema from "not"',NUMBER_MULTIPLE_OF:"Value {value} is not a multiple of {multipleOf}",NUMBER_MINIMUM:"Value {value} is less than minimum {minimum}",NUMBER_MINIMUM_EXCLUSIVE:"Value {value} is equal to exclusive minimum {minimum}",NUMBER_MAXIMUM:"Value {value} is greater than maximum {maximum}",NUMBER_MAXIMUM_EXCLUSIVE:"Value {value} is equal to exclusive maximum {maximum}",NUMBER_NOT_A_NUMBER:"Value {value} is not a valid number",STRING_LENGTH_SHORT:"String is too short ({length} chars), minimum {minimum}",STRING_LENGTH_LONG:"String is too long ({length} chars), maximum {maximum}",STRING_PATTERN:"String does not match pattern: {pattern}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({propertyCount}), minimum {minimum}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({propertyCount}), maximum {maximum}",OBJECT_REQUIRED:"Missing required property: {key}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {missing} (due to key: {key})",ARRAY_LENGTH_SHORT:"Array is too short ({length}), minimum {minimum}",ARRAY_LENGTH_LONG:"Array is too long ({length}), maximum {maximum}",ARRAY_UNIQUE:"Array items are not unique (indices {match1} and {match2})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",FORMAT_CUSTOM:"Format validation failed ({message})",KEYWORD_CUSTOM:"Keyword failed: {key} ({message})",CIRCULAR_REFERENCE:"Circular $refs: {urls}",UNKNOWN_PROPERTY:"Unknown property (not in schema)"};function S(O,g,p,x,R){if(Error.call(this),O===void 0)throw new Error("No error code supplied: "+x);this.message="",this.params=g,this.code=O,this.dataPath=p||"",this.schemaPath=x||"",this.subErrors=R||null;var P=new Error(this.message);if(this.stack=P.stack||P.stacktrace,!this.stack)try{throw P}catch(_){this.stack=_.stack||_.stacktrace}}S.prototype=Object.create(Error.prototype),S.prototype.constructor=S,S.prototype.name="ValidationError",S.prototype.prefixWith=function(O,g){if(O!==null&&(O=O.replace(/~/g,"~0").replace(/\//g,"~1"),this.dataPath="/"+O+this.dataPath),g!==null&&(g=g.replace(/~/g,"~0").replace(/\//g,"~1"),this.schemaPath="/"+g+this.schemaPath),this.subErrors!==null)for(var p=0;p<this.subErrors.length;p++)this.subErrors[p].prefixWith(O,g);return this};function T(O,g){if(g.substring(0,O.length)===O){var p=g.substring(O.length);if(g.length>0&&g.charAt(O.length-1)==="/"||p.charAt(0)==="#"||p.charAt(0)==="?")return!0}return!1}var w={};function A(O){var g=new l,p,x,R={setErrorReporter:function(P){return typeof P=="string"?this.language(P):(x=P,!0)},addFormat:function(){g.addFormat.apply(g,arguments)},language:function(P){return P?(w[P]||(P=P.split("-")[0]),w[P]?(p=P,P):!1):p},addLanguage:function(P,_){var k;for(k in h)_[k]&&!_[h[k]]&&(_[h[k]]=_[k]);var D=P.split("-")[0];if(!w[D])w[P]=_,w[D]=_;else{w[P]=Object.create(w[D]);for(k in _)typeof w[D][k]>"u"&&(w[D][k]=_[k]),w[P][k]=_[k]}return this},freshApi:function(P){var _=A();return P&&_.language(P),_},validate:function(P,_,k,D){var W=b(p),Z=x?function(Y,ae,oe){return x(Y,ae,oe)||W(Y,ae,oe)}:W,G=new l(g,!1,Z,k,D);typeof _=="string"&&(_={$ref:_}),G.addSchema("",_);var B=G.validateAll(P,_,null,null,"");return!B&&D&&(B=G.banUnknownProperties(P,_)),this.error=B,this.missing=G.missing,this.valid=B===null,this.valid},validateResult:function(){var P={toString:function(){return this.valid?"valid":this.error.message}};return this.validate.apply(P,arguments),P},validateMultiple:function(P,_,k,D){var W=b(p),Z=x?function(Y,ae,oe){return x(Y,ae,oe)||W(Y,ae,oe)}:W,G=new l(g,!0,Z,k,D);typeof _=="string"&&(_={$ref:_}),G.addSchema("",_),G.validateAll(P,_,null,null,""),D&&G.banUnknownProperties(P,_);var B={toString:function(){return this.valid?"valid":this.error.message}};return B.errors=G.errors,B.missing=G.missing,B.valid=B.errors.length===0,B},addSchema:function(){return g.addSchema.apply(g,arguments)},getSchema:function(){return g.getSchema.apply(g,arguments)},getSchemaMap:function(){return g.getSchemaMap.apply(g,arguments)},getSchemaUris:function(){return g.getSchemaUris.apply(g,arguments)},getMissingUris:function(){return g.getMissingUris.apply(g,arguments)},dropSchemas:function(){g.dropSchemas.apply(g,arguments)},defineKeyword:function(){g.defineKeyword.apply(g,arguments)},defineError:function(P,_,k){if(typeof P!="string"||!/^[A-Z]+(_[A-Z]+)*$/.test(P))throw new Error("Code name must be a string in UPPER_CASE_WITH_UNDERSCORES");if(typeof _!="number"||_%1!==0||_<1e4)throw new Error("Code number must be an integer > 10000");if(typeof h[P]<"u")throw new Error("Error already defined: "+P+" as "+h[P]);if(typeof v[_]<"u")throw new Error("Error code already used: "+v[_]+" as "+_);h[P]=_,v[_]=P,E[P]=E[_]=k;for(var D in w){var W=w[D];W[P]&&(W[_]=W[_]||W[P])}},reset:function(){g.reset(),this.error=null,this.missing=[],this.valid=!0},missing:[],error:null,valid:!0,normSchema:m,resolveUrl:d,getDocumentUri:y,errorCodes:h};return R.language("en"),R}var M=A();return M.addLanguage("en-gb",E),M.tv4=M,M})}(mo)),mo.exports}var Iy=_y();const bf=Jt(Iy),qt=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},tl=e=>{const t=[];return e.forEach(r=>{t.push({name:r,value:r})}),t},xf=(e,t)=>{if(!t)return e;const r=[],n=Object.keys(e).length===0?t:e;return t.forEach((i,a)=>{r.push({name:n[a],value:i})}),r},Qt=(e,t,r)=>{r=r||{};const n=r.global&&r.global.formDefaults?Ys(r.global.formDefaults):{};return r.global&&r.global.supressPropertyTitles===!0?n.title=t.title:n.title=t.title||e,t.description&&(n.description=t.description),(r.required===!0||t.required===!0)&&(n.required=!0),t.maxLength&&(n.maxlength=t.maxLength),t.minLength&&(n.minlength=t.minLength),(t.readOnly||t.readonly)&&(n.readonly=!0),t.minimum&&(n.minimum=t.minimum+(t.exclusiveMinimum?1:0)),t.maximum&&(n.maximum=t.maximum-(t.exclusiveMaximum?1:0)),t.validationMessage&&(n.validationMessage=t.validationMessage),t.enumNames&&(n.titleMap=xf(t.enumNames,t.enum)),n.schema=t,n},ky=(e,t,r)=>{if(qt(t.type)==="tBoolean"&&!t.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="tBoolean",r.lookup[kt.stringify(r.path)]=n,n}},Of=(e,t,r)=>{if(qt(t.type)==="string"&&!t.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="text",r.lookup[kt.stringify(r.path)]=n,n}},Ef=(e,t,r)=>{if(qt(t.type)==="number"){const n=Qt(e,t,r);return n.key=r.path,n.type="number",r.lookup[kt.stringify(r.path)]=n,n}},Cf=(e,t,r)=>{if(qt(t.type)==="integer"){const n=Qt(e,t,r);return n.key=r.path,n.type="number",r.lookup[kt.stringify(r.path)]=n,n}},jy=(e,t,r)=>{if(qt(t.type)==="date"){const n=Qt(e,t,r);return n.key=r.path,n.type="date",r.lookup[kt.stringify(r.path)]=n,n}},Sf=(e,t,r)=>{if(qt(t.type)==="boolean"){const n=Qt(e,t,r);return n.key=r.path,n.type="checkbox",r.lookup[kt.stringify(r.path)]=n,n}},Tf=(e,t,r)=>{if(qt(t.type)==="string"&&t.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="select",!n.titleMap&&!t.isObject&&(n.titleMap=tl(t.enum)),r.lookup[kt.stringify(r.path)]=n,n}},wf=e=>Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"?wf(r):(r==null||r==="")&&delete e[t]}),Rf=(e,t,r)=>{if(qt(t.type)==="array"&&t.items&&t.items.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="checkboxes",n.titleMap||(n.titleMap=tl(t.items.enum)),r.lookup[kt.stringify(r.path)]=n,n}},En=(e,t,r)=>{const n=Pr[qt(t.type)];if(n){let i;for(let a=0;a<n.length;a+=1)if(i=n[a](e,t,r),i)return i.schema["x-schema-form"]&&Wg(i.schema["x-schema-form"])&&(i=Oy(i,i.schema["x-schema-form"])),i}},Pf=(e,t,r)=>{if(qt(t.type)==="object"){const n=Qt(e,t,r);return n.type="fieldset",n.items=[],r.lookup[kt.stringify(r.path)]=n,t.properties&&Object.keys(t.properties).forEach(i=>{if(Object.prototype.hasOwnProperty.call(t.properties,i)){const a=r.path.slice();if(a.push(i),r.ignore[kt.stringify(a)]!==!0){const l=t.required&&t.required.indexOf(i)!==-1,s=En(i,t.properties[i],{path:a,required:l||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});s&&n.items.push(s)}}}),n}},Ay=(e,t,r)=>{if(qt(t.type)==="array"){const n=Qt(e,t,r);if(n.type="tuple",n.key=r.path,r.lookup[kt.stringify(r.path)]=n,Array.isArray(t.items)){const i=t.required&&t.required.indexOf(r.path[r.path.length-1]);return n.items=t.items.reduce((a,l,s)=>{const c=r.path.slice();c.push(s);const u=En(e,l,{path:c,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});return u&&a.push(u),a},[]),n}}},_f=(e,t,r)=>{if(qt(t.type)==="array"){const n=Qt(e,t,r);if(n.type="array",n.key=r.path,r.lookup[kt.stringify(r.path)]=n,typeof t.items<"u"){const i=t.required&&t.required.indexOf(r.path[r.path.length-1])!==-1,a=r.path.slice();a.push("");const l=En(e,t.items,{path:a,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});l?n.items=[l]:n.items=t.items}return n}},Pr={string:[Tf,Of],object:[Pf],number:[Ef],integer:[Cf],boolean:[Sf],array:[Rf,Ay,_f],date:[jy],tBoolean:[ky]},If=(e,t,r)=>{const n=[],i={};if(t=t||{},r=r||{},qt(e.type)==="object")e.properties&&Object.keys(e.properties).forEach(a=>{if(Object.prototype.hasOwnProperty.call(e.properties,a)&&t[a]!==!0){const l=e.required&&e.required.indexOf(a)!==-1,s=En(a,e.properties[a],{path:[a],lookup:i,ignore:t,required:l,global:r});s&&n.push(s)}});else throw new Error('Not implemented. Only type "object" allowed at root level of schema.');return{form:n,lookup:i}},kf=e=>e,Ny=(e,t)=>{Pr[e]||(Pr[e]=[]),Pr[e].push(t)},$y=(e,t)=>{Pr[e]||(Pr[e]=[]),Pr[e].unshift(t)},My=(e,t,r,n)=>{n=typeof n<"u"?n:!0,r=r||[];const i=(a,l,s)=>{if(l(a,s),a.properties&&Object.keys(a.properties).forEach(c=>{if(Object.prototype.hasOwnProperty.call(a.properties,c)){const u=s.slice();u.push(c),i(a.properties[c],l,u)}}),!n&&a.items){const c=s.slice();c.push(""),i(a.items,l,c)}};i(e,t,r||[])},rl=(e,t)=>{t(e),e.items&&e.items.forEach(r=>{rl(r,t)}),e.tabs&&e.tabs.forEach(r=>{r.items.forEach(n=>{rl(n,t)})})},nl=(e,t,r,n,i)=>{t=t||["*"],n=n||{},i=i||e.readonly||e.readOnly;const a=If(e,r,n),l=t.indexOf("*");l!==-1&&(t=t.slice(0,l).concat(a.form).concat(t.slice(l+1)));const{lookup:s}=a;return kf(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=kt.parse(c.key)),c&&c.itemForm){c.items=[];const u=kt.stringify(c.key);s[u].items.forEach(d=>{const y=Ys(c.itemForm);y.key=d.key,c.items.push(y)})}if(c&&c.key){const u=kt.stringify(c.key);if(s[u]){const f=s[u];Object.keys(f).forEach(d=>{Object.prototype.hasOwnProperty.call(f,d)&&c[d]===void 0&&(c[d]=f[d])})}}return i===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=nl(e,c.items,r,n,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=nl(e,u.items,r,n,c.readonly)}),c&&c.type==="checkbox"&&Sy(c.schema.default)&&(c.schema.default=!1),c}))};function Dy(e,t,r,n){const i=/^\d+$/;t||(t=this);const a=typeof e=="string"?kt.parse(e):e;if(typeof r<"u"&&a.length===1||(typeof r<"u"&&typeof t[a[0]]>"u"&&(t[a[0]]=a.length>=2&&i.test(a[1])?[]:{}),typeof n<"u"&&["number","integer"].indexOf(n)>-1&&typeof r>"u"))return t[a[0]]=r,t;let l=t[a[0]];for(let s=1;s<a.length;s+=1){if(a[s]==="")return;if(typeof r<"u"){if(s===a.length-1)return l[a[s]]=r,r;let c=l[a[s]];(typeof c>"u"||c===null)&&(c=i.test(a[s+1])?[]:{},l[a[s]]=c),l=c}else l&&(l=l[a[s]])}return l}const Mt={traverseForm:rl,traverseSchema:My,prependRule:$y,appendRule:Ny,postProcessFn:kf,getDefaults:If,defaultFormDefinition:En,defaults:Pr,array:_f,fieldset:Pf,checkboxes:Rf,select:Tf,checkbox:Sf,integer:Cf,number:Ef,text:Of,stdFormObj:Qt,canonicalTitleMap:xf,enumToTitleMap:tl,stripNullType:qt,merge:nl,validate:(e,t,r)=>{if(!e)return{valid:!0};const{schema:n}=e;if(!n)return{valid:!0};t===""&&(t=void 0),e.type==="number"&&t===null&&(t=void 0),e.type==="number"&&Number.isNaN(parseFloat(t))&&(t=void 0);const i={type:"object",properties:{}},a=e.key[e.key.length-1];i.properties[a]=n,e.required&&(i.required=[a]);const l={};typeof t<"u"&&(l[a]=t);const s=bf.validateResult(l,i);return s!=null&&!s.valid&&e.validationMessage!=null&&typeof t<"u"&&(s.error.message=r?r(e.validationMessage):e.validationMessage),s},validateBySchema:(e,t)=>bf.validateResult(t,e),selectOrSet:Dy,getValueFromModel:(e,t)=>{let r;return Array.isArray(t)?(t.reduce((n,i)=>n&&n[i],e),r=t.reduce((n,i)=>n&&n[i],e)):r=e[t],r},getTitleByValue:(e,t)=>{for(let r=0;r<e.length;r+=1){const n=e[r];if(n.value===t)return n.name}},removeEmpty:wf},Ly=e=>{let t;return e.form&&e.form.key&&(t=Mt.selectOrSet(e.form.key,e.model)),t==null&&(e.form.default?t=e.form.default:e.form.schema&&e.form.schema.default&&(t=e.form.schema.default)),t},Fy=e=>e.displayName||e.name||"Component",jt=(e,t={})=>class extends we.Component{constructor(n){super(n),this.displayName=`ComposedComponent(${Fy(e)})`,this.onChangeValidate=this.onChangeValidate.bind(this),this.state=this.constructor.getDerivedStateFromProps(this.props)}static getDerivedStateFromProps(n){const{errorText:i,form:a,showErrors:l,localization:s}=n,c=s&&s.getLocalizedString,u=Ly(n);if(!l)return{value:u,valid:!0,error:""};const f=Mt.validate(a,u||void 0,c),d=f.valid?void 0:f.error;return{value:u,valid:f.valid,error:(f.valid?null:d.message)||i}}onChangeValidate(n,i){const{form:a,onChange:l,localization:s}=this.props,c=s&&s.getLocalizedString;let u=null;switch(a.schema?a.schema.type:a.type){case"integer":case"number":{u=n;break}case"boolean":u=n.target.checked;break;case"array":u=n;break;case"object":if(a.type==="date"){n.target.value.length>0?u=new Date(n.target.value):u="";break}({value:u}=n.target);break;default:({value:u}=n.target)}const d=Mt.validate(a,u,c);this.setState({value:u,valid:d.valid,error:d.valid?null:d.error.message}),l(a.key,u)}render(){return N.jsx(e,{...t,...this.props,...this.state,onChangeValidate:this.onChangeValidate})}};var go={exports:{}},yo={exports:{}},et={};/** @license React v16.13.1
|
|
30
|
+
<%s key={someKey} {...props} />`,zt,Nt,mr,Nt),ie[Nt+zt]=!0}}return V===o?ve(rt):He(rt),rt}}function Oe(V,be,Pe){return he(V,be,Pe,!0)}function Ie(V,be,Pe){return he(V,be,Pe,!1)}var Je=Ie,Pt=Oe;go.Fragment=o,go.jsx=Je,go.jsxs=Pt}()),go}var Id;function Yv(){return Id||(Id=1,process.env.NODE_ENV==="production"?Mi.exports=Wv():Mi.exports=Hv()),Mi.exports}var k=Yv(),ca,Dd;function Kv(){if(Dd)return ca;Dd=1;function e(){this.__data__=[],this.size=0}return ca=e,ca}var ua,jd;function Ii(){if(jd)return ua;jd=1;function e(t,n){return t===n||t!==t&&n!==n}return ua=e,ua}var da,Ad;function Di(){if(Ad)return da;Ad=1;var e=Ii();function t(n,o){for(var i=n.length;i--;)if(e(n[i][0],o))return i;return-1}return da=t,da}var pa,Nd;function Gv(){if(Nd)return pa;Nd=1;var e=Di(),t=Array.prototype,n=t.splice;function o(i){var s=this.__data__,l=e(s,i);if(l<0)return!1;var a=s.length-1;return l==a?s.pop():n.call(s,l,1),--this.size,!0}return pa=o,pa}var fa,_d;function Xv(){if(_d)return fa;_d=1;var e=Di();function t(n){var o=this.__data__,i=e(o,n);return i<0?void 0:o[i][1]}return fa=t,fa}var ha,$d;function Qv(){if($d)return ha;$d=1;var e=Di();function t(n){return e(this.__data__,n)>-1}return ha=t,ha}var ma,Fd;function Zv(){if(Fd)return ma;Fd=1;var e=Di();function t(n,o){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,o])):i[s][1]=o,this}return ma=t,ma}var ba,Vd;function ji(){if(Vd)return ba;Vd=1;var e=Kv(),t=Gv(),n=Xv(),o=Qv(),i=Zv();function s(l){var a=-1,c=l==null?0:l.length;for(this.clear();++a<c;){var u=l[a];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=o,s.prototype.set=i,ba=s,ba}var ga,Ld;function Jv(){if(Ld)return ga;Ld=1;var e=ji();function t(){this.__data__=new e,this.size=0}return ga=t,ga}var ya,Bd;function ex(){if(Bd)return ya;Bd=1;function e(t){var n=this.__data__,o=n.delete(t);return this.size=n.size,o}return ya=e,ya}var va,qd;function tx(){if(qd)return va;qd=1;function e(t){return this.__data__.get(t)}return va=e,va}var xa,zd;function nx(){if(zd)return xa;zd=1;function e(t){return this.__data__.has(t)}return xa=e,xa}var Ca,Ud;function Wd(){if(Ud)return Ca;Ud=1;var e=typeof ki=="object"&&ki&&ki.Object===Object&&ki;return Ca=e,Ca}var Sa,Hd;function Nn(){if(Hd)return Sa;Hd=1;var e=Wd(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Sa=n,Sa}var wa,Yd;function Oa(){if(Yd)return wa;Yd=1;var e=Nn(),t=e.Symbol;return wa=t,wa}var Ta,Kd;function rx(){if(Kd)return Ta;Kd=1;var e=Oa(),t=Object.prototype,n=t.hasOwnProperty,o=t.toString,i=e?e.toStringTag:void 0;function s(l){var a=n.call(l,i),c=l[i];try{l[i]=void 0;var u=!0}catch{}var d=o.call(l);return u&&(a?l[i]=c:delete l[i]),d}return Ta=s,Ta}var Ea,Gd;function ox(){if(Gd)return Ea;Gd=1;var e=Object.prototype,t=e.toString;function n(o){return t.call(o)}return Ea=n,Ea}var Ra,Xd;function yo(){if(Xd)return Ra;Xd=1;var e=Oa(),t=rx(),n=ox(),o="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function l(a){return a==null?a===void 0?i:o:s&&s in Object(a)?t(a):n(a)}return Ra=l,Ra}var Pa,Qd;function Kn(){if(Qd)return Pa;Qd=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Pa=e,Pa}var ka,Zd;function Ma(){if(Zd)return ka;Zd=1;var e=yo(),t=Kn(),n="[object AsyncFunction]",o="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(a){if(!t(a))return!1;var c=e(a);return c==o||c==i||c==n||c==s}return ka=l,ka}var Ia,Jd;function ix(){if(Jd)return Ia;Jd=1;var e=Nn(),t=e["__core-js_shared__"];return Ia=t,Ia}var Da,ep;function sx(){if(ep)return Da;ep=1;var e=ix(),t=function(){var o=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();function n(o){return!!t&&t in o}return Da=n,Da}var ja,tp;function np(){if(tp)return ja;tp=1;var e=Function.prototype,t=e.toString;function n(o){if(o!=null){try{return t.call(o)}catch{}try{return o+""}catch{}}return""}return ja=n,ja}var Aa,rp;function ax(){if(rp)return Aa;rp=1;var e=Ma(),t=sx(),n=Kn(),o=np(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,a=Object.prototype,c=l.toString,u=a.hasOwnProperty,d=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(h){if(!n(h)||t(h))return!1;var b=e(h)?d:s;return b.test(o(h))}return Aa=p,Aa}var Na,op;function lx(){if(op)return Na;op=1;function e(t,n){return t==null?void 0:t[n]}return Na=e,Na}var _a,ip;function yr(){if(ip)return _a;ip=1;var e=ax(),t=lx();function n(o,i){var s=t(o,i);return e(s)?s:void 0}return _a=n,_a}var $a,sp;function Fa(){if(sp)return $a;sp=1;var e=yr(),t=Nn(),n=e(t,"Map");return $a=n,$a}var Va,ap;function Ai(){if(ap)return Va;ap=1;var e=yr(),t=e(Object,"create");return Va=t,Va}var La,lp;function cx(){if(lp)return La;lp=1;var e=Ai();function t(){this.__data__=e?e(null):{},this.size=0}return La=t,La}var Ba,cp;function ux(){if(cp)return Ba;cp=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Ba=e,Ba}var qa,up;function dx(){if(up)return qa;up=1;var e=Ai(),t="__lodash_hash_undefined__",n=Object.prototype,o=n.hasOwnProperty;function i(s){var l=this.__data__;if(e){var a=l[s];return a===t?void 0:a}return o.call(l,s)?l[s]:void 0}return qa=i,qa}var za,dp;function px(){if(dp)return za;dp=1;var e=Ai(),t=Object.prototype,n=t.hasOwnProperty;function o(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return za=o,za}var Ua,pp;function fx(){if(pp)return Ua;pp=1;var e=Ai(),t="__lodash_hash_undefined__";function n(o,i){var s=this.__data__;return this.size+=this.has(o)?0:1,s[o]=e&&i===void 0?t:i,this}return Ua=n,Ua}var Wa,fp;function hx(){if(fp)return Wa;fp=1;var e=cx(),t=ux(),n=dx(),o=px(),i=fx();function s(l){var a=-1,c=l==null?0:l.length;for(this.clear();++a<c;){var u=l[a];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=o,s.prototype.set=i,Wa=s,Wa}var Ha,hp;function mx(){if(hp)return Ha;hp=1;var e=hx(),t=ji(),n=Fa();function o(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Ha=o,Ha}var Ya,mp;function bx(){if(mp)return Ya;mp=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Ya=e,Ya}var Ka,bp;function Ni(){if(bp)return Ka;bp=1;var e=bx();function t(n,o){var i=n.__data__;return e(o)?i[typeof o=="string"?"string":"hash"]:i.map}return Ka=t,Ka}var Ga,gp;function gx(){if(gp)return Ga;gp=1;var e=Ni();function t(n){var o=e(this,n).delete(n);return this.size-=o?1:0,o}return Ga=t,Ga}var Xa,yp;function yx(){if(yp)return Xa;yp=1;var e=Ni();function t(n){return e(this,n).get(n)}return Xa=t,Xa}var Qa,vp;function vx(){if(vp)return Qa;vp=1;var e=Ni();function t(n){return e(this,n).has(n)}return Qa=t,Qa}var Za,xp;function xx(){if(xp)return Za;xp=1;var e=Ni();function t(n,o){var i=e(this,n),s=i.size;return i.set(n,o),this.size+=i.size==s?0:1,this}return Za=t,Za}var Ja,Cp;function Cx(){if(Cp)return Ja;Cp=1;var e=mx(),t=gx(),n=yx(),o=vx(),i=xx();function s(l){var a=-1,c=l==null?0:l.length;for(this.clear();++a<c;){var u=l[a];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=o,s.prototype.set=i,Ja=s,Ja}var el,Sp;function Sx(){if(Sp)return el;Sp=1;var e=ji(),t=Fa(),n=Cx(),o=200;function i(s,l){var a=this.__data__;if(a instanceof e){var c=a.__data__;if(!t||c.length<o-1)return c.push([s,l]),this.size=++a.size,this;a=this.__data__=new n(c)}return a.set(s,l),this.size=a.size,this}return el=i,el}var tl,wp;function Op(){if(wp)return tl;wp=1;var e=ji(),t=Jv(),n=ex(),o=tx(),i=nx(),s=Sx();function l(a){var c=this.__data__=new e(a);this.size=c.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,tl=l,tl}var nl,Tp;function Ep(){if(Tp)return nl;Tp=1;var e=yr(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return nl=t,nl}var rl,Rp;function ol(){if(Rp)return rl;Rp=1;var e=Ep();function t(n,o,i){o=="__proto__"&&e?e(n,o,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[o]=i}return rl=t,rl}var il,Pp;function kp(){if(Pp)return il;Pp=1;var e=ol(),t=Ii();function n(o,i,s){(s!==void 0&&!t(o[i],s)||s===void 0&&!(i in o))&&e(o,i,s)}return il=n,il}var sl,Mp;function wx(){if(Mp)return sl;Mp=1;function e(t){return function(n,o,i){for(var s=-1,l=Object(n),a=i(n),c=a.length;c--;){var u=a[t?c:++s];if(o(l[u],u,l)===!1)break}return n}}return sl=e,sl}var al,Ip;function Ox(){if(Ip)return al;Ip=1;var e=wx(),t=e();return al=t,al}var vo={exports:{}};vo.exports;var Dp;function jp(){return Dp||(Dp=1,function(e,t){var n=Nn(),o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===o,l=s?n.Buffer:void 0,a=l?l.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var p=u.length,h=a?a(p):new u.constructor(p);return u.copy(h),h}e.exports=c}(vo,vo.exports)),vo.exports}var ll,Ap;function Tx(){if(Ap)return ll;Ap=1;var e=Nn(),t=e.Uint8Array;return ll=t,ll}var cl,Np;function ul(){if(Np)return cl;Np=1;var e=Tx();function t(n){var o=new n.constructor(n.byteLength);return new e(o).set(new e(n)),o}return cl=t,cl}var dl,_p;function $p(){if(_p)return dl;_p=1;var e=ul();function t(n,o){var i=o?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.length)}return dl=t,dl}var pl,Fp;function Vp(){if(Fp)return pl;Fp=1;function e(t,n){var o=-1,i=t.length;for(n||(n=Array(i));++o<i;)n[o]=t[o];return n}return pl=e,pl}var fl,Lp;function Ex(){if(Lp)return fl;Lp=1;var e=Kn(),t=Object.create,n=function(){function o(){}return function(i){if(!e(i))return{};if(t)return t(i);o.prototype=i;var s=new o;return o.prototype=void 0,s}}();return fl=n,fl}var hl,Bp;function qp(){if(Bp)return hl;Bp=1;function e(t,n){return function(o){return t(n(o))}}return hl=e,hl}var ml,zp;function bl(){if(zp)return ml;zp=1;var e=qp(),t=e(Object.getPrototypeOf,Object);return ml=t,ml}var gl,Up;function yl(){if(Up)return gl;Up=1;var e=Object.prototype;function t(n){var o=n&&n.constructor,i=typeof o=="function"&&o.prototype||e;return n===i}return gl=t,gl}var vl,Wp;function Hp(){if(Wp)return vl;Wp=1;var e=Ex(),t=bl(),n=yl();function o(i){return typeof i.constructor=="function"&&!n(i)?e(t(i)):{}}return vl=o,vl}var xl,Yp;function vr(){if(Yp)return xl;Yp=1;function e(t){return t!=null&&typeof t=="object"}return xl=e,xl}var Cl,Kp;function Rx(){if(Kp)return Cl;Kp=1;var e=yo(),t=vr(),n="[object Arguments]";function o(i){return t(i)&&e(i)==n}return Cl=o,Cl}var Sl,Gp;function Xp(){if(Gp)return Sl;Gp=1;var e=Rx(),t=vr(),n=Object.prototype,o=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(l){return t(l)&&o.call(l,"callee")&&!i.call(l,"callee")};return Sl=s,Sl}var wl,Qp;function _i(){if(Qp)return wl;Qp=1;var e=Array.isArray;return wl=e,wl}var Ol,Zp;function Jp(){if(Zp)return Ol;Zp=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Ol=t,Ol}var Tl,ef;function $i(){if(ef)return Tl;ef=1;var e=Ma(),t=Jp();function n(o){return o!=null&&t(o.length)&&!e(o)}return Tl=n,Tl}var El,tf;function Px(){if(tf)return El;tf=1;var e=$i(),t=vr();function n(o){return t(o)&&e(o)}return El=n,El}var xo={exports:{}},Rl,nf;function kx(){if(nf)return Rl;nf=1;function e(){return!1}return Rl=e,Rl}xo.exports;var rf;function Pl(){return rf||(rf=1,function(e,t){var n=Nn(),o=kx(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===i,a=l?n.Buffer:void 0,c=a?a.isBuffer:void 0,u=c||o;e.exports=u}(xo,xo.exports)),xo.exports}var kl,of;function Mx(){if(of)return kl;of=1;var e=yo(),t=bl(),n=vr(),o="[object Object]",i=Function.prototype,s=Object.prototype,l=i.toString,a=s.hasOwnProperty,c=l.call(Object);function u(d){if(!n(d)||e(d)!=o)return!1;var p=t(d);if(p===null)return!0;var h=a.call(p,"constructor")&&p.constructor;return typeof h=="function"&&h instanceof h&&l.call(h)==c}return kl=u,kl}var Ml,sf;function Ix(){if(sf)return Ml;sf=1;var e=yo(),t=Jp(),n=vr(),o="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",a="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",p="[object Object]",h="[object RegExp]",b="[object Set]",y="[object String]",m="[object WeakMap]",g="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",O="[object Float64Array]",T="[object Int8Array]",R="[object Int16Array]",A="[object Int32Array]",N="[object Uint8Array]",S="[object Uint8ClampedArray]",v="[object Uint16Array]",f="[object Uint32Array]",C={};C[x]=C[O]=C[T]=C[R]=C[A]=C[N]=C[S]=C[v]=C[f]=!0,C[o]=C[i]=C[g]=C[s]=C[w]=C[l]=C[a]=C[c]=C[u]=C[d]=C[p]=C[h]=C[b]=C[y]=C[m]=!1;function P(M){return n(M)&&t(M.length)&&!!C[e(M)]}return Ml=P,Ml}var Il,af;function Dl(){if(af)return Il;af=1;function e(t){return function(n){return t(n)}}return Il=e,Il}var Co={exports:{}};Co.exports;var lf;function jl(){return lf||(lf=1,function(e,t){var n=Wd(),o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===o,l=s&&n.process,a=function(){try{var c=i&&i.require&&i.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}}();e.exports=a}(Co,Co.exports)),Co.exports}var Al,cf;function uf(){if(cf)return Al;cf=1;var e=Ix(),t=Dl(),n=jl(),o=n&&n.isTypedArray,i=o?t(o):e;return Al=i,Al}var Nl,df;function pf(){if(df)return Nl;df=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Nl=e,Nl}var _l,ff;function hf(){if(ff)return _l;ff=1;var e=ol(),t=Ii(),n=Object.prototype,o=n.hasOwnProperty;function i(s,l,a){var c=s[l];(!(o.call(s,l)&&t(c,a))||a===void 0&&!(l in s))&&e(s,l,a)}return _l=i,_l}var $l,mf;function Vr(){if(mf)return $l;mf=1;var e=hf(),t=ol();function n(o,i,s,l){var a=!s;s||(s={});for(var c=-1,u=i.length;++c<u;){var d=i[c],p=l?l(s[d],o[d],d,s,o):void 0;p===void 0&&(p=o[d]),a?t(s,d,p):e(s,d,p)}return s}return $l=n,$l}var Fl,bf;function Dx(){if(bf)return Fl;bf=1;function e(t,n){for(var o=-1,i=Array(t);++o<t;)i[o]=n(o);return i}return Fl=e,Fl}var Vl,gf;function yf(){if(gf)return Vl;gf=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(o,i){var s=typeof o;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(o))&&o>-1&&o%1==0&&o<i}return Vl=n,Vl}var Ll,vf;function xf(){if(vf)return Ll;vf=1;var e=Dx(),t=Xp(),n=_i(),o=Pl(),i=yf(),s=uf(),l=Object.prototype,a=l.hasOwnProperty;function c(u,d){var p=n(u),h=!p&&t(u),b=!p&&!h&&o(u),y=!p&&!h&&!b&&s(u),m=p||h||b||y,g=m?e(u.length,String):[],w=g.length;for(var x in u)(d||a.call(u,x))&&!(m&&(x=="length"||b&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,w)))&&g.push(x);return g}return Ll=c,Ll}var Bl,Cf;function jx(){if(Cf)return Bl;Cf=1;function e(t){var n=[];if(t!=null)for(var o in Object(t))n.push(o);return n}return Bl=e,Bl}var ql,Sf;function Ax(){if(Sf)return ql;Sf=1;var e=Kn(),t=yl(),n=jx(),o=Object.prototype,i=o.hasOwnProperty;function s(l){if(!e(l))return n(l);var a=t(l),c=[];for(var u in l)u=="constructor"&&(a||!i.call(l,u))||c.push(u);return c}return ql=s,ql}var zl,wf;function Lr(){if(wf)return zl;wf=1;var e=xf(),t=Ax(),n=$i();function o(i){return n(i)?e(i,!0):t(i)}return zl=o,zl}var Ul,Of;function Nx(){if(Of)return Ul;Of=1;var e=Vr(),t=Lr();function n(o){return e(o,t(o))}return Ul=n,Ul}var Wl,Tf;function _x(){if(Tf)return Wl;Tf=1;var e=kp(),t=jp(),n=$p(),o=Vp(),i=Hp(),s=Xp(),l=_i(),a=Px(),c=Pl(),u=Ma(),d=Kn(),p=Mx(),h=uf(),b=pf(),y=Nx();function m(g,w,x,O,T,R,A){var N=b(g,x),S=b(w,x),v=A.get(S);if(v){e(g,x,v);return}var f=R?R(N,S,x+"",g,w,A):void 0,C=f===void 0;if(C){var P=l(S),M=!P&&c(S),D=!P&&!M&&h(S);f=S,P||M||D?l(N)?f=N:a(N)?f=o(N):M?(C=!1,f=t(S,!0)):D?(C=!1,f=n(S,!0)):f=[]:p(S)||s(S)?(f=N,s(N)?f=y(N):(!d(N)||u(N))&&(f=i(S))):C=!1}C&&(A.set(S,f),T(f,S,O,R,A),A.delete(S)),e(g,x,f)}return Wl=m,Wl}var Hl,Ef;function $x(){if(Ef)return Hl;Ef=1;var e=Op(),t=kp(),n=Ox(),o=_x(),i=Kn(),s=Lr(),l=pf();function a(c,u,d,p,h){c!==u&&n(u,function(b,y){if(h||(h=new e),i(b))o(c,u,y,d,a,p,h);else{var m=p?p(l(c,y),b,y+"",c,u,h):void 0;m===void 0&&(m=b),t(c,y,m)}},s)}return Hl=a,Hl}var Yl,Rf;function Pf(){if(Rf)return Yl;Rf=1;function e(t){return t}return Yl=e,Yl}var Kl,kf;function Fx(){if(kf)return Kl;kf=1;function e(t,n,o){switch(o.length){case 0:return t.call(n);case 1:return t.call(n,o[0]);case 2:return t.call(n,o[0],o[1]);case 3:return t.call(n,o[0],o[1],o[2])}return t.apply(n,o)}return Kl=e,Kl}var Gl,Mf;function Vx(){if(Mf)return Gl;Mf=1;var e=Fx(),t=Math.max;function n(o,i,s){return i=t(i===void 0?o.length-1:i,0),function(){for(var l=arguments,a=-1,c=t(l.length-i,0),u=Array(c);++a<c;)u[a]=l[i+a];a=-1;for(var d=Array(i+1);++a<i;)d[a]=l[a];return d[i]=s(u),e(o,this,d)}}return Gl=n,Gl}var Xl,If;function Lx(){if(If)return Xl;If=1;function e(t){return function(){return t}}return Xl=e,Xl}var Ql,Df;function Bx(){if(Df)return Ql;Df=1;var e=Lx(),t=Ep(),n=Pf(),o=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return Ql=o,Ql}var Zl,jf;function qx(){if(jf)return Zl;jf=1;var e=800,t=16,n=Date.now;function o(i){var s=0,l=0;return function(){var a=n(),c=t-(a-l);if(l=a,c>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return Zl=o,Zl}var Jl,Af;function zx(){if(Af)return Jl;Af=1;var e=Bx(),t=qx(),n=t(e);return Jl=n,Jl}var ec,Nf;function Ux(){if(Nf)return ec;Nf=1;var e=Pf(),t=Vx(),n=zx();function o(i,s){return n(t(i,s,e),i+"")}return ec=o,ec}var tc,_f;function Wx(){if(_f)return tc;_f=1;var e=Ii(),t=$i(),n=yf(),o=Kn();function i(s,l,a){if(!o(a))return!1;var c=typeof l;return(c=="number"?t(a)&&n(l,a.length):c=="string"&&l in a)?e(a[l],s):!1}return tc=i,tc}var nc,$f;function Ff(){if($f)return nc;$f=1;var e=Ux(),t=Wx();function n(o){return e(function(i,s){var l=-1,a=s.length,c=a>1?s[a-1]:void 0,u=a>2?s[2]:void 0;for(c=o.length>3&&typeof c=="function"?(a--,c):void 0,u&&t(s[0],s[1],u)&&(c=a<3?void 0:c,a=1),i=Object(i);++l<a;){var d=s[l];d&&o(i,d,l,c)}return i})}return nc=n,nc}var rc,Vf;function Hx(){if(Vf)return rc;Vf=1;var e=$x(),t=Ff(),n=t(function(o,i,s){e(o,i,s)});return rc=n,rc}var Yx=Hx();const Kx=qt(Yx);var oc,Lf;function Gx(){if(Lf)return oc;Lf=1;function e(t){return t==null}return oc=e,oc}var Xx=Gx();const Bf=qt(Xx);var Qx=Kn();const Zx=qt(Qx);var ic,qf;function Jx(){if(qf)return ic;qf=1;function e(t,n){for(var o=-1,i=t==null?0:t.length;++o<i&&n(t[o],o,t)!==!1;);return t}return ic=e,ic}var sc,zf;function eC(){if(zf)return sc;zf=1;var e=qp(),t=e(Object.keys,Object);return sc=t,sc}var ac,Uf;function tC(){if(Uf)return ac;Uf=1;var e=yl(),t=eC(),n=Object.prototype,o=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var l=[];for(var a in Object(s))o.call(s,a)&&a!="constructor"&&l.push(a);return l}return ac=i,ac}var lc,Wf;function cc(){if(Wf)return lc;Wf=1;var e=xf(),t=tC(),n=$i();function o(i){return n(i)?e(i):t(i)}return lc=o,lc}var uc,Hf;function nC(){if(Hf)return uc;Hf=1;var e=Vr(),t=cc();function n(o,i){return o&&e(i,t(i),o)}return uc=n,uc}var dc,Yf;function rC(){if(Yf)return dc;Yf=1;var e=Vr(),t=Lr();function n(o,i){return o&&e(i,t(i),o)}return dc=n,dc}var pc,Kf;function oC(){if(Kf)return pc;Kf=1;function e(t,n){for(var o=-1,i=t==null?0:t.length,s=0,l=[];++o<i;){var a=t[o];n(a,o,t)&&(l[s++]=a)}return l}return pc=e,pc}var fc,Gf;function Xf(){if(Gf)return fc;Gf=1;function e(){return[]}return fc=e,fc}var hc,Qf;function mc(){if(Qf)return hc;Qf=1;var e=oC(),t=Xf(),n=Object.prototype,o=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(a){return o.call(l,a)}))}:t;return hc=s,hc}var bc,Zf;function iC(){if(Zf)return bc;Zf=1;var e=Vr(),t=mc();function n(o,i){return e(o,t(o),i)}return bc=n,bc}var gc,Jf;function eh(){if(Jf)return gc;Jf=1;function e(t,n){for(var o=-1,i=n.length,s=t.length;++o<i;)t[s+o]=n[o];return t}return gc=e,gc}var yc,th;function nh(){if(th)return yc;th=1;var e=eh(),t=bl(),n=mc(),o=Xf(),i=Object.getOwnPropertySymbols,s=i?function(l){for(var a=[];l;)e(a,n(l)),l=t(l);return a}:o;return yc=s,yc}var vc,rh;function sC(){if(rh)return vc;rh=1;var e=Vr(),t=nh();function n(o,i){return e(o,t(o),i)}return vc=n,vc}var xc,oh;function ih(){if(oh)return xc;oh=1;var e=eh(),t=_i();function n(o,i,s){var l=i(o);return t(o)?l:e(l,s(o))}return xc=n,xc}var Cc,sh;function aC(){if(sh)return Cc;sh=1;var e=ih(),t=mc(),n=cc();function o(i){return e(i,n,t)}return Cc=o,Cc}var Sc,ah;function lC(){if(ah)return Sc;ah=1;var e=ih(),t=nh(),n=Lr();function o(i){return e(i,n,t)}return Sc=o,Sc}var wc,lh;function cC(){if(lh)return wc;lh=1;var e=yr(),t=Nn(),n=e(t,"DataView");return wc=n,wc}var Oc,ch;function uC(){if(ch)return Oc;ch=1;var e=yr(),t=Nn(),n=e(t,"Promise");return Oc=n,Oc}var Tc,uh;function dC(){if(uh)return Tc;uh=1;var e=yr(),t=Nn(),n=e(t,"Set");return Tc=n,Tc}var Ec,dh;function pC(){if(dh)return Ec;dh=1;var e=yr(),t=Nn(),n=e(t,"WeakMap");return Ec=n,Ec}var Rc,ph;function Pc(){if(ph)return Rc;ph=1;var e=cC(),t=Fa(),n=uC(),o=dC(),i=pC(),s=yo(),l=np(),a="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",b=l(e),y=l(t),m=l(n),g=l(o),w=l(i),x=s;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=a||n&&x(n.resolve())!=u||o&&x(new o)!=d||i&&x(new i)!=p)&&(x=function(O){var T=s(O),R=T==c?O.constructor:void 0,A=R?l(R):"";if(A)switch(A){case b:return h;case y:return a;case m:return u;case g:return d;case w:return p}return T}),Rc=x,Rc}var kc,fh;function fC(){if(fh)return kc;fh=1;var e=Object.prototype,t=e.hasOwnProperty;function n(o){var i=o.length,s=new o.constructor(i);return i&&typeof o[0]=="string"&&t.call(o,"index")&&(s.index=o.index,s.input=o.input),s}return kc=n,kc}var Mc,hh;function hC(){if(hh)return Mc;hh=1;var e=ul();function t(n,o){var i=o?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.byteLength)}return Mc=t,Mc}var Ic,mh;function mC(){if(mh)return Ic;mh=1;var e=/\w*$/;function t(n){var o=new n.constructor(n.source,e.exec(n));return o.lastIndex=n.lastIndex,o}return Ic=t,Ic}var Dc,bh;function bC(){if(bh)return Dc;bh=1;var e=Oa(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function o(i){return n?Object(n.call(i)):{}}return Dc=o,Dc}var jc,gh;function gC(){if(gh)return jc;gh=1;var e=ul(),t=hC(),n=mC(),o=bC(),i=$p(),s="[object Boolean]",l="[object Date]",a="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",p="[object String]",h="[object Symbol]",b="[object ArrayBuffer]",y="[object DataView]",m="[object Float32Array]",g="[object Float64Array]",w="[object Int8Array]",x="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",R="[object Uint8ClampedArray]",A="[object Uint16Array]",N="[object Uint32Array]";function S(v,f,C){var P=v.constructor;switch(f){case b:return e(v);case s:case l:return new P(+v);case y:return t(v,C);case m:case g:case w:case x:case O:case T:case R:case A:case N:return i(v,C);case a:return new P;case c:case p:return new P(v);case u:return n(v);case d:return new P;case h:return o(v)}}return jc=S,jc}var Ac,yh;function yC(){if(yh)return Ac;yh=1;var e=Pc(),t=vr(),n="[object Map]";function o(i){return t(i)&&e(i)==n}return Ac=o,Ac}var Nc,vh;function vC(){if(vh)return Nc;vh=1;var e=yC(),t=Dl(),n=jl(),o=n&&n.isMap,i=o?t(o):e;return Nc=i,Nc}var _c,xh;function xC(){if(xh)return _c;xh=1;var e=Pc(),t=vr(),n="[object Set]";function o(i){return t(i)&&e(i)==n}return _c=o,_c}var $c,Ch;function CC(){if(Ch)return $c;Ch=1;var e=xC(),t=Dl(),n=jl(),o=n&&n.isSet,i=o?t(o):e;return $c=i,$c}var Fc,Sh;function SC(){if(Sh)return Fc;Sh=1;var e=Op(),t=Jx(),n=hf(),o=nC(),i=rC(),s=jp(),l=Vp(),a=iC(),c=sC(),u=aC(),d=lC(),p=Pc(),h=fC(),b=gC(),y=Hp(),m=_i(),g=Pl(),w=vC(),x=Kn(),O=CC(),T=cc(),R=Lr(),A=1,N=2,S=4,v="[object Arguments]",f="[object Array]",C="[object Boolean]",P="[object Date]",M="[object Error]",D="[object Function]",I="[object GeneratorFunction]",j="[object Map]",$="[object Number]",F="[object Object]",L="[object RegExp]",_="[object Set]",B="[object String]",oe="[object Symbol]",X="[object WeakMap]",ee="[object ArrayBuffer]",Y="[object DataView]",J="[object Float32Array]",se="[object Float64Array]",z="[object Int8Array]",H="[object Int16Array]",G="[object Int32Array]",ue="[object Uint8Array]",U="[object Uint8ClampedArray]",Q="[object Uint16Array]",q="[object Uint32Array]",ne={};ne[v]=ne[f]=ne[ee]=ne[Y]=ne[C]=ne[P]=ne[J]=ne[se]=ne[z]=ne[H]=ne[G]=ne[j]=ne[$]=ne[F]=ne[L]=ne[_]=ne[B]=ne[oe]=ne[ue]=ne[U]=ne[Q]=ne[q]=!0,ne[M]=ne[D]=ne[X]=!1;function Z(te,le,fe,xe,Ee,Te){var $e,Ze=le&A,We=le&N,it=le&S;if(fe&&($e=Ee?fe(te,xe,Ee,Te):fe(te)),$e!==void 0)return $e;if(!x(te))return te;var st=m(te);if(st){if($e=h(te),!Ze)return l(te,$e)}else{var Ge=p(te),Ke=Ge==D||Ge==I;if(g(te))return s(te,Ze);if(Ge==F||Ge==v||Ke&&!Ee){if($e=We||Ke?{}:y(te),!Ze)return We?c(te,i($e,te)):a(te,o($e,te))}else{if(!ne[Ge])return Ee?te:{};$e=b(te,Ge,Ze)}}Te||(Te=new e);var ut=Te.get(te);if(ut)return ut;Te.set(te,$e),O(te)?te.forEach(function(Tt){$e.add(Z(Tt,le,fe,Tt,te,Te))}):w(te)&&te.forEach(function(Tt,dt){$e.set(dt,Z(Tt,le,fe,dt,te,Te))});var ze=it?We?d:u:We?R:T,ct=st?void 0:ze(te);return t(ct||te,function(Tt,dt){ct&&(dt=Tt,Tt=te[dt]),n($e,dt,Z(Tt,le,fe,dt,te,Te))}),$e}return Fc=Z,Fc}var Vc,wh;function wC(){if(wh)return Vc;wh=1;var e=SC(),t=1,n=4;function o(i){return e(i,t|n)}return Vc=o,Vc}var OC=wC();const Fi=qt(OC);var Lc,Oh;function TC(){if(Oh)return Lc;Oh=1;var e=Vr(),t=Ff(),n=Lr(),o=t(function(i,s){e(s,n(s),i)});return Lc=o,Lc}var Bc,Th;function EC(){return Th||(Th=1,Bc=TC()),Bc}var RC=EC();const PC=qt(RC);var qc,Eh;function kC(){if(Eh)return qc;Eh=1;function e(t){return t===void 0}return qc=e,qc}var MC=kC();const IC=qt(MC);var zc={},Rh;function DC(){return Rh||(Rh=1,function(e){(function(t){var n={"'":/\\\'/g,'"':/\\\"/g},o={parse:function(i){if(typeof i!="string")throw new TypeError("ObjectPath.parse must be passed a string");for(var s=0,l=[],a,c,u,d;s<i.length;)if(a=i.indexOf(".",s),c=i.indexOf("[",s),a===-1&&c===-1)l.push(i.slice(s,i.length)),s=i.length;else if(c===-1||a!==-1&&a<c)l.push(i.slice(s,a)),s=a+1;else if(c>s&&(l.push(i.slice(s,c)),s=c),u=i.slice(c+1,c+2),u!=='"'&&u!=="'")d=i.indexOf("]",c),d===-1&&(d=i.length),l.push(i.slice(s+1,d)),s=i.slice(d+1,d+2)==="."?d+2:d+1;else{for(d=i.indexOf(u+"]",c),d===-1&&(d=i.length);i.slice(d-1,d)==="\\"&&c<i.length;)c++,d=i.indexOf(u+"]",c);l.push(i.slice(s+2,d).replace(n[u],u).replace(/\\+/g,function(p){return new Array(Math.ceil(p.length/2)+1).join("\\")})),s=i.slice(d+2,d+3)==="."?d+3:d+2}return l},stringify:function(i,s,l){Array.isArray(i)||(i=[i]),s=s==='"'?'"':"'";var a=new RegExp("(\\\\|"+s+")","g");return i.map(function(c,u){let d=c.toString();return!l&&/^[A-z_]\w*$/.exec(d)?u!==0?"."+d:d:!l&&/^\d+$/.exec(d)?"["+d+"]":(d=d.replace(a,"\\$1"),"["+s+d+s+"]")}).join("")},normalize:function(i,s,l){return o.stringify(Array.isArray(i)?i:o.parse(i),s,l)},registerModule:function(i){i.module("ObjectPath",[]).provider("ObjectPath",function(){this.parse=o.parse,this.stringify=o.stringify,this.normalize=o.normalize,this.$get=function(){return o}})}};e.ObjectPath=o})()}(zc)),zc}var Uc,Ph;function jC(){return Ph||(Ph=1,Uc=DC().ObjectPath),Uc}var AC=jC();const Ut=qt(AC);var Vi={exports:{}},NC=Vi.exports,kh;function _C(){return kh||(kh=1,function(e){(function(t,n){e.exports?e.exports=n():t.tv4=n()})(NC,function(){Object.keys||(Object.keys=function(){var S=Object.prototype.hasOwnProperty,v=!{toString:null}.propertyIsEnumerable("toString"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],C=f.length;return function(P){if(typeof P!="object"&&typeof P!="function"||P===null)throw new TypeError("Object.keys called on non-object");var M=[];for(var D in P)S.call(P,D)&&M.push(D);if(v)for(var I=0;I<C;I++)S.call(P,f[I])&&M.push(f[I]);return M}}()),Object.create||(Object.create=function(){function S(){}return function(v){if(arguments.length!==1)throw new Error("Object.create implementation only accepts one parameter.");return S.prototype=v,new S}}()),Array.isArray||(Array.isArray=function(S){return Object.prototype.toString.call(S)==="[object Array]"}),Array.prototype.indexOf||(Array.prototype.indexOf=function(S){if(this===null)throw new TypeError;var v=Object(this),f=v.length>>>0;if(f===0)return-1;var C=0;if(arguments.length>1&&(C=Number(arguments[1]),C!==C?C=0:C!==0&&C!==1/0&&C!==-1/0&&(C=(C>0||-1)*Math.floor(Math.abs(C)))),C>=f)return-1;for(var P=C>=0?C:Math.max(f-Math.abs(C),0);P<f;P++)if(P in v&&v[P]===S)return P;return-1}),Object.isFrozen||(Object.isFrozen=function(S){for(var v="tv4_test_frozen_key";S.hasOwnProperty(v);)v+=Math.random();try{return S[v]=!0,delete S[v],!1}catch{return!0}});var t={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},n={"*":!0};function o(S){return encodeURI(S).replace(/%25[0-9][0-9]/g,function(v){return"%"+v.substring(3)})}function i(S){var v="";t[S.charAt(0)]&&(v=S.charAt(0),S=S.substring(1));var f="",C="",P=!0,M=!1,D=!1;v==="+"?P=!1:v==="."?(C=".",f="."):v==="/"?(C="/",f="/"):v==="#"?(C="#",P=!1):v===";"?(C=";",f=";",M=!0,D=!0):v==="?"?(C="?",f="&",M=!0):v==="&"&&(C="&",f="&",M=!0);for(var I=[],j=S.split(","),$=[],F=0;F<j.length;F++){var L=j[F],_=null;if(L.indexOf(":")!==-1){var B=L.split(":");L=B[0],_=parseInt(B[1],10)}for(var oe={};n[L.charAt(L.length-1)];)oe[L.charAt(L.length-1)]=!0,L=L.substring(0,L.length-1);var X={truncate:_,name:L,suffices:oe};$.push(X),I.push(L)}var ee=function(Y){for(var J="",se=0,z=0;z<$.length;z++){var H=$[z],G=Y(H.name);if(G==null||Array.isArray(G)&&G.length===0||typeof G=="object"&&Object.keys(G).length===0){se++;continue}if(z===se?J+=C:J+=f||",",Array.isArray(G)){M&&(J+=H.name+"=");for(var ue=0;ue<G.length;ue++)ue>0&&(J+=H.suffices["*"]&&f||",",H.suffices["*"]&&M&&(J+=H.name+"=")),J+=P?encodeURIComponent(G[ue]).replace(/!/g,"%21"):o(G[ue])}else if(typeof G=="object"){M&&!H.suffices["*"]&&(J+=H.name+"=");var U=!0;for(var Q in G)U||(J+=H.suffices["*"]&&f||","),U=!1,J+=P?encodeURIComponent(Q).replace(/!/g,"%21"):o(Q),J+=H.suffices["*"]?"=":",",J+=P?encodeURIComponent(G[Q]).replace(/!/g,"%21"):o(G[Q])}else M&&(J+=H.name,(!D||G!=="")&&(J+="=")),H.truncate!=null&&(G=G.substring(0,H.truncate)),J+=P?encodeURIComponent(G).replace(/!/g,"%21"):o(G)}return J};return ee.varNames=I,{prefix:C,substitution:ee}}function s(S){if(!(this instanceof s))return new s(S);for(var v=S.split("{"),f=[v.shift()],C=[],P=[],M=[];v.length>0;){var D=v.shift(),I=D.split("}")[0],j=D.substring(I.length+1),$=i(I);P.push($.substitution),C.push($.prefix),f.push(j),M=M.concat($.substitution.varNames)}this.fill=function(F){for(var L=f[0],_=0;_<P.length;_++){var B=P[_];L+=B(F),L+=f[_+1]}return L},this.varNames=M,this.template=S}s.prototype={toString:function(){return this.template},fillFromObject:function(S){return this.fill(function(v){return S[v]})}};var l=function(v,f,C,P,M){if(this.missing=[],this.missingMap={},this.formatValidators=v?Object.create(v.formatValidators):{},this.schemas=v?Object.create(v.schemas):{},this.collectMultiple=f,this.errors=[],this.handleError=f?this.collectError:this.returnError,P&&(this.checkRecursive=!0,this.scanned=[],this.scannedFrozen=[],this.scannedFrozenSchemas=[],this.scannedFrozenValidationErrors=[],this.validatedSchemasKey="tv4_validation_id",this.validationErrorsKey="tv4_validation_errors_id"),M&&(this.trackUnknownProperties=!0,this.knownPropertyPaths={},this.unknownPropertyPaths={}),this.errorReporter=C||y("en"),typeof this.errorReporter=="string")throw new Error("debug");if(this.definedKeywords={},v)for(var D in v.definedKeywords)this.definedKeywords[D]=v.definedKeywords[D].slice(0)};l.prototype.defineKeyword=function(S,v){this.definedKeywords[S]=this.definedKeywords[S]||[],this.definedKeywords[S].push(v)},l.prototype.createError=function(S,v,f,C,P,M,D){var I=new O(S,v,f,C,P);return I.message=this.errorReporter(I,M,D),I},l.prototype.returnError=function(S){return S},l.prototype.collectError=function(S){return S&&this.errors.push(S),null},l.prototype.prefixErrors=function(S,v,f){for(var C=S;C<this.errors.length;C++)this.errors[C]=this.errors[C].prefixWith(v,f);return this},l.prototype.banUnknownProperties=function(S,v){for(var f in this.unknownPropertyPaths){var C=this.createError(m.UNKNOWN_PROPERTY,{path:f},f,"",null,S,v),P=this.handleError(C);if(P)return P}return null},l.prototype.addFormat=function(S,v){if(typeof S=="object"){for(var f in S)this.addFormat(f,S[f]);return this}this.formatValidators[S]=v},l.prototype.resolveRefs=function(S,v){if(S.$ref!==void 0){if(v=v||{},v[S.$ref])return this.createError(m.CIRCULAR_REFERENCE,{urls:Object.keys(v).join(", ")},"","",null,void 0,S);v[S.$ref]=!0,S=this.getSchema(S.$ref,v)}return S},l.prototype.getSchema=function(S,v){var f;if(this.schemas[S]!==void 0)return f=this.schemas[S],this.resolveRefs(f,v);var C=S,P="";if(S.indexOf("#")!==-1&&(P=S.substring(S.indexOf("#")+1),C=S.substring(0,S.indexOf("#"))),typeof this.schemas[C]=="object"){f=this.schemas[C];var M=decodeURIComponent(P);if(M==="")return this.resolveRefs(f,v);if(M.charAt(0)!=="/")return;for(var D=M.split("/").slice(1),I=0;I<D.length;I++){var j=D[I].replace(/~1/g,"/").replace(/~0/g,"~");if(f[j]===void 0){f=void 0;break}f=f[j]}if(f!==void 0)return this.resolveRefs(f,v)}this.missing[C]===void 0&&(this.missing.push(C),this.missing[C]=C,this.missingMap[C]=C)},l.prototype.searchSchemas=function(S,v){if(Array.isArray(S))for(var f=0;f<S.length;f++)this.searchSchemas(S[f],v);else if(S&&typeof S=="object"){typeof S.id=="string"&&T(v,S.id)&&this.schemas[S.id]===void 0&&(this.schemas[S.id]=S);for(var C in S)if(C!=="enum"){if(typeof S[C]=="object")this.searchSchemas(S[C],v);else if(C==="$ref"){var P=h(S[C]);P&&this.schemas[P]===void 0&&this.missingMap[P]===void 0&&(this.missingMap[P]=P)}}}},l.prototype.addSchema=function(S,v){if(typeof S!="string"||typeof v>"u")if(typeof S=="object"&&typeof S.id=="string")v=S,S=v.id;else return;S===h(S)+"#"&&(S=h(S)),this.schemas[S]=v,delete this.missingMap[S],b(v,S),this.searchSchemas(v,S)},l.prototype.getSchemaMap=function(){var S={};for(var v in this.schemas)S[v]=this.schemas[v];return S},l.prototype.getSchemaUris=function(S){var v=[];for(var f in this.schemas)(!S||S.test(f))&&v.push(f);return v},l.prototype.getMissingUris=function(S){var v=[];for(var f in this.missingMap)(!S||S.test(f))&&v.push(f);return v},l.prototype.dropSchemas=function(){this.schemas={},this.reset()},l.prototype.reset=function(){this.missing=[],this.missingMap={},this.errors=[]},l.prototype.validateAll=function(S,v,f,C,P){var M;if(v=this.resolveRefs(v),v){if(v instanceof O)return this.errors.push(v),v}else return null;var D=this.errors.length,I,j=null,$=null;if(this.checkRecursive&&S&&typeof S=="object"){if(M=!this.scanned.length,S[this.validatedSchemasKey]){var F=S[this.validatedSchemasKey].indexOf(v);if(F!==-1)return this.errors=this.errors.concat(S[this.validationErrorsKey][F]),null}if(Object.isFrozen(S)&&(I=this.scannedFrozen.indexOf(S),I!==-1)){var L=this.scannedFrozenSchemas[I].indexOf(v);if(L!==-1)return this.errors=this.errors.concat(this.scannedFrozenValidationErrors[I][L]),null}if(this.scanned.push(S),Object.isFrozen(S))I===-1&&(I=this.scannedFrozen.length,this.scannedFrozen.push(S),this.scannedFrozenSchemas.push([])),j=this.scannedFrozenSchemas[I].length,this.scannedFrozenSchemas[I][j]=v,this.scannedFrozenValidationErrors[I][j]=[];else{if(!S[this.validatedSchemasKey])try{Object.defineProperty(S,this.validatedSchemasKey,{value:[],configurable:!0}),Object.defineProperty(S,this.validationErrorsKey,{value:[],configurable:!0})}catch{S[this.validatedSchemasKey]=[],S[this.validationErrorsKey]=[]}$=S[this.validatedSchemasKey].length,S[this.validatedSchemasKey][$]=v,S[this.validationErrorsKey][$]=[]}}var _=this.errors.length,B=this.validateBasic(S,v,P)||this.validateNumeric(S,v,P)||this.validateString(S,v,P)||this.validateArray(S,v,P)||this.validateObject(S,v,P)||this.validateCombinations(S,v,P)||this.validateHypermedia(S,v,P)||this.validateFormat(S,v,P)||this.validateDefinedKeywords(S,v,P)||null;if(M){for(;this.scanned.length;){var oe=this.scanned.pop();delete oe[this.validatedSchemasKey]}this.scannedFrozen=[],this.scannedFrozenSchemas=[]}if(B||_!==this.errors.length)for(;f&&f.length||C&&C.length;){var X=f&&f.length?""+f.pop():null,ee=C&&C.length?""+C.pop():null;B&&(B=B.prefixWith(X,ee)),this.prefixErrors(_,X,ee)}return j!==null?this.scannedFrozenValidationErrors[I][j]=this.errors.slice(D):$!==null&&(S[this.validationErrorsKey][$]=this.errors.slice(D)),this.handleError(B)},l.prototype.validateFormat=function(S,v){if(typeof v.format!="string"||!this.formatValidators[v.format])return null;var f=this.formatValidators[v.format].call(null,S,v);return typeof f=="string"||typeof f=="number"?this.createError(m.FORMAT_CUSTOM,{message:f},"","/format",null,S,v):f&&typeof f=="object"?this.createError(m.FORMAT_CUSTOM,{message:f.message||"?"},f.dataPath||"",f.schemaPath||"/format",null,S,v):null},l.prototype.validateDefinedKeywords=function(S,v,f){for(var C in this.definedKeywords)if(!(typeof v[C]>"u"))for(var P=this.definedKeywords[C],M=0;M<P.length;M++){var D=P[M],I=D(S,v[C],v,f);if(typeof I=="string"||typeof I=="number")return this.createError(m.KEYWORD_CUSTOM,{key:C,message:I},"","",null,S,v).prefixWith(null,C);if(I&&typeof I=="object"){var j=I.code;if(typeof j=="string"){if(!m[j])throw new Error("Undefined error code (use defineError): "+j);j=m[j]}else typeof j!="number"&&(j=m.KEYWORD_CUSTOM);var $=typeof I.message=="object"?I.message:{key:C,message:I.message||"?"},F=I.schemaPath||"/"+C.replace(/~/g,"~0").replace(/\//g,"~1");return this.createError(j,$,I.dataPath||null,F,null,S,v)}}return null};function a(S,v){if(S===v)return!0;if(S&&v&&typeof S=="object"&&typeof v=="object"){if(Array.isArray(S)!==Array.isArray(v))return!1;if(Array.isArray(S)){if(S.length!==v.length)return!1;for(var f=0;f<S.length;f++)if(!a(S[f],v[f]))return!1}else{var C;for(C in S)if(v[C]===void 0&&S[C]!==void 0)return!1;for(C in v)if(S[C]===void 0&&v[C]!==void 0)return!1;for(C in S)if(!a(S[C],v[C]))return!1}return!0}return!1}l.prototype.validateBasic=function(v,f,C){var P;return(P=this.validateType(v,f,C))||(P=this.validateEnum(v,f,C))?P.prefixWith(null,"type"):null},l.prototype.validateType=function(v,f){if(f.type===void 0)return null;var C=typeof v;v===null?C="null":Array.isArray(v)&&(C="array");var P=f.type;Array.isArray(P)||(P=[P]);for(var M=0;M<P.length;M++){var D=P[M];if(D===C||D==="integer"&&C==="number"&&v%1===0)return null}return this.createError(m.INVALID_TYPE,{type:C,expected:P.join("/")},"","",null,v,f)},l.prototype.validateEnum=function(v,f){if(f.enum===void 0)return null;for(var C=0;C<f.enum.length;C++){var P=f.enum[C];if(a(v,P))return null}return this.createError(m.ENUM_MISMATCH,{value:typeof JSON<"u"?JSON.stringify(v):v},"","",null,v,f)},l.prototype.validateNumeric=function(v,f,C){return this.validateMultipleOf(v,f,C)||this.validateMinMax(v,f,C)||this.validateNaN(v,f,C)||null};var c=Math.pow(2,-51),u=1-c;l.prototype.validateMultipleOf=function(v,f){var C=f.multipleOf||f.divisibleBy;if(C===void 0)return null;if(typeof v=="number"){var P=v/C%1;if(P>=c&&P<u)return this.createError(m.NUMBER_MULTIPLE_OF,{value:v,multipleOf:C},"","",null,v,f)}return null},l.prototype.validateMinMax=function(v,f){if(typeof v!="number")return null;if(f.minimum!==void 0){if(v<f.minimum)return this.createError(m.NUMBER_MINIMUM,{value:v,minimum:f.minimum},"","/minimum",null,v,f);if(f.exclusiveMinimum&&v===f.minimum)return this.createError(m.NUMBER_MINIMUM_EXCLUSIVE,{value:v,minimum:f.minimum},"","/exclusiveMinimum",null,v,f)}if(f.maximum!==void 0){if(v>f.maximum)return this.createError(m.NUMBER_MAXIMUM,{value:v,maximum:f.maximum},"","/maximum",null,v,f);if(f.exclusiveMaximum&&v===f.maximum)return this.createError(m.NUMBER_MAXIMUM_EXCLUSIVE,{value:v,maximum:f.maximum},"","/exclusiveMaximum",null,v,f)}return null},l.prototype.validateNaN=function(v,f){return typeof v!="number"?null:isNaN(v)===!0||v===1/0||v===-1/0?this.createError(m.NUMBER_NOT_A_NUMBER,{value:v},"","/type",null,v,f):null},l.prototype.validateString=function(v,f,C){return this.validateStringLength(v,f,C)||this.validateStringPattern(v,f,C)||null},l.prototype.validateStringLength=function(v,f){return typeof v!="string"?null:f.minLength!==void 0&&v.length<f.minLength?this.createError(m.STRING_LENGTH_SHORT,{length:v.length,minimum:f.minLength},"","/minLength",null,v,f):f.maxLength!==void 0&&v.length>f.maxLength?this.createError(m.STRING_LENGTH_LONG,{length:v.length,maximum:f.maxLength},"","/maxLength",null,v,f):null},l.prototype.validateStringPattern=function(v,f){if(typeof v!="string"||typeof f.pattern!="string"&&!(f.pattern instanceof RegExp))return null;var C;if(f.pattern instanceof RegExp)C=f.pattern;else{var P,M="",D=f.pattern.match(/^\/(.+)\/([img]*)$/);D?(P=D[1],M=D[2]):P=f.pattern,C=new RegExp(P,M)}return C.test(v)?null:this.createError(m.STRING_PATTERN,{pattern:f.pattern},"","/pattern",null,v,f)},l.prototype.validateArray=function(v,f,C){return Array.isArray(v)&&(this.validateArrayLength(v,f,C)||this.validateArrayUniqueItems(v,f,C)||this.validateArrayItems(v,f,C))||null},l.prototype.validateArrayLength=function(v,f){var C;return f.minItems!==void 0&&v.length<f.minItems&&(C=this.createError(m.ARRAY_LENGTH_SHORT,{length:v.length,minimum:f.minItems},"","/minItems",null,v,f),this.handleError(C))||f.maxItems!==void 0&&v.length>f.maxItems&&(C=this.createError(m.ARRAY_LENGTH_LONG,{length:v.length,maximum:f.maxItems},"","/maxItems",null,v,f),this.handleError(C))?C:null},l.prototype.validateArrayUniqueItems=function(v,f){if(f.uniqueItems){for(var C=0;C<v.length;C++)for(var P=C+1;P<v.length;P++)if(a(v[C],v[P])){var M=this.createError(m.ARRAY_UNIQUE,{match1:C,match2:P},"","/uniqueItems",null,v,f);if(this.handleError(M))return M}}return null},l.prototype.validateArrayItems=function(v,f,C){if(f.items===void 0)return null;var P,M;if(Array.isArray(f.items)){for(M=0;M<v.length;M++)if(M<f.items.length){if(P=this.validateAll(v[M],f.items[M],[M],["items",M],C+"/"+M))return P}else if(f.additionalItems!==void 0){if(typeof f.additionalItems=="boolean"){if(!f.additionalItems&&(P=this.createError(m.ARRAY_ADDITIONAL_ITEMS,{},"/"+M,"/additionalItems",null,v,f),this.handleError(P)))return P}else if(P=this.validateAll(v[M],f.additionalItems,[M],["additionalItems"],C+"/"+M))return P}}else for(M=0;M<v.length;M++)if(P=this.validateAll(v[M],f.items,[M],["items"],C+"/"+M))return P;return null},l.prototype.validateObject=function(v,f,C){return typeof v!="object"||v===null||Array.isArray(v)?null:this.validateObjectMinMaxProperties(v,f,C)||this.validateObjectRequiredProperties(v,f,C)||this.validateObjectProperties(v,f,C)||this.validateObjectDependencies(v,f,C)||null},l.prototype.validateObjectMinMaxProperties=function(v,f){var C=Object.keys(v),P;return f.minProperties!==void 0&&C.length<f.minProperties&&(P=this.createError(m.OBJECT_PROPERTIES_MINIMUM,{propertyCount:C.length,minimum:f.minProperties},"","/minProperties",null,v,f),this.handleError(P))||f.maxProperties!==void 0&&C.length>f.maxProperties&&(P=this.createError(m.OBJECT_PROPERTIES_MAXIMUM,{propertyCount:C.length,maximum:f.maxProperties},"","/maxProperties",null,v,f),this.handleError(P))?P:null},l.prototype.validateObjectRequiredProperties=function(v,f){if(f.required!==void 0)for(var C=0;C<f.required.length;C++){var P=f.required[C];if(v[P]===void 0){var M=this.createError(m.OBJECT_REQUIRED,{key:P},"","/required/"+C,null,v,f);if(this.handleError(M))return M}}return null},l.prototype.validateObjectProperties=function(v,f,C){var P;for(var M in v){var D=C+"/"+M.replace(/~/g,"~0").replace(/\//g,"~1"),I=!1;if(f.properties!==void 0&&f.properties[M]!==void 0&&(I=!0,P=this.validateAll(v[M],f.properties[M],[M],["properties",M],D)))return P;if(f.patternProperties!==void 0)for(var j in f.patternProperties){var $=new RegExp(j);if($.test(M)&&(I=!0,P=this.validateAll(v[M],f.patternProperties[j],[M],["patternProperties",j],D)))return P}if(I)this.trackUnknownProperties&&(this.knownPropertyPaths[D]=!0,delete this.unknownPropertyPaths[D]);else if(f.additionalProperties!==void 0){if(this.trackUnknownProperties&&(this.knownPropertyPaths[D]=!0,delete this.unknownPropertyPaths[D]),typeof f.additionalProperties=="boolean"){if(!f.additionalProperties&&(P=this.createError(m.OBJECT_ADDITIONAL_PROPERTIES,{key:M},"","/additionalProperties",null,v,f).prefixWith(M,null),this.handleError(P)))return P}else if(P=this.validateAll(v[M],f.additionalProperties,[M],["additionalProperties"],D))return P}else this.trackUnknownProperties&&!this.knownPropertyPaths[D]&&(this.unknownPropertyPaths[D]=!0)}return null},l.prototype.validateObjectDependencies=function(v,f,C){var P;if(f.dependencies!==void 0){for(var M in f.dependencies)if(v[M]!==void 0){var D=f.dependencies[M];if(typeof D=="string"){if(v[D]===void 0&&(P=this.createError(m.OBJECT_DEPENDENCY_KEY,{key:M,missing:D},"","",null,v,f).prefixWith(null,M).prefixWith(null,"dependencies"),this.handleError(P)))return P}else if(Array.isArray(D))for(var I=0;I<D.length;I++){var j=D[I];if(v[j]===void 0&&(P=this.createError(m.OBJECT_DEPENDENCY_KEY,{key:M,missing:j},"","/"+I,null,v,f).prefixWith(null,M).prefixWith(null,"dependencies"),this.handleError(P)))return P}else if(P=this.validateAll(v,D,[],["dependencies",M],C))return P}}return null},l.prototype.validateCombinations=function(v,f,C){return this.validateAllOf(v,f,C)||this.validateAnyOf(v,f,C)||this.validateOneOf(v,f,C)||this.validateNot(v,f,C)||null},l.prototype.validateAllOf=function(v,f,C){if(f.allOf===void 0)return null;for(var P,M=0;M<f.allOf.length;M++){var D=f.allOf[M];if(P=this.validateAll(v,D,[],["allOf",M],C))return P}return null},l.prototype.validateAnyOf=function(v,f,C){if(f.anyOf===void 0)return null;var P=[],M=this.errors.length,D,I;this.trackUnknownProperties&&(D=this.unknownPropertyPaths,I=this.knownPropertyPaths);for(var j=!0,$=0;$<f.anyOf.length;$++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var F=f.anyOf[$],L=this.errors.length,_=this.validateAll(v,F,[],["anyOf",$],C);if(_===null&&L===this.errors.length){if(this.errors=this.errors.slice(0,M),this.trackUnknownProperties){for(var B in this.knownPropertyPaths)I[B]=!0,delete D[B];for(var oe in this.unknownPropertyPaths)I[oe]||(D[oe]=!0);j=!1;continue}return null}_&&P.push(_.prefixWith(null,""+$).prefixWith(null,"anyOf"))}if(this.trackUnknownProperties&&(this.unknownPropertyPaths=D,this.knownPropertyPaths=I),j)return P=P.concat(this.errors.slice(M)),this.errors=this.errors.slice(0,M),this.createError(m.ANY_OF_MISSING,{},"","/anyOf",P,v,f)},l.prototype.validateOneOf=function(v,f,C){if(f.oneOf===void 0)return null;var P=null,M=[],D=this.errors.length,I,j;this.trackUnknownProperties&&(I=this.unknownPropertyPaths,j=this.knownPropertyPaths);for(var $=0;$<f.oneOf.length;$++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var F=f.oneOf[$],L=this.errors.length,_=this.validateAll(v,F,[],["oneOf",$],C);if(_===null&&L===this.errors.length){if(P===null)P=$;else return this.errors=this.errors.slice(0,D),this.createError(m.ONE_OF_MULTIPLE,{index1:P,index2:$},"","/oneOf",null,v,f);if(this.trackUnknownProperties){for(var B in this.knownPropertyPaths)j[B]=!0,delete I[B];for(var oe in this.unknownPropertyPaths)j[oe]||(I[oe]=!0)}}else _&&M.push(_)}return this.trackUnknownProperties&&(this.unknownPropertyPaths=I,this.knownPropertyPaths=j),P===null?(M=M.concat(this.errors.slice(D)),this.errors=this.errors.slice(0,D),this.createError(m.ONE_OF_MISSING,{},"","/oneOf",M,v,f)):(this.errors=this.errors.slice(0,D),null)},l.prototype.validateNot=function(v,f,C){if(f.not===void 0)return null;var P=this.errors.length,M,D;this.trackUnknownProperties&&(M=this.unknownPropertyPaths,D=this.knownPropertyPaths,this.unknownPropertyPaths={},this.knownPropertyPaths={});var I=this.validateAll(v,f.not,null,null,C),j=this.errors.slice(P);return this.errors=this.errors.slice(0,P),this.trackUnknownProperties&&(this.unknownPropertyPaths=M,this.knownPropertyPaths=D),I===null&&j.length===0?this.createError(m.NOT_PASSED,{},"","/not",null,v,f):null},l.prototype.validateHypermedia=function(v,f,C){if(!f.links)return null;for(var P,M=0;M<f.links.length;M++){var D=f.links[M];if(D.rel==="describedby"){for(var I=new s(D.href),j=!0,$=0;$<I.varNames.length;$++)if(!(I.varNames[$]in v)){j=!1;break}if(j){var F=I.fillFromObject(v),L={$ref:F};if(P=this.validateAll(v,L,[],["links",M],C))return P}}}};function d(S){var v=String(S).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return v?{href:v[0]||"",protocol:v[1]||"",authority:v[2]||"",host:v[3]||"",hostname:v[4]||"",port:v[5]||"",pathname:v[6]||"",search:v[7]||"",hash:v[8]||""}:null}function p(S,v){function f(C){var P=[];return C.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(M){M==="/.."?P.pop():P.push(M)}),P.join("").replace(/^\//,C.charAt(0)==="/"?"/":"")}return v=d(v||""),S=d(S||""),!v||!S?null:(v.protocol||S.protocol)+(v.protocol||v.authority?v.authority:S.authority)+f(v.protocol||v.authority||v.pathname.charAt(0)==="/"?v.pathname:v.pathname?(S.authority&&!S.pathname?"/":"")+S.pathname.slice(0,S.pathname.lastIndexOf("/")+1)+v.pathname:S.pathname)+(v.protocol||v.authority||v.pathname?v.search:v.search||S.search)+v.hash}function h(S){return S.split("#")[0]}function b(S,v){if(S&&typeof S=="object")if(v===void 0?v=S.id:typeof S.id=="string"&&(v=p(v,S.id),S.id=v),Array.isArray(S))for(var f=0;f<S.length;f++)b(S[f],v);else{typeof S.$ref=="string"&&(S.$ref=p(v,S.$ref));for(var C in S)C!=="enum"&&b(S[C],v)}}function y(S){S=S||"en";var v=R[S];return function(f){var C=v[f.code]||x[f.code];if(typeof C!="string")return"Unknown error code "+f.code+": "+JSON.stringify(f.messageParams);var P=f.params;return C.replace(/\{([^{}]*)\}/g,function(M,D){var I=P[D];return typeof I=="string"||typeof I=="number"?I:M})}}var m={INVALID_TYPE:0,ENUM_MISMATCH:1,ANY_OF_MISSING:10,ONE_OF_MISSING:11,ONE_OF_MULTIPLE:12,NOT_PASSED:13,NUMBER_MULTIPLE_OF:100,NUMBER_MINIMUM:101,NUMBER_MINIMUM_EXCLUSIVE:102,NUMBER_MAXIMUM:103,NUMBER_MAXIMUM_EXCLUSIVE:104,NUMBER_NOT_A_NUMBER:105,STRING_LENGTH_SHORT:200,STRING_LENGTH_LONG:201,STRING_PATTERN:202,OBJECT_PROPERTIES_MINIMUM:300,OBJECT_PROPERTIES_MAXIMUM:301,OBJECT_REQUIRED:302,OBJECT_ADDITIONAL_PROPERTIES:303,OBJECT_DEPENDENCY_KEY:304,ARRAY_LENGTH_SHORT:400,ARRAY_LENGTH_LONG:401,ARRAY_UNIQUE:402,ARRAY_ADDITIONAL_ITEMS:403,FORMAT_CUSTOM:500,KEYWORD_CUSTOM:501,CIRCULAR_REFERENCE:600,UNKNOWN_PROPERTY:1e3},g={};for(var w in m)g[m[w]]=w;var x={INVALID_TYPE:"Invalid type: {type} (expected {expected})",ENUM_MISMATCH:"No enum match for: {value}",ANY_OF_MISSING:'Data does not match any schemas from "anyOf"',ONE_OF_MISSING:'Data does not match any schemas from "oneOf"',ONE_OF_MULTIPLE:'Data is valid against more than one schema from "oneOf": indices {index1} and {index2}',NOT_PASSED:'Data matches schema from "not"',NUMBER_MULTIPLE_OF:"Value {value} is not a multiple of {multipleOf}",NUMBER_MINIMUM:"Value {value} is less than minimum {minimum}",NUMBER_MINIMUM_EXCLUSIVE:"Value {value} is equal to exclusive minimum {minimum}",NUMBER_MAXIMUM:"Value {value} is greater than maximum {maximum}",NUMBER_MAXIMUM_EXCLUSIVE:"Value {value} is equal to exclusive maximum {maximum}",NUMBER_NOT_A_NUMBER:"Value {value} is not a valid number",STRING_LENGTH_SHORT:"String is too short ({length} chars), minimum {minimum}",STRING_LENGTH_LONG:"String is too long ({length} chars), maximum {maximum}",STRING_PATTERN:"String does not match pattern: {pattern}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({propertyCount}), minimum {minimum}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({propertyCount}), maximum {maximum}",OBJECT_REQUIRED:"Missing required property: {key}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {missing} (due to key: {key})",ARRAY_LENGTH_SHORT:"Array is too short ({length}), minimum {minimum}",ARRAY_LENGTH_LONG:"Array is too long ({length}), maximum {maximum}",ARRAY_UNIQUE:"Array items are not unique (indices {match1} and {match2})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",FORMAT_CUSTOM:"Format validation failed ({message})",KEYWORD_CUSTOM:"Keyword failed: {key} ({message})",CIRCULAR_REFERENCE:"Circular $refs: {urls}",UNKNOWN_PROPERTY:"Unknown property (not in schema)"};function O(S,v,f,C,P){if(Error.call(this),S===void 0)throw new Error("No error code supplied: "+C);this.message="",this.params=v,this.code=S,this.dataPath=f||"",this.schemaPath=C||"",this.subErrors=P||null;var M=new Error(this.message);if(this.stack=M.stack||M.stacktrace,!this.stack)try{throw M}catch(D){this.stack=D.stack||D.stacktrace}}O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O.prototype.name="ValidationError",O.prototype.prefixWith=function(S,v){if(S!==null&&(S=S.replace(/~/g,"~0").replace(/\//g,"~1"),this.dataPath="/"+S+this.dataPath),v!==null&&(v=v.replace(/~/g,"~0").replace(/\//g,"~1"),this.schemaPath="/"+v+this.schemaPath),this.subErrors!==null)for(var f=0;f<this.subErrors.length;f++)this.subErrors[f].prefixWith(S,v);return this};function T(S,v){if(v.substring(0,S.length)===S){var f=v.substring(S.length);if(v.length>0&&v.charAt(S.length-1)==="/"||f.charAt(0)==="#"||f.charAt(0)==="?")return!0}return!1}var R={};function A(S){var v=new l,f,C,P={setErrorReporter:function(M){return typeof M=="string"?this.language(M):(C=M,!0)},addFormat:function(){v.addFormat.apply(v,arguments)},language:function(M){return M?(R[M]||(M=M.split("-")[0]),R[M]?(f=M,M):!1):f},addLanguage:function(M,D){var I;for(I in m)D[I]&&!D[m[I]]&&(D[m[I]]=D[I]);var j=M.split("-")[0];if(!R[j])R[M]=D,R[j]=D;else{R[M]=Object.create(R[j]);for(I in D)typeof R[j][I]>"u"&&(R[j][I]=D[I]),R[M][I]=D[I]}return this},freshApi:function(M){var D=A();return M&&D.language(M),D},validate:function(M,D,I,j){var $=y(f),F=C?function(B,oe,X){return C(B,oe,X)||$(B,oe,X)}:$,L=new l(v,!1,F,I,j);typeof D=="string"&&(D={$ref:D}),L.addSchema("",D);var _=L.validateAll(M,D,null,null,"");return!_&&j&&(_=L.banUnknownProperties(M,D)),this.error=_,this.missing=L.missing,this.valid=_===null,this.valid},validateResult:function(){var M={toString:function(){return this.valid?"valid":this.error.message}};return this.validate.apply(M,arguments),M},validateMultiple:function(M,D,I,j){var $=y(f),F=C?function(B,oe,X){return C(B,oe,X)||$(B,oe,X)}:$,L=new l(v,!0,F,I,j);typeof D=="string"&&(D={$ref:D}),L.addSchema("",D),L.validateAll(M,D,null,null,""),j&&L.banUnknownProperties(M,D);var _={toString:function(){return this.valid?"valid":this.error.message}};return _.errors=L.errors,_.missing=L.missing,_.valid=_.errors.length===0,_},addSchema:function(){return v.addSchema.apply(v,arguments)},getSchema:function(){return v.getSchema.apply(v,arguments)},getSchemaMap:function(){return v.getSchemaMap.apply(v,arguments)},getSchemaUris:function(){return v.getSchemaUris.apply(v,arguments)},getMissingUris:function(){return v.getMissingUris.apply(v,arguments)},dropSchemas:function(){v.dropSchemas.apply(v,arguments)},defineKeyword:function(){v.defineKeyword.apply(v,arguments)},defineError:function(M,D,I){if(typeof M!="string"||!/^[A-Z]+(_[A-Z]+)*$/.test(M))throw new Error("Code name must be a string in UPPER_CASE_WITH_UNDERSCORES");if(typeof D!="number"||D%1!==0||D<1e4)throw new Error("Code number must be an integer > 10000");if(typeof m[M]<"u")throw new Error("Error already defined: "+M+" as "+m[M]);if(typeof g[D]<"u")throw new Error("Error code already used: "+g[D]+" as "+D);m[M]=D,g[D]=M,x[M]=x[D]=I;for(var j in R){var $=R[j];$[M]&&($[D]=$[D]||$[M])}},reset:function(){v.reset(),this.error=null,this.missing=[],this.valid=!0},missing:[],error:null,valid:!0,normSchema:b,resolveUrl:p,getDocumentUri:h,errorCodes:m};return P.language("en"),P}var N=A();return N.addLanguage("en-gb",x),N.tv4=N,N})}(Vi)),Vi.exports}var $C=_C();const Mh=qt($C),FC=(e,t)=>{try{return t.split(/[.[\]'"]/).filter(Boolean).reduce((n,o)=>n&&n[o],e)}catch(n){console.log(n);return}},VC=(e,t)=>{try{const n=Fi(t);if(!e)return!0;const o=e.match(/^(.*?)\s*(===|!==|>)\s*('([^']*)'|"([^"]*)'|([0-9.]+))$/);if(!o){console.warn(`Unsupported condition format: ${e}`);return}const i=o[1].trim(),s=o[2],l=o[3],a=o[4],c=o[5],u=o[6],d=FC(n,i);let p;if(a!==void 0)p=a;else if(c!==void 0)p=c;else if(u!==void 0)p=parseFloat(u);else{console.warn(`Could not determine the type of the right-hand value in: ${e}`);return}switch(s){case"===":return d===p;case"!==":return d!==p;case">":return d>p;case"<":return d<p;default:console.warn(`Unsupported operator: ${s}`);return}}catch(n){console.error("Custom evaluation error:",n);return}},on=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},Wc=e=>{const t=[];return e.forEach(n=>{t.push({name:n,value:n})}),t},Ih=(e,t)=>{if(!t)return e;const n=[],o=Object.keys(e).length===0?t:e;return t.forEach((i,s)=>{n.push({name:o[s],value:i})}),n},bn=(e,t,n)=>{n=n||{};const o=n.global&&n.global.formDefaults?Fi(n.global.formDefaults):{};return n.global&&n.global.supressPropertyTitles===!0?o.title=t.title:o.title=t.title||e,t.description&&(o.description=t.description),(n.required===!0||t.required===!0)&&(o.required=!0),t.maxLength&&(o.maxlength=t.maxLength),t.minLength&&(o.minlength=t.minLength),(t.readOnly||t.readonly)&&(o.readonly=!0),t.minimum&&(o.minimum=t.minimum+(t.exclusiveMinimum?1:0)),t.maximum&&(o.maximum=t.maximum-(t.exclusiveMaximum?1:0)),t.validationMessage&&(o.validationMessage=t.validationMessage),t.enumNames&&(o.titleMap=Ih(t.enumNames,t.enum)),o.schema=t,o},LC=(e,t,n)=>{if(on(t.type)==="tBoolean"&&!t.enum){const o=bn(e,t,n);return o.key=n.path,o.type="tBoolean",n.lookup[Ut.stringify(n.path)]=o,o}},Dh=(e,t,n)=>{if(on(t.type)==="string"&&!t.enum){const o=bn(e,t,n);return o.key=n.path,o.type="text",n.lookup[Ut.stringify(n.path)]=o,o}},jh=(e,t,n)=>{if(on(t.type)==="number"){const o=bn(e,t,n);return o.key=n.path,o.type="number",n.lookup[Ut.stringify(n.path)]=o,o}},Ah=(e,t,n)=>{if(on(t.type)==="integer"){const o=bn(e,t,n);return o.key=n.path,o.type="number",n.lookup[Ut.stringify(n.path)]=o,o}},BC=(e,t,n)=>{if(on(t.type)==="date"){const o=bn(e,t,n);return o.key=n.path,o.type="date",n.lookup[Ut.stringify(n.path)]=o,o}},Nh=(e,t,n)=>{if(on(t.type)==="boolean"){const o=bn(e,t,n);return o.key=n.path,o.type="checkbox",n.lookup[Ut.stringify(n.path)]=o,o}},_h=(e,t,n)=>{if(on(t.type)==="string"&&t.enum){const o=bn(e,t,n);return o.key=n.path,o.type="select",!o.titleMap&&!t.isObject&&(o.titleMap=Wc(t.enum)),n.lookup[Ut.stringify(n.path)]=o,o}},$h=e=>Object.entries(e).forEach(([t,n])=>{n&&typeof n=="object"?$h(n):(n==null||n==="")&&delete e[t]}),Fh=(e,t,n)=>{if(on(t.type)==="array"&&t.items&&t.items.enum){const o=bn(e,t,n);return o.key=n.path,o.type="checkboxes",o.titleMap||(o.titleMap=Wc(t.items.enum)),n.lookup[Ut.stringify(n.path)]=o,o}},So=(e,t,n)=>{const o=or[on(t.type)];if(o){let i;for(let s=0;s<o.length;s+=1)if(i=o[s](e,t,n),i)return i.schema["x-schema-form"]&&Zx(i.schema["x-schema-form"])&&(i=PC(i,i.schema["x-schema-form"])),i}},Vh=(e,t,n)=>{if(on(t.type)==="object"){const o=bn(e,t,n);return o.type="fieldset",o.items=[],n.lookup[Ut.stringify(n.path)]=o,t.properties&&Object.keys(t.properties).forEach(i=>{if(Object.prototype.hasOwnProperty.call(t.properties,i)){const s=n.path.slice();if(s.push(i),n.ignore[Ut.stringify(s)]!==!0){const l=t.required&&t.required.indexOf(i)!==-1,a=So(i,t.properties[i],{path:s,required:l||!1,lookup:n.lookup,ignore:n.ignore,global:n.global});a&&o.items.push(a)}}}),o}},qC=(e,t,n)=>{if(on(t.type)==="array"){const o=bn(e,t,n);if(o.type="tuple",o.key=n.path,n.lookup[Ut.stringify(n.path)]=o,Array.isArray(t.items)){const i=t.required&&t.required.indexOf(n.path[n.path.length-1]);return o.items=t.items.reduce((s,l,a)=>{const c=n.path.slice();c.push(a);const u=So(e,l,{path:c,required:i||!1,lookup:n.lookup,ignore:n.ignore,global:n.global});return u&&s.push(u),s},[]),o}}},Lh=(e,t,n)=>{if(on(t.type)==="array"){const o=bn(e,t,n);if(o.type="array",o.key=n.path,n.lookup[Ut.stringify(n.path)]=o,typeof t.items<"u"){const i=t.required&&t.required.indexOf(n.path[n.path.length-1])!==-1,s=n.path.slice();s.push("");const l=So(e,t.items,{path:s,required:i||!1,lookup:n.lookup,ignore:n.ignore,global:n.global});l?o.items=[l]:o.items=t.items}return o}},or={string:[_h,Dh],object:[Vh],number:[jh],integer:[Ah],boolean:[Nh],array:[Fh,qC,Lh],date:[BC],tBoolean:[LC]},Bh=(e,t,n)=>{const o=[],i={};if(t=t||{},n=n||{},on(e.type)==="object")e.properties&&Object.keys(e.properties).forEach(s=>{if(Object.prototype.hasOwnProperty.call(e.properties,s)&&t[s]!==!0){const l=e.required&&e.required.indexOf(s)!==-1,a=So(s,e.properties[s],{path:[s],lookup:i,ignore:t,required:l,global:n});a&&o.push(a)}});else throw new Error('Not implemented. Only type "object" allowed at root level of schema.');return{form:o,lookup:i}},qh=e=>e,zC=(e,t)=>{or[e]||(or[e]=[]),or[e].push(t)},UC=(e,t)=>{or[e]||(or[e]=[]),or[e].unshift(t)},WC=(e,t,n,o)=>{o=typeof o<"u"?o:!0,n=n||[];const i=(s,l,a)=>{if(l(s,a),s.properties&&Object.keys(s.properties).forEach(c=>{if(Object.prototype.hasOwnProperty.call(s.properties,c)){const u=a.slice();u.push(c),i(s.properties[c],l,u)}}),!o&&s.items){const c=a.slice();c.push(""),i(s.items,l,c)}};i(e,t,n||[])},Hc=(e,t)=>{t(e),e.items&&e.items.forEach(n=>{Hc(n,t)}),e.tabs&&e.tabs.forEach(n=>{n.items.forEach(o=>{Hc(o,t)})})},Yc=(e,t,n,o,i)=>{t=t||["*"],o=o||{},i=i||e.readonly||e.readOnly;const s=Bh(e,n,o),l=t.indexOf("*");l!==-1&&(t=t.slice(0,l).concat(s.form).concat(t.slice(l+1)));const{lookup:a}=s;return qh(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=Ut.parse(c.key)),c&&c.itemForm){c.items=[];const u=Ut.stringify(c.key);a[u].items.forEach(p=>{const h=Fi(c.itemForm);h.key=p.key,c.items.push(h)})}if(c&&c.key){const u=Ut.stringify(c.key);if(a[u]){const d=a[u];Object.keys(d).forEach(p=>{Object.prototype.hasOwnProperty.call(d,p)&&c[p]===void 0&&(c[p]=d[p])})}}return i===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=Yc(e,c.items,n,o,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=Yc(e,u.items,n,o,c.readonly)}),c&&c.type==="checkbox"&&IC(c.schema.default)&&(c.schema.default=!1),c}))};function HC(e,t,n,o){const i=/^\d+$/;t||(t=this);const s=typeof e=="string"?Ut.parse(e):e;if(typeof n<"u"&&s.length===1||(typeof n<"u"&&typeof t[s[0]]>"u"&&(t[s[0]]=s.length>=2&&i.test(s[1])?[]:{}),typeof o<"u"&&["number","integer"].indexOf(o)>-1&&typeof n>"u"))return t[s[0]]=n,t;let l=t[s[0]];for(let a=1;a<s.length;a+=1){if(s[a]==="")return;if(typeof n<"u"){if(a===s.length-1)return l[s[a]]=n,n;let c=l[s[a]];(typeof c>"u"||c===null)&&(c=i.test(s[a+1])?[]:{},l[s[a]]=c),l=c}else l&&(l=l[s[a]])}return l}const Wt={traverseForm:Hc,traverseSchema:WC,prependRule:UC,appendRule:zC,postProcessFn:qh,getDefaults:Bh,defaultFormDefinition:So,defaults:or,array:Lh,fieldset:Vh,checkboxes:Fh,select:_h,checkbox:Nh,integer:Ah,number:jh,text:Dh,stdFormObj:bn,canonicalTitleMap:Ih,enumToTitleMap:Wc,stripNullType:on,merge:Yc,validate:(e,t,n)=>{if(!e)return{valid:!0};const{schema:o}=e;if(!o)return{valid:!0};t===""&&(t=void 0),e.type==="number"&&t===null&&(t=void 0),e.type==="number"&&Number.isNaN(parseFloat(t))&&(t=void 0);const i={type:"object",properties:{}},s=e.key[e.key.length-1];i.properties[s]=o,e.required&&(i.required=[s]);const l={};typeof t<"u"&&(l[s]=t);const a=Mh.validateResult(l,i);return a!=null&&!a.valid&&e.validationMessage!=null&&typeof t<"u"&&(a.error.message=n?n(e.validationMessage):e.validationMessage),a},validateBySchema:(e,t)=>Mh.validateResult(t,e),safeEval:VC,selectOrSet:HC,getValueFromModel:(e,t)=>{let n;return Array.isArray(t)?(t.reduce((o,i)=>o&&o[i],e),n=t.reduce((o,i)=>o&&o[i],e)):n=e[t],n},getTitleByValue:(e,t)=>{for(let n=0;n<e.length;n+=1){const o=e[n];if(o.value===t)return o.name}},removeEmpty:$h},YC=e=>{let t;return e.form&&e.form.key&&(t=Wt.selectOrSet(e.form.key,e.model)),t==null&&(e.form.default?t=e.form.default:e.form.schema&&e.form.schema.default&&(t=e.form.schema.default)),t},KC=e=>e.displayName||e.name||"Component",Ht=(e,t={})=>class extends _e.Component{constructor(o){super(o),this.displayName=`ComposedComponent(${KC(e)})`,this.onChangeValidate=this.onChangeValidate.bind(this),this.state=this.constructor.getDerivedStateFromProps(this.props)}static getDerivedStateFromProps(o){const{errorText:i,form:s,showErrors:l,localization:a}=o,c=a&&a.getLocalizedString,u=YC(o);if(!l)return{value:u,valid:!0,error:""};const d=Wt.validate(s,u||void 0,c),p=d.valid?void 0:d.error;return{value:u,valid:d.valid,error:(d.valid?null:p.message)||i}}onChangeValidate(o,i){const{form:s,onChange:l,localization:a}=this.props,c=a&&a.getLocalizedString;let u=null;const d=s.schema?s.schema.type:s.type;switch(d){case"integer":case"number":{u=o;break}case"boolean":u=o.target.checked;break;case"array":u=o;break;case"object":if(s.type==="date"){o.target.value.length>0?u=new Date(o.target.value):u="";break}({value:u}=o.target);break;case"string":s.type==="timestamp"?u=o:{value:u}=o.target;break;default:console.log("type = ",d),{value:u}=o.target}const p=Wt.validate(s,u,c);this.setState({value:u,valid:p.valid,error:p.valid?null:p.error.message}),l(s.key,u)}render(){return k.jsx(e,{...t,...this.props,...this.state,onChangeValidate:this.onChangeValidate})}};var Li={exports:{}},Bi={exports:{}},bt={};/** @license React v16.13.1
|
|
31
31
|
* react-is.production.min.js
|
|
32
32
|
*
|
|
33
33
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var
|
|
37
|
+
*/var zh;function GC(){if(zh)return bt;zh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function O(R){if(typeof R=="object"&&R!==null){var A=R.$$typeof;switch(A){case t:switch(R=R.type,R){case c:case u:case o:case s:case i:case p:return R;default:switch(R=R&&R.$$typeof,R){case a:case d:case y:case b:case l:return R;default:return A}}case n:return A}}}function T(R){return O(R)===u}return bt.AsyncMode=c,bt.ConcurrentMode=u,bt.ContextConsumer=a,bt.ContextProvider=l,bt.Element=t,bt.ForwardRef=d,bt.Fragment=o,bt.Lazy=y,bt.Memo=b,bt.Portal=n,bt.Profiler=s,bt.StrictMode=i,bt.Suspense=p,bt.isAsyncMode=function(R){return T(R)||O(R)===c},bt.isConcurrentMode=T,bt.isContextConsumer=function(R){return O(R)===a},bt.isContextProvider=function(R){return O(R)===l},bt.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},bt.isForwardRef=function(R){return O(R)===d},bt.isFragment=function(R){return O(R)===o},bt.isLazy=function(R){return O(R)===y},bt.isMemo=function(R){return O(R)===b},bt.isPortal=function(R){return O(R)===n},bt.isProfiler=function(R){return O(R)===s},bt.isStrictMode=function(R){return O(R)===i},bt.isSuspense=function(R){return O(R)===p},bt.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===o||R===u||R===s||R===i||R===p||R===h||typeof R=="object"&&R!==null&&(R.$$typeof===y||R.$$typeof===b||R.$$typeof===l||R.$$typeof===a||R.$$typeof===d||R.$$typeof===g||R.$$typeof===w||R.$$typeof===x||R.$$typeof===m)},bt.typeOf=O,bt}var gt={};/** @license React v16.13.1
|
|
38
38
|
* react-is.development.js
|
|
39
39
|
*
|
|
40
40
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var
|
|
44
|
+
*/var Uh;function XC(){return Uh||(Uh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function O(U){return typeof U=="string"||typeof U=="function"||U===o||U===u||U===s||U===i||U===p||U===h||typeof U=="object"&&U!==null&&(U.$$typeof===y||U.$$typeof===b||U.$$typeof===l||U.$$typeof===a||U.$$typeof===d||U.$$typeof===g||U.$$typeof===w||U.$$typeof===x||U.$$typeof===m)}function T(U){if(typeof U=="object"&&U!==null){var Q=U.$$typeof;switch(Q){case t:var q=U.type;switch(q){case c:case u:case o:case s:case i:case p:return q;default:var ne=q&&q.$$typeof;switch(ne){case a:case d:case y:case b:case l:return ne;default:return Q}}case n:return Q}}}var R=c,A=u,N=a,S=l,v=t,f=d,C=o,P=y,M=b,D=n,I=s,j=i,$=p,F=!1;function L(U){return F||(F=!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.")),_(U)||T(U)===c}function _(U){return T(U)===u}function B(U){return T(U)===a}function oe(U){return T(U)===l}function X(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function ee(U){return T(U)===d}function Y(U){return T(U)===o}function J(U){return T(U)===y}function se(U){return T(U)===b}function z(U){return T(U)===n}function H(U){return T(U)===s}function G(U){return T(U)===i}function ue(U){return T(U)===p}gt.AsyncMode=R,gt.ConcurrentMode=A,gt.ContextConsumer=N,gt.ContextProvider=S,gt.Element=v,gt.ForwardRef=f,gt.Fragment=C,gt.Lazy=P,gt.Memo=M,gt.Portal=D,gt.Profiler=I,gt.StrictMode=j,gt.Suspense=$,gt.isAsyncMode=L,gt.isConcurrentMode=_,gt.isContextConsumer=B,gt.isContextProvider=oe,gt.isElement=X,gt.isForwardRef=ee,gt.isFragment=Y,gt.isLazy=J,gt.isMemo=se,gt.isPortal=z,gt.isProfiler=H,gt.isStrictMode=G,gt.isSuspense=ue,gt.isValidElementType=O,gt.typeOf=T}()),gt}var Wh;function Hh(){return Wh||(Wh=1,process.env.NODE_ENV==="production"?Bi.exports=GC():Bi.exports=XC()),Bi.exports}/*
|
|
45
45
|
object-assign
|
|
46
46
|
(c) Sindre Sorhus
|
|
47
47
|
@license MIT
|
|
48
|
-
*/var
|
|
49
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
50
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
48
|
+
*/var Kc,Yh;function QC(){if(Yh)return Kc;Yh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(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 l={},a=0;a<10;a++)l["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(l).map(function(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Kc=i()?Object.assign:function(s,l){for(var a,c=o(s),u,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var p in a)t.call(a,p)&&(c[p]=a[p]);if(e){u=e(a);for(var h=0;h<u.length;h++)n.call(a,u[h])&&(c[u[h]]=a[u[h]])}}return c},Kc}var Gc,Kh;function Xc(){if(Kh)return Gc;Kh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gc=e,Gc}var Qc,Gh;function Xh(){return Gh||(Gh=1,Qc=Function.call.bind(Object.prototype.hasOwnProperty)),Qc}var Zc,Qh;function ZC(){if(Qh)return Zc;Qh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xc(),n={},o=Xh();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,a,c,u){if(process.env.NODE_ENV!=="production"){for(var d in s)if(o(s,d)){var p;try{if(typeof s[d]!="function"){var h=Error((c||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[d](l,d,c,a,null,t)}catch(y){p=y}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var b=u?u():"";e("Failed "+a+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Zc=i,Zc}var Jc,Zh;function JC(){if(Zh)return Jc;Zh=1;var e=Hh(),t=QC(),n=Xc(),o=Xh(),i=ZC(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var c="Warning: "+a;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function l(){return null}return Jc=function(a,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(_){var B=_&&(u&&_[u]||_[d]);if(typeof B=="function")return B}var h="<<anonymous>>",b={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:x(),arrayOf:O,element:T(),elementType:R(),instanceOf:A,node:f(),objectOf:S,oneOf:N,oneOfType:v,shape:P,exact:M};function y(_,B){return _===B?_!==0||1/_===1/B:_!==_&&B!==B}function m(_,B){this.message=_,this.data=B&&typeof B=="object"?B:{},this.stack=""}m.prototype=Error.prototype;function g(_){if(process.env.NODE_ENV!=="production")var B={},oe=0;function X(Y,J,se,z,H,G,ue){if(z=z||h,G=G||se,ue!==n){if(c){var U=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 U.name="Invariant Violation",U}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Q=z+":"+se;!B[Q]&&oe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+z+"`. 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."),B[Q]=!0,oe++)}}return J[se]==null?Y?J[se]===null?new m("The "+H+" `"+G+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new m("The "+H+" `"+G+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:_(J,se,z,H,G)}var ee=X.bind(null,!1);return ee.isRequired=X.bind(null,!0),ee}function w(_){function B(oe,X,ee,Y,J,se){var z=oe[X],H=j(z);if(H!==_){var G=$(z);return new m("Invalid "+Y+" `"+J+"` of type "+("`"+G+"` supplied to `"+ee+"`, expected ")+("`"+_+"`."),{expectedType:_})}return null}return g(B)}function x(){return g(l)}function O(_){function B(oe,X,ee,Y,J){if(typeof _!="function")return new m("Property `"+J+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var se=oe[X];if(!Array.isArray(se)){var z=j(se);return new m("Invalid "+Y+" `"+J+"` of type "+("`"+z+"` supplied to `"+ee+"`, expected an array."))}for(var H=0;H<se.length;H++){var G=_(se,H,ee,Y,J+"["+H+"]",n);if(G instanceof Error)return G}return null}return g(B)}function T(){function _(B,oe,X,ee,Y){var J=B[oe];if(!a(J)){var se=j(J);return new m("Invalid "+ee+" `"+Y+"` of type "+("`"+se+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return g(_)}function R(){function _(B,oe,X,ee,Y){var J=B[oe];if(!e.isValidElementType(J)){var se=j(J);return new m("Invalid "+ee+" `"+Y+"` of type "+("`"+se+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return g(_)}function A(_){function B(oe,X,ee,Y,J){if(!(oe[X]instanceof _)){var se=_.name||h,z=L(oe[X]);return new m("Invalid "+Y+" `"+J+"` of type "+("`"+z+"` supplied to `"+ee+"`, expected ")+("instance of `"+se+"`."))}return null}return g(B)}function N(_){if(!Array.isArray(_))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.")),l;function B(oe,X,ee,Y,J){for(var se=oe[X],z=0;z<_.length;z++)if(y(se,_[z]))return null;var H=JSON.stringify(_,function(ue,U){var Q=$(U);return Q==="symbol"?String(U):U});return new m("Invalid "+Y+" `"+J+"` of value `"+String(se)+"` "+("supplied to `"+ee+"`, expected one of "+H+"."))}return g(B)}function S(_){function B(oe,X,ee,Y,J){if(typeof _!="function")return new m("Property `"+J+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var se=oe[X],z=j(se);if(z!=="object")return new m("Invalid "+Y+" `"+J+"` of type "+("`"+z+"` supplied to `"+ee+"`, expected an object."));for(var H in se)if(o(se,H)){var G=_(se,H,ee,Y,J+"."+H,n);if(G instanceof Error)return G}return null}return g(B)}function v(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var B=0;B<_.length;B++){var oe=_[B];if(typeof oe!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(oe)+" at index "+B+"."),l}function X(ee,Y,J,se,z){for(var H=[],G=0;G<_.length;G++){var ue=_[G],U=ue(ee,Y,J,se,z,n);if(U==null)return null;U.data&&o(U.data,"expectedType")&&H.push(U.data.expectedType)}var Q=H.length>0?", expected one of type ["+H.join(", ")+"]":"";return new m("Invalid "+se+" `"+z+"` supplied to "+("`"+J+"`"+Q+"."))}return g(X)}function f(){function _(B,oe,X,ee,Y){return D(B[oe])?null:new m("Invalid "+ee+" `"+Y+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return g(_)}function C(_,B,oe,X,ee){return new m((_||"React class")+": "+B+" type `"+oe+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function P(_){function B(oe,X,ee,Y,J){var se=oe[X],z=j(se);if(z!=="object")return new m("Invalid "+Y+" `"+J+"` of type `"+z+"` "+("supplied to `"+ee+"`, expected `object`."));for(var H in _){var G=_[H];if(typeof G!="function")return C(ee,Y,J,H,$(G));var ue=G(se,H,ee,Y,J+"."+H,n);if(ue)return ue}return null}return g(B)}function M(_){function B(oe,X,ee,Y,J){var se=oe[X],z=j(se);if(z!=="object")return new m("Invalid "+Y+" `"+J+"` of type `"+z+"` "+("supplied to `"+ee+"`, expected `object`."));var H=t({},oe[X],_);for(var G in H){var ue=_[G];if(o(_,G)&&typeof ue!="function")return C(ee,Y,J,G,$(ue));if(!ue)return new m("Invalid "+Y+" `"+J+"` key `"+G+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(oe[X],null," ")+`
|
|
49
|
+
Valid keys: `+JSON.stringify(Object.keys(_),null," "));var U=ue(se,G,ee,Y,J+"."+G,n);if(U)return U}return null}return g(B)}function D(_){switch(typeof _){case"number":case"string":case"undefined":return!0;case"boolean":return!_;case"object":if(Array.isArray(_))return _.every(D);if(_===null||a(_))return!0;var B=p(_);if(B){var oe=B.call(_),X;if(B!==_.entries){for(;!(X=oe.next()).done;)if(!D(X.value))return!1}else for(;!(X=oe.next()).done;){var ee=X.value;if(ee&&!D(ee[1]))return!1}}else return!1;return!0;default:return!1}}function I(_,B){return _==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function j(_){var B=typeof _;return Array.isArray(_)?"array":_ instanceof RegExp?"object":I(B,_)?"symbol":B}function $(_){if(typeof _>"u"||_===null)return""+_;var B=j(_);if(B==="object"){if(_ instanceof Date)return"date";if(_ instanceof RegExp)return"regexp"}return B}function F(_){var B=$(_);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function L(_){return!_.constructor||!_.constructor.name?h:_.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Jc}var eu,Jh;function eS(){if(Jh)return eu;Jh=1;var e=Xc();function t(){}function n(){}return n.resetWarningCache=t,eu=function(){function o(l,a,c,u,d,p){if(p!==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}}o.isRequired=o;function i(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},eu}var em;function tS(){if(em)return Li.exports;if(em=1,process.env.NODE_ENV!=="production"){var e=Hh(),t=!0;Li.exports=JC()(e.isElement,t)}else Li.exports=eS()();return Li.exports}var nS=tS();const r=qt(nS);function tm(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=tm(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function we(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=tm(e))&&(o&&(o+=" "),o+=t);return o}function Xe(e,t,n=void 0){const o={};for(const i in e){const s=e[i];let l="",a=!0;for(let c=0;c<s.length;c+=1){const u=s[c];u&&(l+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(l+=" "+n[u]))}o[i]=l}return o}let nm=0;function rS(e){const[t,n]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(nm+=1,n(`mui-${nm}`))},[t]),o}const rm={...E}.useId;function wo(e){if(rm!==void 0){const t=rm();return e??t}return rS(e)}const Yt=r.oneOfType([r.func,r.object]);function _n(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Re(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":_n(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $n(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 om(e){if(E.isValidElement(e)||!$n(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=om(e[n])}),t}function Kt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return $n(e)&&$n(t)&&Object.keys(t).forEach(i=>{E.isValidElement(t[i])?o[i]=t[i]:$n(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&$n(e[i])?o[i]=Kt(e[i],t[i],n):n.clone?o[i]=$n(t[i])?om(t[i]):t[i]:o[i]=t[i]}),o}function Oo(e,t){return t?Kt(e,t,{clone:!1}):e}const ir=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.string,r.object,r.array]):{};function oS(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,i)=>{var l,a;const s=/min-width:\s*([0-9.]+)/;return+(((l=o.match(s))==null?void 0:l[1])||0)-+(((a=i.match(s))==null?void 0:a[1])||0)});return n.length?n.reduce((o,i)=>{const s=t[i];return delete o[i],o[i]=s,o},{...t}):t}function iS(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function sS(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){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>\`.
|
|
50
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:_n(18,`(${t})`));return null}const[,o,i]=n,s=Number.isNaN(+o)?o||0:+o;return e.containerQueries(i).up(s)}function aS(e){const t=(s,l)=>s.replace("@media",l?`@container ${l}`:"@container");function n(s,l){s.up=(...a)=>t(e.breakpoints.up(...a),l),s.down=(...a)=>t(e.breakpoints.down(...a),l),s.between=(...a)=>t(e.breakpoints.between(...a),l),s.only=(...a)=>t(e.breakpoints.only(...a),l),s.not=(...a)=>{const c=t(e.breakpoints.not(...a),l);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},i=s=>(n(o,s),o);return n(i),{...e,containerQueries:i}}const qi={xs:0,sm:600,md:900,lg:1200,xl:1536},im={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qi[e]}px)`},lS={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:qi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Gn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const s=o.breakpoints||im;return t.reduce((l,a,c)=>(l[s.up(s.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const s=o.breakpoints||im;return Object.keys(t).reduce((l,a)=>{if(iS(s.keys,a)){const c=sS(o.containerQueries?o:lS,a);c&&(l[c]=n(t[a],a))}else if(Object.keys(s.values||qi).includes(a)){const c=s.up(a);l[c]=n(t[a],a)}else{const c=a;l[c]=t[c]}return l},{})}return n(t)}function cS(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,i)=>{const s=e.up(i);return o[s]={},o},{}))||{}}function uS(e,t){return e.reduce((n,o)=>{const i=n[o];return(!i||Object.keys(i).length===0)&&delete n[o],n},t)}function zi(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(o!=null)return o}return t.split(".").reduce((o,i)=>o&&o[i]!=null?o[i]:null,e)}function Ui(e,t,n,o=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||o:i=zi(e,n)||o,t&&(i=t(i,o,e)),i}function $t(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:i}=e,s=l=>{if(l[t]==null)return null;const a=l[t],c=l.theme,u=zi(c,o)||{};return Gn(l,a,p=>{let h=Ui(u,i,p);return p===h&&typeof p=="string"&&(h=Ui(u,i,`${t}${p==="default"?"":Re(p)}`,p)),n===!1?h:{[n]:h}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:ir}:{},s.filterProps=[t],s}function dS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pS={m:"margin",p:"padding"},fS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hS=dS(e=>{if(e.length>2)if(sm[e])e=sm[e];else return[e];const[t,n]=e.split(""),o=pS[t],i=fS[n]||"";return Array.isArray(i)?i.map(s=>o+s):[o+i]}),Wi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],mS=[...Wi,...Hi];function To(e,t,n,o){const i=zi(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${o} 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 l=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>i.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${l} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
51
51
|
`)):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(`
|
|
52
|
-
`)));const
|
|
53
|
-
`)),()=>{})}function pl(e){return Sn(e,"spacing",8,"spacing")}function Tn(e,t){return typeof t=="string"||t==null?t:e(t)}function sv(e,t){return r=>e.reduce((n,i)=>(n[i]=Tn(t,r),n),{})}function lv(e,t,r,n){if(!t.includes(r))return null;const i=iv(r),a=sv(i,n),l=e[r];return Or(e,l,a)}function Xf(e,t){const r=pl(e.theme);return Object.keys(e).map(n=>lv(e,t,n,r)).reduce(Cn,{})}function gt(e){return Xf(e,Eo)}gt.propTypes=process.env.NODE_ENV!=="production"?Eo.reduce((e,t)=>(e[t]=_r,e),{}):{},gt.filterProps=Eo;function yt(e){return Xf(e,Co)}yt.propTypes=process.env.NODE_ENV!=="production"?Co.reduce((e,t)=>(e[t]=_r,e),{}):{},yt.filterProps=Co,process.env.NODE_ENV!=="production"&&av.reduce((e,t)=>(e[t]=_r,e),{});function So(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Cn(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Zt(e){return typeof e!="number"?e:`${e}px solid`}function er(e,t){return xt({prop:e,themeKey:"borders",transform:t})}const cv=er("border",Zt),uv=er("borderTop",Zt),pv=er("borderRight",Zt),fv=er("borderBottom",Zt),dv=er("borderLeft",Zt),hv=er("borderColor"),mv=er("borderTopColor"),gv=er("borderRightColor"),yv=er("borderBottomColor"),vv=er("borderLeftColor"),bv=er("outline",Zt),xv=er("outlineColor"),To=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Sn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Tn(t,n)});return Or(e,e.borderRadius,r)}return null};To.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:_r}:{},To.filterProps=["borderRadius"],So(cv,uv,pv,fv,dv,hv,mv,gv,yv,vv,To,bv,xv);const wo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Sn(e.theme,"spacing",8,"gap"),r=n=>({gap:Tn(t,n)});return Or(e,e.gap,r)}return null};wo.propTypes=process.env.NODE_ENV!=="production"?{gap:_r}:{},wo.filterProps=["gap"];const Ro=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Sn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Tn(t,n)});return Or(e,e.columnGap,r)}return null};Ro.propTypes=process.env.NODE_ENV!=="production"?{columnGap:_r}:{},Ro.filterProps=["columnGap"];const Po=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Sn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Tn(t,n)});return Or(e,e.rowGap,r)}return null};Po.propTypes=process.env.NODE_ENV!=="production"?{rowGap:_r}:{},Po.filterProps=["rowGap"];const Ov=xt({prop:"gridColumn"}),Ev=xt({prop:"gridRow"}),Cv=xt({prop:"gridAutoFlow"}),Sv=xt({prop:"gridAutoColumns"}),Tv=xt({prop:"gridAutoRows"}),wv=xt({prop:"gridTemplateColumns"}),Rv=xt({prop:"gridTemplateRows"}),Pv=xt({prop:"gridTemplateAreas"}),_v=xt({prop:"gridArea"});So(wo,Ro,Po,Ov,Ev,Cv,Sv,Tv,wv,Rv,Pv,_v);function Qr(e,t){return t==="grey"?t:e}const Iv=xt({prop:"color",themeKey:"palette",transform:Qr}),kv=xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qr}),jv=xt({prop:"backgroundColor",themeKey:"palette",transform:Qr});So(Iv,kv,jv);function Ut(e){return e<=1&&e!==0?`${e*100}%`:e}const Av=xt({prop:"width",transform:Ut}),fl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,a,l,s,c;const n=((l=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[r])||bo[r];return n?((c=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ut(r)}};return Or(e,e.maxWidth,t)}return null};fl.filterProps=["maxWidth"];const Nv=xt({prop:"minWidth",transform:Ut}),$v=xt({prop:"height",transform:Ut}),Mv=xt({prop:"maxHeight",transform:Ut}),Dv=xt({prop:"minHeight",transform:Ut});xt({prop:"size",cssProperty:"width",transform:Ut}),xt({prop:"size",cssProperty:"height",transform:Ut});const Lv=xt({prop:"boxSizing"});So(Av,fl,Nv,$v,Mv,Dv,Lv);const wn={border:{themeKey:"borders",transform:Zt},borderTop:{themeKey:"borders",transform:Zt},borderRight:{themeKey:"borders",transform:Zt},borderBottom:{themeKey:"borders",transform:Zt},borderLeft:{themeKey:"borders",transform:Zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:To},color:{themeKey:"palette",transform:Qr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qr},backgroundColor:{themeKey:"palette",transform:Qr},p:{style:yt},pt:{style:yt},pr:{style:yt},pb:{style:yt},pl:{style:yt},px:{style:yt},py:{style:yt},padding:{style:yt},paddingTop:{style:yt},paddingRight:{style:yt},paddingBottom:{style:yt},paddingLeft:{style:yt},paddingX:{style:yt},paddingY:{style:yt},paddingInline:{style:yt},paddingInlineStart:{style:yt},paddingInlineEnd:{style:yt},paddingBlock:{style:yt},paddingBlockStart:{style:yt},paddingBlockEnd:{style:yt},m:{style:gt},mt:{style:gt},mr:{style:gt},mb:{style:gt},ml:{style:gt},mx:{style:gt},my:{style:gt},margin:{style:gt},marginTop:{style:gt},marginRight:{style:gt},marginBottom:{style:gt},marginLeft:{style:gt},marginX:{style:gt},marginY:{style:gt},marginInline:{style:gt},marginInlineStart:{style:gt},marginInlineEnd:{style:gt},marginBlock:{style:gt},marginBlockStart:{style:gt},marginBlockEnd:{style:gt},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:wo},rowGap:{style:Po},columnGap:{style:Ro},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:fl},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 Fv(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Bv(e,t){return typeof e=="function"?e(t):e}function qv(){function e(r,n,i,a){const l={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:f,style:d}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const y=xo(i,u)||{};return d?d(l):Or(l,n,b=>{let h=Oo(y,f,b);return b===h&&typeof b=="string"&&(h=Oo(y,f,`${r}${b==="default"?"":he(b)}`,b)),c===!1?h:{[c]:h}})}function t(r){const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=i.unstable_sxConfig??wn;function l(s){let c=s;if(typeof s=="function")c=s(i);else if(typeof s!="object")return s;if(!c)return null;const u=ev(i.breakpoints),f=Object.keys(u);let d=u;return Object.keys(c).forEach(y=>{const m=Bv(c[y],i);if(m!=null)if(typeof m=="object")if(a[y])d=Cn(d,e(y,m,i,a));else{const b=Or({theme:i},m,h=>({[y]:h}));Fv(b,m)?d[y]=t({sx:m,theme:i}):d=Cn(d,b)}else d=Cn(d,e(y,m,i,a))}),Yy(i,tv(f,d))}return Array.isArray(n)?n.map(l):l(n)}return t}const Zr=qv();Zr.filterProps=["sx"];const zv=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??wn;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Vv(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=zv(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const s=t(...l);return lr(s)?{...n,...s}:n}:a={...n,...t},{...i,sx:a}}function Uv(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Wv={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};function Hv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Gv=!1,Kv=/[A-Z]|^ms/g,Yv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jf=function(t){return t.charCodeAt(1)===45},Qf=function(t){return t!=null&&typeof t!="boolean"},dl=Hv(function(e){return Jf(e)?e:e.replace(Kv,"-$&").toLowerCase()}),Zf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Yv,function(n,i,a){return Ir={name:i,styles:a,next:Ir},i})}return Wv[t]!==1&&!Jf(t)&&typeof r=="number"&&r!==0?r+"px":r},Xv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function _o(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Ir={name:i.name,styles:i.styles,next:Ir},i.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Ir={name:l.name,styles:l.styles,next:Ir},l=l.next;var s=a.styles+";";return s}return Jv(e,t,r)}}var c=r;return c}function Jv(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=_o(e,t,r[i])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var s=l;Qf(s)&&(n+=dl(a)+":"+Zf(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Gv)throw new Error(Xv);if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)Qf(l[c])&&(n+=dl(a)+":"+Zf(a,l[c])+";");else{var u=_o(e,t,l);switch(a){case"animation":case"animationName":{n+=dl(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}}return n}var ed=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function Qv(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Ir=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=_o(r,t,a);else{var l=a;i+=l[0]}for(var s=1;s<e.length;s++)if(i+=_o(r,t,e[s]),n){var c=a;i+=c[s]}ed.lastIndex=0;for(var u="",f;(f=ed.exec(i))!==null;)u+="-"+f[1];var d=Uv(i)+u;return{name:d,styles:i,next:Ir}}function Zv(e){return e==null||Object.keys(e).length===0}function td(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(Zv(i)?r:i):t;return N.jsx(hn.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(td.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});/**
|
|
52
|
+
`)));const a=i[l];return s>=0?a:typeof a=="number"?-a:`-${a}`}: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(`
|
|
53
|
+
`)),()=>{})}function tu(e){return To(e,"spacing",8,"spacing")}function Eo(e,t){return typeof t=="string"||t==null?t:e(t)}function bS(e,t){return n=>e.reduce((o,i)=>(o[i]=Eo(t,n),o),{})}function gS(e,t,n,o){if(!t.includes(n))return null;const i=hS(n),s=bS(i,o),l=e[n];return Gn(e,l,s)}function am(e,t){const n=tu(e.theme);return Object.keys(e).map(o=>gS(e,t,o,n)).reduce(Oo,{})}function Dt(e){return am(e,Wi)}Dt.propTypes=process.env.NODE_ENV!=="production"?Wi.reduce((e,t)=>(e[t]=ir,e),{}):{},Dt.filterProps=Wi;function jt(e){return am(e,Hi)}jt.propTypes=process.env.NODE_ENV!=="production"?Hi.reduce((e,t)=>(e[t]=ir,e),{}):{},jt.filterProps=Hi,process.env.NODE_ENV!=="production"&&mS.reduce((e,t)=>(e[t]=ir,e),{});function Yi(...e){const t=e.reduce((o,i)=>(i.filterProps.forEach(s=>{o[s]=i}),o),{}),n=o=>Object.keys(o).reduce((i,s)=>t[s]?Oo(i,t[s](o)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,i)=>Object.assign(o,i.propTypes),{}):{},n.filterProps=e.reduce((o,i)=>o.concat(i.filterProps),[]),n}function gn(e){return typeof e!="number"?e:`${e}px solid`}function yn(e,t){return $t({prop:e,themeKey:"borders",transform:t})}const yS=yn("border",gn),vS=yn("borderTop",gn),xS=yn("borderRight",gn),CS=yn("borderBottom",gn),SS=yn("borderLeft",gn),wS=yn("borderColor"),OS=yn("borderTopColor"),TS=yn("borderRightColor"),ES=yn("borderBottomColor"),RS=yn("borderLeftColor"),PS=yn("outline",gn),kS=yn("outlineColor"),Ki=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=To(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Eo(t,o)});return Gn(e,e.borderRadius,n)}return null};Ki.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ir}:{},Ki.filterProps=["borderRadius"],Yi(yS,vS,xS,CS,SS,wS,OS,TS,ES,RS,Ki,PS,kS);const Gi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=To(e.theme,"spacing",8,"gap"),n=o=>({gap:Eo(t,o)});return Gn(e,e.gap,n)}return null};Gi.propTypes=process.env.NODE_ENV!=="production"?{gap:ir}:{},Gi.filterProps=["gap"];const Xi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=To(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Eo(t,o)});return Gn(e,e.columnGap,n)}return null};Xi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ir}:{},Xi.filterProps=["columnGap"];const Qi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=To(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Eo(t,o)});return Gn(e,e.rowGap,n)}return null};Qi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ir}:{},Qi.filterProps=["rowGap"];const MS=$t({prop:"gridColumn"}),IS=$t({prop:"gridRow"}),DS=$t({prop:"gridAutoFlow"}),jS=$t({prop:"gridAutoColumns"}),AS=$t({prop:"gridAutoRows"}),NS=$t({prop:"gridTemplateColumns"}),_S=$t({prop:"gridTemplateRows"}),$S=$t({prop:"gridTemplateAreas"}),FS=$t({prop:"gridArea"});Yi(Gi,Xi,Qi,MS,IS,DS,jS,AS,NS,_S,$S,FS);function Br(e,t){return t==="grey"?t:e}const VS=$t({prop:"color",themeKey:"palette",transform:Br}),LS=$t({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Br}),BS=$t({prop:"backgroundColor",themeKey:"palette",transform:Br});Yi(VS,LS,BS);function dn(e){return e<=1&&e!==0?`${e*100}%`:e}const qS=$t({prop:"width",transform:dn}),nu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,s,l,a,c;const o=((l=(s=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:s.values)==null?void 0:l[n])||qi[n];return o?((c=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:dn(n)}};return Gn(e,e.maxWidth,t)}return null};nu.filterProps=["maxWidth"];const zS=$t({prop:"minWidth",transform:dn}),US=$t({prop:"height",transform:dn}),WS=$t({prop:"maxHeight",transform:dn}),HS=$t({prop:"minHeight",transform:dn});$t({prop:"size",cssProperty:"width",transform:dn}),$t({prop:"size",cssProperty:"height",transform:dn});const YS=$t({prop:"boxSizing"});Yi(qS,nu,zS,US,WS,HS,YS);const Ro={border:{themeKey:"borders",transform:gn},borderTop:{themeKey:"borders",transform:gn},borderRight:{themeKey:"borders",transform:gn},borderBottom:{themeKey:"borders",transform:gn},borderLeft:{themeKey:"borders",transform:gn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ki},color:{themeKey:"palette",transform:Br},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Br},backgroundColor:{themeKey:"palette",transform:Br},p:{style:jt},pt:{style:jt},pr:{style:jt},pb:{style:jt},pl:{style:jt},px:{style:jt},py:{style:jt},padding:{style:jt},paddingTop:{style:jt},paddingRight:{style:jt},paddingBottom:{style:jt},paddingLeft:{style:jt},paddingX:{style:jt},paddingY:{style:jt},paddingInline:{style:jt},paddingInlineStart:{style:jt},paddingInlineEnd:{style:jt},paddingBlock:{style:jt},paddingBlockStart:{style:jt},paddingBlockEnd:{style:jt},m:{style:Dt},mt:{style:Dt},mr:{style:Dt},mb:{style:Dt},ml:{style:Dt},mx:{style:Dt},my:{style:Dt},margin:{style:Dt},marginTop:{style:Dt},marginRight:{style:Dt},marginBottom:{style:Dt},marginLeft:{style:Dt},marginX:{style:Dt},marginY:{style:Dt},marginInline:{style:Dt},marginInlineStart:{style:Dt},marginInlineEnd:{style:Dt},marginBlock:{style:Dt},marginBlockStart:{style:Dt},marginBlockEnd:{style:Dt},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:Gi},rowGap:{style:Qi},columnGap:{style:Xi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dn},maxWidth:{style:nu},minWidth:{transform:dn},height:{transform:dn},maxHeight:{transform:dn},minHeight:{transform:dn},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 KS(...e){const t=e.reduce((o,i)=>o.concat(Object.keys(i)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function GS(e,t){return typeof e=="function"?e(t):e}function XS(){function e(n,o,i,s){const l={[n]:o,theme:i},a=s[n];if(!a)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=a;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const h=zi(i,u)||{};return p?p(l):Gn(l,o,y=>{let m=Ui(h,d,y);return y===m&&typeof y=="string"&&(m=Ui(h,d,`${n}${y==="default"?"":Re(y)}`,y)),c===!1?m:{[c]:m}})}function t(n){const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=i.unstable_sxConfig??Ro;function l(a){let c=a;if(typeof a=="function")c=a(i);else if(typeof a!="object")return a;if(!c)return null;const u=cS(i.breakpoints),d=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const b=GS(c[h],i);if(b!=null)if(typeof b=="object")if(s[h])p=Oo(p,e(h,b,i,s));else{const y=Gn({theme:i},b,m=>({[h]:m}));KS(y,b)?p[h]=t({sx:b,theme:i}):p=Oo(p,y)}else p=Oo(p,e(h,b,i,s))}),oS(i,uS(d,p))}return Array.isArray(o)?o.map(l):l(o)}return t}const qr=XS();qr.filterProps=["sx"];const QS=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Ro;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function ZS(e){const{sx:t,...n}=e,{systemProps:o,otherProps:i}=QS(n);let s;return Array.isArray(t)?s=[o,...t]:typeof t=="function"?s=(...l)=>{const a=t(...l);return $n(a)?{...o,...a}:o}:s={...o,...t},{...i,sx:s}}function JS(e){for(var t=0,n,o=0,i=e.length;i>=4;++o,i-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 ew={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};function tw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var nw=!1,rw=/[A-Z]|^ms/g,ow=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lm=function(t){return t.charCodeAt(1)===45},cm=function(t){return t!=null&&typeof t!="boolean"},ru=tw(function(e){return lm(e)?e:e.replace(rw,"-$&").toLowerCase()}),um=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ow,function(o,i,s){return sr={name:i,styles:s,next:sr},i})}return ew[t]!==1&&!lm(t)&&typeof n=="number"&&n!==0?n+"px":n},iw="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Zi(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return sr={name:i.name,styles:i.styles,next:sr},i.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)sr={name:l.name,styles:l.styles,next:sr},l=l.next;var a=s.styles+";";return a}return sw(e,t,n)}}var c=n;return c}function sw(e,t,n){var o="";if(Array.isArray(n))for(var i=0;i<n.length;i++)o+=Zi(e,t,n[i])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var a=l;cm(a)&&(o+=ru(s)+":"+um(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&nw)throw new Error(iw);if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)cm(l[c])&&(o+=ru(s)+":"+um(s,l[c])+";");else{var u=Zi(e,t,l);switch(s){case"animation":case"animationName":{o+=ru(s)+":"+u+";";break}default:o+=s+"{"+u+"}"}}}}return o}var dm=/label:\s*([^\s;{]+)\s*(;|$)/g,sr;function aw(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";sr=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,i+=Zi(n,t,s);else{var l=s;i+=l[0]}for(var a=1;a<e.length;a++)if(i+=Zi(n,t,e[a]),o){var c=s;i+=c[a]}dm.lastIndex=0;for(var u="",d;(d=dm.exec(i))!==null;)u+="-"+d[1];var p=JS(i)+u;return{name:p,styles:i,next:sr}}function lw(e){return e==null||Object.keys(e).length===0}function pm(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?i=>t(lw(i)?n:i):t;return k.jsx(ho.Global,{styles:o})}process.env.NODE_ENV!=="production"&&(pm.propTypes={defaultTheme:r.object,styles:r.oneOfType([r.array,r.string,r.object,r.func])});/**
|
|
54
54
|
* @mui/styled-engine v6.1.10
|
|
55
55
|
*
|
|
56
56
|
* @license MIT
|
|
57
57
|
* This source code is licensed under the MIT license found in the
|
|
58
58
|
* LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/function
|
|
60
|
-
`)):
|
|
59
|
+
*/function cw(e,t){const n=Fr(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const i=typeof e=="string"?`"${e}"`:"component";return o.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(`
|
|
60
|
+
`)):o.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...o)}:n}function uw(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const fm=[];function hm(e){return fm[0]=e,aw(fm)}const dw=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function pw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...i}=e,s=dw(t),l=Object.keys(s);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${n})`}function u(h,b){const y=l.indexOf(b);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[l[y]]=="number"?t[l[y]]:b)-o/100}${n})`}function d(h){return l.indexOf(h)+1<l.length?u(h,l[l.indexOf(h)+1]):a(h)}function p(h){const b=l.indexOf(h);return b===0?a(l[1]):b===l.length-1?c(l[b]):u(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:l,values:s,up:a,down:c,between:u,only:d,not:p,unit:n,...i}}const fw={borderRadius:4};function mm(e=8,t=tu({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" "));return n.mui=!0,n}function hw(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function ou(e={},...t){const{breakpoints:n={},palette:o={},spacing:i,shape:s={},...l}=e,a=pw(n),c=mm(i);let u=Kt({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...fw,...s}},l);return u=aS(u),u.applyStyles=hw,u=t.reduce((d,p)=>Kt(d,p),u),u.unstable_sxConfig={...Ro,...l==null?void 0:l.unstable_sxConfig},u.unstable_sx=function(p){return qr({sx:p,theme:this})},u}function mw(e){return Object.keys(e).length===0}function bm(e=null){const t=E.useContext(ho.ThemeContext);return!t||mw(t)?e:t}const bw=ou();function iu(e=bw){return bm(e)}function gm({styles:e,themeId:t,defaultTheme:n={}}){const o=iu(n),i=typeof e=="function"?e(t&&o[t]||o):e;return k.jsx(pm,{styles:i})}process.env.NODE_ENV!=="production"&&(gm.propTypes={defaultTheme:r.object,styles:r.oneOfType([r.array,r.func,r.number,r.object,r.string,r.bool]),themeId:r.string});const ym=e=>e,gw=(()=>{let e=ym;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ym}}})(),yw={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 Ye(e,t,n="Mui"){const o=yw[t];return o?`${n}-${o}`:`${gw.generate(e)}-${t}`}function qe(e,t,n="Mui"){const o={};return t.forEach(i=>{o[i]=Ye(e,i,n)}),o}var Ji={exports:{}},yt={};/**
|
|
61
61
|
* @license React
|
|
62
62
|
* react-is.production.min.js
|
|
63
63
|
*
|
|
@@ -65,7 +65,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:sr(18,`(${t})`));return
|
|
|
65
65
|
*
|
|
66
66
|
* This source code is licensed under the MIT license found in the
|
|
67
67
|
* LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/var
|
|
68
|
+
*/var vm;function vw(){if(vm)return yt;vm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(g){if(typeof g=="object"&&g!==null){var w=g.$$typeof;switch(w){case e:switch(g=g.type,g){case n:case i:case o:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case a:case l:case c:case h:case p:case s:return g;default:return w}}case t:return w}}}return yt.ContextConsumer=l,yt.ContextProvider=s,yt.Element=e,yt.ForwardRef=c,yt.Fragment=n,yt.Lazy=h,yt.Memo=p,yt.Portal=t,yt.Profiler=i,yt.StrictMode=o,yt.Suspense=u,yt.SuspenseList=d,yt.isAsyncMode=function(){return!1},yt.isConcurrentMode=function(){return!1},yt.isContextConsumer=function(g){return m(g)===l},yt.isContextProvider=function(g){return m(g)===s},yt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},yt.isForwardRef=function(g){return m(g)===c},yt.isFragment=function(g){return m(g)===n},yt.isLazy=function(g){return m(g)===h},yt.isMemo=function(g){return m(g)===p},yt.isPortal=function(g){return m(g)===t},yt.isProfiler=function(g){return m(g)===i},yt.isStrictMode=function(g){return m(g)===o},yt.isSuspense=function(g){return m(g)===u},yt.isSuspenseList=function(g){return m(g)===d},yt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===i||g===o||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===p||g.$$typeof===s||g.$$typeof===l||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},yt.typeOf=m,yt}var vt={};/**
|
|
69
69
|
* @license React
|
|
70
70
|
* react-is.development.js
|
|
71
71
|
*
|
|
@@ -73,15 +73,16 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:sr(18,`(${t})`));return
|
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the MIT license found in the
|
|
75
75
|
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
77
|
-
|
|
78
|
-
The following
|
|
79
|
-
`))},[n,
|
|
80
|
-
`))},[
|
|
81
|
-
`))}return!1}function Rd(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Ab=e=>{const t=j.useRef({});return j.useEffect(()=>{t.current=e}),t.current};function Nb(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 Pd(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=Nb(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function _d(e,t,...r){return e[t]===void 0?null:Pd(e,t,...r)}function Sl(){return null}_d.isRequired=Pd,Sl.isRequired=Sl;const Tl=process.env.NODE_ENV==="production"?Sl:_d;function $b(e){return typeof e=="string"}function Id(e,t,r){return e===void 0||$b(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function kd(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function jd(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Ad(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const m=Pe(r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),b={...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},h={...r,...i,...n};return m.length>0&&(h.className=m),Object.keys(b).length>0&&(h.style=b),{props:h,internalRef:void 0}}const l=kd({...i,...n}),s=jd(n),c=jd(i),u=t(l),f=Pe(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),d={...u==null?void 0:u.style,...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},y={...u,...r,...c,...s};return f.length>0&&(y.className=f),Object.keys(d).length>0&&(y.style=d),{props:y,internalRef:u.ref}}function Nd(e,t,r){return typeof e=="function"?e(t,r):e}function wl(e){var d;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:Nd(r,n),{props:s,internalRef:c}=Ad({...a,externalSlotProps:l}),u=Ot(c,l==null?void 0:l.ref,(d=e.additionalProps)==null?void 0:d.ref);return Id(t,{...s,ref:u},n)}function _n(e){var t;return parseInt(j.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Mb=j.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const $d=()=>j.useContext(Mb)??!1,Db=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function Lb(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Ao(i.defaultProps,n):!i.styleOverrides&&!i.variants?Ao(i,n):n}function Fb({props:e,name:t}){const r=j.useContext(Db);return Lb({props:e,name:t,theme:{components:r}})}const Md={theme:void 0};function Bb(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(Md.theme=i.theme,a=hd(e(Md)),t=a,r=i.theme),a}}function qb(e=""){function t(...n){if(!n.length)return"";const i=n[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(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const Dd=(e,t,r,n=[])=>{let i=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},zb=(e,t,r)=>{function n(i,a=[],l=[]){Object.entries(i).forEach(([s,c])=>{(!r||r&&!r([...a,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...a,s],Array.isArray(c)?[...l,s]:l):t([...a,s],c,l))})}n(e)},Vb=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Rl(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},l={};return zb(e,(s,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const f=`--${r?`${r}-`:""}${s.join("-")}`,d=Vb(s,c);Object.assign(i,{[f]:d}),Dd(a,s,`var(${f})`,u),Dd(l,s,`var(${f}, ${d})`,u)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function Ub(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:s="light",...c}=e,{vars:u,css:f,varsWithDefaults:d}=Rl(c,t);let y=d;const m={},{[s]:b,...h}=a;if(Object.entries(h||{}).forEach(([S,T])=>{const{vars:w,css:A,varsWithDefaults:M}=Rl(T,t);y=At(y,M),m[S]={css:A,vars:w}}),b){const{css:S,vars:T,varsWithDefaults:w}=Rl(b,t);y=At(y,w),m[s]={css:S,vars:T}}function v(S,T){var A,M;let w=i;if(i==="class"&&(w=".%s"),i==="data"&&(w="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(w=`[${i}="%s"]`),S){if(w==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((M=(A=a[S])==null?void 0:A.palette)==null?void 0:M.mode)||S})`]:{":root":T}};if(w)return e.defaultColorScheme===S?`:root, ${w.replace("%s",String(S))}`:w.replace("%s",String(S))}return":root"}return{vars:y,generateThemeVars:()=>{let S={...u};return Object.entries(m).forEach(([,{vars:T}])=>{S=At(S,T)}),S},generateStyleSheets:()=>{var O,g;const S=[],T=e.defaultColorScheme||"light";function w(p,x){Object.keys(x).length&&S.push(typeof p=="string"?{[p]:{...x}}:p)}w(r(void 0,{...f}),f);const{[T]:A,...M}=m;if(A){const{css:p}=A,x=(g=(O=a[T])==null?void 0:O.palette)==null?void 0:g.mode,R=!n&&x?{colorScheme:x,...p}:{...p};w(r(T,{...R}),R)}return Object.entries(M).forEach(([p,{css:x}])=>{var _,k;const R=(k=(_=a[p])==null?void 0:_.palette)==null?void 0:k.mode,P=!n&&R?{colorScheme:R,...x}:{...x};w(r(p,{...P}),P)}),S}}}function Wb(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const In={black:"#000",white:"#fff"},Hb={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"},en={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},tn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},kn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},rn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},nn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},on={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Ld(){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:In.white,default:In.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 Gb=Ld();function Fd(){return{text:{primary:In.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:In.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 Bd=Fd();function qd(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=bl(e.main,i):t==="dark"&&(e.dark=vl(e.main,a)))}function Kb(e="light"){return e==="dark"?{main:rn[200],light:rn[50],dark:rn[400]}:{main:rn[700],light:rn[400],dark:rn[800]}}function Yb(e="light"){return e==="dark"?{main:en[200],light:en[50],dark:en[400]}:{main:en[500],light:en[300],dark:en[700]}}function Xb(e="light"){return e==="dark"?{main:tn[500],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[400],dark:tn[800]}}function Jb(e="light"){return e==="dark"?{main:nn[400],light:nn[300],dark:nn[700]}:{main:nn[700],light:nn[500],dark:nn[900]}}function Qb(e="light"){return e==="dark"?{main:on[400],light:on[300],dark:on[700]}:{main:on[800],light:on[500],dark:on[900]}}function Zb(e="light"){return e==="dark"?{main:kn[400],light:kn[300],dark:kn[700]}:{main:"#ed6c02",light:kn[500],dark:kn[900]}}function Pl(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...i}=e,a=e.primary||Kb(t),l=e.secondary||Yb(t),s=e.error||Xb(t),c=e.info||Jb(t),u=e.success||Qb(t),f=e.warning||Zb(t);function d(h){const v=bd(h,Bd.text.primary)>=r?Bd.text.primary:Gb.text.primary;if(process.env.NODE_ENV!=="production"){const C=bd(h,v);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${v} on ${h}`,"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(`
|
|
82
|
-
`))}return v}const y=({color:h,name:v,mainShade:C=500,lightShade:E=300,darkShade:S=700})=>{if(h={...h},!h.main&&h[C]&&(h.main=h[C]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
83
|
-
|
|
84
|
-
\`
|
|
76
|
+
*/var xm;function xw(){return xm||(xm=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,m=!1,g=!1,w=!1,x=!1,O;O=Symbol.for("react.module.reference");function T(q){return!!(typeof q=="string"||typeof q=="function"||q===n||q===i||x||q===o||q===u||q===d||w||q===b||y||m||g||typeof q=="object"&&q!==null&&(q.$$typeof===h||q.$$typeof===p||q.$$typeof===s||q.$$typeof===l||q.$$typeof===c||q.$$typeof===O||q.getModuleId!==void 0))}function R(q){if(typeof q=="object"&&q!==null){var ne=q.$$typeof;switch(ne){case e:var Z=q.type;switch(Z){case n:case i:case o:case u:case d:return Z;default:var te=Z&&Z.$$typeof;switch(te){case a:case l:case c:case h:case p:case s:return te;default:return ne}}case t:return ne}}}var A=l,N=s,S=e,v=c,f=n,C=h,P=p,M=t,D=i,I=o,j=u,$=d,F=!1,L=!1;function _(q){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(q){return L||(L=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function oe(q){return R(q)===l}function X(q){return R(q)===s}function ee(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function Y(q){return R(q)===c}function J(q){return R(q)===n}function se(q){return R(q)===h}function z(q){return R(q)===p}function H(q){return R(q)===t}function G(q){return R(q)===i}function ue(q){return R(q)===o}function U(q){return R(q)===u}function Q(q){return R(q)===d}vt.ContextConsumer=A,vt.ContextProvider=N,vt.Element=S,vt.ForwardRef=v,vt.Fragment=f,vt.Lazy=C,vt.Memo=P,vt.Portal=M,vt.Profiler=D,vt.StrictMode=I,vt.Suspense=j,vt.SuspenseList=$,vt.isAsyncMode=_,vt.isConcurrentMode=B,vt.isContextConsumer=oe,vt.isContextProvider=X,vt.isElement=ee,vt.isForwardRef=Y,vt.isFragment=J,vt.isLazy=se,vt.isMemo=z,vt.isPortal=H,vt.isProfiler=G,vt.isStrictMode=ue,vt.isSuspense=U,vt.isSuspenseList=Q,vt.isValidElementType=T,vt.typeOf=R}()),vt}var Cm;function Cw(){return Cm||(Cm=1,process.env.NODE_ENV==="production"?Ji.exports=vw():Ji.exports=xw()),Ji.exports}var Sm=Cw();function wm(e,t=""){return e.displayName||e.name||t}function Om(e,t,n){const o=wm(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Sw(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return wm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Sm.ForwardRef:return Om(e,e.render,"ForwardRef");case Sm.Memo:return Om(e,e.type,"memo");default:return}}}function Tm(e){const{variants:t,...n}=e,o={variants:t,style:hm(n),isProcessed:!0};return o.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=hm(i.style))}),o}const ww=ou();function es(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ow(e){return e?(t,n)=>n[e]:null}function Tw(e,t,n){e.theme=Pw(e.theme)?n:e.theme[t]||e.theme}function ts(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>ts(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:i,...s}=n;o=s}return Em(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function Em(e,t,n=[]){var i;let o;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const a in l.props)if(e[a]!==l.props[a]&&((i=e.ownerState)==null?void 0:i[a])!==l.props[a])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(o))):n.push(l.style)}return n}function Rm(e={}){const{themeId:t,defaultTheme:n=ww,rootShouldForwardProp:o=es,slotShouldForwardProp:i=es}=e;function s(a){Tw(a,t,n)}return(a,c={})=>{uw(a,R=>R.filter(A=>A!==qr));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:b=Ow(Pm(d)),...y}=c,m=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,g=h||!1;let w=es;d==="Root"||d==="root"?w=o:d?w=i:kw(a)&&(w=void 0);const x=cw(a,{shouldForwardProp:w,label:Rw(u,d),...y}),O=R=>{if(typeof R=="function"&&R.__emotion_real!==R)return function(N){return ts(N,R)};if($n(R)){const A=Tm(R);return A.variants?function(S){return ts(S,A)}:A.style}return R},T=(...R)=>{const A=[],N=R.map(O),S=[];if(A.push(s),u&&b&&S.push(function(P){var j,$;const D=($=(j=P.theme.components)==null?void 0:j[u])==null?void 0:$.styleOverrides;if(!D)return null;const I={};for(const F in D)I[F]=ts(P,D[F]);return b(P,I)}),u&&!m&&S.push(function(P){var I,j;const M=P.theme,D=(j=(I=M==null?void 0:M.components)==null?void 0:I[u])==null?void 0:j.variants;return D?Em(P,D):null}),g||S.push(qr),Array.isArray(N[0])){const C=N.shift(),P=new Array(A.length).fill(""),M=new Array(S.length).fill("");let D;D=[...P,...C,...M],D.raw=[...P,...C.raw,...M],A.unshift(D)}const v=[...A,...N,...S],f=x(...v);return a.muiName&&(f.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(f.displayName=Ew(u,d,a)),f};return x.withConfig&&(T.withConfig=x.withConfig),T}}function Ew(e,t,n){return e?`${e}${Re(t||"")}`:`Styled(${Sw(n)})`}function Rw(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Pm(t||"Root")}`),n}function Pw(e){for(const t in e)return!1;return!0}function kw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Pm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ns=Rm();function Po(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],l=t[i];if(!l)n[i]=s||{};else if(!s)n[i]=l;else{n[i]={...l};for(const a in s)if(Object.prototype.hasOwnProperty.call(s,a)){const c=a;n[i][c]=Po(s[c],l[c])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function km(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Po(t.components[n].defaultProps,o)}function Mw({props:e,name:t,defaultTheme:n,themeId:o}){let i=iu(n);return o&&(i=i[o]||i),km({theme:i,name:t,props:e})}const vn=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Iw(e,t,n,o,i){const[s,l]=E.useState(()=>i&&n?n(e).matches:o?o(e).matches:t);return vn(()=>{if(!n)return;const a=n(e),c=()=>{l(a.matches)};return c(),a.addEventListener("change",c),()=>{a.removeEventListener("change",c)}},[e,n]),s}const Mm={...E}.useSyncExternalStore;function Dw(e,t,n,o,i){const s=E.useCallback(()=>t,[t]),l=E.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return s},[s,e,o,i,n]),[a,c]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const d=n(e);return[()=>d.matches,p=>(d.addEventListener("change",p),()=>{d.removeEventListener("change",p)})]},[s,n,e]);return Mm(c,a,l)}function jw(e={}){const{themeId:t}=e;return function(o,i={}){let s=bm();s&&t&&(s=s[t]||s);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:c=l?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=km({name:"MuiUseMediaQuery",props:i,theme:s});process.env.NODE_ENV!=="production"&&typeof o=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
77
|
+
`));let p=typeof o=="function"?o(s):o;p=p.replace(/^@media( ?)/m,"");const b=(Mm!==void 0?Dw:Iw)(p,a,c,u,d);return process.env.NODE_ENV!=="production"&&E.useDebugValue({query:p,match:b}),b}}function Aw(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function su(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Aw(e,t,n)}function Nw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,i)=>i<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function ar(e){if(e.type)return e;if(e.charAt(0)==="#")return ar(Nw(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
78
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:_n(9,e));let o=e.substring(t+1,e.length-1),i;if(n==="color"){if(o=o.split(" "),i=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[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.
|
|
79
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:_n(10,i))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:n,values:o,colorSpace:i}}const _w=e=>{const t=ar(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},ko=(e,t)=>{try{return _w(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function rs(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Im(e){e=ar(e);const{values:t}=e,n=t[0],o=t[1]/100,i=t[2]/100,s=o*Math.min(i,1-i),l=(u,d=(u+n/30)%12)=>i-s*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),rs({type:a,values:c})}function au(e){e=ar(e);let t=e.type==="hsl"||e.type==="hsla"?ar(Im(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Dm(e,t){const n=au(e),o=au(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function et(e,t){return e=ar(e),t=su(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,rs(e)}function os(e,t,n){try{return et(e,t)}catch{return e}}function lu(e,t){if(e=ar(e),t=su(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return rs(e)}function kt(e,t,n){try{return lu(e,t)}catch{return e}}function cu(e,t){if(e=ar(e),t=su(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return rs(e)}function Mt(e,t,n){try{return cu(e,t)}catch{return e}}function $w(e,t=.15){return au(e)>.5?lu(e,t):cu(e,t)}function is(e,t,n){try{return $w(e,t)}catch{return e}}function Mn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Fw(e){const{prototype:t={}}=e;return!!t.isReactComponent}function jm(e,t,n,o,i){const s=e[t],l=i||t;if(s==null||typeof window>"u")return null;let a;const c=s.type;return typeof c=="function"&&!Fw(c)&&(a="Did you accidentally use a plain function component for an element instead?"),a!==void 0?new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Mo=Mn(r.element,jm);Mo.isRequired=Mn(r.element.isRequired,jm);function Vw(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Lw(e,t,n,o,i){const s=e[t],l=i||t;if(s==null||typeof window>"u")return null;let a;return typeof s=="function"&&!Vw(s)&&(a="Did you accidentally provide a plain function component instead?"),a!==void 0?new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ss=Mn(r.elementType,Lw),Bw="exact-prop: ";function Am(e){return process.env.NODE_ENV==="production"?e:{...e,[Bw]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}function Xn(e,t,n,o,i){if(process.env.NODE_ENV==="production")return null;const s=e[t],l=i||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}function uu(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function as(e,t=166){let n;function o(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return o.clear=()=>{clearTimeout(n)},o}function Io(e,t){var n,o,i;return E.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:i.muiName))!==-1}function sn(e){return e&&e.ownerDocument||document}function In(e){return sn(e).defaultView||window}function ls(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Nm(e,t,n,o,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 xr({controlled:e,default:t,name:n,state:o="value"}){const{current:i}=E.useRef(e!==void 0),[s,l]=E.useState(t),a=i?e:s;if(process.env.NODE_ENV!=="production"){E.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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(`
|
|
80
|
+
`))},[o,n,e]);const{current:u}=E.useRef(t);E.useEffect(()=>{!i&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
81
|
+
`))},[JSON.stringify(t)])}const c=E.useCallback(u=>{i||l(u)},[]);return[a,c]}function pn(e){const t=E.useRef(e);return vn(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function At(...e){return E.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ls(n,t)})},e)}const _m={};function $m(e,t){const n=E.useRef(_m);return n.current===_m&&(n.current=e(t)),n}const qw=[];function zw(e){E.useEffect(e,qw)}class du{constructor(){Vt(this,"currentId",null);Vt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Vt(this,"disposeEffect",()=>this.clear)}static create(){return new du}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Fm(){const e=$m(du.create).current;return zw(e.disposeEffect),e}function Vm(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(`
|
|
82
|
+
`))}return!1}function Lm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Uw=e=>{const t=E.useRef({});return E.useEffect(()=>{t.current=e}),t.current};function Ww(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 Bm(e,t,n,o){const i=e[t];if(i==null||!Number.isInteger(i)){const s=Ww(i);return new RangeError(`Invalid ${o} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function qm(e,t,...n){return e[t]===void 0?null:Bm(e,t,...n)}function pu(){return null}qm.isRequired=Bm,pu.isRequired=pu;const fu=process.env.NODE_ENV==="production"?pu:qm;function Hw(e){return typeof e=="string"}function zm(e,t,n){return e===void 0||Hw(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Um(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Wm(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Hm(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:i,className:s}=e;if(!t){const b=we(n==null?void 0:n.className,s,i==null?void 0:i.className,o==null?void 0:o.className),y={...n==null?void 0:n.style,...i==null?void 0:i.style,...o==null?void 0:o.style},m={...n,...i,...o};return b.length>0&&(m.className=b),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const l=Um({...i,...o}),a=Wm(o),c=Wm(i),u=t(l),d=we(u==null?void 0:u.className,n==null?void 0:n.className,s,i==null?void 0:i.className,o==null?void 0:o.className),p={...u==null?void 0:u.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...o==null?void 0:o.style},h={...u,...n,...c,...a};return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:u.ref}}function Ym(e,t,n){return typeof e=="function"?e(t,n):e}function Cr(e){var p;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1,...s}=e,l=i?{}:Ym(n,o),{props:a,internalRef:c}=Hm({...s,externalSlotProps:l}),u=At(c,l==null?void 0:l.ref,(p=e.additionalProps)==null?void 0:p.ref);return zm(t,{...a,ref:u},o)}function Do(e){var t;return parseInt(E.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Yw=E.createContext();process.env.NODE_ENV!=="production"&&(r.node,r.bool);const Gt=()=>E.useContext(Yw)??!1,Kw=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(r.node,r.object);function Gw(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const i=t.components[n];return i.defaultProps?Po(i.defaultProps,o):!i.styleOverrides&&!i.variants?Po(i,o):o}function Xw({props:e,name:t}){const n=E.useContext(Kw);return Gw({props:e,name:t,theme:{components:n}})}const Km={theme:void 0};function Qw(e){let t,n;return function(i){let s=t;return(s===void 0||i.theme!==n)&&(Km.theme=i.theme,s=Tm(e(Km)),t=s,n=i.theme),s}}function Zw(e=""){function t(...o){if(!o.length)return"";const i=o[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(...o.slice(1))})`:`, ${i}`}return(o,...i)=>`var(--${e?`${e}-`:""}${o}${t(...i)})`}const Gm=(e,t,n,o=[])=>{let i=e;t.forEach((s,l)=>{l===t.length-1?Array.isArray(i)?i[Number(s)]=n:i&&typeof i=="object"&&(i[s]=n):i&&typeof i=="object"&&(i[s]||(i[s]=o.includes(s)?[]:{}),i=i[s])})},Jw=(e,t,n)=>{function o(i,s=[],l=[]){Object.entries(i).forEach(([a,c])=>{(!n||n&&!n([...s,a]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...s,a],Array.isArray(c)?[...l,a]:l):t([...s,a],c,l))})}o(e)},e0=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function hu(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},i={},s={},l={};return Jw(e,(a,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(a,c))){const d=`--${n?`${n}-`:""}${a.join("-")}`,p=e0(a,c);Object.assign(i,{[d]:p}),Gm(s,a,`var(${d})`,u),Gm(l,a,`var(${d}, ${p})`,u)}},a=>a[0]==="vars"),{css:i,vars:s,varsWithDefaults:l}}function t0(e,t={}){const{getSelector:n=g,disableCssColorScheme:o,colorSchemeSelector:i}=t,{colorSchemes:s={},components:l,defaultColorScheme:a="light",...c}=e,{vars:u,css:d,varsWithDefaults:p}=hu(c,t);let h=p;const b={},{[a]:y,...m}=s;if(Object.entries(m||{}).forEach(([O,T])=>{const{vars:R,css:A,varsWithDefaults:N}=hu(T,t);h=Kt(h,N),b[O]={css:A,vars:R}}),y){const{css:O,vars:T,varsWithDefaults:R}=hu(y,t);h=Kt(h,R),b[a]={css:O,vars:T}}function g(O,T){var A,N;let R=i;if(i==="class"&&(R=".%s"),i==="data"&&(R="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(R=`[${i}="%s"]`),O){if(R==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((N=(A=s[O])==null?void 0:A.palette)==null?void 0:N.mode)||O})`]:{":root":T}};if(R)return e.defaultColorScheme===O?`:root, ${R.replace("%s",String(O))}`:R.replace("%s",String(O))}return":root"}return{vars:h,generateThemeVars:()=>{let O={...u};return Object.entries(b).forEach(([,{vars:T}])=>{O=Kt(O,T)}),O},generateStyleSheets:()=>{var S,v;const O=[],T=e.defaultColorScheme||"light";function R(f,C){Object.keys(C).length&&O.push(typeof f=="string"?{[f]:{...C}}:f)}R(n(void 0,{...d}),d);const{[T]:A,...N}=b;if(A){const{css:f}=A,C=(v=(S=s[T])==null?void 0:S.palette)==null?void 0:v.mode,P=!o&&C?{colorScheme:C,...f}:{...f};R(n(T,{...P}),P)}return Object.entries(N).forEach(([f,{css:C}])=>{var D,I;const P=(I=(D=s[f])==null?void 0:D.palette)==null?void 0:I.mode,M=!o&&P?{colorScheme:P,...C}:{...C};R(n(f,{...M}),M)}),O}}}function n0(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const jo={black:"#000",white:"#fff"},r0={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"},zr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ur={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ao={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Wr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Hr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Yr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Xm(){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:jo.white,default:jo.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 o0=Xm();function Qm(){return{text:{primary:jo.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:jo.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 Zm=Qm();function Jm(e,t,n,o){const i=o.light||o,s=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=cu(e.main,i):t==="dark"&&(e.dark=lu(e.main,s)))}function i0(e="light"){return e==="dark"?{main:Wr[200],light:Wr[50],dark:Wr[400]}:{main:Wr[700],light:Wr[400],dark:Wr[800]}}function s0(e="light"){return e==="dark"?{main:zr[200],light:zr[50],dark:zr[400]}:{main:zr[500],light:zr[300],dark:zr[700]}}function a0(e="light"){return e==="dark"?{main:Ur[500],light:Ur[300],dark:Ur[700]}:{main:Ur[700],light:Ur[400],dark:Ur[800]}}function l0(e="light"){return e==="dark"?{main:Hr[400],light:Hr[300],dark:Hr[700]}:{main:Hr[700],light:Hr[500],dark:Hr[900]}}function c0(e="light"){return e==="dark"?{main:Yr[400],light:Yr[300],dark:Yr[700]}:{main:Yr[800],light:Yr[500],dark:Yr[900]}}function u0(e="light"){return e==="dark"?{main:Ao[400],light:Ao[300],dark:Ao[700]}:{main:"#ed6c02",light:Ao[500],dark:Ao[900]}}function mu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...i}=e,s=e.primary||i0(t),l=e.secondary||s0(t),a=e.error||a0(t),c=e.info||l0(t),u=e.success||c0(t),d=e.warning||u0(t);function p(m){const g=Dm(m,Zm.text.primary)>=n?Zm.text.primary:o0.text.primary;if(process.env.NODE_ENV!=="production"){const w=Dm(m,g);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${g} on ${m}`,"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(`
|
|
83
|
+
`))}return g}const h=({color:m,name:g,mainShade:w=500,lightShade:x=300,darkShade:O=700})=>{if(m={...m},!m.main&&m[w]&&(m.main=m[w]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
84
|
+
The color object needs to have a \`main\` property or a \`${w}\` property.`:_n(11,g?` (${g})`:"",w));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
85
|
+
\`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
|
|
85
86
|
|
|
86
87
|
Did you intend to use one of the following approaches?
|
|
87
88
|
|
|
@@ -93,20 +94,20 @@ const theme1 = createTheme({ palette: {
|
|
|
93
94
|
|
|
94
95
|
const theme2 = createTheme({ palette: {
|
|
95
96
|
primary: { main: green[500] },
|
|
96
|
-
} });`:
|
|
97
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(
|
|
97
|
+
} });`:_n(12,g?` (${g})`:"",JSON.stringify(m.main)));return Jm(m,"light",x,o),Jm(m,"dark",O,o),m.contrastText||(m.contrastText=p(m.main)),m};let b;return t==="light"?b=Xm():t==="dark"&&(b=Qm()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Kt({common:{...jo},mode:t,primary:h({color:s,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:r0,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...b},i)}function d0(e){const t={};return Object.entries(e).forEach(o=>{const[i,s]=o;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 p0(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function f0(e){return Math.round(e*1e5)/1e5}const eb={textTransform:"uppercase"},tb='"Roboto", "Helvetica", "Arial", sans-serif';function h0(e,t){const{fontFamily:n=tb,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="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=o/14,b=d||(g=>`${g/c*h}rem`),y=(g,w,x,O,T)=>({fontFamily:n,fontWeight:g,fontSize:b(w),lineHeight:x,...n===tb?{letterSpacing:`${f0(O/w)}em`}:{},...T,...u}),m={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(l,14,1.75,.4,eb),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,eb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Kt({htmlFontSize:c,pxToRem:b,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a,...m},p,{clone:!1})}const m0=.2,b0=.14,g0=.12;function It(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${m0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${b0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${g0})`].join(",")}const y0=["none",It(0,2,1,-1,0,1,1,0,0,1,3,0),It(0,3,1,-2,0,2,2,0,0,1,5,0),It(0,3,3,-2,0,3,4,0,0,1,8,0),It(0,2,4,-1,0,4,5,0,0,1,10,0),It(0,3,5,-1,0,5,8,0,0,1,14,0),It(0,3,5,-1,0,6,10,0,0,1,18,0),It(0,4,5,-2,0,7,10,1,0,2,16,1),It(0,5,5,-3,0,8,10,1,0,3,14,2),It(0,5,6,-3,0,9,12,1,0,3,16,2),It(0,6,6,-3,0,10,14,1,0,4,18,3),It(0,6,7,-4,0,11,15,1,0,4,20,3),It(0,7,8,-4,0,12,17,2,0,5,22,4),It(0,7,8,-4,0,13,19,2,0,5,24,4),It(0,7,9,-4,0,14,21,2,0,5,26,4),It(0,8,9,-5,0,15,22,2,0,6,28,5),It(0,8,10,-5,0,16,24,2,0,6,30,5),It(0,8,11,-5,0,17,26,2,0,6,32,5),It(0,9,11,-5,0,18,28,2,0,7,34,6),It(0,9,12,-6,0,19,29,2,0,7,36,6),It(0,10,13,-6,0,20,31,3,0,8,38,7),It(0,10,13,-6,0,21,33,3,0,8,40,7),It(0,10,14,-6,0,22,35,3,0,8,42,7),It(0,11,14,-7,0,23,36,3,0,9,44,8),It(0,11,15,-7,0,24,38,3,0,9,46,8)],v0={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)"},x0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function nb(e){return`${Math.round(e)}ms`}function C0(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function S0(e){const t={...v0,...e.easing},n={...x0,...e.duration};return{getAutoHeightDuration:C0,create:(i=["all"],s={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:c=0,...u}=s;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",p=h=>!Number.isNaN(parseFloat(h));!d(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(l)&&!d(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!d(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(`
|
|
98
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof l=="string"?l:nb(l)} ${a} ${typeof c=="string"?c:nb(c)}`).join(",")},...e,easing:t,duration:n}}const w0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function O0(e){return $n(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function rb(e={}){const t={...e};function n(o){const i=Object.entries(o);for(let s=0;s<i.length;s++){const[l,a]=i[s];!O0(a)||l.startsWith("unstable_")?delete o[l]:$n(a)&&(o[l]={...a},n(o[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
98
99
|
|
|
99
100
|
const theme = ${JSON.stringify(t,null,2)};
|
|
100
101
|
|
|
101
102
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
102
103
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
103
104
|
|
|
104
|
-
export default theme;`}function
|
|
105
|
-
`))}
|
|
106
|
-
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 x0(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fr=e=>{try{return e()}catch{}},O0=(e="mui")=>qb(e);function kl(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=m0({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:a,...l}=_l({...r,palette:{mode:i,...t==null?void 0:t.palette}});return e[n]={...t,palette:a,opacity:{...Hd(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Gd(i)},l}function E0(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=g0,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,f=Object.keys(r)[0],d=n||(r.light&&f!=="light"?"light":f),y=O0(a),{[d]:m,light:b,dark:h,...v}=r,C={...v};let E=m;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:sr(21,d));const S=kl(C,E,u,d);b&&!C.light&&kl(C,b,void 0,"light"),h&&!C.dark&&kl(C,h,void 0,"dark");let T={defaultColorScheme:d,...S,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:c,getCssVar:y,colorSchemes:C,font:{...e0(S.typography),...S.font},spacing:x0(u.spacing)};Object.keys(T.colorSchemes).forEach(g=>{const p=T.colorSchemes[g].palette,x=R=>{const P=R.split("-"),_=P[1],k=P[2];return y(R,p[_][k])};if(p.mode==="light"&&(Q(p.common,"background","#fff"),Q(p.common,"onBackground","#000")),p.mode==="dark"&&(Q(p.common,"background","#000"),Q(p.common,"onBackground","#fff")),b0(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){Q(p.Alert,"errorColor",ct(p.error.light,.6)),Q(p.Alert,"infoColor",ct(p.info.light,.6)),Q(p.Alert,"successColor",ct(p.success.light,.6)),Q(p.Alert,"warningColor",ct(p.warning.light,.6)),Q(p.Alert,"errorFilledBg",x("palette-error-main")),Q(p.Alert,"infoFilledBg",x("palette-info-main")),Q(p.Alert,"successFilledBg",x("palette-success-main")),Q(p.Alert,"warningFilledBg",x("palette-warning-main")),Q(p.Alert,"errorFilledColor",fr(()=>p.getContrastText(p.error.main))),Q(p.Alert,"infoFilledColor",fr(()=>p.getContrastText(p.info.main))),Q(p.Alert,"successFilledColor",fr(()=>p.getContrastText(p.success.main))),Q(p.Alert,"warningFilledColor",fr(()=>p.getContrastText(p.warning.main))),Q(p.Alert,"errorStandardBg",ut(p.error.light,.9)),Q(p.Alert,"infoStandardBg",ut(p.info.light,.9)),Q(p.Alert,"successStandardBg",ut(p.success.light,.9)),Q(p.Alert,"warningStandardBg",ut(p.warning.light,.9)),Q(p.Alert,"errorIconColor",x("palette-error-main")),Q(p.Alert,"infoIconColor",x("palette-info-main")),Q(p.Alert,"successIconColor",x("palette-success-main")),Q(p.Alert,"warningIconColor",x("palette-warning-main")),Q(p.AppBar,"defaultBg",x("palette-grey-100")),Q(p.Avatar,"defaultBg",x("palette-grey-400")),Q(p.Button,"inheritContainedBg",x("palette-grey-300")),Q(p.Button,"inheritContainedHoverBg",x("palette-grey-A100")),Q(p.Chip,"defaultBorder",x("palette-grey-400")),Q(p.Chip,"defaultAvatarColor",x("palette-grey-700")),Q(p.Chip,"defaultIconColor",x("palette-grey-700")),Q(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Q(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Q(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Q(p.LinearProgress,"primaryBg",ut(p.primary.main,.62)),Q(p.LinearProgress,"secondaryBg",ut(p.secondary.main,.62)),Q(p.LinearProgress,"errorBg",ut(p.error.main,.62)),Q(p.LinearProgress,"infoBg",ut(p.info.main,.62)),Q(p.LinearProgress,"successBg",ut(p.success.main,.62)),Q(p.LinearProgress,"warningBg",ut(p.warning.main,.62)),Q(p.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.11)`),Q(p.Slider,"primaryTrack",ut(p.primary.main,.62)),Q(p.Slider,"secondaryTrack",ut(p.secondary.main,.62)),Q(p.Slider,"errorTrack",ut(p.error.main,.62)),Q(p.Slider,"infoTrack",ut(p.info.main,.62)),Q(p.Slider,"successTrack",ut(p.success.main,.62)),Q(p.Slider,"warningTrack",ut(p.warning.main,.62));const R=Mo(p.background.default,.8);Q(p.SnackbarContent,"bg",R),Q(p.SnackbarContent,"color",fr(()=>p.getContrastText(R))),Q(p.SpeedDialAction,"fabHoverBg",Mo(p.background.paper,.15)),Q(p.StepConnector,"border",x("palette-grey-400")),Q(p.StepContent,"border",x("palette-grey-400")),Q(p.Switch,"defaultColor",x("palette-common-white")),Q(p.Switch,"defaultDisabledColor",x("palette-grey-100")),Q(p.Switch,"primaryDisabledColor",ut(p.primary.main,.62)),Q(p.Switch,"secondaryDisabledColor",ut(p.secondary.main,.62)),Q(p.Switch,"errorDisabledColor",ut(p.error.main,.62)),Q(p.Switch,"infoDisabledColor",ut(p.info.main,.62)),Q(p.Switch,"successDisabledColor",ut(p.success.main,.62)),Q(p.Switch,"warningDisabledColor",ut(p.warning.main,.62)),Q(p.TableCell,"border",ut($o(p.divider,1),.88)),Q(p.Tooltip,"bg",$o(p.grey[700],.92))}if(p.mode==="dark"){Q(p.Alert,"errorColor",ut(p.error.light,.6)),Q(p.Alert,"infoColor",ut(p.info.light,.6)),Q(p.Alert,"successColor",ut(p.success.light,.6)),Q(p.Alert,"warningColor",ut(p.warning.light,.6)),Q(p.Alert,"errorFilledBg",x("palette-error-dark")),Q(p.Alert,"infoFilledBg",x("palette-info-dark")),Q(p.Alert,"successFilledBg",x("palette-success-dark")),Q(p.Alert,"warningFilledBg",x("palette-warning-dark")),Q(p.Alert,"errorFilledColor",fr(()=>p.getContrastText(p.error.dark))),Q(p.Alert,"infoFilledColor",fr(()=>p.getContrastText(p.info.dark))),Q(p.Alert,"successFilledColor",fr(()=>p.getContrastText(p.success.dark))),Q(p.Alert,"warningFilledColor",fr(()=>p.getContrastText(p.warning.dark))),Q(p.Alert,"errorStandardBg",ct(p.error.light,.9)),Q(p.Alert,"infoStandardBg",ct(p.info.light,.9)),Q(p.Alert,"successStandardBg",ct(p.success.light,.9)),Q(p.Alert,"warningStandardBg",ct(p.warning.light,.9)),Q(p.Alert,"errorIconColor",x("palette-error-main")),Q(p.Alert,"infoIconColor",x("palette-info-main")),Q(p.Alert,"successIconColor",x("palette-success-main")),Q(p.Alert,"warningIconColor",x("palette-warning-main")),Q(p.AppBar,"defaultBg",x("palette-grey-900")),Q(p.AppBar,"darkBg",x("palette-background-paper")),Q(p.AppBar,"darkColor",x("palette-text-primary")),Q(p.Avatar,"defaultBg",x("palette-grey-600")),Q(p.Button,"inheritContainedBg",x("palette-grey-800")),Q(p.Button,"inheritContainedHoverBg",x("palette-grey-700")),Q(p.Chip,"defaultBorder",x("palette-grey-700")),Q(p.Chip,"defaultAvatarColor",x("palette-grey-300")),Q(p.Chip,"defaultIconColor",x("palette-grey-300")),Q(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Q(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Q(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Q(p.LinearProgress,"primaryBg",ct(p.primary.main,.5)),Q(p.LinearProgress,"secondaryBg",ct(p.secondary.main,.5)),Q(p.LinearProgress,"errorBg",ct(p.error.main,.5)),Q(p.LinearProgress,"infoBg",ct(p.info.main,.5)),Q(p.LinearProgress,"successBg",ct(p.success.main,.5)),Q(p.LinearProgress,"warningBg",ct(p.warning.main,.5)),Q(p.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.13)`),Q(p.Slider,"primaryTrack",ct(p.primary.main,.5)),Q(p.Slider,"secondaryTrack",ct(p.secondary.main,.5)),Q(p.Slider,"errorTrack",ct(p.error.main,.5)),Q(p.Slider,"infoTrack",ct(p.info.main,.5)),Q(p.Slider,"successTrack",ct(p.success.main,.5)),Q(p.Slider,"warningTrack",ct(p.warning.main,.5));const R=Mo(p.background.default,.98);Q(p.SnackbarContent,"bg",R),Q(p.SnackbarContent,"color",fr(()=>p.getContrastText(R))),Q(p.SpeedDialAction,"fabHoverBg",Mo(p.background.paper,.15)),Q(p.StepConnector,"border",x("palette-grey-600")),Q(p.StepContent,"border",x("palette-grey-600")),Q(p.Switch,"defaultColor",x("palette-grey-300")),Q(p.Switch,"defaultDisabledColor",x("palette-grey-600")),Q(p.Switch,"primaryDisabledColor",ct(p.primary.main,.55)),Q(p.Switch,"secondaryDisabledColor",ct(p.secondary.main,.55)),Q(p.Switch,"errorDisabledColor",ct(p.error.main,.55)),Q(p.Switch,"infoDisabledColor",ct(p.info.main,.55)),Q(p.Switch,"successDisabledColor",ct(p.success.main,.55)),Q(p.Switch,"warningDisabledColor",ct(p.warning.main,.55)),Q(p.TableCell,"border",ct($o(p.divider,1),.68)),Q(p.Tooltip,"bg",$o(p.grey[700],.92))}Sr(p.background,"default"),Sr(p.background,"paper"),Sr(p.common,"background"),Sr(p.common,"onBackground"),Sr(p,"divider"),Object.keys(p).forEach(R=>{const P=p[R];R!=="tonalOffset"&&P&&typeof P=="object"&&(P.main&&Q(p[R],"mainChannel",Rn(jn(P.main))),P.light&&Q(p[R],"lightChannel",Rn(jn(P.light))),P.dark&&Q(p[R],"darkChannel",Rn(jn(P.dark))),P.contrastText&&Q(p[R],"contrastTextChannel",Rn(jn(P.contrastText))),R==="text"&&(Sr(p[R],"primary"),Sr(p[R],"secondary")),R==="action"&&(P.active&&Sr(p[R],"active"),P.selected&&Sr(p[R],"selected")))})}),T=t.reduce((g,p)=>At(g,p),T);const w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:v0(T)},{vars:A,generateThemeVars:M,generateStyleSheets:O}=Ub(T,w);return T.vars=A,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([g,p])=>{T[g]=p}),T.generateThemeVars=M,T.generateStyleSheets=O,T.generateSpacing=function(){return od(u.spacing,pl(this))},T.getColorSchemeSelector=Wb(s),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...wn,...u==null?void 0:u.unstable_sxConfig},T.unstable_sx=function(p){return Zr({sx:p,theme:this})},T.toRuntimeSource=Wd,T}function Kd(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Pl({...r===!0?{}:r.palette,mode:t})})}function C0(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...l}=e,s=a||"light",c=i==null?void 0:i[s],u={...i,...r?{[s]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return _l(e,...t);let f=r;"palette"in e||u[s]&&(u[s]!==!0?f=u[s].palette:s==="dark"&&(f={mode:"dark"}));const d=_l({...e,palette:f},...t);return d.defaultColorScheme=s,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},Kd(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},Kd(d,"light",u.light)),d}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),E0({...l,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const jl=C0(),Al="$$material";function Nl(){const e=id(jl);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[Al]||e}function Yd(e){return N.jsx(ad,{...e,defaultTheme:jl,themeId:Al})}process.env.NODE_ENV!=="production"&&(Yd.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function Xd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Nt=e=>Xd(e)&&e!=="classes",xe=gd({themeId:Al,defaultTheme:jl,rootShouldForwardProp:Nt});function S0(e){return function(r){return N.jsx(Yd,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function T0(){return Vv}process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Je(e){return Fb(e)}function Lo(e){return parseInt(e,10)||0}const w0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function R0(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Jd=j.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:l,value:s,...c}=t,{current:u}=j.useRef(s!=null),f=j.useRef(null),d=Ot(r,f),y=j.useRef(null),m=j.useRef(null),b=j.useCallback(()=>{const C=f.current,S=Cr(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const T=m.current;T.style.width=S.width,T.value=C.value||t.placeholder||"x",T.value.slice(-1)===`
|
|
107
|
-
`&&(T.value+=" ");const
|
|
108
|
-
`))},[]),ve=Ot(le,T,S.ref,te),[X,Re]=j.useState(!1),z=dr();process.env.NODE_ENV!=="production"&&j.useEffect(()=>{if(z)return z.registerEffect()},[z]);const pe=jr({props:n,muiFormControl:z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=z?z.focused:X,j.useEffect(()=>{!z&&y&&X&&(Re(!1),p&&p())},[z,y,X,p]);const de=z&&z.onFilled,Ce=z&&z.onEmpty,Te=j.useCallback(De=>{Bo(De)?de&&de():Ce&&Ce()},[de,Ce]);cr(()=>{se&&Te({value:ye})},[ye,Te,se]);const $e=De=>{P&&P(De),S.onFocus&&S.onFocus(De),z&&z.onFocus?z.onFocus(De):Re(!0)},He=De=>{p&&p(De),S.onBlur&&S.onBlur(De),z&&z.onBlur?z.onBlur(De):Re(!1)},Ne=(De,...Ze)=>{if(!se){const mt=De.target||le.current;if(mt==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.":sr(1));Te({value:mt.value})}S.onChange&&S.onChange(De,...Ze),x&&x(De,...Ze)};j.useEffect(()=>{Te(le.current)},[]);const be=De=>{le.current&&De.currentTarget===De.target&&le.current.focus(),R&&R(De)};let Fe=E,Ye=S;O&&Fe==="input"&&(G?(process.env.NODE_ENV!=="production"&&(M||A)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ye={type:void 0,minRows:G,maxRows:G,...Ye}):Ye={type:void 0,maxRows:A,minRows:M,...Ye},Fe=Jd);const ht=De=>{Te(De.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};j.useEffect(()=>{z&&z.setAdornedStart(!!oe)},[z,oe]);const Ct={...n,color:pe.color||"primary",disabled:pe.disabled,endAdornment:b,error:pe.error,focused:pe.focused,formControl:z,fullWidth:v,hiddenLabel:pe.hiddenLabel,multiline:O,size:pe.size,startAdornment:oe,type:ne},pt=I0(Ct),Ue=ae.root||u.Root||Vo,Be=Y.root||f.root||{},st=ae.input||u.Input||Uo;return Ye={...Ye,...Y.input??f.input},N.jsxs(j.Fragment,{children:[!m&&typeof eh=="function"&&(Zd||(Zd=N.jsx(eh,{}))),N.jsxs(Ue,{...Be,ref:r,onClick:be,...ce,...!$l(Ue)&&{ownerState:{...Ct,...Be.ownerState}},className:Pe(pt.root,Be.className,s,W&&"MuiInputBase-readOnly"),children:[oe,N.jsx(Fo.Provider,{value:null,children:N.jsx(st,{"aria-invalid":pe.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:pe.disabled,id:C,onAnimationStart:ht,name:g,placeholder:D,readOnly:W,required:pe.required,rows:G,value:ye,onKeyDown:_,onKeyUp:k,type:ne,...Ye,...!$l(st)&&{as:Fe,ownerState:{...Ct,...Ye.ownerState}},ref:ve,className:Pe(pt.input,Ye.className,W&&"MuiInputBase-readOnly"),onBlur:He,onChange:Ne,onFocus:$e})}),b,Z?Z({...pe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(Wo.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:xl,inputProps:o.object,inputRef:Dt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function k0(e){return typeof e.main=="string"}function j0(e,t=[]){if(!k0(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function $t(e=[]){return([,t])=>t&&j0(t,e)}function A0(e){return We("MuiInput",e)}const Ar={...Ht,...qe("MuiInput",["root","underline","input"])},N0=e=>{const{classes:t,disableUnderline:r}=e,i=Ge({root:["root",!r&&"underline"],input:["input"]},A0,t);return{...t,...i}},$0=xe(Vo,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qo(e,t),!r.disableUnderline&&t.underline]}})(Ke(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.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"},[`&.${Ar.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ar.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${Ar.disabled}, .${Ar.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ar.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),M0=xe(Uo,{name:"MuiInput",slot:"Input",overridesResolver:zo})({}),An=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:f,slots:d={},type:y="text",...m}=n,b=N0(n),v={root:{ownerState:{disableUnderline:i}}},C=f??l?At(f??l,v):v,E=d.root??a.Root??$0,S=d.input??a.Input??M0;return N.jsx(Wo,{slots:{root:E,input:S},slotProps:C,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:y,...m,classes:b})});process.env.NODE_ENV!=="production"&&(An.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Dt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),An&&(An.muiName="Input");function D0(e){return We("MuiFilledInput",e)}const Gt={...Ht,...qe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function L0(e){return We("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const F0=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${he(t)}`,`fontSize${he(r)}`]};return Ge(i,L0,n)},B0=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${he(r.color)}`],t[`fontSize${he(r.fontSize)}`]]}})(Ke(({theme:e})=>{var t,r,n,i,a,l,s,c,u,f,d,y,m,b;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:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:h=>!h.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var v,C;return{props:{color:h},style:{color:(C=(v=(e.vars??e).palette)==null?void 0:v[h])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(y=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(b=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Nn=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:d,viewBox:y="0 0 24 24",...m}=n,b=j.isValidElement(i)&&i.type==="svg",h={...n,color:l,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:b},v={};f||(v.viewBox=y);const C=F0(h);return N.jsxs(B0,{as:s,className:Pe(C.root,a),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...v,...m,...b&&i.props,ownerState:h,children:[b?i.props.children:i,d?N.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Nn.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),Nn&&(Nn.muiName="SvgIcon");function _t(e,t){function r(n,i){return N.jsx(Nn,{"data-testid":`${t}Icon`,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Nn.muiName,j.memo(j.forwardRef(r))}const q0=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:i,size:a,hiddenLabel:l,multiline:s}=e,c={root:["root",!r&&"underline",n&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${he(a)}`,l&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Ge(c,D0,t);return{...t,...u}},z0=xe(Vo,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qo(e,t),!r.disableUnderline&&t.underline]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=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)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,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:n}},[`&.${Gt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Gt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.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"},[`&.${Gt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gt.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})`:r}`,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(.${Gt.disabled}, .${Gt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Gt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([l])=>{var s;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[l])==null?void 0:s.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:s})=>l.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),V0=xe(Uo,{name:"MuiFilledInput",slot:"Input",overridesResolver:zo})(Ke(({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}}]}))),$n=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:f=!1,slotProps:d,slots:y={},type:m="text",...b}=n,h={...n,disableUnderline:i,fullWidth:s,inputComponent:u,multiline:f,type:m},v=q0(n),C={root:{ownerState:h},input:{ownerState:h}},E=d??l?At(C,d??l):C,S=y.root??a.Root??z0,T=y.input??a.Input??V0;return N.jsx(Wo,{slots:{root:S,input:T},slotProps:E,fullWidth:s,inputComponent:u,multiline:f,ref:r,type:m,...b,classes:v})});process.env.NODE_ENV!=="production"&&($n.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Dt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),$n&&($n.muiName="Input");var th;const U0=xe("fieldset",{shouldForwardProp:Nt})({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%"}),W0=xe("legend",{shouldForwardProp:Nt})(Ke(({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 rh(e){const{children:t,classes:r,className:n,label:i,notched:a,...l}=e,s=i!=null&&i!=="",c={...e,notched:a,withLabel:s};return N.jsx(U0,{"aria-hidden":!0,className:n,ownerState:c,...l,children:N.jsx(W0,{ownerState:c,children:s?N.jsx("span",{children:i}):th||(th=N.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(rh.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});function H0(e){return We("MuiOutlinedInput",e)}const tr={...Ht,...qe("MuiOutlinedInput",["root","notchedOutline","input"])},G0=e=>{const{classes:t}=e,n=Ge({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},H0,t);return{...t,...n}},K0=xe(Vo,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:qo})(Ke(({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 .${tr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${tr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${tr.focused} .${tr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter($t()).map(([r])=>({props:{color:r},style:{[`&.${tr.focused} .${tr.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${tr.error} .${tr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${tr.disabled} .${tr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Y0=xe(rh,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Ke(({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}})),X0=xe(Uo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zo})(Ke(({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}}]}))),Mn=j.forwardRef(function(t,r){var n;const i=Je({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:s="input",label:c,multiline:u=!1,notched:f,slots:d={},type:y="text",...m}=i,b=G0(i),h=dr(),v=jr({props:i,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...i,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:h,fullWidth:l,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},E=d.root??a.Root??K0,S=d.input??a.Input??X0;return N.jsx(Wo,{slots:{root:E,input:S},renderSuffix:T=>N.jsx(Y0,{ownerState:C,className:b.notchedOutline,label:c!=null&&c!==""&&v.required?n||(n=N.jsxs(j.Fragment,{children:[c," ","*"]})):c,notched:typeof f<"u"?f:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:l,inputComponent:s,multiline:u,ref:r,type:y,...m,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Mn.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Dt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Mn&&(Mn.muiName="Input");function J0(e){return We("MuiFormLabel",e)}const Dn=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Q0=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:l,required:s}=e,c={root:["root",`color${he(r)}`,i&&"disabled",a&&"error",l&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ge(c,J0,t)},Z0=xe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Ke(({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($t()).map(([t])=>({props:{color:t},style:{[`&.${Dn.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Dn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),ex=xe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ke(({theme:e})=>({[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}))),Nr=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:s="label",disabled:c,error:u,filled:f,focused:d,required:y,...m}=n,b=dr(),h=jr({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),v={...n,color:h.color||"primary",component:s,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},C=Q0(v);return N.jsxs(Z0,{as:s,ownerState:v,className:Pe(C.root,a),ref:r,...m,children:[i,h.required&&N.jsxs(ex,{ownerState:v,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Nr.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function tx(e){return We("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const rx=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:l,required:s}=e,c={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${he(n)}`,l],asterisk:[s&&"asterisk"]},u=Ge(c,tx,t);return{...t,...u}},nx=xe(Nr,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Dn.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Ke(({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:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="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:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Ho=j.forwardRef(function(t,r){const n=Je({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:s,className:c,...u}=n,f=dr();let d=l;typeof d>"u"&&f&&(d=f.filled||f.focused||f.adornedStart);const y=jr({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),m={...n,disableAnimation:i,formControl:f,shrink:d,size:y.size,variant:y.variant,required:y.required,focused:y.focused},b=rx(m);return N.jsx(nx,{"data-shrink":d,ref:r,className:Pe(b.root,c),...u,ownerState:m,classes:b})});process.env.NODE_ENV!=="production"&&(Ho.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["normal","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function ox(e){return We("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ix=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${he(r)}`,n&&"fullWidth"]};return Ge(i,ox,t)},ax=xe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${he(e.margin)}`],...e.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%"}}]}),an=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:s="div",disabled:c=!1,error:u=!1,focused:f,fullWidth:d=!1,hiddenLabel:y=!1,margin:m="none",required:b=!1,size:h="medium",variant:v="outlined",...C}=n,E={...n,color:l,component:s,disabled:c,error:u,fullWidth:d,hiddenLabel:y,margin:m,required:b,size:h,variant:v},S=ix(E),[T,w]=j.useState(()=>{let _=!1;return i&&j.Children.forEach(i,k=>{if(!El(k,["Input","Select"]))return;const D=El(k,["Select"])?k.props.input:k;D&&P0(D.props)&&(_=!0)}),_}),[A,M]=j.useState(()=>{let _=!1;return i&&j.Children.forEach(i,k=>{El(k,["Input","Select"])&&(Bo(k.props,!0)||Bo(k.props.inputProps,!0))&&(_=!0)}),_}),[O,g]=j.useState(!1);c&&O&&g(!1);const p=f!==void 0&&!c?f:O;let x;const R=j.useRef(!1);process.env.NODE_ENV!=="production"&&(x=()=>(R.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
109
|
-
`)),
|
|
105
|
+
export default theme;`}function bu(e={},...t){const{breakpoints:n,mixins:o={},spacing:i,palette:s={},transitions:l={},typography:a={},shape:c,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":_n(20));const d=mu(s),p=ou(e);let h=Kt(p,{mixins:p0(p.breakpoints,o),palette:d,shadows:y0.slice(),typography:h0(d,a),transitions:S0(l),zIndex:{...w0}});if(h=Kt(h,u),h=t.reduce((b,y)=>Kt(b,y),h),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(m,g)=>{let w;for(w in m){const x=m[w];if(b.includes(w)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const O=Ye("",w);console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${O}' syntax:`,JSON.stringify({root:{[`&.${O}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
106
|
+
`))}m[w]={}}}};Object.keys(h.components).forEach(m=>{const g=h.components[m].styleOverrides;g&&m.startsWith("Mui")&&y(g,m)})}return h.unstable_sxConfig={...Ro,...u==null?void 0:u.unstable_sxConfig},h.unstable_sx=function(y){return qr({sx:y,theme:this})},h.toRuntimeSource=rb,h}function gu(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 T0=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=gu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ob(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ib(e){return e==="dark"?T0:[]}function E0(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...i}=e,s=mu(t);return{palette:s,opacity:{...ob(s.mode),...n},overlays:o||ib(s.mode),...i}}function R0(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const P0=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],k0=e=>(t,n)=>{const o=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 l={};return P0(e.cssVarPrefix).forEach(a=>{l[a]=n[a],delete n[a]}),s==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:l}}:s?{[s.replace("%s",t)]:l,[`${o}, ${s.replace("%s",t)}`]:n}:{[o]:{...n,...l}}}if(s&&s!=="media")return`${o}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(s)return s.replace("%s",String(t))}return o};function M0(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ye(e,t,n){!e[t]&&n&&(e[t]=n)}function No(e){return typeof e!="string"||!e.startsWith("hsl")?e:Im(e)}function Qn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ko(No(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().
|
|
107
|
+
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 I0(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Fn=e=>{try{return e()}catch{}},D0=(e="mui")=>Zw(e);function yu(e,t,n,o){if(!t)return;t=t===!0?{}:t;const i=o==="dark"?"dark":"light";if(!n){e[o]=E0({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:s,...l}=bu({...n,palette:{mode:i,...t==null?void 0:t.palette}});return e[o]={...t,palette:s,opacity:{...ob(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||ib(i)},l}function j0(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:l=R0,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],p=o||(n.light&&d!=="light"?"light":d),h=D0(s),{[p]:b,light:y,dark:m,...g}=n,w={...g};let x=b;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:_n(21,p));const O=yu(w,x,u,p);y&&!w.light&&yu(w,y,void 0,"light"),m&&!w.dark&&yu(w,m,void 0,"dark");let T={defaultColorScheme:p,...O,cssVarPrefix:s,colorSchemeSelector:a,rootSelector:c,getCssVar:h,colorSchemes:w,font:{...d0(O.typography),...O.font},spacing:I0(u.spacing)};Object.keys(T.colorSchemes).forEach(v=>{const f=T.colorSchemes[v].palette,C=P=>{const M=P.split("-"),D=M[1],I=M[2];return h(P,f[D][I])};if(f.mode==="light"&&(ye(f.common,"background","#fff"),ye(f.common,"onBackground","#000")),f.mode==="dark"&&(ye(f.common,"background","#000"),ye(f.common,"onBackground","#fff")),M0(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){ye(f.Alert,"errorColor",kt(f.error.light,.6)),ye(f.Alert,"infoColor",kt(f.info.light,.6)),ye(f.Alert,"successColor",kt(f.success.light,.6)),ye(f.Alert,"warningColor",kt(f.warning.light,.6)),ye(f.Alert,"errorFilledBg",C("palette-error-main")),ye(f.Alert,"infoFilledBg",C("palette-info-main")),ye(f.Alert,"successFilledBg",C("palette-success-main")),ye(f.Alert,"warningFilledBg",C("palette-warning-main")),ye(f.Alert,"errorFilledColor",Fn(()=>f.getContrastText(f.error.main))),ye(f.Alert,"infoFilledColor",Fn(()=>f.getContrastText(f.info.main))),ye(f.Alert,"successFilledColor",Fn(()=>f.getContrastText(f.success.main))),ye(f.Alert,"warningFilledColor",Fn(()=>f.getContrastText(f.warning.main))),ye(f.Alert,"errorStandardBg",Mt(f.error.light,.9)),ye(f.Alert,"infoStandardBg",Mt(f.info.light,.9)),ye(f.Alert,"successStandardBg",Mt(f.success.light,.9)),ye(f.Alert,"warningStandardBg",Mt(f.warning.light,.9)),ye(f.Alert,"errorIconColor",C("palette-error-main")),ye(f.Alert,"infoIconColor",C("palette-info-main")),ye(f.Alert,"successIconColor",C("palette-success-main")),ye(f.Alert,"warningIconColor",C("palette-warning-main")),ye(f.AppBar,"defaultBg",C("palette-grey-100")),ye(f.Avatar,"defaultBg",C("palette-grey-400")),ye(f.Button,"inheritContainedBg",C("palette-grey-300")),ye(f.Button,"inheritContainedHoverBg",C("palette-grey-A100")),ye(f.Chip,"defaultBorder",C("palette-grey-400")),ye(f.Chip,"defaultAvatarColor",C("palette-grey-700")),ye(f.Chip,"defaultIconColor",C("palette-grey-700")),ye(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ye(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ye(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ye(f.LinearProgress,"primaryBg",Mt(f.primary.main,.62)),ye(f.LinearProgress,"secondaryBg",Mt(f.secondary.main,.62)),ye(f.LinearProgress,"errorBg",Mt(f.error.main,.62)),ye(f.LinearProgress,"infoBg",Mt(f.info.main,.62)),ye(f.LinearProgress,"successBg",Mt(f.success.main,.62)),ye(f.LinearProgress,"warningBg",Mt(f.warning.main,.62)),ye(f.Skeleton,"bg",`rgba(${C("palette-text-primaryChannel")} / 0.11)`),ye(f.Slider,"primaryTrack",Mt(f.primary.main,.62)),ye(f.Slider,"secondaryTrack",Mt(f.secondary.main,.62)),ye(f.Slider,"errorTrack",Mt(f.error.main,.62)),ye(f.Slider,"infoTrack",Mt(f.info.main,.62)),ye(f.Slider,"successTrack",Mt(f.success.main,.62)),ye(f.Slider,"warningTrack",Mt(f.warning.main,.62));const P=is(f.background.default,.8);ye(f.SnackbarContent,"bg",P),ye(f.SnackbarContent,"color",Fn(()=>f.getContrastText(P))),ye(f.SpeedDialAction,"fabHoverBg",is(f.background.paper,.15)),ye(f.StepConnector,"border",C("palette-grey-400")),ye(f.StepContent,"border",C("palette-grey-400")),ye(f.Switch,"defaultColor",C("palette-common-white")),ye(f.Switch,"defaultDisabledColor",C("palette-grey-100")),ye(f.Switch,"primaryDisabledColor",Mt(f.primary.main,.62)),ye(f.Switch,"secondaryDisabledColor",Mt(f.secondary.main,.62)),ye(f.Switch,"errorDisabledColor",Mt(f.error.main,.62)),ye(f.Switch,"infoDisabledColor",Mt(f.info.main,.62)),ye(f.Switch,"successDisabledColor",Mt(f.success.main,.62)),ye(f.Switch,"warningDisabledColor",Mt(f.warning.main,.62)),ye(f.TableCell,"border",Mt(os(f.divider,1),.88)),ye(f.Tooltip,"bg",os(f.grey[700],.92))}if(f.mode==="dark"){ye(f.Alert,"errorColor",Mt(f.error.light,.6)),ye(f.Alert,"infoColor",Mt(f.info.light,.6)),ye(f.Alert,"successColor",Mt(f.success.light,.6)),ye(f.Alert,"warningColor",Mt(f.warning.light,.6)),ye(f.Alert,"errorFilledBg",C("palette-error-dark")),ye(f.Alert,"infoFilledBg",C("palette-info-dark")),ye(f.Alert,"successFilledBg",C("palette-success-dark")),ye(f.Alert,"warningFilledBg",C("palette-warning-dark")),ye(f.Alert,"errorFilledColor",Fn(()=>f.getContrastText(f.error.dark))),ye(f.Alert,"infoFilledColor",Fn(()=>f.getContrastText(f.info.dark))),ye(f.Alert,"successFilledColor",Fn(()=>f.getContrastText(f.success.dark))),ye(f.Alert,"warningFilledColor",Fn(()=>f.getContrastText(f.warning.dark))),ye(f.Alert,"errorStandardBg",kt(f.error.light,.9)),ye(f.Alert,"infoStandardBg",kt(f.info.light,.9)),ye(f.Alert,"successStandardBg",kt(f.success.light,.9)),ye(f.Alert,"warningStandardBg",kt(f.warning.light,.9)),ye(f.Alert,"errorIconColor",C("palette-error-main")),ye(f.Alert,"infoIconColor",C("palette-info-main")),ye(f.Alert,"successIconColor",C("palette-success-main")),ye(f.Alert,"warningIconColor",C("palette-warning-main")),ye(f.AppBar,"defaultBg",C("palette-grey-900")),ye(f.AppBar,"darkBg",C("palette-background-paper")),ye(f.AppBar,"darkColor",C("palette-text-primary")),ye(f.Avatar,"defaultBg",C("palette-grey-600")),ye(f.Button,"inheritContainedBg",C("palette-grey-800")),ye(f.Button,"inheritContainedHoverBg",C("palette-grey-700")),ye(f.Chip,"defaultBorder",C("palette-grey-700")),ye(f.Chip,"defaultAvatarColor",C("palette-grey-300")),ye(f.Chip,"defaultIconColor",C("palette-grey-300")),ye(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ye(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ye(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ye(f.LinearProgress,"primaryBg",kt(f.primary.main,.5)),ye(f.LinearProgress,"secondaryBg",kt(f.secondary.main,.5)),ye(f.LinearProgress,"errorBg",kt(f.error.main,.5)),ye(f.LinearProgress,"infoBg",kt(f.info.main,.5)),ye(f.LinearProgress,"successBg",kt(f.success.main,.5)),ye(f.LinearProgress,"warningBg",kt(f.warning.main,.5)),ye(f.Skeleton,"bg",`rgba(${C("palette-text-primaryChannel")} / 0.13)`),ye(f.Slider,"primaryTrack",kt(f.primary.main,.5)),ye(f.Slider,"secondaryTrack",kt(f.secondary.main,.5)),ye(f.Slider,"errorTrack",kt(f.error.main,.5)),ye(f.Slider,"infoTrack",kt(f.info.main,.5)),ye(f.Slider,"successTrack",kt(f.success.main,.5)),ye(f.Slider,"warningTrack",kt(f.warning.main,.5));const P=is(f.background.default,.98);ye(f.SnackbarContent,"bg",P),ye(f.SnackbarContent,"color",Fn(()=>f.getContrastText(P))),ye(f.SpeedDialAction,"fabHoverBg",is(f.background.paper,.15)),ye(f.StepConnector,"border",C("palette-grey-600")),ye(f.StepContent,"border",C("palette-grey-600")),ye(f.Switch,"defaultColor",C("palette-grey-300")),ye(f.Switch,"defaultDisabledColor",C("palette-grey-600")),ye(f.Switch,"primaryDisabledColor",kt(f.primary.main,.55)),ye(f.Switch,"secondaryDisabledColor",kt(f.secondary.main,.55)),ye(f.Switch,"errorDisabledColor",kt(f.error.main,.55)),ye(f.Switch,"infoDisabledColor",kt(f.info.main,.55)),ye(f.Switch,"successDisabledColor",kt(f.success.main,.55)),ye(f.Switch,"warningDisabledColor",kt(f.warning.main,.55)),ye(f.TableCell,"border",kt(os(f.divider,1),.68)),ye(f.Tooltip,"bg",os(f.grey[700],.92))}Qn(f.background,"default"),Qn(f.background,"paper"),Qn(f.common,"background"),Qn(f.common,"onBackground"),Qn(f,"divider"),Object.keys(f).forEach(P=>{const M=f[P];P!=="tonalOffset"&&M&&typeof M=="object"&&(M.main&&ye(f[P],"mainChannel",ko(No(M.main))),M.light&&ye(f[P],"lightChannel",ko(No(M.light))),M.dark&&ye(f[P],"darkChannel",ko(No(M.dark))),M.contrastText&&ye(f[P],"contrastTextChannel",ko(No(M.contrastText))),P==="text"&&(Qn(f[P],"primary"),Qn(f[P],"secondary")),P==="action"&&(M.active&&Qn(f[P],"active"),M.selected&&Qn(f[P],"selected")))})}),T=t.reduce((v,f)=>Kt(v,f),T);const R={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:k0(T)},{vars:A,generateThemeVars:N,generateStyleSheets:S}=t0(T,R);return T.vars=A,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([v,f])=>{T[v]=f}),T.generateThemeVars=N,T.generateStyleSheets=S,T.generateSpacing=function(){return mm(u.spacing,tu(this))},T.getColorSchemeSelector=n0(a),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...Ro,...u==null?void 0:u.unstable_sxConfig},T.unstable_sx=function(f){return qr({sx:f,theme:this})},T.toRuntimeSource=rb,T}function sb(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:mu({...n===!0?{}:n.palette,mode:t})})}function A0(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...l}=e,a=s||"light",c=i==null?void 0:i[a],u={...i,...n?{[a]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return bu(e,...t);let d=n;"palette"in e||u[a]&&(u[a]!==!0?d=u[a].palette:a==="dark"&&(d={mode:"dark"}));const p=bu({...e,palette:d},...t);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},sb(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},sb(p,"light",u.light)),p}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),j0({...l,colorSchemes:u,defaultColorScheme:a,...typeof o!="boolean"&&o},...t)}const cs=A0(),_o="$$material";function Sr(){const e=iu(cs);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[_o]||e}function ab(e){return k.jsx(gm,{...e,defaultTheme:cs,themeId:_o})}process.env.NODE_ENV!=="production"&&(ab.propTypes={styles:r.oneOfType([r.array,r.func,r.number,r.object,r.string,r.bool])});function lb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xt=e=>lb(e)&&e!=="classes",re=Rm({themeId:_o,defaultTheme:cs,rootShouldForwardProp:Xt});function N0(e){return function(n){return k.jsx(ab,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function _0(){return ZS}process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function tt(e){return Xw(e)}function us(e){return parseInt(e,10)||0}const $0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function F0(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const cb=E.forwardRef(function(t,n){const{onChange:o,maxRows:i,minRows:s=1,style:l,value:a,...c}=t,{current:u}=E.useRef(a!=null),d=E.useRef(null),p=At(n,d),h=E.useRef(null),b=E.useRef(null),y=E.useCallback(()=>{const w=d.current,O=In(w).getComputedStyle(w);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};const T=b.current;T.style.width=O.width,T.value=w.value||t.placeholder||"x",T.value.slice(-1)===`
|
|
108
|
+
`&&(T.value+=" ");const R=O.boxSizing,A=us(O.paddingBottom)+us(O.paddingTop),N=us(O.borderBottomWidth)+us(O.borderTopWidth),S=T.scrollHeight;T.value="x";const v=T.scrollHeight;let f=S;s&&(f=Math.max(Number(s)*v,f)),i&&(f=Math.min(Number(i)*v,f)),f=Math.max(f,v);const C=f+(R==="border-box"?A+N:0),P=Math.abs(f-S)<=1;return{outerHeightStyle:C,overflowing:P}},[i,s,t.placeholder]),m=E.useCallback(()=>{const w=y();if(F0(w))return;const x=w.outerHeightStyle,O=d.current;h.current!==x&&(h.current=x,O.style.height=`${x}px`),O.style.overflow=w.overflowing?"hidden":""},[y]);vn(()=>{const w=()=>{m()};let x;const O=()=>{cancelAnimationFrame(x),x=requestAnimationFrame(()=>{w()})},T=as(w),R=d.current,A=In(R);A.addEventListener("resize",T);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(process.env.NODE_ENV==="test"?O:w),N.observe(R)),()=>{T.clear(),cancelAnimationFrame(x),A.removeEventListener("resize",T),N&&N.disconnect()}},[y,m]),vn(()=>{m()});const g=w=>{u||m(),o&&o(w)};return k.jsxs(E.Fragment,{children:[k.jsx("textarea",{value:a,onChange:g,ref:p,rows:s,style:l,...c}),k.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...$0.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(cb.propTypes={className:r.string,maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),onChange:r.func,placeholder:r.string,style:r.object,value:r.oneOfType([r.arrayOf(r.string),r.number,r.string])});function $o(e){return typeof e=="string"}function lr({props:e,states:t,muiFormControl:n}){return t.reduce((o,i)=>(o[i]=e[i],n&&typeof e[i]>"u"&&(o[i]=n[i]),o),{})}const Fo=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(Fo.displayName="FormControlContext");function en(){return E.useContext(Fo)}const Qe=Qw;function ub(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ds(e,t=!1){return e&&(ub(e.value)&&e.value!==""||t&&ub(e.defaultValue)&&e.defaultValue!=="")}function V0(e){return e.startAdornment}function L0(e){return Ye("MuiInputBase",e)}const fn=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var db;const ps=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Re(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},fs=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},B0=e=>{const{classes:t,color:n,disabled:o,error:i,endAdornment:s,focused:l,formControl:a,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:h,startAdornment:b,type:y}=e,m={root:["root",`color${Re(n)}`,o&&"disabled",i&&"error",c&&"fullWidth",l&&"focused",a&&"formControl",h&&h!=="medium"&&`size${Re(h)}`,d&&"multiline",b&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",y==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return Xe(m,L0,t)},hs=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ps})(Qe(({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",[`&.${fn.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:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ms=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fs})(Qe(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={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":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${fn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${fn.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"}}]}})),pb=N0({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),bs=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:l,className:a,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:b,endAdornment:y,error:m,fullWidth:g=!1,id:w,inputComponent:x="input",inputProps:O={},inputRef:T,margin:R,maxRows:A,minRows:N,multiline:S=!1,name:v,onBlur:f,onChange:C,onClick:P,onFocus:M,onKeyDown:D,onKeyUp:I,placeholder:j,readOnly:$,renderSuffix:F,rows:L,size:_,slotProps:B={},slots:oe={},startAdornment:X,type:ee="text",value:Y,...J}=o,se=O.value!=null?O.value:Y,{current:z}=E.useRef(se!=null),H=E.useRef(),G=E.useCallback(ze=>{process.env.NODE_ENV!=="production"&&ze&&ze.nodeName!=="INPUT"&&!ze.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(`
|
|
109
|
+
`))},[]),ue=At(H,T,O.ref,G),[U,Q]=E.useState(!1),q=en();process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(q)return q.registerEffect()},[q]);const ne=lr({props:o,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=q?q.focused:U,E.useEffect(()=>{!q&&h&&U&&(Q(!1),f&&f())},[q,h,U,f]);const Z=q&&q.onFilled,te=q&&q.onEmpty,le=E.useCallback(ze=>{ds(ze)?Z&&Z():te&&te()},[Z,te]);vn(()=>{z&&le({value:se})},[se,le,z]);const fe=ze=>{M&&M(ze),O.onFocus&&O.onFocus(ze),q&&q.onFocus?q.onFocus(ze):Q(!0)},xe=ze=>{f&&f(ze),O.onBlur&&O.onBlur(ze),q&&q.onBlur?q.onBlur(ze):Q(!1)},Ee=(ze,...ct)=>{if(!z){const Tt=ze.target||H.current;if(Tt==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));le({value:Tt.value})}O.onChange&&O.onChange(ze,...ct),C&&C(ze,...ct)};E.useEffect(()=>{le(H.current)},[]);const Te=ze=>{H.current&&ze.currentTarget===ze.target&&H.current.focus(),P&&P(ze)};let $e=x,Ze=O;S&&$e==="input"&&(L?(process.env.NODE_ENV!=="production"&&(N||A)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ze={type:void 0,minRows:L,maxRows:L,...Ze}):Ze={type:void 0,maxRows:A,minRows:N,...Ze},$e=cb);const We=ze=>{le(ze.animationName==="mui-auto-fill-cancel"?H.current:{value:"x"})};E.useEffect(()=>{q&&q.setAdornedStart(!!X)},[q,X]);const it={...o,color:ne.color||"primary",disabled:ne.disabled,endAdornment:y,error:ne.error,focused:ne.focused,formControl:q,fullWidth:g,hiddenLabel:ne.hiddenLabel,multiline:S,size:ne.size,startAdornment:X,type:ee},st=B0(it),Ge=oe.root||u.Root||hs,Ke=B.root||d.root||{},ut=oe.input||u.Input||ms;return Ze={...Ze,...B.input??d.input},k.jsxs(E.Fragment,{children:[!b&&typeof pb=="function"&&(db||(db=k.jsx(pb,{}))),k.jsxs(Ge,{...Ke,ref:n,onClick:Te,...J,...!$o(Ge)&&{ownerState:{...it,...Ke.ownerState}},className:we(st.root,Ke.className,a,$&&"MuiInputBase-readOnly"),children:[X,k.jsx(Fo.Provider,{value:null,children:k.jsx(ut,{"aria-invalid":ne.error,"aria-describedby":i,autoComplete:s,autoFocus:l,defaultValue:p,disabled:ne.disabled,id:w,onAnimationStart:We,name:v,placeholder:j,readOnly:$,required:ne.required,rows:L,value:se,onKeyDown:D,onKeyUp:I,type:ee,...Ze,...!$o(ut)&&{as:$e,ownerState:{...it,...Ze.ownerState}},ref:ue,className:we(st.input,Ze.className,$&&"MuiInputBase-readOnly"),onBlur:xe,onChange:Ee,onFocus:fe})}),y,F?F({...ne,startAdornment:X}):null]})]})});process.env.NODE_ENV!=="production"&&(bs.propTypes={"aria-describedby":r.string,autoComplete:r.string,autoFocus:r.bool,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),components:r.shape({Input:r.elementType,Root:r.elementType}),componentsProps:r.shape({input:r.object,root:r.object}),defaultValue:r.any,disabled:r.bool,disableInjectingGlobalStyles:r.bool,endAdornment:r.node,error:r.bool,fullWidth:r.bool,id:r.string,inputComponent:ss,inputProps:r.object,inputRef:Yt,margin:r.oneOf(["dense","none"]),maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),multiline:r.bool,name:r.string,onBlur:r.func,onChange:r.func,onClick:r.func,onFocus:r.func,onInvalid:r.func,onKeyDown:r.func,onKeyUp:r.func,placeholder:r.string,readOnly:r.bool,renderSuffix:r.func,required:r.bool,rows:r.oneOfType([r.number,r.string]),size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({input:r.object,root:r.object}),slots:r.shape({input:r.elementType,root:r.elementType}),startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.string,value:r.any});function q0(e){return typeof e.main=="string"}function z0(e,t=[]){if(!q0(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Qt(e=[]){return([,t])=>t&&z0(t,e)}function U0(e){return Ye("MuiInput",e)}const cr={...fn,...qe("MuiInput",["root","underline","input"])},W0=e=>{const{classes:t,disableUnderline:n}=e,i=Xe({root:["root",!n&&"underline"],input:["input"]},U0,t);return{...t,...i}},H0=re(hs,{shouldForwardProp:e=>Xt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ps(e,t),!n.disableUnderline&&t.underline]}})(Qe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.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"},[`&.${cr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${cr.disabled}, .${cr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${cr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Qt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),Y0=re(ms,{name:"MuiInput",slot:"Input",overridesResolver:fs})({}),Vo=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:l,fullWidth:a=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...b}=o,y=W0(o),g={root:{ownerState:{disableUnderline:i}}},w=d??l?Kt(d??l,g):g,x=p.root??s.Root??H0,O=p.input??s.Input??Y0;return k.jsx(bs,{slots:{root:x,input:O},slotProps:w,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:h,...b,classes:y})});process.env.NODE_ENV!=="production"&&(Vo.propTypes={autoComplete:r.string,autoFocus:r.bool,classes:r.object,color:r.oneOfType([r.oneOf(["primary","secondary"]),r.string]),components:r.shape({Input:r.elementType,Root:r.elementType}),componentsProps:r.shape({input:r.object,root:r.object}),defaultValue:r.any,disabled:r.bool,disableUnderline:r.bool,endAdornment:r.node,error:r.bool,fullWidth:r.bool,id:r.string,inputComponent:r.elementType,inputProps:r.object,inputRef:Yt,margin:r.oneOf(["dense","none"]),maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),multiline:r.bool,name:r.string,onChange:r.func,placeholder:r.string,readOnly:r.bool,required:r.bool,rows:r.oneOfType([r.number,r.string]),slotProps:r.shape({input:r.object,root:r.object}),slots:r.shape({input:r.elementType,root:r.elementType}),startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.string,value:r.any}),Vo&&(Vo.muiName="Input");function K0(e){return Ye("MuiFilledInput",e)}const hn={...fn,...qe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function G0(e){return Ye("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const X0=e=>{const{color:t,fontSize:n,classes:o}=e,i={root:["root",t!=="inherit"&&`color${Re(t)}`,`fontSize${Re(n)}`]};return Xe(i,G0,o)},Q0=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Re(n.color)}`],t[`fontSize${Re(n.fontSize)}`]]}})(Qe(({theme:e})=>{var t,n,o,i,s,l,a,c,u,d,p,h,b,y;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:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:m=>!m.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,m])=>m&&m.main).map(([m])=>{var g,w;return{props:{color:m},style:{color:(w=(g=(e.vars??e).palette)==null?void 0:g[m])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(h=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(y=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Lo=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:l="inherit",component:a="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...b}=o,y=E.isValidElement(i)&&i.type==="svg",m={...o,color:l,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y},g={};d||(g.viewBox=h);const w=X0(m);return k.jsxs(Q0,{as:a,className:we(w.root,s),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...g,...b,...y&&i.props,ownerState:m,children:[y?i.props.children:i,p?k.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Lo.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,fontSize:r.oneOfType([r.oneOf(["inherit","large","medium","small"]),r.string]),htmlColor:r.string,inheritViewBox:r.bool,shapeRendering:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleAccess:r.string,viewBox:r.string}),Lo&&(Lo.muiName="SvgIcon");function Et(e,t){function n(o,i){return k.jsx(Lo,{"data-testid":`${t}Icon`,ref:i,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Lo.muiName,E.memo(E.forwardRef(n))}const Z0=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:i,size:s,hiddenLabel:l,multiline:a}=e,c={root:["root",!n&&"underline",o&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${Re(s)}`,l&&"hiddenLabel",a&&"multiline"],input:["input"]},u=Xe(c,K0,t);return{...t,...u}},J0=re(hs,{shouldForwardProp:e=>Xt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ps(e,t),!n.disableUnderline&&t.underline]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=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:o,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:o}},[`&.${hn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${hn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:l})=>!l.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"},[`&.${hn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hn.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})`:n}`,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(.${hn.disabled}, .${hn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${hn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Qt()).map(([l])=>{var a;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[l])==null?void 0:a.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:a})=>l.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),eO=re(ms,{name:"MuiFilledInput",slot:"Input",overridesResolver:fs})(Qe(({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}}]}))),Bo=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:l,fullWidth:a=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:b="text",...y}=o,m={...o,disableUnderline:i,fullWidth:a,inputComponent:u,multiline:d,type:b},g=Z0(o),w={root:{ownerState:m},input:{ownerState:m}},x=p??l?Kt(w,p??l):w,O=h.root??s.Root??J0,T=h.input??s.Input??eO;return k.jsx(bs,{slots:{root:O,input:T},slotProps:x,fullWidth:a,inputComponent:u,multiline:d,ref:n,type:b,...y,classes:g})});process.env.NODE_ENV!=="production"&&(Bo.propTypes={autoComplete:r.string,autoFocus:r.bool,classes:r.object,color:r.oneOfType([r.oneOf(["primary","secondary"]),r.string]),components:r.shape({Input:r.elementType,Root:r.elementType}),componentsProps:r.shape({input:r.object,root:r.object}),defaultValue:r.any,disabled:r.bool,disableUnderline:r.bool,endAdornment:r.node,error:r.bool,fullWidth:r.bool,hiddenLabel:r.bool,id:r.string,inputComponent:r.elementType,inputProps:r.object,inputRef:Yt,margin:r.oneOf(["dense","none"]),maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),multiline:r.bool,name:r.string,onChange:r.func,placeholder:r.string,readOnly:r.bool,required:r.bool,rows:r.oneOfType([r.number,r.string]),slotProps:r.shape({input:r.object,root:r.object}),slots:r.shape({input:r.elementType,root:r.elementType}),startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.string,value:r.any}),Bo&&(Bo.muiName="Input");var fb;const tO=re("fieldset",{shouldForwardProp:Xt})({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%"}),nO=re("legend",{shouldForwardProp:Xt})(Qe(({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 hb(e){const{children:t,classes:n,className:o,label:i,notched:s,...l}=e,a=i!=null&&i!=="",c={...e,notched:s,withLabel:a};return k.jsx(tO,{"aria-hidden":!0,className:o,ownerState:c,...l,children:k.jsx(nO,{ownerState:c,children:a?k.jsx("span",{children:i}):fb||(fb=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(hb.propTypes={children:r.node,classes:r.object,className:r.string,label:r.node,notched:r.bool.isRequired,style:r.object});function rO(e){return Ye("MuiOutlinedInput",e)}const xn={...fn,...qe("MuiOutlinedInput",["root","notchedOutline","input"])},oO=e=>{const{classes:t}=e,o=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rO,t);return{...t,...o}},iO=re(hs,{shouldForwardProp:e=>Xt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ps})(Qe(({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 .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${xn.focused} .${xn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Qt()).map(([n])=>({props:{color:n},style:{[`&.${xn.focused} .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${xn.error} .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xn.disabled} .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),sO=re(hb,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Qe(({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}})),aO=re(ms,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fs})(Qe(({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}}]}))),qo=E.forwardRef(function(t,n){var o;const i=tt({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:l=!1,inputComponent:a="input",label:c,multiline:u=!1,notched:d,slots:p={},type:h="text",...b}=i,y=oO(i),m=en(),g=lr({props:i,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...i,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:l,hiddenLabel:g.hiddenLabel,multiline:u,size:g.size,type:h},x=p.root??s.Root??iO,O=p.input??s.Input??aO;return k.jsx(bs,{slots:{root:x,input:O},renderSuffix:T=>k.jsx(sO,{ownerState:w,className:y.notchedOutline,label:c!=null&&c!==""&&g.required?o||(o=k.jsxs(E.Fragment,{children:[c," ","*"]})):c,notched:typeof d<"u"?d:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:l,inputComponent:a,multiline:u,ref:n,type:h,...b,classes:{...y,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(qo.propTypes={autoComplete:r.string,autoFocus:r.bool,classes:r.object,color:r.oneOfType([r.oneOf(["primary","secondary"]),r.string]),components:r.shape({Input:r.elementType,Root:r.elementType}),defaultValue:r.any,disabled:r.bool,endAdornment:r.node,error:r.bool,fullWidth:r.bool,id:r.string,inputComponent:r.elementType,inputProps:r.object,inputRef:Yt,label:r.node,margin:r.oneOf(["dense","none"]),maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),multiline:r.bool,name:r.string,notched:r.bool,onChange:r.func,placeholder:r.string,readOnly:r.bool,required:r.bool,rows:r.oneOfType([r.number,r.string]),slots:r.shape({input:r.elementType,root:r.elementType}),startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.string,value:r.any}),qo&&(qo.muiName="Input");function lO(e){return Ye("MuiFormLabel",e)}const zo=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cO=e=>{const{classes:t,color:n,focused:o,disabled:i,error:s,filled:l,required:a}=e,c={root:["root",`color${Re(n)}`,i&&"disabled",s&&"error",l&&"filled",o&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return Xe(c,lO,t)},uO=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Qe(({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(Qt()).map(([t])=>({props:{color:t},style:{[`&.${zo.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${zo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${zo.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),dO=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Qe(({theme:e})=>({[`&.${zo.error}`]:{color:(e.vars||e).palette.error.main}}))),ur=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:l,component:a="label",disabled:c,error:u,filled:d,focused:p,required:h,...b}=o,y=en(),m=lr({props:o,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),g={...o,color:m.color||"primary",component:a,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},w=cO(g);return k.jsxs(uO,{as:a,ownerState:g,className:we(w.root,s),ref:n,...b,children:[i,m.required&&k.jsxs(dO,{ownerState:g,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(ur.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function pO(e){return Ye("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const fO=e=>{const{classes:t,formControl:n,size:o,shrink:i,disableAnimation:s,variant:l,required:a}=e,c={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",o&&o!=="normal"&&`size${Re(o)}`,l],asterisk:[a&&"asterisk"]},u=Xe(c,pO,t);return{...t,...u}},hO=re(ur,{shouldForwardProp:e=>Xt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zo.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Qe(({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:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="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:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Uo=E.forwardRef(function(t,n){const o=tt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:l,variant:a,className:c,...u}=o,d=en();let p=l;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=lr({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),b={...o,disableAnimation:i,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},y=fO(b);return k.jsx(hO,{"data-shrink":p,ref:n,className:we(y.root,c),...u,ownerState:b,classes:y})});process.env.NODE_ENV!=="production"&&(Uo.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),disableAnimation:r.bool,disabled:r.bool,error:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,shrink:r.bool,size:r.oneOfType([r.oneOf(["normal","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function mO(e){return Ye("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const bO=e=>{const{classes:t,margin:n,fullWidth:o}=e,i={root:["root",n!=="none"&&`margin${Re(n)}`,o&&"fullWidth"]};return Xe(i,mO,t)},gO=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${Re(e.margin)}`],...e.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=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiFormControl"}),{children:i,className:s,color:l="primary",component:a="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:b="none",required:y=!1,size:m="medium",variant:g="outlined",...w}=o,x={...o,color:l,component:a,disabled:c,error:u,fullWidth:p,hiddenLabel:h,margin:b,required:y,size:m,variant:g},O=bO(x),[T,R]=E.useState(()=>{let D=!1;return i&&E.Children.forEach(i,I=>{if(!Io(I,["Input","Select"]))return;const j=Io(I,["Select"])?I.props.input:I;j&&V0(j.props)&&(D=!0)}),D}),[A,N]=E.useState(()=>{let D=!1;return i&&E.Children.forEach(i,I=>{Io(I,["Input","Select"])&&(ds(I.props,!0)||ds(I.props.inputProps,!0))&&(D=!0)}),D}),[S,v]=E.useState(!1);c&&S&&v(!1);const f=d!==void 0&&!c?d:S;let C;const P=E.useRef(!1);process.env.NODE_ENV!=="production"&&(C=()=>(P.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
110
|
+
`)),P.current=!0,()=>{P.current=!1}));const M=E.useMemo(()=>({adornedStart:T,setAdornedStart:R,color:l,disabled:c,error:u,filled:A,focused:f,fullWidth:p,hiddenLabel:h,size:m,onBlur:()=>{v(!1)},onEmpty:()=>{N(!1)},onFilled:()=>{N(!0)},onFocus:()=>{v(!0)},registerEffect:C,required:y,variant:g}),[T,l,c,u,A,f,p,h,C,y,m,g]);return k.jsx(Fo.Provider,{value:M,children:k.jsx(gO,{as:a,ownerState:x,className:we(O.root,s),ref:n,...w,children:i})})});process.env.NODE_ENV!=="production"&&(wr.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,focused:r.bool,fullWidth:r.bool,hiddenLabel:r.bool,margin:r.oneOf(["dense","none","normal"]),required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function yO(e){return Ye("MuiFormHelperText",e)}const mb=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var bb;const vO=e=>{const{classes:t,contained:n,size:o,disabled:i,error:s,filled:l,focused:a,required:c}=e,u={root:["root",i&&"disabled",s&&"error",o&&`size${Re(o)}`,n&&"contained",a&&"focused",l&&"filled",c&&"required"]};return Xe(u,yO,t)},xO=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Re(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${mb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mb.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}}]}))),Kr=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:l="p",disabled:a,error:c,filled:u,focused:d,margin:p,required:h,variant:b,...y}=o,m=en(),g=lr({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),w={...o,component:l,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete w.ownerState;const x=vO(w);return k.jsx(xO,{as:l,className:we(x.root,s),ref:n,...y,ownerState:w,children:i===" "?bb||(bb=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(Kr.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});var gs={exports:{}},xt={};/**
|
|
110
111
|
* @license React
|
|
111
112
|
* react-is.production.min.js
|
|
112
113
|
*
|
|
@@ -114,7 +115,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
114
115
|
*
|
|
115
116
|
* This source code is licensed under the MIT license found in the
|
|
116
117
|
* LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/var
|
|
118
|
+
*/var gb;function CO(){if(gb)return xt;gb=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(g){if(typeof g=="object"&&g!==null){var w=g.$$typeof;switch(w){case e:switch(g=g.type,g){case n:case i:case o:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case a:case l:case c:case h:case p:case s:return g;default:return w}}case t:return w}}}return xt.ContextConsumer=l,xt.ContextProvider=s,xt.Element=e,xt.ForwardRef=c,xt.Fragment=n,xt.Lazy=h,xt.Memo=p,xt.Portal=t,xt.Profiler=i,xt.StrictMode=o,xt.Suspense=u,xt.SuspenseList=d,xt.isAsyncMode=function(){return!1},xt.isConcurrentMode=function(){return!1},xt.isContextConsumer=function(g){return m(g)===l},xt.isContextProvider=function(g){return m(g)===s},xt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},xt.isForwardRef=function(g){return m(g)===c},xt.isFragment=function(g){return m(g)===n},xt.isLazy=function(g){return m(g)===h},xt.isMemo=function(g){return m(g)===p},xt.isPortal=function(g){return m(g)===t},xt.isProfiler=function(g){return m(g)===i},xt.isStrictMode=function(g){return m(g)===o},xt.isSuspense=function(g){return m(g)===u},xt.isSuspenseList=function(g){return m(g)===d},xt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===i||g===o||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===p||g.$$typeof===s||g.$$typeof===l||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},xt.typeOf=m,xt}var Ct={};/**
|
|
118
119
|
* @license React
|
|
119
120
|
* react-is.development.js
|
|
120
121
|
*
|
|
@@ -122,17 +123,17 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
122
123
|
*
|
|
123
124
|
* This source code is licensed under the MIT license found in the
|
|
124
125
|
* LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/var
|
|
126
|
-
`)),S.props.disabled||(d==="selectedMenu"&&S.props.selected||C===-1)&&(C=T),C===T&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(C+=1,C>=l.length&&(C=-1))});const E=j.Children.map(l,(S,T)=>{if(T===C){const w={};return a&&(w.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(w.tabIndex=0),j.cloneElement(S,w)}return S});return N.jsx(lh,{role:"menu",ref:v,className:s,onKeyDown:h,tabIndex:i?0:-1,...y,children:E})});process.env.NODE_ENV!=="production"&&(ph.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ll.apply(null,arguments)}function fh(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Fl(e,t){return Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Fl(e,t)}function dh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fl(e,t)}const hh={disabled:!1};var gx=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const Yo=we.createContext(null);var yx=function(t){return t.scrollTop},Bn="unmounted",zr="exited",Vr="entering",sn="entered",Bl="exiting",hr=function(e){dh(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=i,s=l&&!l.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?s?(c=zr,a.appearStatus=Vr):c=sn:n.unmountOnExit||n.mountOnEnter?c=Bn:c=zr,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===Bn?{status:zr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==Vr&&l!==sn&&(a=Vr):(l===Vr||l===sn)&&(a=Bl)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,l,s;return a=l=s=i,i!=null&&typeof i!="number"&&(a=i.exit,l=i.enter,s=i.appear!==void 0?i.appear:l),{exit:a,enter:l,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this);l&&yx(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zr&&this.setState({status:Bn})},r.performEnter=function(i){var a=this,l=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[mn.findDOMNode(this),s],u=c[0],f=c[1],d=this.getTimeouts(),y=s?d.appear:d.enter;if(!i&&!l||hh.disabled){this.safeSetState({status:sn},function(){a.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Vr},function(){a.props.onEntering(u,f),a.onTransitionEnd(y,function(){a.safeSetState({status:sn},function(){a.props.onEntered(u,f)})})})},r.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:mn.findDOMNode(this);if(!a||hh.disabled){this.safeSetState({status:zr},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Bl},function(){i.props.onExiting(s),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:zr},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,l=!0;return this.nextCallback=function(s){l&&(l=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!l||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=c[0],f=c[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Bn)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=fh(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return we.createElement(Yo.Provider,{value:null},typeof l=="function"?l(i,s):we.cloneElement(we.Children.only(l),s))},t}(we.Component);hr.contextType=Yo,hr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,r,n,i,a){var l=e[t];return o.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,a)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var r=gx;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return r.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function ln(){}hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ln,onEntering:ln,onEntered:ln,onExit:ln,onExiting:ln,onExited:ln},hr.UNMOUNTED=Bn,hr.EXITED=zr,hr.ENTERING=Vr,hr.ENTERED=sn,hr.EXITING=Bl;function vx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ql(e,t){var r=function(a){return t&&we.isValidElement(a)?t(a):a},n=Object.create(null);return e&&we.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function bx(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var l,s={};for(var c in t){if(n[c])for(l=0;l<n[c].length;l++){var u=n[c][l];s[n[c][l]]=r(u)}s[c]=r(c)}for(l=0;l<i.length;l++)s[i[l]]=r(i[l]);return s}function Ur(e,t,r){return r[t]!=null?r[t]:e.props[t]}function xx(e,t){return ql(e.children,function(r){return we.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Ur(r,"appear",e),enter:Ur(r,"enter",e),exit:Ur(r,"exit",e)})})}function Ox(e,t,r){var n=ql(e.children),i=bx(t,n);return Object.keys(i).forEach(function(a){var l=i[a];if(we.isValidElement(l)){var s=a in t,c=a in n,u=t[a],f=we.isValidElement(u)&&!u.props.in;c&&(!s||f)?i[a]=we.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Ur(l,"exit",e),enter:Ur(l,"enter",e)}):!c&&s&&!f?i[a]=we.cloneElement(l,{in:!1}):c&&s&&we.isValidElement(u)&&(i[a]=we.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:Ur(l,"exit",e),enter:Ur(l,"enter",e)}))}}),i}var Ex=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Cx={component:"div",childFactory:function(t){return t}},zl=function(e){dh(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=a.handleExited.bind(vx(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var l=a.children,s=a.handleExited,c=a.firstRender;return{children:c?xx(i,s):Ox(i,l,s),firstRender:!1}},r.handleExited=function(i,a){var l=ql(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var c=Ll({},s.children);return delete c[i.key],{children:c}}))},r.render=function(){var i=this.props,a=i.component,l=i.childFactory,s=fh(i,["component","childFactory"]),c=this.state.contextValue,u=Ex(this.state.children).map(l);return delete s.appear,delete s.enter,delete s.exit,a===null?we.createElement(Yo.Provider,{value:c},u):we.createElement(Yo.Provider,{value:c},we.createElement(a,s,u))},t}(we.Component);zl.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},zl.defaultProps=Cx;const mh=e=>e.scrollTop;function Xo(e,t){const{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:i.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:i.transitionDelay}}function Vl(e){return`scale(${e}, ${e**2})`}const Sx={entering:{opacity:1,transform:Vl(1)},entered:{opacity:1,transform:"none"}},Ul=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jo=j.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:f,onExit:d,onExited:y,onExiting:m,style:b,timeout:h="auto",TransitionComponent:v=hr,...C}=t,E=Td(),S=j.useRef(),T=Nl(),w=j.useRef(null),A=Ot(w,_n(a),r),M=k=>D=>{if(k){const W=w.current;D===void 0?k(W):k(W,D)}},O=M(f),g=M((k,D)=>{mh(k);const{duration:W,delay:Z,easing:G}=Xo({style:b,timeout:h,easing:l},{mode:"enter"});let B;h==="auto"?(B=T.transitions.getAutoHeightDuration(k.clientHeight),S.current=B):B=W,k.style.transition=[T.transitions.create("opacity",{duration:B,delay:Z}),T.transitions.create("transform",{duration:Ul?B:B*.666,delay:Z,easing:G})].join(","),c&&c(k,D)}),p=M(u),x=M(m),R=M(k=>{const{duration:D,delay:W,easing:Z}=Xo({style:b,timeout:h,easing:l},{mode:"exit"});let G;h==="auto"?(G=T.transitions.getAutoHeightDuration(k.clientHeight),S.current=G):G=D,k.style.transition=[T.transitions.create("opacity",{duration:G,delay:W}),T.transitions.create("transform",{duration:Ul?G:G*.666,delay:Ul?W:W||G*.333,easing:Z})].join(","),k.style.opacity=0,k.style.transform=Vl(.75),d&&d(k)}),P=M(y),_=k=>{h==="auto"&&E.start(S.current||0,k),n&&n(w.current,k)};return N.jsx(v,{appear:i,in:s,nodeRef:w,onEnter:g,onEntered:p,onEntering:O,onExit:R,onExited:P,onExiting:x,addEndListener:_,timeout:h==="auto"?null:h,...C,children:(k,D)=>j.cloneElement(a,{style:{opacity:0,transform:Vl(.75),visibility:k==="exited"&&!s?"hidden":void 0,...Sx[k],...b,...a.props.style},ref:A,...D})})});process.env.NODE_ENV!=="production"&&(Jo.propTypes={addEndListener:o.func,appear:o.bool,children:Pn.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),Jo&&(Jo.muiSupportAuto=!0);function Tx(e){const t=Wt(e);return t.body===e?Cr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gh(e){return parseInt(Cr(e).getComputedStyle(e).paddingRight,10)||0}function wx(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function yh(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,l=>{const s=!a.includes(l),c=!wx(l);s&&c&&qn(l,i)})}function Wl(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Rx(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Tx(n)){const l=Rd(Cr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${gh(n)+l}px`;const s=Wt(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${gh(c)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Wt(n).body;else{const l=n.parentElement,s=Cr(n);a=(l==null?void 0:l.nodeName)==="HTML"&&s.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:l,property:s})=>{a?l.style.setProperty(s,a):l.style.removeProperty(s)})}}function Px(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class _x{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&qn(t.modalRef,!1);const i=Px(r);yh(r,t.mount,t.modalRef,i,!0);const a=Wl(this.containers,l=>l.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Wl(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=Rx(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Wl(this.containers,l=>l.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&qn(t.modalRef,r),yh(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&qn(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Ix=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kx(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 jx(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Ax(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||jx(e))}function Nx(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ix)).forEach((n,i)=>{const a=kx(n);a===-1||!Ax(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function $x(){return!0}function Qo(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=Nx,isEnabled:l=$x,open:s}=e,c=j.useRef(!1),u=j.useRef(null),f=j.useRef(null),d=j.useRef(null),y=j.useRef(null),m=j.useRef(!1),b=j.useRef(null),h=Ot(_n(t),b),v=j.useRef(null);j.useEffect(()=>{!s||!b.current||(m.current=!r)},[r,s]),j.useEffect(()=>{if(!s||!b.current)return;const S=Wt(b.current);return b.current.contains(S.activeElement)||(b.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(`
|
|
127
|
-
`)),b.current.setAttribute("tabIndex","-1")),m.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),j.useEffect(()=>{if(!s||!b.current)return;const S=Wt(b.current),T=M=>{v.current=M,!(n||!l()||M.key!=="Tab")&&S.activeElement===b.current&&M.shiftKey&&(c.current=!0,f.current&&f.current.focus())},w=()=>{var g,p;const M=b.current;if(M===null)return;if(!S.hasFocus()||!l()||c.current){c.current=!1;return}if(M.contains(S.activeElement)||n&&S.activeElement!==u.current&&S.activeElement!==f.current)return;if(S.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!m.current)return;let O=[];if((S.activeElement===u.current||S.activeElement===f.current)&&(O=a(b.current)),O.length>0){const x=!!((g=v.current)!=null&&g.shiftKey&&((p=v.current)==null?void 0:p.key)==="Tab"),R=O[0],P=O[O.length-1];typeof R!="string"&&typeof P!="string"&&(x?P.focus():R.focus())}else M.focus()};S.addEventListener("focusin",w),S.addEventListener("keydown",T,!0);const A=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(A),S.removeEventListener("focusin",w),S.removeEventListener("keydown",T,!0)}},[r,n,i,l,s,a]);const C=S=>{d.current===null&&(d.current=S.relatedTarget),m.current=!0,y.current=S.target;const T=t.props.onFocus;T&&T(S)},E=S=>{d.current===null&&(d.current=S.relatedTarget),m.current=!0};return N.jsxs(j.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:u,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:h,onFocus:C}),N.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Qo.propTypes={children:Pn,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Qo.propTypes=Od(Qo.propTypes));function Mx(e){return typeof e=="function"?e():e}const zn=j.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[l,s]=j.useState(null),c=Ot(j.isValidElement(n)?_n(n):null,r);if(cr(()=>{a||s(Mx(i)||document.body)},[i,a]),cr(()=>{if(l&&!a)return Do(r,l),()=>{Do(r,null)}},[r,l,a]),a){if(j.isValidElement(n)){const u={ref:c};return j.cloneElement(n,u)}return n}return l&&Dm.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(zn.propTypes={children:o.node,container:o.oneOfType([Er,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(zn.propTypes=Od(zn.propTypes));function Lt(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:l,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...d}=a,y=u[e]||n,m=Nd(f[e],i),{props:{component:b,...h},internalRef:v}=Ad({className:r,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:m}),C=Ot(v,m==null?void 0:m.ref,t.ref),E=e==="root"?b||c:b,S=Id(y,{...e==="root"&&!c&&!u[e]&&l,...e!=="root"&&!u[e]&&l,...h,...E&&{as:E},ref:C},i);return[y,S]}const Dx={entering:{opacity:1},entered:{opacity:1}},vh=j.forwardRef(function(t,r){const n=Nl(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,easing:c,in:u,onEnter:f,onEntered:d,onEntering:y,onExit:m,onExited:b,onExiting:h,style:v,timeout:C=i,TransitionComponent:E=hr,...S}=t,T=j.useRef(null),w=Ot(T,_n(s),r),A=_=>k=>{if(_){const D=T.current;k===void 0?_(D):_(D,k)}},M=A(y),O=A((_,k)=>{mh(_);const D=Xo({style:v,timeout:C,easing:c},{mode:"enter"});_.style.webkitTransition=n.transitions.create("opacity",D),_.style.transition=n.transitions.create("opacity",D),f&&f(_,k)}),g=A(d),p=A(h),x=A(_=>{const k=Xo({style:v,timeout:C,easing:c},{mode:"exit"});_.style.webkitTransition=n.transitions.create("opacity",k),_.style.transition=n.transitions.create("opacity",k),m&&m(_)}),R=A(b),P=_=>{a&&a(T.current,_)};return N.jsx(E,{appear:l,in:u,nodeRef:T,onEnter:O,onEntered:g,onEntering:M,onExit:x,onExited:R,onExiting:p,addEndListener:P,timeout:C,...S,children:(_,k)=>j.cloneElement(s,{style:{opacity:0,visibility:_==="exited"&&!u?"hidden":void 0,...Dx[_],...v,...s.props.style},ref:w,...k})})});process.env.NODE_ENV!=="production"&&(vh.propTypes={addEndListener:o.func,appear:o.bool,children:Pn.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function Lx(e){return We("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const Fx=e=>{const{ownerState:t,...r}=e;return r},Bx=e=>{const{classes:t,invisible:r}=e;return Ge({root:["root",r&&"invisible"]},Lx,t)},qx=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.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"}}]}),bh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:s=!1,open:c,components:u={},componentsProps:f={},slotProps:d={},slots:y={},TransitionComponent:m,transitionDuration:b,...h}=n,v={...n,component:l,invisible:s},C=Bx(v),E={transition:m,root:u.Root,...y},S={...f,...d},T={slots:E,slotProps:S},[w,A]=Lt("root",{elementType:qx,externalForwardedProps:T,className:Pe(C.root,a),ownerState:v}),[M,O]=Lt("transition",{elementType:vh,externalForwardedProps:T,ownerState:v}),g=Fx(O);return N.jsx(M,{in:c,timeout:b,...h,...g,children:N.jsx(w,{"aria-hidden":!0,...A,classes:C,ref:r,children:i})})});process.env.NODE_ENV!=="production"&&(bh.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function zx(e){return typeof e=="function"?e():e}function Vx(e){return e?e.props.hasOwnProperty("in"):!1}const xh=()=>{},Zo=new _x;function Ux(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:f}=e,d=j.useRef({}),y=j.useRef(null),m=j.useRef(null),b=Ot(m,f),[h,v]=j.useState(!u),C=Vx(s);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const S=()=>Wt(y.current),T=()=>(d.current.modalRef=m.current,d.current.mount=y.current,d.current),w=()=>{Zo.mount(T(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},A=pr(()=>{const k=zx(t)||S().body;Zo.add(T(),k),m.current&&w()}),M=()=>Zo.isTopModal(T()),O=pr(k=>{y.current=k,k&&(u&&M()?w():m.current&&qn(m.current,E))}),g=j.useCallback(()=>{Zo.remove(T(),E)},[E]);j.useEffect(()=>()=>{g()},[g]),j.useEffect(()=>{u?A():(!C||!i)&&g()},[u,g,C,i,A]);const p=k=>D=>{var W;(W=k.onKeyDown)==null||W.call(k,D),!(D.key!=="Escape"||D.which===229||!M())&&(r||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},x=k=>D=>{var W;(W=k.onClick)==null||W.call(k,D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(k={})=>{const D=kd(e);delete D.onTransitionEnter,delete D.onTransitionExited;const W={...D,...k};return{role:"presentation",...W,onKeyDown:p(W),ref:b}},getBackdropProps:(k={})=>{const D=k;return{"aria-hidden":!0,...D,onClick:x(D),open:u}},getTransitionProps:()=>{const k=()=>{v(!1),a&&a()},D=()=>{v(!0),l&&l(),i&&g()};return{onEnter:Ol(k,(s==null?void 0:s.props.onEnter)??xh),onExited:Ol(D,(s==null?void 0:s.props.onExited)??xh)}},rootRef:b,portalRef:O,isTopModal:M,exited:h,hasTransition:C}}function Wx(e){return We("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const Hx=e=>{const{open:t,exited:r,classes:n}=e;return Ge({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Wx,n)},Gx=xe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Ke(({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"}}]}))),Kx=xe(bh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Oh=j.forwardRef(function(t,r){const n=Je({name:"MuiModal",props:t}),{BackdropComponent:i=Kx,BackdropProps:a,classes:l,className:s,closeAfterTransition:c=!1,children:u,container:f,component:d,components:y={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:v=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:S=!1,hideBackdrop:T=!1,keepMounted:w=!1,onBackdropClick:A,onClose:M,onTransitionEnter:O,onTransitionExited:g,open:p,slotProps:x={},slots:R={},theme:P,..._}=n,k={...n,closeAfterTransition:c,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:v,disablePortal:C,disableRestoreFocus:E,disableScrollLock:S,hideBackdrop:T,keepMounted:w},{getRootProps:D,getBackdropProps:W,getTransitionProps:Z,portalRef:G,isTopModal:B,exited:Y,hasTransition:ae}=Ux({...k,rootRef:r}),oe={...k,exited:Y},ne=Hx(oe),ue={};if(u.props.tabIndex===void 0&&(ue.tabIndex="-1"),ae){const{onEnter:X,onExited:Re}=Z();ue.onEnter=X,ue.onExited=Re}const ce={..._,slots:{root:y.Root,backdrop:y.Backdrop,...R},slotProps:{...m,...x}},[ye,se]=Lt("root",{elementType:Gx,externalForwardedProps:ce,getSlotProps:D,additionalProps:{ref:r,as:d},ownerState:oe,className:Pe(s,ne==null?void 0:ne.root,!oe.open&&oe.exited&&(ne==null?void 0:ne.hidden))}),[le,te]=Lt("backdrop",{elementType:i,externalForwardedProps:ce,additionalProps:a,getSlotProps:X=>W({...X,onClick:Re=>{A&&A(Re),X!=null&&X.onClick&&X.onClick(Re)}}),className:Pe(a==null?void 0:a.className,ne==null?void 0:ne.backdrop),ownerState:oe}),ve=Ot(a==null?void 0:a.ref,te.ref);return!w&&!p&&(!ae||Y)?null:N.jsx(zn,{ref:G,container:f,disablePortal:C,children:N.jsxs(ye,{...se,children:[!T&&i?N.jsx(le,{...te,ref:ve}):null,N.jsx(Qo,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:B,open:p,children:j.cloneElement(u,ue)})]})})});process.env.NODE_ENV!=="production"&&(Oh.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Pn.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Er,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onBackdropClick:o.func,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Yx(e){return We("MuiPaper",e)}qe("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 Xx=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ge(a,Yx,i)},Jx=xe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Ke(({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)"}}]}))),Vn=j.forwardRef(function(t,r){var m;const n=Je({props:t,name:"MuiPaper"}),i=Nl(),{className:a,component:l="div",elevation:s=1,square:c=!1,variant:u="elevation",...f}=n,d={...n,component:l,elevation:s,square:c,variant:u},y=Xx(d);return process.env.NODE_ENV!=="production"&&i.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
|
|
128
|
-
`)),
|
|
129
|
-
`))}return{top:
|
|
130
|
-
`)),
|
|
126
|
+
*/var yb;function SO(){return yb||(yb=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,m=!1,g=!1,w=!1,x=!1,O;O=Symbol.for("react.module.reference");function T(q){return!!(typeof q=="string"||typeof q=="function"||q===n||q===i||x||q===o||q===u||q===d||w||q===b||y||m||g||typeof q=="object"&&q!==null&&(q.$$typeof===h||q.$$typeof===p||q.$$typeof===s||q.$$typeof===l||q.$$typeof===c||q.$$typeof===O||q.getModuleId!==void 0))}function R(q){if(typeof q=="object"&&q!==null){var ne=q.$$typeof;switch(ne){case e:var Z=q.type;switch(Z){case n:case i:case o:case u:case d:return Z;default:var te=Z&&Z.$$typeof;switch(te){case a:case l:case c:case h:case p:case s:return te;default:return ne}}case t:return ne}}}var A=l,N=s,S=e,v=c,f=n,C=h,P=p,M=t,D=i,I=o,j=u,$=d,F=!1,L=!1;function _(q){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(q){return L||(L=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function oe(q){return R(q)===l}function X(q){return R(q)===s}function ee(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function Y(q){return R(q)===c}function J(q){return R(q)===n}function se(q){return R(q)===h}function z(q){return R(q)===p}function H(q){return R(q)===t}function G(q){return R(q)===i}function ue(q){return R(q)===o}function U(q){return R(q)===u}function Q(q){return R(q)===d}Ct.ContextConsumer=A,Ct.ContextProvider=N,Ct.Element=S,Ct.ForwardRef=v,Ct.Fragment=f,Ct.Lazy=C,Ct.Memo=P,Ct.Portal=M,Ct.Profiler=D,Ct.StrictMode=I,Ct.Suspense=j,Ct.SuspenseList=$,Ct.isAsyncMode=_,Ct.isConcurrentMode=B,Ct.isContextConsumer=oe,Ct.isContextProvider=X,Ct.isElement=ee,Ct.isForwardRef=Y,Ct.isFragment=J,Ct.isLazy=se,Ct.isMemo=z,Ct.isPortal=H,Ct.isProfiler=G,Ct.isStrictMode=ue,Ct.isSuspense=U,Ct.isSuspenseList=Q,Ct.isValidElementType=T,Ct.typeOf=R}()),Ct}var vb;function wO(){return vb||(vb=1,process.env.NODE_ENV==="production"?gs.exports=CO():gs.exports=SO()),gs.exports}var ys=wO();const dr=E.createContext({});process.env.NODE_ENV!=="production"&&(dr.displayName="ListContext");function OO(e){return Ye("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const TO=e=>{const{classes:t,disablePadding:n,dense:o,subheader:i}=e;return Xe({root:["root",!n&&"padding",o&&"dense",i&&"subheader"]},OO,t)},EO=re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.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}}]}),vu=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiList"}),{children:i,className:s,component:l="ul",dense:a=!1,disablePadding:c=!1,subheader:u,...d}=o,p=E.useMemo(()=>({dense:a}),[a]),h={...o,component:l,dense:a,disablePadding:c},b=TO(h);return k.jsx(dr.Provider,{value:p,children:k.jsxs(EO,{as:l,className:we(b.root,s),ref:n,ownerState:h,...d,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(vu.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function xu(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xb(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Cb(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Wo(e,t,n,o,i,s){let l=!1,a=i(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const c=o?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!Cb(a,s)||c)a=i(e,a,n);else return a.focus(),!0}return!1}const vs=E.forwardRef(function(t,n){const{actions:o,autoFocus:i=!1,autoFocusItem:s=!1,children:l,className:a,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...h}=t,b=E.useRef(null),y=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vn(()=>{i&&b.current.focus()},[i]),E.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(O,{direction:T})=>{const R=!b.current.style.width;if(O.clientHeight<b.current.clientHeight&&R){const A=`${Lm(In(O))}px`;b.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=A,b.current.style.width=`calc(100% + ${A})`}return b.current}}),[]);const m=O=>{const T=b.current,R=O.key;if(O.ctrlKey||O.metaKey||O.altKey){d&&d(O);return}const N=sn(T).activeElement;if(R==="ArrowDown")O.preventDefault(),Wo(T,N,u,c,xu);else if(R==="ArrowUp")O.preventDefault(),Wo(T,N,u,c,xb);else if(R==="Home")O.preventDefault(),Wo(T,null,u,c,xu);else if(R==="End")O.preventDefault(),Wo(T,null,u,c,xb);else if(R.length===1){const S=y.current,v=R.toLowerCase(),f=performance.now();S.keys.length>0&&(f-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&v!==S.keys[0]&&(S.repeating=!1)),S.lastTime=f,S.keys.push(v);const C=N&&!S.repeating&&Cb(N,S);S.previousKeyMatched&&(C||Wo(T,N,!1,c,xu,S))?O.preventDefault():S.previousKeyMatched=!1}d&&d(O)},g=At(b,n);let w=-1;E.Children.forEach(l,(O,T)=>{if(!E.isValidElement(O)){w===T&&(w+=1,w>=l.length&&(w=-1));return}process.env.NODE_ENV!=="production"&&ys.isFragment(O)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
127
|
+
`)),O.props.disabled||(p==="selectedMenu"&&O.props.selected||w===-1)&&(w=T),w===T&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(w+=1,w>=l.length&&(w=-1))});const x=E.Children.map(l,(O,T)=>{if(T===w){const R={};return s&&(R.autoFocus=!0),O.props.tabIndex===void 0&&p==="selectedMenu"&&(R.tabIndex=0),E.cloneElement(O,R)}return O});return k.jsx(vu,{role:"menu",ref:g,className:a,onKeyDown:m,tabIndex:i?0:-1,...h,children:x})});process.env.NODE_ENV!=="production"&&(vs.propTypes={autoFocus:r.bool,autoFocusItem:r.bool,children:r.node,className:r.string,disabledItemsFocusable:r.bool,disableListWrap:r.bool,onKeyDown:r.func,variant:r.oneOf(["menu","selectedMenu"])});function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ho.apply(null,arguments)}function Cu(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function Su(e,t){return Su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Su(e,t)}function wu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Su(e,t)}function RO(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function PO(e,t){e.classList?e.classList.add(t):RO(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Sb(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function kO(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Sb(e.className,t):e.setAttribute("class",Sb(e.className&&e.className.baseVal||"",t))}const wb={disabled:!1};var MO=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.shape({enter:r.number,exit:r.number,appear:r.number}).isRequired]):null,IO=process.env.NODE_ENV!=="production"?r.oneOfType([r.string,r.shape({enter:r.string,exit:r.string,active:r.string}),r.shape({enter:r.string,enterDone:r.string,enterActive:r.string,exit:r.string,exitDone:r.string,exitActive:r.string})]):null;const xs=_e.createContext(null);var Ob=function(t){return t.scrollTop},Yo="unmounted",Or="exited",Tr="entering",Gr="entered",Ou="exiting",Cn=function(e){wu(t,e);function t(o,i){var s;s=e.call(this,o,i)||this;var l=i,a=l&&!l.isMounting?o.enter:o.appear,c;return s.appearStatus=null,o.in?a?(c=Or,s.appearStatus=Tr):c=Gr:o.unmountOnExit||o.mountOnEnter?c=Yo:c=Or,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var l=i.in;return l&&s.status===Yo?{status:Or}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==Tr&&l!==Gr&&(s=Tr):(l===Tr||l===Gr)&&(s=Ou)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,l,a;return s=l=a=i,i!=null&&typeof i!="number"&&(s=i.exit,l=i.enter,a=i.appear!==void 0?i.appear:l),{exit:s,enter:l,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===Tr){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:mo.findDOMNode(this);l&&Ob(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Or&&this.setState({status:Yo})},n.performEnter=function(i){var s=this,l=this.props.enter,a=this.context?this.context.isMounting:i,c=this.props.nodeRef?[a]:[mo.findDOMNode(this),a],u=c[0],d=c[1],p=this.getTimeouts(),h=a?p.appear:p.enter;if(!i&&!l||wb.disabled){this.safeSetState({status:Gr},function(){s.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Tr},function(){s.props.onEntering(u,d),s.onTransitionEnd(h,function(){s.safeSetState({status:Gr},function(){s.props.onEntered(u,d)})})})},n.performExit=function(){var i=this,s=this.props.exit,l=this.getTimeouts(),a=this.props.nodeRef?void 0:mo.findDOMNode(this);if(!s||wb.disabled){this.safeSetState({status:Or},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ou},function(){i.props.onExiting(a),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:Or},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,l=!0;return this.nextCallback=function(a){l&&(l=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:mo.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!l||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Yo)return null;var s=this.props,l=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 a=Cu(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _e.createElement(xs.Provider,{value:null},typeof l=="function"?l(i,a):_e.cloneElement(_e.Children.only(l),a))},t}(_e.Component);Cn.contextType=xs,Cn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:r.shape({current:typeof Element>"u"?r.any:function(e,t,n,o,i,s){var l=e[t];return r.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,n,o,i,s)}}),children:r.oneOfType([r.func.isRequired,r.element.isRequired]).isRequired,in:r.bool,mountOnEnter:r.bool,unmountOnExit:r.bool,appear:r.bool,enter:r.bool,exit:r.bool,timeout:function(t){var n=MO;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return n.apply(void 0,[t].concat(i))},addEndListener:r.func,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}:{};function Xr(){}Cn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xr,onEntering:Xr,onEntered:Xr,onExit:Xr,onExiting:Xr,onExited:Xr},Cn.UNMOUNTED=Yo,Cn.EXITED=Or,Cn.ENTERING=Tr,Cn.ENTERED=Gr,Cn.EXITING=Ou;var DO=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return PO(t,o)})},Tu=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return kO(t,o)})},Eu=function(e){wu(t,e);function t(){for(var o,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return o=e.call.apply(e,[this].concat(s))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(a,c){var u=o.resolveArguments(a,c),d=u[0],p=u[1];o.removeClasses(d,"exit"),o.addClass(d,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(a,c)},o.onEntering=function(a,c){var u=o.resolveArguments(a,c),d=u[0],p=u[1],h=p?"appear":"enter";o.addClass(d,h,"active"),o.props.onEntering&&o.props.onEntering(a,c)},o.onEntered=function(a,c){var u=o.resolveArguments(a,c),d=u[0],p=u[1],h=p?"appear":"enter";o.removeClasses(d,h),o.addClass(d,h,"done"),o.props.onEntered&&o.props.onEntered(a,c)},o.onExit=function(a){var c=o.resolveArguments(a),u=c[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(a)},o.onExiting=function(a){var c=o.resolveArguments(a),u=c[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(a)},o.onExited=function(a){var c=o.resolveArguments(a),u=c[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(a)},o.resolveArguments=function(a,c){return o.props.nodeRef?[o.props.nodeRef.current,a]:[a,c]},o.getClassNames=function(a){var c=o.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",p=u?""+d+a:c[a],h=u?p+"-active":c[a+"Active"],b=u?p+"-done":c[a+"Done"];return{baseClassName:p,activeClassName:h,doneClassName:b}},o}var n=t.prototype;return n.addClass=function(i,s,l){var a=this.getClassNames(s)[l+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;s==="appear"&&l==="done"&&u&&(a+=" "+u),l==="active"&&i&&Ob(i),a&&(this.appliedClasses[s][l]=a,DO(i,a))},n.removeClasses=function(i,s){var l=this.appliedClasses[s],a=l.base,c=l.active,u=l.done;this.appliedClasses[s]={},a&&Tu(i,a),c&&Tu(i,c),u&&Tu(i,u)},n.render=function(){var i=this.props;i.classNames;var s=Cu(i,["classNames"]);return _e.createElement(Cn,Ho({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(_e.Component);Eu.defaultProps={classNames:""},Eu.propTypes=process.env.NODE_ENV!=="production"?Ho({},Cn.propTypes,{classNames:IO,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}):{};function jO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ru(e,t){var n=function(s){return t&&_e.isValidElement(s)?t(s):s},o=Object.create(null);return e&&_e.Children.map(e,function(i){return i}).forEach(function(i){o[i.key]=n(i)}),o}function AO(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),i=[];for(var s in e)s in t?i.length&&(o[s]=i,i=[]):i.push(s);var l,a={};for(var c in t){if(o[c])for(l=0;l<o[c].length;l++){var u=o[c][l];a[o[c][l]]=n(u)}a[c]=n(c)}for(l=0;l<i.length;l++)a[i[l]]=n(i[l]);return a}function Er(e,t,n){return n[t]!=null?n[t]:e.props[t]}function NO(e,t){return Ru(e.children,function(n){return _e.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Er(n,"appear",e),enter:Er(n,"enter",e),exit:Er(n,"exit",e)})})}function _O(e,t,n){var o=Ru(e.children),i=AO(t,o);return Object.keys(i).forEach(function(s){var l=i[s];if(_e.isValidElement(l)){var a=s in t,c=s in o,u=t[s],d=_e.isValidElement(u)&&!u.props.in;c&&(!a||d)?i[s]=_e.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Er(l,"exit",e),enter:Er(l,"enter",e)}):!c&&a&&!d?i[s]=_e.cloneElement(l,{in:!1}):c&&a&&_e.isValidElement(u)&&(i[s]=_e.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:Er(l,"exit",e),enter:Er(l,"enter",e)}))}}),i}var $O=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},FO={component:"div",childFactory:function(t){return t}},Ko=function(e){wu(t,e);function t(o,i){var s;s=e.call(this,o,i)||this;var l=s.handleExited.bind(jO(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,s){var l=s.children,a=s.handleExited,c=s.firstRender;return{children:c?NO(i,a):_O(i,l,a),firstRender:!1}},n.handleExited=function(i,s){var l=Ru(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(a){var c=Ho({},a.children);return delete c[i.key],{children:c}}))},n.render=function(){var i=this.props,s=i.component,l=i.childFactory,a=Cu(i,["component","childFactory"]),c=this.state.contextValue,u=$O(this.state.children).map(l);return delete a.appear,delete a.enter,delete a.exit,s===null?_e.createElement(xs.Provider,{value:c},u):_e.createElement(xs.Provider,{value:c},_e.createElement(s,a,u))},t}(_e.Component);Ko.propTypes=process.env.NODE_ENV!=="production"?{component:r.any,children:r.node,appear:r.bool,enter:r.bool,exit:r.bool,childFactory:r.func}:{},Ko.defaultProps=FO;const Tb=e=>e.scrollTop;function Cs(e,t){const{timeout:n,easing:o,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:i.transitionDelay}}function Pu(e){return`scale(${e}, ${e**2})`}const VO={entering:{opacity:1,transform:Pu(1)},entered:{opacity:1,transform:"none"}},ku=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Go=E.forwardRef(function(t,n){const{addEndListener:o,appear:i=!0,children:s,easing:l,in:a,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:b,style:y,timeout:m="auto",TransitionComponent:g=Cn,...w}=t,x=Fm(),O=E.useRef(),T=Sr(),R=E.useRef(null),A=At(R,Do(s),n),N=I=>j=>{if(I){const $=R.current;j===void 0?I($):I($,j)}},S=N(d),v=N((I,j)=>{Tb(I);const{duration:$,delay:F,easing:L}=Cs({style:y,timeout:m,easing:l},{mode:"enter"});let _;m==="auto"?(_=T.transitions.getAutoHeightDuration(I.clientHeight),O.current=_):_=$,I.style.transition=[T.transitions.create("opacity",{duration:_,delay:F}),T.transitions.create("transform",{duration:ku?_:_*.666,delay:F,easing:L})].join(","),c&&c(I,j)}),f=N(u),C=N(b),P=N(I=>{const{duration:j,delay:$,easing:F}=Cs({style:y,timeout:m,easing:l},{mode:"exit"});let L;m==="auto"?(L=T.transitions.getAutoHeightDuration(I.clientHeight),O.current=L):L=j,I.style.transition=[T.transitions.create("opacity",{duration:L,delay:$}),T.transitions.create("transform",{duration:ku?L:L*.666,delay:ku?$:$||L*.333,easing:F})].join(","),I.style.opacity=0,I.style.transform=Pu(.75),p&&p(I)}),M=N(h),D=I=>{m==="auto"&&x.start(O.current||0,I),o&&o(R.current,I)};return k.jsx(g,{appear:i,in:a,nodeRef:R,onEnter:v,onEntered:f,onEntering:S,onExit:P,onExited:M,onExiting:C,addEndListener:D,timeout:m==="auto"?null:m,...w,children:(I,j)=>E.cloneElement(s,{style:{opacity:0,transform:Pu(.75),visibility:I==="exited"&&!a?"hidden":void 0,...VO[I],...y,...s.props.style},ref:A,...j})})});process.env.NODE_ENV!=="production"&&(Go.propTypes={addEndListener:r.func,appear:r.bool,children:Mo.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])}),Go&&(Go.muiSupportAuto=!0);function LO(e){const t=sn(e);return t.body===e?In(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Xo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Eb(e){return parseInt(In(e).getComputedStyle(e).paddingRight,10)||0}function BO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Rb(e,t,n,o,i){const s=[t,n,...o];[].forEach.call(e.children,l=>{const a=!s.includes(l),c=!BO(l);a&&c&&Xo(l,i)})}function Mu(e,t){let n=-1;return e.some((o,i)=>t(o)?(n=i,!0):!1),n}function qO(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(LO(o)){const l=Lm(In(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Eb(o)+l}px`;const a=sn(o).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Eb(c)+l}px`})}let s;if(o.parentNode instanceof DocumentFragment)s=sn(o).body;else{const l=o.parentElement,a=In(o);s=(l==null?void 0:l.nodeName)==="HTML"&&a.getComputedStyle(l).overflowY==="scroll"?l:o}n.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()=>{n.forEach(({value:s,el:l,property:a})=>{s?l.style.setProperty(a,s):l.style.removeProperty(a)})}}function zO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class UO{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Xo(t.modalRef,!1);const i=zO(n);Rb(n,t.mount,t.modalRef,i,!0);const s=Mu(this.containers,l=>l.container===n);return s!==-1?(this.containers[s].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),o)}mount(t,n){const o=Mu(this.containers,s=>s.modals.includes(t)),i=this.containers[o];i.restore||(i.restore=qO(i,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=Mu(this.containers,l=>l.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(o,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Xo(t.modalRef,n),Rb(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&Xo(l.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const WO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function HO(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 YO(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function KO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||YO(e))}function GO(e){const t=[],n=[];return Array.from(e.querySelectorAll(WO)).forEach((o,i)=>{const s=HO(o);s===-1||!KO(o)||(s===0?t.push(o):n.push({documentOrder:i,tabIndex:s,node:o}))}),n.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function XO(){return!0}function Qo(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:s=GO,isEnabled:l=XO,open:a}=e,c=E.useRef(!1),u=E.useRef(null),d=E.useRef(null),p=E.useRef(null),h=E.useRef(null),b=E.useRef(!1),y=E.useRef(null),m=At(Do(t),y),g=E.useRef(null);E.useEffect(()=>{!a||!y.current||(b.current=!n)},[n,a]),E.useEffect(()=>{if(!a||!y.current)return;const O=sn(y.current);return y.current.contains(O.activeElement)||(y.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(`
|
|
128
|
+
`)),y.current.setAttribute("tabIndex","-1")),b.current&&y.current.focus()),()=>{i||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[a]),E.useEffect(()=>{if(!a||!y.current)return;const O=sn(y.current),T=N=>{g.current=N,!(o||!l()||N.key!=="Tab")&&O.activeElement===y.current&&N.shiftKey&&(c.current=!0,d.current&&d.current.focus())},R=()=>{var v,f;const N=y.current;if(N===null)return;if(!O.hasFocus()||!l()||c.current){c.current=!1;return}if(N.contains(O.activeElement)||o&&O.activeElement!==u.current&&O.activeElement!==d.current)return;if(O.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let S=[];if((O.activeElement===u.current||O.activeElement===d.current)&&(S=s(y.current)),S.length>0){const C=!!((v=g.current)!=null&&v.shiftKey&&((f=g.current)==null?void 0:f.key)==="Tab"),P=S[0],M=S[S.length-1];typeof P!="string"&&typeof M!="string"&&(C?M.focus():P.focus())}else N.focus()};O.addEventListener("focusin",R),O.addEventListener("keydown",T,!0);const A=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(A),O.removeEventListener("focusin",R),O.removeEventListener("keydown",T,!0)}},[n,o,i,l,a,s]);const w=O=>{p.current===null&&(p.current=O.relatedTarget),b.current=!0,h.current=O.target;const T=t.props.onFocus;T&&T(O)},x=O=>{p.current===null&&(p.current=O.relatedTarget),b.current=!0};return k.jsxs(E.Fragment,{children:[k.jsx("div",{tabIndex:a?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:m,onFocus:w}),k.jsx("div",{tabIndex:a?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Qo.propTypes={children:Mo,disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableRestoreFocus:r.bool,getTabbable:r.func,isEnabled:r.func,open:r.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Qo.propTypes=Am(Qo.propTypes));function QO(e){return typeof e=="function"?e():e}const Zo=E.forwardRef(function(t,n){const{children:o,container:i,disablePortal:s=!1}=t,[l,a]=E.useState(null),c=At(E.isValidElement(o)?Do(o):null,n);if(vn(()=>{s||a(QO(i)||document.body)},[i,s]),vn(()=>{if(l&&!s)return ls(n,l),()=>{ls(n,null)}},[n,l,s]),s){if(E.isValidElement(o)){const u={ref:c};return E.cloneElement(o,u)}return o}return l&&Uv.createPortal(o,l)});process.env.NODE_ENV!=="production"&&(Zo.propTypes={children:r.node,container:r.oneOfType([Xn,r.func]),disablePortal:r.bool}),process.env.NODE_ENV!=="production"&&(Zo.propTypes=Am(Zo.propTypes));function tn(e,t){const{className:n,elementType:o,ownerState:i,externalForwardedProps:s,internalForwardedProps:l,...a}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=s,h=u[e]||o,b=Ym(d[e],i),{props:{component:y,...m},internalRef:g}=Hm({className:n,...a,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:b}),w=At(g,b==null?void 0:b.ref,t.ref),x=e==="root"?y||c:y,O=zm(h,{...e==="root"&&!c&&!u[e]&&l,...e!=="root"&&!u[e]&&l,...m,...x&&{as:x},ref:w},i);return[h,O]}const ZO={entering:{opacity:1},entered:{opacity:1}},Rr=E.forwardRef(function(t,n){const o=Sr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:a,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:b,onExited:y,onExiting:m,style:g,timeout:w=i,TransitionComponent:x=Cn,...O}=t,T=E.useRef(null),R=At(T,Do(a),n),A=D=>I=>{if(D){const j=T.current;I===void 0?D(j):D(j,I)}},N=A(h),S=A((D,I)=>{Tb(D);const j=Cs({style:g,timeout:w,easing:c},{mode:"enter"});D.style.webkitTransition=o.transitions.create("opacity",j),D.style.transition=o.transitions.create("opacity",j),d&&d(D,I)}),v=A(p),f=A(m),C=A(D=>{const I=Cs({style:g,timeout:w,easing:c},{mode:"exit"});D.style.webkitTransition=o.transitions.create("opacity",I),D.style.transition=o.transitions.create("opacity",I),b&&b(D)}),P=A(y),M=D=>{s&&s(T.current,D)};return k.jsx(x,{appear:l,in:u,nodeRef:T,onEnter:S,onEntered:v,onEntering:N,onExit:C,onExited:P,onExiting:f,addEndListener:M,timeout:w,...O,children:(D,I)=>E.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!u?"hidden":void 0,...ZO[D],...g,...a.props.style},ref:R,...I})})});process.env.NODE_ENV!=="production"&&(Rr.propTypes={addEndListener:r.func,appear:r.bool,children:Mo.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function JO(e){return Ye("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const eT=e=>{const{ownerState:t,...n}=e;return n},tT=e=>{const{classes:t,invisible:n}=e;return Xe({root:["root",n&&"invisible"]},JO,t)},nT=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.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"}}]}),Iu=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",invisible:a=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:b,transitionDuration:y,...m}=o,g={...o,component:l,invisible:a},w=tT(g),x={transition:b,root:u.Root,...h},O={...d,...p},T={slots:x,slotProps:O},[R,A]=tn("root",{elementType:nT,externalForwardedProps:T,className:we(w.root,s),ownerState:g}),[N,S]=tn("transition",{elementType:Rr,externalForwardedProps:T,ownerState:g}),v=eT(S);return k.jsx(N,{in:c,timeout:y,...m,...v,children:k.jsx(R,{"aria-hidden":!0,...A,classes:w,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(Iu.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),invisible:r.bool,open:r.bool.isRequired,slotProps:r.shape({root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function rT(e){return typeof e=="function"?e():e}function oT(e){return e?e.props.hasOwnProperty("in"):!1}const Pb=()=>{},Ss=new UO;function iT(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:a,onClose:c,open:u,rootRef:d}=e,p=E.useRef({}),h=E.useRef(null),b=E.useRef(null),y=At(b,d),[m,g]=E.useState(!u),w=oT(a);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const O=()=>sn(h.current),T=()=>(p.current.modalRef=b.current,p.current.mount=h.current,p.current),R=()=>{Ss.mount(T(),{disableScrollLock:o}),b.current&&(b.current.scrollTop=0)},A=pn(()=>{const I=rT(t)||O().body;Ss.add(T(),I),b.current&&R()}),N=()=>Ss.isTopModal(T()),S=pn(I=>{h.current=I,I&&(u&&N()?R():b.current&&Xo(b.current,x))}),v=E.useCallback(()=>{Ss.remove(T(),x)},[x]);E.useEffect(()=>()=>{v()},[v]),E.useEffect(()=>{u?A():(!w||!i)&&v()},[u,v,w,i,A]);const f=I=>j=>{var $;($=I.onKeyDown)==null||$.call(I,j),!(j.key!=="Escape"||j.which===229||!N())&&(n||(j.stopPropagation(),c&&c(j,"escapeKeyDown")))},C=I=>j=>{var $;($=I.onClick)==null||$.call(I,j),j.target===j.currentTarget&&c&&c(j,"backdropClick")};return{getRootProps:(I={})=>{const j=Um(e);delete j.onTransitionEnter,delete j.onTransitionExited;const $={...j,...I};return{role:"presentation",...$,onKeyDown:f($),ref:y}},getBackdropProps:(I={})=>{const j=I;return{"aria-hidden":!0,...j,onClick:C(j),open:u}},getTransitionProps:()=>{const I=()=>{g(!1),s&&s()},j=()=>{g(!0),l&&l(),i&&v()};return{onEnter:uu(I,(a==null?void 0:a.props.onEnter)??Pb),onExited:uu(j,(a==null?void 0:a.props.onExited)??Pb)}},rootRef:y,portalRef:S,isTopModal:N,exited:m,hasTransition:w}}function sT(e){return Ye("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const aT=e=>{const{open:t,exited:n,classes:o}=e;return Xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},sT,o)},lT=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Qe(({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"}}]}))),cT=re(Iu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Du=E.forwardRef(function(t,n){const o=tt({name:"MuiModal",props:t}),{BackdropComponent:i=cT,BackdropProps:s,classes:l,className:a,closeAfterTransition:c=!1,children:u,container:d,component:p,components:h={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:w=!1,disableRestoreFocus:x=!1,disableScrollLock:O=!1,hideBackdrop:T=!1,keepMounted:R=!1,onBackdropClick:A,onClose:N,onTransitionEnter:S,onTransitionExited:v,open:f,slotProps:C={},slots:P={},theme:M,...D}=o,I={...o,closeAfterTransition:c,disableAutoFocus:y,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:w,disableRestoreFocus:x,disableScrollLock:O,hideBackdrop:T,keepMounted:R},{getRootProps:j,getBackdropProps:$,getTransitionProps:F,portalRef:L,isTopModal:_,exited:B,hasTransition:oe}=iT({...I,rootRef:n}),X={...I,exited:B},ee=aT(X),Y={};if(u.props.tabIndex===void 0&&(Y.tabIndex="-1"),oe){const{onEnter:U,onExited:Q}=F();Y.onEnter=U,Y.onExited=Q}const J={...D,slots:{root:h.Root,backdrop:h.Backdrop,...P},slotProps:{...b,...C}},[se,z]=tn("root",{elementType:lT,externalForwardedProps:J,getSlotProps:j,additionalProps:{ref:n,as:p},ownerState:X,className:we(a,ee==null?void 0:ee.root,!X.open&&X.exited&&(ee==null?void 0:ee.hidden))}),[H,G]=tn("backdrop",{elementType:i,externalForwardedProps:J,additionalProps:s,getSlotProps:U=>$({...U,onClick:Q=>{A&&A(Q),U!=null&&U.onClick&&U.onClick(Q)}}),className:we(s==null?void 0:s.className,ee==null?void 0:ee.backdrop),ownerState:X}),ue=At(s==null?void 0:s.ref,G.ref);return!R&&!f&&(!oe||B)?null:k.jsx(Zo,{ref:L,container:d,disablePortal:w,children:k.jsxs(se,{...z,children:[!T&&i?k.jsx(H,{...G,ref:ue}):null,k.jsx(Qo,{disableEnforceFocus:m,disableAutoFocus:y,disableRestoreFocus:x,isEnabled:_,open:f,children:E.cloneElement(u,Y)})]})})});process.env.NODE_ENV!=="production"&&(Du.propTypes={BackdropComponent:r.elementType,BackdropProps:r.object,children:Mo.isRequired,classes:r.object,className:r.string,closeAfterTransition:r.bool,component:r.elementType,components:r.shape({Backdrop:r.elementType,Root:r.elementType}),componentsProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([Xn,r.func]),disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableEscapeKeyDown:r.bool,disablePortal:r.bool,disableRestoreFocus:r.bool,disableScrollLock:r.bool,hideBackdrop:r.bool,keepMounted:r.bool,onBackdropClick:r.func,onClose:r.func,onTransitionEnter:r.func,onTransitionExited:r.func,open:r.bool.isRequired,slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function uT(e){return Ye("MuiPaper",e)}qe("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 dT=e=>{const{square:t,elevation:n,variant:o,classes:i}=e,s={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Xe(s,uT,i)},pT=re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Qe(({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)"}}]}))),pr=E.forwardRef(function(t,n){var b;const o=tt({props:t,name:"MuiPaper"}),i=Sr(),{className:s,component:l="div",elevation:a=1,square:c=!1,variant:u="elevation",...d}=o,p={...o,component:l,elevation:a,square:c,variant:u},h=dT(p);return process.env.NODE_ENV!=="production"&&i.shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
129
|
+
`)),k.jsx(pT,{as:l,ownerState:p,className:we(h.root,s),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[a],...i.vars&&{"--Paper-overlay":(b=i.vars.overlays)==null?void 0:b[a]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${et("#fff",gu(a))}, ${et("#fff",gu(a))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(pr.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:Mn(fu,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["elevation","outlined"]),r.string])});function fT(e){return Ye("MuiPopover",e)}qe("MuiPopover",["root","paper"]);function kb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Mb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ib(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ws(e){return typeof e=="function"?e():e}const hT=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},fT,t)},mT=re(Du,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Db=re(pr,{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}),jb=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:h=8,marginThreshold:b=16,open:y,PaperProps:m={},slots:g={},slotProps:w={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:O=Go,transitionDuration:T="auto",TransitionProps:{onEntering:R,...A}={},disableScrollLock:N=!1,...S}=o,v=(w==null?void 0:w.paper)??m,f=E.useRef(),C={...o,anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:b,externalPaperSlotProps:v,transformOrigin:x,TransitionComponent:O,transitionDuration:T,TransitionProps:A},P=hT(C),M=E.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(a||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),a;const G=ws(s),ue=G&&G.nodeType===1?G:sn(f.current).body,U=ue.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Q=ue.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Q.top===0&&Q.left===0&&Q.right===0&&Q.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(`
|
|
130
|
+
`))}return{top:U.top+kb(U,l.vertical),left:U.left+Mb(U,l.horizontal)}},[s,l.horizontal,l.vertical,a,c]),D=E.useCallback(G=>({vertical:kb(G,x.vertical),horizontal:Mb(G,x.horizontal)}),[x.horizontal,x.vertical]),I=E.useCallback(G=>{const ue={width:G.offsetWidth,height:G.offsetHeight},U=D(ue);if(c==="none")return{top:null,left:null,transformOrigin:Ib(U)};const Q=M();let q=Q.top-U.vertical,ne=Q.left-U.horizontal;const Z=q+ue.height,te=ne+ue.width,le=In(ws(s)),fe=le.innerHeight-b,xe=le.innerWidth-b;if(b!==null&&q<b){const Ee=q-b;q-=Ee,U.vertical+=Ee}else if(b!==null&&Z>fe){const Ee=Z-fe;q-=Ee,U.vertical+=Ee}if(process.env.NODE_ENV!=="production"&&ue.height>fe&&ue.height&&fe&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ue.height-fe}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
131
|
+
`)),b!==null&&ne<b){const Ee=ne-b;ne-=Ee,U.horizontal+=Ee}else if(te>xe){const Ee=te-xe;ne-=Ee,U.horizontal+=Ee}return{top:`${Math.round(q)}px`,left:`${Math.round(ne)}px`,transformOrigin:Ib(U)}},[s,c,M,D,b]),[j,$]=E.useState(y),F=E.useCallback(()=>{const G=f.current;if(!G)return;const ue=I(G);ue.top!==null&&G.style.setProperty("top",ue.top),ue.left!==null&&(G.style.left=ue.left),G.style.transformOrigin=ue.transformOrigin,$(!0)},[I]);E.useEffect(()=>(N&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[s,N,F]);const L=(G,ue)=>{R&&R(G,ue),F()},_=()=>{$(!1)};E.useEffect(()=>{y&&F()}),E.useImperativeHandle(i,()=>y?{updatePosition:()=>{F()}}:null,[y,F]),E.useEffect(()=>{if(!y)return;const G=as(()=>{F()}),ue=In(s);return ue.addEventListener("resize",G),()=>{G.clear(),ue.removeEventListener("resize",G)}},[s,y,F]);let B=T;T==="auto"&&!O.muiSupportAuto&&(B=void 0);const oe=p||(s?sn(ws(s)).body:void 0),X={slots:g,slotProps:{...w,paper:v}},[ee,Y]=tn("paper",{elementType:Db,externalForwardedProps:X,additionalProps:{elevation:h,className:we(P.paper,v==null?void 0:v.className),style:j?v.style:{...v.style,opacity:0}},ownerState:C}),[J,{slotProps:se,...z}]=tn("root",{elementType:mT,externalForwardedProps:X,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:oe,open:y},ownerState:C,className:we(P.root,d)}),H=At(f,Y.ref);return k.jsx(J,{...z,...!$o(J)&&{slotProps:se,disableScrollLock:N},...S,ref:n,children:k.jsx(O,{appear:!0,in:y,onEntering:L,onExited:_,timeout:B,...A,children:k.jsx(ee,{...Y,ref:H,children:u})})})});process.env.NODE_ENV!=="production"&&(jb.propTypes={action:Yt,anchorEl:Mn(r.oneOfType([Xn,r.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=ws(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.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(`
|
|
131
132
|
`))}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(`
|
|
132
|
-
`))}return null}),anchorOrigin:
|
|
133
|
-
`)),
|
|
134
|
-
`));let
|
|
135
|
-
`))}},[ht,pe,E,S,Z]),Ye&&(E?Fe.length===0?Ne=null:Ne=Fe.reduce((Ee,Ae,at)=>(Ee.push(Ae),at<Fe.length-1&&Ee.push(", "),Ee),[]):Ne=be);let pt=ye;!l&&ce&&ne&&(pt=ve.clientWidth);let Ue;typeof P<"u"?Ue=P:Ue=d?null:0;const Be=R.id||(S?`mui-component-select-${S}`:void 0),st={...t,variant:D,value:Z,open:$e,error:m},De=yO(st),Ze={...C.PaperProps,...(ft=C.slotProps)==null?void 0:ft.paper},mt=vo();return N.jsxs(j.Fragment,{children:[N.jsx(dO,{as:"div",ref:te,tabIndex:Ue,role:"combobox","aria-controls":mt,"aria-disabled":d?"true":void 0,"aria-expanded":$e?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:Te,onMouseDown:d||p?null:Re,onBlur:He,onFocus:M,...R,ownerState:st,className:Pe(R.className,De.select,c),id:Be,children:gO(Ne)?kh||(kh=N.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ne}),N.jsx(mO,{"aria-invalid":m,value:Array.isArray(Z)?Z.join(","):Z,name:S,ref:ae,"aria-hidden":!0,onChange:de,tabIndex:-1,disabled:d,className:De.nativeInput,autoFocus:a,...W,ownerState:st}),N.jsx(hO,{as:b,className:De.icon,ownerState:st}),N.jsx(Rh,{id:`menu-${S||""}`,anchorEl:ve,open:$e,onClose:z,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:mt,...C.MenuListProps},slotProps:{...C.slotProps,paper:{...Ze,style:{minWidth:pt,...Ze!=null?Ze.style:null}}},children:Ct})]})});process.env.NODE_ENV!=="production"&&(Ah.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Dt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const Nh=_t(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vO=e=>{const{classes:t}=e;return t},Gl={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Nt(e)&&e!=="variant",slot:"Root"},bO=xe(An,Gl)(""),xO=xe(Mn,Gl)(""),OO=xe($n,Gl)(""),Wn=j.forwardRef(function(t,r){const n=Je({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:f=Nh,id:d,input:y,inputProps:m,label:b,labelId:h,MenuProps:v,multiple:C=!1,native:E=!1,onClose:S,onOpen:T,open:w,renderValue:A,SelectDisplayProps:M,variant:O="outlined",...g}=n,p=E?Ih:Ah,x=dr(),R=jr({props:n,muiFormControl:x,states:["variant","error"]}),P=R.variant||O,_={...n,variant:P,classes:l},k=vO(_),{root:D,...W}=k,Z=y||{standard:N.jsx(bO,{ownerState:_}),outlined:N.jsx(xO,{label:b,ownerState:_}),filled:N.jsx(OO,{ownerState:_})}[P],G=Ot(r,_n(Z));return N.jsx(j.Fragment,{children:j.cloneElement(Z,{inputComponent:p,inputProps:{children:a,error:R.error,IconComponent:f,variant:P,type:void 0,multiple:C,...E?{id:d}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:h,MenuProps:v,onClose:S,onOpen:T,open:w,renderValue:A,SelectDisplayProps:{id:d,...M}},...m,classes:m?At(W,m.classes):W,...y?y.props.inputProps:{}},...(C&&E||u)&&P==="outlined"?{notched:!0}:{},ref:G,className:Pe(Z.props.className,s,k.root),...!y&&{variant:P},...g})})});process.env.NODE_ENV!=="production"&&(Wn.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),Wn.muiName="Select";function EO(e){return We("MuiTextField",e)}qe("MuiTextField",["root"]);const CO={standard:An,filled:$n,outlined:Mn},SO=e=>{const{classes:t}=e;return Ge({root:["root"]},EO,t)},TO=xe(an,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ti=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:s,color:c="primary",defaultValue:u,disabled:f=!1,error:d=!1,FormHelperTextProps:y,fullWidth:m=!1,helperText:b,id:h,InputLabelProps:v,inputProps:C,InputProps:E,inputRef:S,label:T,maxRows:w,minRows:A,multiline:M=!1,name:O,onBlur:g,onChange:p,onFocus:x,placeholder:R,required:P=!1,rows:_,select:k=!1,SelectProps:D,slots:W={},slotProps:Z={},type:G,value:B,variant:Y="outlined",...ae}=n,oe={...n,autoFocus:a,color:c,disabled:f,error:d,fullWidth:m,multiline:M,required:P,select:k,variant:Y},ne=SO(oe);process.env.NODE_ENV!=="production"&&k&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ue=vo(h),ce=b&&ue?`${ue}-helper-text`:void 0,ye=T&&ue?`${ue}-label`:void 0,se=CO[Y],le={slots:W,slotProps:{input:E,inputLabel:v,htmlInput:C,formHelperText:y,select:D,...Z}},te={},ve=le.slotProps.inputLabel;Y==="outlined"&&(ve&&typeof ve.shrink<"u"&&(te.notched=ve.shrink),te.label=T),k&&((!D||!D.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[X,Re]=Lt("input",{elementType:se,externalForwardedProps:le,additionalProps:te,ownerState:oe}),[z,pe]=Lt("inputLabel",{elementType:Ho,externalForwardedProps:le,ownerState:oe}),[de,Ce]=Lt("htmlInput",{elementType:"input",externalForwardedProps:le,ownerState:oe}),[Te,$e]=Lt("formHelperText",{elementType:Ln,externalForwardedProps:le,ownerState:oe}),[He,Ne]=Lt("select",{elementType:Wn,externalForwardedProps:le,ownerState:oe}),be=N.jsx(X,{"aria-describedby":ce,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:m,multiline:M,name:O,rows:_,maxRows:w,minRows:A,type:G,value:B,id:ue,inputRef:S,onBlur:g,onChange:p,onFocus:x,placeholder:R,inputProps:Ce,slots:{input:W.htmlInput?de:void 0},...Re});return N.jsxs(TO,{className:Pe(ne.root,s),disabled:f,error:d,fullWidth:m,ref:r,required:P,color:c,variant:Y,ownerState:oe,...ae,children:[T!=null&&T!==""&&N.jsx(z,{htmlFor:ue,id:ye,...pe,children:T}),k?N.jsx(He,{"aria-describedby":ce,id:ue,labelId:ye,value:B,input:be,...Ne,children:l}):be,b&&N.jsx(Te,{id:ce,...$e,children:b})]})});process.env.NODE_ENV!=="production"&&(ti.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Dt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});class $h extends we.Component{constructor(t){super(t);const{model:r,form:n,value:i,setDefault:a}=this.props,{key:l}=n;a(l,r,n,i)}render(){const{form:t,error:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a},otherProps:l}=this.props;return N.jsx(ti,{type:t.type,label:t.title&&a(t.title),placeholder:t.placeholder&&a(t.placeholder),helperText:(r||t.description)&&a(r||t.description),error:!!r,onChange:i,value:n||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...l,...t.otherProps})}}$h.defaultProps={otherProps:void 0};const Hn=jt($h),wO=jt(e=>{const{form:t,value:r,localization:{getLocalizedNumber:n},onChangeValidate:i}=e;let a=r||r===0?r:"";t.useLocalizer&&(a=n(a));const l=s=>{const c=t.schema?t.schema.type:t.type;let u=null;if(c==="integer")u=parseInt(s.target.value,10);else if(c==="number"){const f=s.target.value.split(".");f.length<2?u=parseInt(s.target.value,10):f.length>1&&(f[1].length>0?u=parseFloat(s.target.value):u=`${parseInt(f[0],10)}.`)}i(u)};return N.jsx(Hn,{...e,form:{...t,type:"string"},value:a,otherProps:{onChange:l}})}),RO=jt(e=>{const{form:t}=e;return N.jsx(Hn,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})}),PO=jt(e=>{const{model:t,form:r,value:n,error:i,setDefault:a,onChangeValidate:l}=e,{key:s,title:c}=r;a(s,t,r,n),we.useState("write");const[u,f]=we.useState(n);return we.useEffect(()=>{l({target:{value:u}})},[u]),N.jsxs(we.Fragment,{children:[N.jsx(Nr,{required:r.required,children:c}),"form.readonly ? ",N.jsx(gc.Markdown,{source:markdownVal})," : ",N.jsx(gc,{value:n,onChange:d=>f(d)}),i?N.jsx(Ln,{error:!0,children:i}):null]})}),Mh={text:"name",value:"value"};class _O extends we.Component{constructor(){super(...arguments);Tt(this,"handleUpdate",(r,n)=>{const{key:i}=this.props.form,{type:a}=this.props.form.schema;return this.props.onChange(i,r[Mh.value],a,this.props.form)});Tt(this,"handleInit",r=>{if(!this.props.form.schema||!this.props.form.schema.enum)return r.toString();const n=this.props.form.schema.enumNames||this.props.form.schema.enum,i=this.props.form.schema.enum;return n[i.indexOf(r)]||r.toString()})}render(){const r=(i=>{switch(i){case"fuzzy":return AutoComplete.fuzzyFilter;default:return AutoComplete.caseInsensitiveFilter}})(this.props.form.filter),n=this.props.value&&this.handleInit(this.props.value);return N.jsx("div",{className:this.props.form.htmlClass,children:N.jsx(AutoComplete,{type:this.props.form.type,floatingLabelText:this.props.form.title,hintText:this.props.form.placeholder,errorText:this.props.error,onNewRequest:this.handleUpdate,disabled:this.props.form.readonly,style:this.props.form.style||{width:"100%"},openOnFocus:!0,searchText:n,dataSource:this.props.form.titleMap||["Loading..."],filter:r,maxSearchResults:this.props.form.maxSearchResults||5,dataSourceConfig:Mh})})}}const IO=jt(_O);class ri{constructor(){Tt(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 ri}static use(){const t=Sd(ri.create).current,[r,n]=j.useState(!1);return t.shouldMount=r,t.setShouldMount=n,j.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=jO(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function kO(){return ri.use()}function jO(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function Dh(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:c,timeout:u}=e,[f,d]=j.useState(!1),y=Pe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},b=Pe(r.child,f&&r.childLeaving,n&&r.childPulsate);return!s&&!f&&d(!0),j.useEffect(()=>{if(!s&&c!=null){const h=setTimeout(c,u);return()=>{clearTimeout(h)}}},[c,s,u]),N.jsx("span",{className:y,style:m,children:N.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(Dh.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const rr=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kl=550,AO=80,NO=hn.keyframes`
|
|
133
|
+
`))}return null}),anchorOrigin:r.shape({horizontal:r.oneOfType([r.oneOf(["center","left","right"]),r.number]).isRequired,vertical:r.oneOfType([r.oneOf(["bottom","center","top"]),r.number]).isRequired}),anchorPosition:r.shape({left:r.number.isRequired,top:r.number.isRequired}),anchorReference:r.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:r.elementType,BackdropProps:r.object,children:r.node,classes:r.object,className:r.string,container:r.oneOfType([Xn,r.func]),disableScrollLock:r.bool,elevation:fu,marginThreshold:r.number,onClose:r.func,open:r.bool.isRequired,PaperProps:r.shape({component:ss}),slotProps:r.shape({paper:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({paper:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transformOrigin:r.shape({horizontal:r.oneOfType([r.oneOf(["center","left","right"]),r.number]).isRequired,vertical:r.oneOfType([r.oneOf(["bottom","center","top"]),r.number]).isRequired}),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object});function bT(e){return Ye("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const gT={vertical:"top",horizontal:"right"},yT={vertical:"top",horizontal:"left"},vT=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"],list:["list"]},bT,t)},xT=re(jb,{shouldForwardProp:e=>Xt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CT=re(Db,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ST=re(vs,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ab=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:a=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:b="auto",TransitionProps:{onEntering:y,...m}={},variant:g="selectedMenu",slots:w={},slotProps:x={},...O}=o,T=Gt(),R={...o,autoFocus:i,disableAutoFocusItem:a,MenuListProps:c,onEntering:y,PaperProps:p,transitionDuration:b,TransitionProps:m,variant:g},A=vT(R),N=i&&!a&&d,S=E.useRef(null),v=(j,$)=>{S.current&&S.current.adjustStyleForScrollbar(j,{direction:T?"rtl":"ltr"}),y&&y(j,$)},f=j=>{j.key==="Tab"&&(j.preventDefault(),u&&u(j,"tabKeyDown"))};let C=-1;E.Children.map(s,(j,$)=>{E.isValidElement(j)&&(process.env.NODE_ENV!=="production"&&ys.isFragment(j)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
134
|
+
`)),j.props.disabled||(g==="selectedMenu"&&j.props.selected||C===-1)&&(C=$))});const P=w.paper??CT,M=x.paper??p,D=Cr({elementType:w.root,externalSlotProps:x.root,ownerState:R,className:[A.root,l]}),I=Cr({elementType:P,externalSlotProps:M,ownerState:R,className:A.paper});return k.jsx(xT,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?gT:yT,slots:{paper:P,root:w.root},slotProps:{root:D,paper:I},open:d,ref:n,transitionDuration:b,TransitionProps:{onEntering:v,...m},ownerState:R,...O,classes:h,children:k.jsx(ST,{onKeyDown:f,actions:S,autoFocus:i&&(C===-1||a),autoFocusItem:N,variant:g,...c,className:we(A.list,c.className),children:s})})});process.env.NODE_ENV!=="production"&&(Ab.propTypes={anchorEl:r.oneOfType([Xn,r.func]),autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,disableAutoFocusItem:r.bool,MenuListProps:r.object,onClose:r.func,open:r.bool.isRequired,PaperProps:r.object,PopoverClasses:r.object,slotProps:r.shape({paper:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({paper:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transitionDuration:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object,variant:r.oneOf(["menu","selectedMenu"])});function wT(e){return Ye("MuiNativeSelect",e)}const ju=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),OT=e=>{const{classes:t,variant:n,disabled:o,multiple:i,open:s,error:l}=e,a={select:["select",n,o&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${Re(n)}`,s&&"iconOpen",o&&"disabled"]};return Xe(a,wT,t)},Nb=re("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ju.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}}}]})),TT=re(Nb,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ju.multiple}`]:t.multiple}]}})({}),_b=re("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${ju.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}}]})),ET=re(_b,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Re(n.variant)}`],n.open&&t.iconOpen]}})({}),$b=E.forwardRef(function(t,n){const{className:o,disabled:i,error:s,IconComponent:l,inputRef:a,variant:c="standard",...u}=t,d={...t,disabled:i,variant:c,error:s},p=OT(d);return k.jsxs(E.Fragment,{children:[k.jsx(TT,{ownerState:d,className:we(p.select,o),disabled:i,ref:a||n,...u}),t.multiple?null:k.jsx(ET,{as:l,ownerState:d,className:p.icon})]})});process.env.NODE_ENV!=="production"&&($b.propTypes={children:r.node,classes:r.object,className:r.string,disabled:r.bool,error:r.bool,IconComponent:r.elementType.isRequired,inputRef:Yt,multiple:r.bool,name:r.string,onChange:r.func,value:r.any,variant:r.oneOf(["standard","outlined","filled"])});function RT(e){return Ye("MuiSelect",e)}const Jo=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Fb;const PT=re(Nb,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Jo.select}`]:t.select},{[`&.${Jo.select}`]:t[n.variant]},{[`&.${Jo.error}`]:t.error},{[`&.${Jo.multiple}`]:t.multiple}]}})({[`&.${Jo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),kT=re(_b,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Re(n.variant)}`],n.open&&t.iconOpen]}})({}),MT=re("input",{shouldForwardProp:e=>lb(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 Vb(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function IT(e){return e==null||typeof e=="string"&&!e.trim()}const DT=e=>{const{classes:t,variant:n,disabled:o,multiple:i,open:s,error:l}=e,a={select:["select",n,o&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${Re(n)}`,s&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Xe(a,RT,t)},Lb=E.forwardRef(function(t,n){var dt;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:l,children:a,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:b=!1,IconComponent:y,inputRef:m,labelId:g,MenuProps:w={},multiple:x,name:O,onBlur:T,onChange:R,onClose:A,onFocus:N,onOpen:S,open:v,readOnly:f,renderValue:C,SelectDisplayProps:P={},tabIndex:M,type:D,value:I,variant:j="standard",...$}=t,[F,L]=xr({controlled:I,default:d,name:"Select"}),[_,B]=xr({controlled:v,default:u,name:"Select"}),oe=E.useRef(null),X=E.useRef(null),[ee,Y]=E.useState(null),{current:J}=E.useRef(v!=null),[se,z]=E.useState(),H=At(n,m),G=E.useCallback(ge=>{X.current=ge,ge&&Y(ge)},[]),ue=ee==null?void 0:ee.parentNode;E.useImperativeHandle(H,()=>({focus:()=>{X.current.focus()},node:oe.current,value:F}),[F]),E.useEffect(()=>{u&&_&&ee&&!J&&(z(l?null:ue.clientWidth),X.current.focus())},[ee,l]),E.useEffect(()=>{s&&X.current.focus()},[s]),E.useEffect(()=>{if(!g)return;const ge=sn(X.current).getElementById(g);if(ge){const Se=()=>{getSelection().isCollapsed&&X.current.focus()};return ge.addEventListener("click",Se),()=>{ge.removeEventListener("click",Se)}}},[g]);const U=(ge,Se)=>{ge?S&&S(Se):A&&A(Se),J||(z(l?null:ue.clientWidth),B(ge))},Q=ge=>{ge.button===0&&(ge.preventDefault(),X.current.focus(),U(!0,ge))},q=ge=>{U(!1,ge)},ne=E.Children.toArray(a),Z=ge=>{const Se=ne.find(Ae=>Ae.props.value===ge.target.value);Se!==void 0&&(L(Se.props.value),R&&R(ge,Se))},te=ge=>Se=>{let Ae;if(Se.currentTarget.hasAttribute("tabindex")){if(x){Ae=Array.isArray(F)?F.slice():[];const Fe=F.indexOf(ge.props.value);Fe===-1?Ae.push(ge.props.value):Ae.splice(Fe,1)}else Ae=ge.props.value;if(ge.props.onClick&&ge.props.onClick(Se),F!==Ae&&(L(Ae),R)){const Fe=Se.nativeEvent||Se,De=new Fe.constructor(Fe.type,Fe);Object.defineProperty(De,"target",{writable:!0,value:{value:Ae,name:O}}),R(De,ge)}x||U(!1,Se)}},le=ge=>{f||[" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),U(!0,ge))},fe=ee!==null&&_,xe=ge=>{!fe&&T&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:F,name:O}}),T(ge))};delete $["aria-invalid"];let Ee,Te;const $e=[];let Ze=!1,We=!1;(ds({value:F})||h)&&(C?Ee=C(F):Ze=!0);const it=ne.map(ge=>{if(!E.isValidElement(ge))return null;process.env.NODE_ENV!=="production"&&ys.isFragment(ge)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
135
|
+
`));let Se;if(x){if(!Array.isArray(F))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));Se=F.some(Ae=>Vb(Ae,ge.props.value)),Se&&Ze&&$e.push(ge.props.children)}else Se=Vb(F,ge.props.value),Se&&Ze&&(Te=ge.props.children);return Se&&(We=!0),E.cloneElement(ge,{"aria-selected":Se?"true":"false",onClick:te(ge),onKeyUp:Ae=>{Ae.key===" "&&Ae.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(Ae)},role:"option",selected:Se,value:void 0,"data-value":ge.props.value})});process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(!We&&!x&&F!==""){const ge=ne.map(Se=>Se.props.value);console.warn([`MUI: You have provided an out-of-range value \`${F}\` for the select ${O?`(name="${O}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ge.filter(Se=>Se!=null).map(Se=>`\`${Se}\``).join(", ")||'""'}.`].join(`
|
|
136
|
+
`))}},[We,ne,x,O,F]),Ze&&(x?$e.length===0?Ee=null:Ee=$e.reduce((ge,Se,Ae)=>(ge.push(Se),Ae<$e.length-1&&ge.push(", "),ge),[]):Ee=Te);let st=se;!l&&J&&ee&&(st=ue.clientWidth);let Ge;typeof M<"u"?Ge=M:Ge=p?null:0;const Ke=P.id||(O?`mui-component-select-${O}`:void 0),ut={...t,variant:j,value:F,open:fe,error:b},ze=DT(ut),ct={...w.PaperProps,...(dt=w.slotProps)==null?void 0:dt.paper},Tt=wo();return k.jsxs(E.Fragment,{children:[k.jsx(PT,{as:"div",ref:G,tabIndex:Ge,role:"combobox","aria-controls":Tt,"aria-disabled":p?"true":void 0,"aria-expanded":fe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[g,Ke].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:le,onMouseDown:p||f?null:Q,onBlur:xe,onFocus:N,...P,ownerState:ut,className:we(P.className,ze.select,c),id:Ke,children:IT(Ee)?Fb||(Fb=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ee}),k.jsx(MT,{"aria-invalid":b,value:Array.isArray(F)?F.join(","):F,name:O,ref:oe,"aria-hidden":!0,onChange:Z,tabIndex:-1,disabled:p,className:ze.nativeInput,autoFocus:s,...$,ownerState:ut}),k.jsx(kT,{as:y,className:ze.icon,ownerState:ut}),k.jsx(Ab,{id:`menu-${O||""}`,anchorEl:ue,open:fe,onClose:q,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...w,MenuListProps:{"aria-labelledby":g,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:Tt,...w.MenuListProps},slotProps:{...w.slotProps,paper:{...ct,style:{minWidth:st,...ct!=null?ct.style:null}}},children:it})]})});process.env.NODE_ENV!=="production"&&(Lb.propTypes={"aria-describedby":r.string,"aria-label":r.string,autoFocus:r.bool,autoWidth:r.bool,children:r.node,classes:r.object,className:r.string,defaultOpen:r.bool,defaultValue:r.any,disabled:r.bool,displayEmpty:r.bool,error:r.bool,IconComponent:r.elementType.isRequired,inputRef:Yt,labelId:r.string,MenuProps:r.object,multiple:r.bool,name:r.string,onBlur:r.func,onChange:r.func,onClose:r.func,onFocus:r.func,onOpen:r.func,open:r.bool,readOnly:r.bool,renderValue:r.func,SelectDisplayProps:r.object,tabIndex:r.oneOfType([r.number,r.string]),type:r.any,value:r.any,variant:r.oneOf(["standard","outlined","filled"])});const Bb=Et(k.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),jT=e=>{const{classes:t}=e;return t},Au={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Xt(e)&&e!=="variant",slot:"Root"},AT=re(Vo,Au)(""),NT=re(qo,Au)(""),_T=re(Bo,Au)(""),ei=E.forwardRef(function(t,n){const o=tt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:l={},className:a,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Bb,id:p,input:h,inputProps:b,label:y,labelId:m,MenuProps:g,multiple:w=!1,native:x=!1,onClose:O,onOpen:T,open:R,renderValue:A,SelectDisplayProps:N,variant:S="outlined",...v}=o,f=x?$b:Lb,C=en(),P=lr({props:o,muiFormControl:C,states:["variant","error"]}),M=P.variant||S,D={...o,variant:M,classes:l},I=jT(D),{root:j,...$}=I,F=h||{standard:k.jsx(AT,{ownerState:D}),outlined:k.jsx(NT,{label:y,ownerState:D}),filled:k.jsx(_T,{ownerState:D})}[M],L=At(n,Do(F));return k.jsx(E.Fragment,{children:E.cloneElement(F,{inputComponent:f,inputProps:{children:s,error:P.error,IconComponent:d,variant:M,type:void 0,multiple:w,...x?{id:p}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:m,MenuProps:g,onClose:O,onOpen:T,open:R,renderValue:A,SelectDisplayProps:{id:p,...N}},...b,classes:b?Kt($,b.classes):$,...h?h.props.inputProps:{}},...(w&&x||u)&&M==="outlined"?{notched:!0}:{},ref:L,className:we(F.props.className,a,I.root),...!h&&{variant:M},...v})})});process.env.NODE_ENV!=="production"&&(ei.propTypes={autoWidth:r.bool,children:r.node,classes:r.object,className:r.string,defaultOpen:r.bool,defaultValue:r.any,displayEmpty:r.bool,IconComponent:r.elementType,id:r.string,input:r.element,inputProps:r.object,label:r.node,labelId:r.string,MenuProps:r.object,multiple:r.bool,native:r.bool,onChange:r.func,onClose:r.func,onOpen:r.func,open:r.bool,renderValue:r.func,SelectDisplayProps:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.oneOfType([r.oneOf([""]),r.any]),variant:r.oneOf(["filled","outlined","standard"])}),ei.muiName="Select";function $T(e){return Ye("MuiTextField",e)}qe("MuiTextField",["root"]);const FT={standard:Vo,filled:Bo,outlined:qo},VT=e=>{const{classes:t}=e;return Xe({root:["root"]},$T,t)},LT=re(wr,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Os=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:l,className:a,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:b=!1,helperText:y,id:m,InputLabelProps:g,inputProps:w,InputProps:x,inputRef:O,label:T,maxRows:R,minRows:A,multiline:N=!1,name:S,onBlur:v,onChange:f,onFocus:C,placeholder:P,required:M=!1,rows:D,select:I=!1,SelectProps:j,slots:$={},slotProps:F={},type:L,value:_,variant:B="outlined",...oe}=o,X={...o,autoFocus:s,color:c,disabled:d,error:p,fullWidth:b,multiline:N,required:M,select:I,variant:B},ee=VT(X);process.env.NODE_ENV!=="production"&&I&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Y=wo(m),J=y&&Y?`${Y}-helper-text`:void 0,se=T&&Y?`${Y}-label`:void 0,z=FT[B],H={slots:$,slotProps:{input:x,inputLabel:g,htmlInput:w,formHelperText:h,select:j,...F}},G={},ue=H.slotProps.inputLabel;B==="outlined"&&(ue&&typeof ue.shrink<"u"&&(G.notched=ue.shrink),G.label=T),I&&((!j||!j.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const[U,Q]=tn("input",{elementType:z,externalForwardedProps:H,additionalProps:G,ownerState:X}),[q,ne]=tn("inputLabel",{elementType:Uo,externalForwardedProps:H,ownerState:X}),[Z,te]=tn("htmlInput",{elementType:"input",externalForwardedProps:H,ownerState:X}),[le,fe]=tn("formHelperText",{elementType:Kr,externalForwardedProps:H,ownerState:X}),[xe,Ee]=tn("select",{elementType:ei,externalForwardedProps:H,ownerState:X}),Te=k.jsx(U,{"aria-describedby":J,autoComplete:i,autoFocus:s,defaultValue:u,fullWidth:b,multiline:N,name:S,rows:D,maxRows:R,minRows:A,type:L,value:_,id:Y,inputRef:O,onBlur:v,onChange:f,onFocus:C,placeholder:P,inputProps:te,slots:{input:$.htmlInput?Z:void 0},...Q});return k.jsxs(LT,{className:we(ee.root,a),disabled:d,error:p,fullWidth:b,ref:n,required:M,color:c,variant:B,ownerState:X,...oe,children:[T!=null&&T!==""&&k.jsx(q,{htmlFor:Y,id:se,...ne,children:T}),I?k.jsx(xe,{"aria-describedby":J,id:Y,labelId:se,value:_,input:Te,...Ee,children:l}):Te,y&&k.jsx(le,{id:J,...fe,children:y})]})});process.env.NODE_ENV!=="production"&&(Os.propTypes={autoComplete:r.string,autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),defaultValue:r.any,disabled:r.bool,error:r.bool,FormHelperTextProps:r.object,fullWidth:r.bool,helperText:r.node,id:r.string,InputLabelProps:r.object,inputProps:r.object,InputProps:r.object,inputRef:Yt,label:r.node,margin:r.oneOf(["dense","none","normal"]),maxRows:r.oneOfType([r.number,r.string]),minRows:r.oneOfType([r.number,r.string]),multiline:r.bool,name:r.string,onBlur:r.func,onChange:r.func,onFocus:r.func,placeholder:r.string,required:r.bool,rows:r.oneOfType([r.number,r.string]),select:r.bool,SelectProps:r.object,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({formHelperText:r.oneOfType([r.func,r.object]),htmlInput:r.oneOfType([r.func,r.object]),input:r.oneOfType([r.func,r.object]),inputLabel:r.oneOfType([r.func,r.object]),select:r.oneOfType([r.func,r.object])}),slots:r.shape({formHelperText:r.elementType,htmlInput:r.elementType,input:r.elementType,inputLabel:r.elementType,select:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.string,value:r.any,variant:r.oneOf(["filled","outlined","standard"])});class qb extends _e.Component{constructor(t){super(t);const{model:n,form:o,value:i,setDefault:s}=this.props,{key:l}=o;s(l,n,o,i)}render(){const{form:t,error:n,value:o,onChangeValidate:i,localization:{getLocalizedString:s},otherProps:l}=this.props;return k.jsx(Os,{type:t.type,label:t.title&&s(t.title),placeholder:t.placeholder&&s(t.placeholder),helperText:(n||t.description)&&s(n||t.description),error:!!n,onChange:i,value:o||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...l,...t.otherProps})}}qb.defaultProps={otherProps:void 0};const ti=Ht(qb),BT=Ht(e=>{const{form:t,value:n,localization:{getLocalizedNumber:o},onChangeValidate:i}=e;let s=n||n===0?n:"";t.useLocalizer&&(s=o(s));const l=a=>{const c=t.schema?t.schema.type:t.type;let u=null;if(c==="integer")u=parseInt(a.target.value,10);else if(c==="number"){const d=a.target.value.split(".");d.length<2?u=parseInt(a.target.value,10):d.length>1&&(d[1].length>0?u=parseFloat(a.target.value):u=`${parseInt(d[0],10)}.`)}i(u)};return k.jsx(ti,{...e,form:{...t,type:"string"},value:s,otherProps:{onChange:l}})}),qT=Ht(e=>{const{form:t}=e;return k.jsx(ti,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})}),zT=Ht(e=>{const{model:t,form:n,value:o,error:i,setDefault:s,onChangeValidate:l}=e,{key:a,title:c}=n;s(a,t,n,o),_e.useState("write");const[u,d]=_e.useState(o);return _e.useEffect(()=>{l({target:{value:u}})},[u]),k.jsxs(_e.Fragment,{children:[k.jsx(ur,{required:n.required,children:c}),"form.readonly ? ",k.jsx(Rd.Markdown,{source:markdownVal})," : ",k.jsx(Rd,{value:o,onChange:p=>d(p)}),i?k.jsx(Kr,{error:!0,children:i}):null]})}),zb={text:"name",value:"value"};class UT extends _e.Component{constructor(){super(...arguments);Vt(this,"handleUpdate",(n,o)=>{const{key:i}=this.props.form,{type:s}=this.props.form.schema;return this.props.onChange(i,n[zb.value],s,this.props.form)});Vt(this,"handleInit",n=>{if(!this.props.form.schema||!this.props.form.schema.enum)return n.toString();const o=this.props.form.schema.enumNames||this.props.form.schema.enum,i=this.props.form.schema.enum;return o[i.indexOf(n)]||n.toString()})}render(){const n=(i=>{switch(i){case"fuzzy":return AutoComplete.fuzzyFilter;default:return AutoComplete.caseInsensitiveFilter}})(this.props.form.filter),o=this.props.value&&this.handleInit(this.props.value);return k.jsx("div",{className:this.props.form.htmlClass,children:k.jsx(AutoComplete,{type:this.props.form.type,floatingLabelText:this.props.form.title,hintText:this.props.form.placeholder,errorText:this.props.error,onNewRequest:this.handleUpdate,disabled:this.props.form.readonly,style:this.props.form.style||{width:"100%"},openOnFocus:!0,searchText:o,dataSource:this.props.form.titleMap||["Loading..."],filter:n,maxSearchResults:this.props.form.maxSearchResults||5,dataSourceConfig:zb})})}}const WT=Ht(UT);class Ts{constructor(){Vt(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 Ts}static use(){const t=$m(Ts.create).current,[n,o]=E.useState(!1);return t.shouldMount=n,t.setShouldMount=o,E.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=YT(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function HT(){return Ts.use()}function YT(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});return n.resolve=e,n.reject=t,n}function Ub(e){const{className:t,classes:n,pulsate:o=!1,rippleX:i,rippleY:s,rippleSize:l,in:a,onExited:c,timeout:u}=e,[d,p]=E.useState(!1),h=we(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),b={width:l,height:l,top:-(l/2)+s,left:-(l/2)+i},y=we(n.child,d&&n.childLeaving,o&&n.childPulsate);return!a&&!d&&p(!0),E.useEffect(()=>{if(!a&&c!=null){const m=setTimeout(c,u);return()=>{clearTimeout(m)}}},[c,a,u]),k.jsx("span",{className:h,style:b,children:k.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(Ub.propTypes={classes:r.object.isRequired,className:r.string,in:r.bool,onExited:r.func,pulsate:r.bool,rippleSize:r.number,rippleX:r.number,rippleY:r.number,timeout:r.number.isRequired});const Sn=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Nu=550,KT=80,GT=ho.keyframes`
|
|
136
137
|
0% {
|
|
137
138
|
transform: scale(0);
|
|
138
139
|
opacity: 0.1;
|
|
@@ -142,7 +143,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
142
143
|
transform: scale(1);
|
|
143
144
|
opacity: 0.3;
|
|
144
145
|
}
|
|
145
|
-
|
|
146
|
+
`,XT=ho.keyframes`
|
|
146
147
|
0% {
|
|
147
148
|
opacity: 1;
|
|
148
149
|
}
|
|
@@ -150,7 +151,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
150
151
|
100% {
|
|
151
152
|
opacity: 0;
|
|
152
153
|
}
|
|
153
|
-
`,
|
|
154
|
+
`,QT=ho.keyframes`
|
|
154
155
|
0% {
|
|
155
156
|
transform: scale(1);
|
|
156
157
|
}
|
|
@@ -162,23 +163,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
162
163
|
100% {
|
|
163
164
|
transform: scale(1);
|
|
164
165
|
}
|
|
165
|
-
`,
|
|
166
|
+
`,ZT=re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),JT=re(Ub,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
166
167
|
opacity: 0;
|
|
167
168
|
position: absolute;
|
|
168
169
|
|
|
169
|
-
&.${
|
|
170
|
+
&.${Sn.rippleVisible} {
|
|
170
171
|
opacity: 0.3;
|
|
171
172
|
transform: scale(1);
|
|
172
|
-
animation-name: ${
|
|
173
|
-
animation-duration: ${
|
|
173
|
+
animation-name: ${GT};
|
|
174
|
+
animation-duration: ${Nu}ms;
|
|
174
175
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
&.${
|
|
178
|
+
&.${Sn.ripplePulsate} {
|
|
178
179
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
179
180
|
}
|
|
180
181
|
|
|
181
|
-
& .${
|
|
182
|
+
& .${Sn.child} {
|
|
182
183
|
opacity: 1;
|
|
183
184
|
display: block;
|
|
184
185
|
width: 100%;
|
|
@@ -187,42 +188,59 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
187
188
|
background-color: currentColor;
|
|
188
189
|
}
|
|
189
190
|
|
|
190
|
-
& .${
|
|
191
|
+
& .${Sn.childLeaving} {
|
|
191
192
|
opacity: 0;
|
|
192
|
-
animation-name: ${
|
|
193
|
-
animation-duration: ${
|
|
193
|
+
animation-name: ${XT};
|
|
194
|
+
animation-duration: ${Nu}ms;
|
|
194
195
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
195
196
|
}
|
|
196
197
|
|
|
197
|
-
& .${
|
|
198
|
+
& .${Sn.childPulsate} {
|
|
198
199
|
position: absolute;
|
|
199
200
|
/* @noflip */
|
|
200
201
|
left: 0px;
|
|
201
202
|
top: 0;
|
|
202
|
-
animation-name: ${
|
|
203
|
+
animation-name: ${QT};
|
|
203
204
|
animation-duration: 2500ms;
|
|
204
205
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
205
206
|
animation-iteration-count: infinite;
|
|
206
207
|
animation-delay: 200ms;
|
|
207
208
|
}
|
|
208
|
-
`,Lh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...s}=n,[c,u]=j.useState([]),f=j.useRef(0),d=j.useRef(null);j.useEffect(()=>{d.current&&(d.current(),d.current=null)},[c]);const y=j.useRef(!1),m=Td(),b=j.useRef(null),h=j.useRef(null),v=j.useCallback(T=>{const{pulsate:w,rippleX:A,rippleY:M,rippleSize:O,cb:g}=T;u(p=>[...p,N.jsx(LO,{classes:{ripple:Pe(a.ripple,rr.ripple),rippleVisible:Pe(a.rippleVisible,rr.rippleVisible),ripplePulsate:Pe(a.ripplePulsate,rr.ripplePulsate),child:Pe(a.child,rr.child),childLeaving:Pe(a.childLeaving,rr.childLeaving),childPulsate:Pe(a.childPulsate,rr.childPulsate)},timeout:Kl,pulsate:w,rippleX:A,rippleY:M,rippleSize:O},f.current)]),f.current+=1,d.current=g},[a]),C=j.useCallback((T={},w={},A=()=>{})=>{const{pulsate:M=!1,center:O=i||w.pulsate,fakeElement:g=!1}=w;if((T==null?void 0:T.type)==="mousedown"&&y.current){y.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(y.current=!0);const p=g?null:h.current,x=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,P,_;if(O||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)R=Math.round(x.width/2),P=Math.round(x.height/2);else{const{clientX:k,clientY:D}=T.touches&&T.touches.length>0?T.touches[0]:T;R=Math.round(k-x.left),P=Math.round(D-x.top)}if(O)_=Math.sqrt((2*x.width**2+x.height**2)/3),_%2===0&&(_+=1);else{const k=Math.max(Math.abs((p?p.clientWidth:0)-R),R)*2+2,D=Math.max(Math.abs((p?p.clientHeight:0)-P),P)*2+2;_=Math.sqrt(k**2+D**2)}T!=null&&T.touches?b.current===null&&(b.current=()=>{v({pulsate:M,rippleX:R,rippleY:P,rippleSize:_,cb:A})},m.start(AO,()=>{b.current&&(b.current(),b.current=null)})):v({pulsate:M,rippleX:R,rippleY:P,rippleSize:_,cb:A})},[i,v,m]),E=j.useCallback(()=>{C({},{pulsate:!0})},[C]),S=j.useCallback((T,w)=>{if(m.clear(),(T==null?void 0:T.type)==="touchend"&&b.current){b.current(),b.current=null,m.start(0,()=>{S(T,w)});return}b.current=null,u(A=>A.length>0?A.slice(1):A),d.current=w},[m]);return j.useImperativeHandle(r,()=>({pulsate:E,start:C,stop:S}),[E,C,S]),N.jsx(DO,{className:Pe(rr.root,a.root,l),ref:h,...s,children:N.jsx(zl,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Lh.propTypes={center:o.bool,classes:o.object,className:o.string});function FO(e){return We("MuiButtonBase",e)}const BO=qe("MuiButtonBase",["root","disabled","focusVisible"]),qO=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,l=Ge({root:["root",t&&"disabled",r&&"focusVisible"]},FO,i);return r&&n&&(l.root+=` ${n}`),l},zO=xe("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"},[`&.${BO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wr=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:s,component:c="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:d=!1,focusRipple:y=!1,focusVisibleClassName:m,LinkComponent:b="a",onBlur:h,onClick:v,onContextMenu:C,onDragLeave:E,onFocus:S,onFocusVisible:T,onKeyDown:w,onKeyUp:A,onMouseDown:M,onMouseLeave:O,onMouseUp:g,onTouchEnd:p,onTouchMove:x,onTouchStart:R,tabIndex:P=0,TouchRippleProps:_,touchRippleRef:k,type:D,...W}=n,Z=j.useRef(null),G=kO(),B=Ot(G.ref,k),[Y,ae]=j.useState(!1);u&&Y&&ae(!1),j.useImperativeHandle(i,()=>({focusVisible:()=>{ae(!0),Z.current.focus()}}),[]);const oe=G.shouldMount&&!f&&!u;j.useEffect(()=>{Y&&y&&!f&&G.pulsate()},[f,y,Y,G]);const ne=Tr(G,"start",M,d),ue=Tr(G,"stop",C,d),ce=Tr(G,"stop",E,d),ye=Tr(G,"stop",g,d),se=Tr(G,"stop",be=>{Y&&be.preventDefault(),O&&O(be)},d),le=Tr(G,"start",R,d),te=Tr(G,"stop",p,d),ve=Tr(G,"stop",x,d),X=Tr(G,"stop",be=>{wd(be.target)||ae(!1),h&&h(be)},!1),Re=pr(be=>{Z.current||(Z.current=be.currentTarget),wd(be.target)&&(ae(!0),T&&T(be)),S&&S(be)}),z=()=>{const be=Z.current;return c&&c!=="button"&&!(be.tagName==="A"&&be.href)},pe=pr(be=>{y&&!be.repeat&&Y&&be.key===" "&&G.stop(be,()=>{G.start(be)}),be.target===be.currentTarget&&z()&&be.key===" "&&be.preventDefault(),w&&w(be),be.target===be.currentTarget&&z()&&be.key==="Enter"&&!u&&(be.preventDefault(),v&&v(be))}),de=pr(be=>{y&&be.key===" "&&Y&&!be.defaultPrevented&&G.stop(be,()=>{G.pulsate(be)}),A&&A(be),v&&be.target===be.currentTarget&&z()&&be.key===" "&&!be.defaultPrevented&&v(be)});let Ce=c;Ce==="button"&&(W.href||W.to)&&(Ce=b);const Te={};Ce==="button"?(Te.type=D===void 0?"button":D,Te.disabled=u):(!W.href&&!W.to&&(Te.role="button"),u&&(Te["aria-disabled"]=u));const $e=Ot(r,Z),He={...n,centerRipple:a,component:c,disabled:u,disableRipple:f,disableTouchRipple:d,focusRipple:y,tabIndex:P,focusVisible:Y},Ne=qO(He);return N.jsxs(zO,{as:Ce,className:Pe(Ne.root,s),ownerState:He,onBlur:X,onClick:v,onContextMenu:ue,onFocus:Re,onKeyDown:pe,onKeyUp:de,onMouseDown:ne,onMouseLeave:se,onMouseUp:ye,onDragLeave:ce,onTouchEnd:te,onTouchMove:ve,onTouchStart:le,ref:$e,tabIndex:u?-1:P,type:D,...Te,...W,children:[l,oe?N.jsx(Lh,{ref:B,center:a,..._}):null]})});function Tr(e,t,r,n=!1){return pr(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Wr.propTypes={action:Dt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:xl,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});const Fh=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Bh=qe("MuiListItemIcon",["root","alignItemsFlexStart"]);function VO(e){return We("MuiTypography",e)}qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const UO={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},WO=T0(),HO=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:l}=e,s={root:["root",a,e.align!=="inherit"&&`align${he(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ge(s,VO,l)},GO=xe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${he(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Ke(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter($t()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${he(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),qh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ni=j.forwardRef(function(t,r){const{color:n,...i}=Je({props:t,name:"MuiTypography"}),a=!UO[n],l=WO({...i,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:f=!1,noWrap:d=!1,paragraph:y=!1,variant:m="body1",variantMapping:b=qh,...h}=l,v={...l,align:s,color:n,className:c,component:u,gutterBottom:f,noWrap:d,paragraph:y,variant:m,variantMapping:b},C=u||(y?"p":b[m]||qh[m])||"span",E=HO(v);return N.jsx(GO,{as:C,ref:r,className:Pe(E.root,c),...h,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...h.style}})});process.env.NODE_ENV!=="production"&&(ni.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});const zh=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function KO(e){return We("MuiMenuItem",e)}const Gn=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),YO=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},XO=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:l}=e,c=Ge({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},KO,l);return{...l,...c}},JO=xe(Wr,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:YO})(Ke(({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"}},[`&.${Gn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qe(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})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Gn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fh.inset}`]:{marginLeft:52},[`& .${zh.root}`]:{marginTop:0,marginBottom:0},[`& .${zh.inset}`]:{paddingLeft:36},[`& .${Bh.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,[`& .${Bh.root} svg`]:{fontSize:"1.25rem"}}}]}))),oi=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:d,className:y,...m}=n,b=j.useContext(Ko),h=j.useMemo(()=>({dense:l||b.dense||!1,disableGutters:c}),[b.dense,l,c]),v=j.useRef(null);cr(()=>{i&&(v.current?v.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 C={...n,dense:h.dense,divider:s,disableGutters:c},E=XO(n),S=Ot(v,r);let T;return n.disabled||(T=d!==void 0?d:-1),N.jsx(Ko.Provider,{value:h,children:N.jsx(JO,{ref:S,role:f,tabIndex:T,component:a,focusVisibleClassName:Pe(E.focusVisible,u),className:Pe(E.root,y),...m,ownerState:C,classes:E})})});process.env.NODE_ENV!=="production"&&(oi.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function QO(e){const{model:t,form:r,error:n,setDefault:i,onChange:a,onChangeValidate:l,localization:{getLocalizedString:s},form:{key:c,schema:{isObject:u,enum:f,findFn:d,displayFn:y,noLocalization:m}}}=e;let b=r&&r.selectProps&&r.selectProps.multiple?[]:"";e.form.default?b=e.form.default:e.form.schema&&e.form.schema.default&&(b=e.form.schema.default);const[h,v]=we.useState(Mt.getValueFromModel(t,r.key)||b);we.useEffect(()=>{i(c,t,r,h)},[]);const C=T=>{const w=T.target.value;if(v(w),u){const A=f.find(M=>d?d(M,w):M===w);a(c,A)}else l(T)},E=T=>y?y(T):m?T.name:s(T.name);let S=[];return u?S=r.schema.enum.map((T,w)=>N.jsx(oi,{value:T,children:E(T)},w)):S=r.titleMap.map((T,w)=>N.jsx(oi,{value:T.value,children:E(T)},w)),N.jsxs(an,{fullWidth:!0,error:!!n,...r.otherProps,children:[N.jsx(Ho,{required:r.required,...r.labelProps,children:r.title&&s(r.title)}),N.jsx(Wn,{value:h,placeholder:r.placeholder&&s(r.placeholder),disabled:r.readonly,onChange:C,...r.selectProps,children:S}),N.jsx(Ln,{...r.helperTextProps,children:(n||r.description)&&s(n||r.description)})]})}const ZO=jt(QO),eE=_t(N.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 tE(e){return We("MuiChip",e)}const Ve=qe("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"]),rE=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:a,onDelete:l,clickable:s,variant:c}=e,u={root:["root",c,r&&"disabled",`size${he(n)}`,`color${he(i)}`,s&&"clickable",s&&`clickableColor${he(i)}`,l&&"deletable",l&&`deletableColor${he(i)}`,`${c}${he(i)}`],label:["label",`label${he(n)}`],avatar:["avatar",`avatar${he(n)}`,`avatarColor${he(i)}`],icon:["icon",`icon${he(n)}`,`iconColor${he(a)}`],deleteIcon:["deleteIcon",`deleteIcon${he(n)}`,`deleteIconColor${he(i)}`,`deleteIcon${he(c)}Color${he(i)}`]};return Ge(u,tE,t)},nE=xe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:a,onDelete:l,size:s,variant:c}=r;return[{[`& .${Ve.avatar}`]:t.avatar},{[`& .${Ve.avatar}`]:t[`avatar${he(s)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${he(n)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${he(s)}`]},{[`& .${Ve.icon}`]:t[`iconColor${he(i)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${he(s)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${he(n)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${he(c)}Color${he(n)}`]},t.root,t[`size${he(s)}`],t[`color${he(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${he(n)})`],l&&t.deletable,l&&n!=="default"&&t[`deletableColor${he(n)}`],t[c],t[`${c}${he(n)}`]]}})(Ke(({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)`:Qe(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)`:Qe(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($t(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:Qe(e.palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Ve.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.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}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter($t(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{background:(e.vars||e).palette[r].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}))`:Qe(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}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter($t(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].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($t()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Qe(e.palette[r].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qe(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Qe(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),oE=xe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${he(n)}`]]}})({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 Vh(e){return e.key==="Backspace"||e.key==="Delete"}const Yl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:l,color:s="default",component:c,deleteIcon:u,disabled:f=!1,icon:d,label:y,onClick:m,onDelete:b,onKeyDown:h,onKeyUp:v,size:C="medium",variant:E="filled",tabIndex:S,skipFocusWhenDisabled:T=!1,...w}=n,A=j.useRef(null),M=Ot(A,r),O=G=>{G.stopPropagation(),b&&b(G)},g=G=>{G.currentTarget===G.target&&Vh(G)&&G.preventDefault(),h&&h(G)},p=G=>{G.currentTarget===G.target&&b&&Vh(G)&&b(G),v&&v(G)},x=l!==!1&&m?!0:l,R=x||b?Wr:c||"div",P={...n,component:R,disabled:f,size:C,color:s,iconColor:j.isValidElement(d)&&d.props.color||s,onDelete:!!b,clickable:x,variant:E},_=rE(P),k=R===Wr?{component:c||"div",focusVisibleClassName:_.focusVisible,...b&&{disableRipple:!0}}:{};let D=null;b&&(D=u&&j.isValidElement(u)?j.cloneElement(u,{className:Pe(u.props.className,_.deleteIcon),onClick:O}):N.jsx(eE,{className:Pe(_.deleteIcon),onClick:O}));let W=null;i&&j.isValidElement(i)&&(W=j.cloneElement(i,{className:Pe(_.avatar,i.props.className)}));let Z=null;return d&&j.isValidElement(d)&&(Z=j.cloneElement(d,{className:Pe(_.icon,d.props.className)})),process.env.NODE_ENV!=="production"&&W&&Z&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),N.jsxs(nE,{as:R,className:Pe(_.root,a),disabled:x&&f?!0:void 0,onClick:m,onKeyDown:g,onKeyUp:p,ref:M,tabIndex:T&&f?-1:S,ownerState:P,...k,...w,children:[W||Z,N.jsx(oE,{className:Pe(_.label),ownerState:P,children:y}),D]})});process.env.NODE_ENV!=="production"&&(Yl.propTypes={avatar:o.element,children:Ib,classes:o.object,className:o.string,clickable:o.bool,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,deleteIcon:o.element,disabled:o.bool,icon:o.element,label:o.node,onClick:o.func,onDelete:o.func,onKeyDown:o.func,onKeyUp:o.func,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),skipFocusWhenDisabled:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,variant:o.oneOfType([o.oneOf(["filled","outlined"]),o.string])});const Kn="MultiSelect",mr={root:`${Kn}-root`,chips:`${Kn}-chips`,chip:`${Kn}-chip`,menuItem:`${Kn}-menuItem`,selectedMenuItem:`${Kn}-selectedMenuItem`},iE=jo("div")(({theme:e})=>({[`&.${mr.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${mr.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${mr.chip}`]:{margin:e.spacing(.25)},[`& .${mr.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${mr.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),aE={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}};class sE extends we.Component{constructor(r){super(r);Tt(this,"onSelected",r=>{const{onChangeValidate:n}=this.props,i=r.target.value;this.setState({currentValue:i}),n(i)});const{model:n,form:i}=this.props;this.state={currentValue:Mt.getValueFromModel(n,i.key)||[]}}static getDerivedStateFromProps(r){const{model:n,form:i}=r;return n&&i.key?{currentValue:Mt.getValueFromModel(n,i.key)||[]}:null}render(){const{form:r,localization:{getLocalizedString:n}}=this.props,{currentValue:i}=this.state,a=Mt.getTitleByValue.bind(this,r.titleMap),l=r.titleMap.map(s=>N.jsx(oi,{value:s.value,className:i.indexOf(s.value)===-1?mr.menuItem:mr.selectedMenuItem,children:s.name&&n(s.name)},s.value));return N.jsx(iE,{className:mr.root,children:N.jsxs(an,{fullWidth:!0,...r.otherProps,children:[N.jsx(Ho,{required:r.required,children:r.title&&n(r.title)}),N.jsx(Wn,{multiple:!0,value:i||"",placeholder:r.placeholder&&n(r.placeholder),disabled:r.readonly,onChange:this.onSelected,MenuProps:aE,renderValue:s=>N.jsx("div",{className:mr.chips,children:s.map(c=>N.jsx(Yl,{label:a(c)&&n(a(c)),className:mr.chip},c))}),children:l})]})})}}const lE=jt(sE);function cE(e){return We("MuiFormControlLabel",e)}const Yn=qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),uE=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,l={root:["root",r&&"disabled",`labelPlacement${he(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ge(l,cE,t)},pE=xe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Yn.label}`]:t.label},t.root,t[`labelPlacement${he(r.labelPlacement)}`]]}})(Ke(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Yn.disabled}`]:{cursor:"default"},[`& .${Yn.label}`]:{[`&.${Yn.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}}]}))),fE=xe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ke(({theme:e})=>({[`&.${Yn.error}`]:{color:(e.vars||e).palette.error.main}}))),Xl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:l={},control:s,disabled:c,disableTypography:u,inputRef:f,label:d,labelPlacement:y="end",name:m,onChange:b,required:h,slots:v={},slotProps:C={},value:E,...S}=n,T=dr(),w=c??s.props.disabled??(T==null?void 0:T.disabled),A=h??s.props.required,M={disabled:w,required:A};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof s.props[k]>"u"&&typeof n[k]<"u"&&(M[k]=n[k])});const O=jr({props:n,muiFormControl:T,states:["error"]}),g={...n,disabled:w,labelPlacement:y,required:A,error:O.error},p=uE(g),x={slots:v,slotProps:{...l,...C}},[R,P]=Lt("typography",{elementType:ni,externalForwardedProps:x,ownerState:g});let _=d;return _!=null&&_.type!==ni&&!u&&(_=N.jsx(R,{component:"span",...P,className:Pe(p.label,P==null?void 0:P.className),children:_})),N.jsxs(pE,{className:Pe(p.root,a),ownerState:g,ref:r,...S,children:[j.cloneElement(s,M),A?N.jsxs("div",{children:[_,N.jsxs(fE,{ownerState:g,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}):_]})});process.env.NODE_ENV!=="production"&&(Xl.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Dt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function dE(e){return We("MuiFormGroup",e)}qe("MuiFormGroup",["root","row","error"]);const hE=e=>{const{classes:t,row:r,error:n}=e;return Ge({root:["root",r&&"row",n&&"error"]},dE,t)},mE=xe("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Jl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1,...l}=n,s=dr(),c=jr({props:n,muiFormControl:s,states:["error"]}),u={...n,row:a,error:c.error},f=hE(u);return N.jsx(mE,{className:Pe(f.root,i),ownerState:u,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Jl.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function gE(e){return We("MuiRadioGroup",e)}qe("MuiRadioGroup",["root","row","error"]);const Ql=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ql.displayName="RadioGroupContext");const yE=e=>{const{classes:t,row:r,error:n}=e;return Ge({root:["root",r&&"row",n&&"error"]},gE,t)},Uh=j.forwardRef(function(t,r){const{actions:n,children:i,className:a,defaultValue:l,name:s,onChange:c,value:u,...f}=t,d=j.useRef(null),y=yE(t),[m,b]=qr({controlled:u,default:l,name:"RadioGroup"});j.useImperativeHandle(n,()=>({focus:()=>{let E=d.current.querySelector("input:not(:disabled):checked");E||(E=d.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const h=Ot(r,d),v=vo(s),C=j.useMemo(()=>({name:v,onChange(E){b(E.target.value),c&&c(E,E.target.value)},value:m}),[v,c,b,m]);return N.jsx(Ql.Provider,{value:C,children:N.jsx(Jl,{role:"radiogroup",ref:h,className:Pe(y.root,a),...f,children:i})})});process.env.NODE_ENV!=="production"&&(Uh.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});function vE(){return j.useContext(Ql)}function bE(e){return We("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const xE=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${he(i)}`],input:["input"]};return Ge(a,bE,t)},OE=xe(Wr)({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}}]}),EE=xe("input",{shouldForwardProp:Nt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zl=j.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:l,defaultChecked:s,disabled:c,disableFocusRipple:u=!1,edge:f=!1,icon:d,id:y,inputProps:m,inputRef:b,name:h,onBlur:v,onChange:C,onFocus:E,readOnly:S,required:T=!1,tabIndex:w,type:A,value:M,...O}=t,[g,p]=qr({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),x=dr(),R=G=>{E&&E(G),x&&x.onFocus&&x.onFocus(G)},P=G=>{v&&v(G),x&&x.onBlur&&x.onBlur(G)},_=G=>{if(G.nativeEvent.defaultPrevented)return;const B=G.target.checked;p(B),C&&C(G,B)};let k=c;x&&typeof k>"u"&&(k=x.disabled);const D=A==="checkbox"||A==="radio",W={...t,checked:g,disabled:k,disableFocusRipple:u,edge:f},Z=xE(W);return N.jsxs(OE,{component:"span",className:Pe(Z.root,l),centerRipple:!0,focusRipple:!u,disabled:k,tabIndex:null,role:void 0,onFocus:R,onBlur:P,ownerState:W,ref:r,...O,children:[N.jsx(EE,{autoFocus:n,checked:i,defaultChecked:s,className:Z.input,disabled:k,id:D?y:void 0,name:h,onChange:_,readOnly:S,ref:b,required:T,ownerState:W,tabIndex:w,type:A,...A==="checkbox"&&M===void 0?{}:{value:M},...m}),g?a:d]})});process.env.NODE_ENV!=="production"&&(Zl.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Dt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const CE=_t(N.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"),SE=_t(N.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"),TE=xe("span",{shouldForwardProp:Nt})({position:"relative",display:"flex"}),wE=xe(CE)({transform:"scale(1)"}),RE=xe(SE)(Ke(({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 ec(e){const{checked:t=!1,classes:r={},fontSize:n}=e,i={...e,checked:t};return N.jsxs(TE,{className:r.root,ownerState:i,children:[N.jsx(wE,{fontSize:n,className:r.background,ownerState:i}),N.jsx(RE,{fontSize:n,className:r.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(ec.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});function PE(e){return We("MuiRadio",e)}const Wh=qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),_E=e=>{const{classes:t,color:r,size:n}=e,i={root:["root",`color${he(r)}`,n!=="medium"&&`size${he(n)}`]};return{...t,...Ge(i,PE,t)}},IE=xe(Zl,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${he(r.size)}`],t[`color${he(r.color)}`]]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Wh.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})`:Qe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).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})`:Qe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Wh.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function kE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Hh=N.jsx(ec,{checked:!0}),Gh=N.jsx(ec,{}),Kh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=Hh,color:l="primary",icon:s=Gh,name:c,onChange:u,size:f="medium",className:d,disabled:y,disableRipple:m=!1,...b}=n,h=dr();let v=y;h&&typeof v>"u"&&(v=h.disabled),v??(v=!1);const C={...n,disabled:v,disableRipple:m,color:l,size:f},E=_E(C),S=vE();let T=i;const w=Ol(u,S&&S.onChange);let A=c;return S&&(typeof T>"u"&&(T=kE(S.value,n.value)),typeof A>"u"&&(A=S.name)),N.jsx(IE,{type:"radio",icon:j.cloneElement(s,{fontSize:Gh.props.fontSize??f}),checkedIcon:j.cloneElement(a,{fontSize:Hh.props.fontSize??f}),disabled:v,ownerState:C,classes:E,name:A,checked:T,onChange:w,ref:r,className:Pe(E.root,d),...b})});process.env.NODE_ENV!=="production"&&(Kh.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Dt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Yh="Radios",ii={formControl:`${Yh}-formControl`,group:`${Yh}-group`},jE=jo(an)(({theme:e})=>({[`&.${ii.formControl}`]:{marginTop:e.spacing(1)},[`& .${ii.group}`]:{margin:e.spacing(1,0)}}));class AE extends we.Component{constructor(){super(...arguments);Tt(this,"renderItems",r=>{const{localization:{getLocalizedString:n}}=this.props;return r.titleMap.map((i,a)=>N.jsx(Xl,{control:N.jsx(Kh,{}),label:i.name&&n(i.name),value:i.value,disabled:r.readonly},a))})}render(){const{form:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a}}=this.props;return N.jsxs(jE,{component:"fieldset",className:ii.formControl,...r.otherProps,children:[N.jsx(Nr,{component:"legend",required:r.required,children:r.title&&a(r.title)}),N.jsx(Uh,{value:n,name:r.title,onChange:i,className:ii.group,children:this.renderItems(r)})]})}}const NE=jt(AE),$E=jt(e=>{const{value:t,localization:{getLocalizedDate:r},form:n,type:i}=e;return N.jsx(Hn,{...e,form:{...n,type:i},value:r(t),otherProps:{InputLabelProps:{shrink:!0}},...n.otherProps})},{type:"date"});class ME extends we.Component{constructor(t){super(t);const{model:r,form:n,value:i,setDefault:a}=this.props,{key:l}=n,c=new Date().toISOString().substring(0,16);a(l,r,n,i||c)}render(){const{form:t,error:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a}}=this.props;return N.jsx(ti,{type:"datetime-local",label:t.title&&a(t.title),placeholder:t.placeholder&&a(t.placeholder),helperText:(r||t.description)&&a(r||t.description),error:!!r,onChange:i,value:n||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...t.otherProps})}}const DE=jt(ME),LE=_t(N.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"),FE=_t(N.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"),BE=_t(N.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 qE(e){return We("MuiCheckbox",e)}const tc=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zE=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${he(n)}`,`size${he(i)}`]},l=Ge(a,qE,t);return{...t,...l}},VE=xe(Zl,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${he(r.size)}`],r.color!=="default"&&t[`color${he(r.color)}`]]}})(Ke(({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})`:Qe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{[`&.${tc.checked}, &.${tc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${tc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),UE=N.jsx(FE,{}),WE=N.jsx(LE,{}),HE=N.jsx(BE,{}),Xh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=UE,color:a="primary",icon:l=WE,indeterminate:s=!1,indeterminateIcon:c=HE,inputProps:u,size:f="medium",disableRipple:d=!1,className:y,...m}=n,b=s?c:l,h=s?c:i,v={...n,disableRipple:d,color:a,indeterminate:s,size:f},C=zE(v);return N.jsx(VE,{type:"checkbox",inputProps:{"data-indeterminate":s,...u},icon:j.cloneElement(b,{fontSize:b.props.fontSize??f}),checkedIcon:j.cloneElement(h,{fontSize:h.props.fontSize??f}),ownerState:v,ref:r,className:Pe(C.root,y),disableRipple:d,...m,classes:C})});process.env.NODE_ENV!=="production"&&(Xh.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,inputRef:Dt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function GE(e){const{model:t,form:r,value:n,setDefault:i,localization:{getLocalizedString:a},onChangeValidate:l}=e,{key:s}=r;return i(s,t,r,n),N.jsx(Jl,{row:!0,children:N.jsx(Xl,{className:r.className,label:r.title&&a(r.title),control:N.jsx(Xh,{name:r.key.slice(-1)[0],value:r.key.slice(-1)[0],checked:n||!1,disabled:r.readonly,onChange:l}),...r.otherProps})})}const KE=jt(GE),YE=({form:{description:e,variant:t,align:r,color:n,noWrap:i,paragraph:a,otherProps:l}})=>N.jsx(ni,{variant:t,align:r,color:n,noWrap:i,paragraph:a,...l,children:e});function XE(e){return We("MuiButton",e)}const cn=qe("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"]),Jh=j.createContext({});process.env.NODE_ENV!=="production"&&(Jh.displayName="ButtonGroupContext");const Qh=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qh.displayName="ButtonGroupButtonContext");const JE=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:l}=e,s={root:["root",a,`${a}${he(t)}`,`size${he(i)}`,`${a}Size${he(i)}`,`color${he(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${he(i)}`],endIcon:["icon","endIcon",`iconSize${he(i)}`]},c=Ge(s,XE,l);return{...l,...c}},Zh=[{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}}}],QE=xe(Wr,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${he(r.color)}`],t[`size${he(r.size)}`],t[`${r.variant}Size${he(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=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"},[`&.${cn.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]},[`&.${cn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${cn.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)",[`&.${cn.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($t()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:Qe(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[n].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:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(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"},[`&.${cn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),ZE=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Zh]}),eC=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Zh]}),em=j.forwardRef(function(t,r){const n=j.useContext(Jh),i=j.useContext(Qh),a=Ao(n,t),l=Je({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:u="button",className:f,disabled:d=!1,disableElevation:y=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:h,fullWidth:v=!1,size:C="medium",startIcon:E,type:S,variant:T="text",...w}=l,A={...l,color:c,component:u,disabled:d,disableElevation:y,disableFocusRipple:m,fullWidth:v,size:C,type:S,variant:T},M=JE(A),O=E&&N.jsx(ZE,{className:M.startIcon,ownerState:A,children:E}),g=b&&N.jsx(eC,{className:M.endIcon,ownerState:A,children:b}),p=i||"";return N.jsxs(QE,{ownerState:A,className:Pe(n.className,M.root,f,p),component:u,disabled:d,focusRipple:!m,focusVisibleClassName:Pe(M.focusVisible,h),ref:r,type:S,...w,classes:M,children:[O,s,g]})});process.env.NODE_ENV!=="production"&&(em.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function tC(e){return We("MuiCard",e)}qe("MuiCard",["root"]);const rC=e=>{const{classes:t}=e;return Ge({root:["root"]},tC,t)},nC=xe(Vn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),tm=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...l}=n,s={...n,raised:a},c=rC(s);return N.jsx(nC,{className:Pe(c.root,i),elevation:a?8:void 0,ref:r,ownerState:s,...l})});process.env.NODE_ENV!=="production"&&(tm.propTypes={children:o.node,classes:o.object,className:o.string,raised:ur(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function oC(e){return We("MuiIconButton",e)}const iC=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),aC=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,l={root:["root",r&&"disabled",n!=="default"&&`color${he(n)}`,i&&`edge${he(i)}`,`size${he(a)}`]};return Ge(l,oC,t)},sC=xe(Wr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${he(r.color)}`],r.edge&&t[`edge${he(r.edge)}`],t[`size${he(r.size)}`]]}})(Ke(({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})`:Qe(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}}]})),Ke(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe((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)}}],[`&.${iC.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),ai=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:f="medium",...d}=n,y={...n,edge:i,color:s,disabled:c,disableFocusRipple:u,size:f},m=aC(y);return N.jsx(sC,{className:Pe(m.root,l),centerRipple:!0,focusRipple:!u,disabled:c,ref:r,...d,ownerState:y,children:a})});process.env.NODE_ENV!=="production"&&(ai.propTypes={children:ur(o.node,e=>j.Children.toArray(e.children).some(r=>j.isValidElement(r)&&r.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(`
|
|
209
|
-
`))
|
|
209
|
+
`,Wb=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:l,...a}=o,[c,u]=E.useState([]),d=E.useRef(0),p=E.useRef(null);E.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const h=E.useRef(!1),b=Fm(),y=E.useRef(null),m=E.useRef(null),g=E.useCallback(T=>{const{pulsate:R,rippleX:A,rippleY:N,rippleSize:S,cb:v}=T;u(f=>[...f,k.jsx(JT,{classes:{ripple:we(s.ripple,Sn.ripple),rippleVisible:we(s.rippleVisible,Sn.rippleVisible),ripplePulsate:we(s.ripplePulsate,Sn.ripplePulsate),child:we(s.child,Sn.child),childLeaving:we(s.childLeaving,Sn.childLeaving),childPulsate:we(s.childPulsate,Sn.childPulsate)},timeout:Nu,pulsate:R,rippleX:A,rippleY:N,rippleSize:S},d.current)]),d.current+=1,p.current=v},[s]),w=E.useCallback((T={},R={},A=()=>{})=>{const{pulsate:N=!1,center:S=i||R.pulsate,fakeElement:v=!1}=R;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 f=v?null:m.current,C=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,M,D;if(S||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)P=Math.round(C.width/2),M=Math.round(C.height/2);else{const{clientX:I,clientY:j}=T.touches&&T.touches.length>0?T.touches[0]:T;P=Math.round(I-C.left),M=Math.round(j-C.top)}if(S)D=Math.sqrt((2*C.width**2+C.height**2)/3),D%2===0&&(D+=1);else{const I=Math.max(Math.abs((f?f.clientWidth:0)-P),P)*2+2,j=Math.max(Math.abs((f?f.clientHeight:0)-M),M)*2+2;D=Math.sqrt(I**2+j**2)}T!=null&&T.touches?y.current===null&&(y.current=()=>{g({pulsate:N,rippleX:P,rippleY:M,rippleSize:D,cb:A})},b.start(KT,()=>{y.current&&(y.current(),y.current=null)})):g({pulsate:N,rippleX:P,rippleY:M,rippleSize:D,cb:A})},[i,g,b]),x=E.useCallback(()=>{w({},{pulsate:!0})},[w]),O=E.useCallback((T,R)=>{if(b.clear(),(T==null?void 0:T.type)==="touchend"&&y.current){y.current(),y.current=null,b.start(0,()=>{O(T,R)});return}y.current=null,u(A=>A.length>0?A.slice(1):A),p.current=R},[b]);return E.useImperativeHandle(n,()=>({pulsate:x,start:w,stop:O}),[x,w,O]),k.jsx(ZT,{className:we(Sn.root,s.root,l),ref:m,...a,children:k.jsx(Ko,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Wb.propTypes={center:r.bool,classes:r.object,className:r.string});function e1(e){return Ye("MuiButtonBase",e)}const t1=qe("MuiButtonBase",["root","disabled","focusVisible"]),n1=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:i}=e,l=Xe({root:["root",t&&"disabled",n&&"focusVisible"]},e1,i);return n&&o&&(l.root+=` ${o}`),l},r1=re("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"},[`&.${t1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vn=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:l,className:a,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:b,LinkComponent:y="a",onBlur:m,onClick:g,onContextMenu:w,onDragLeave:x,onFocus:O,onFocusVisible:T,onKeyDown:R,onKeyUp:A,onMouseDown:N,onMouseLeave:S,onMouseUp:v,onTouchEnd:f,onTouchMove:C,onTouchStart:P,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:I,type:j,...$}=o,F=E.useRef(null),L=HT(),_=At(L.ref,I),[B,oe]=E.useState(!1);u&&B&&oe(!1),E.useImperativeHandle(i,()=>({focusVisible:()=>{oe(!0),F.current.focus()}}),[]);const X=L.shouldMount&&!d&&!u;E.useEffect(()=>{B&&h&&!d&&L.pulsate()},[d,h,B,L]);const ee=Zn(L,"start",N,p),Y=Zn(L,"stop",w,p),J=Zn(L,"stop",x,p),se=Zn(L,"stop",v,p),z=Zn(L,"stop",Te=>{B&&Te.preventDefault(),S&&S(Te)},p),H=Zn(L,"start",P,p),G=Zn(L,"stop",f,p),ue=Zn(L,"stop",C,p),U=Zn(L,"stop",Te=>{Vm(Te.target)||oe(!1),m&&m(Te)},!1),Q=pn(Te=>{F.current||(F.current=Te.currentTarget),Vm(Te.target)&&(oe(!0),T&&T(Te)),O&&O(Te)}),q=()=>{const Te=F.current;return c&&c!=="button"&&!(Te.tagName==="A"&&Te.href)},ne=pn(Te=>{h&&!Te.repeat&&B&&Te.key===" "&&L.stop(Te,()=>{L.start(Te)}),Te.target===Te.currentTarget&&q()&&Te.key===" "&&Te.preventDefault(),R&&R(Te),Te.target===Te.currentTarget&&q()&&Te.key==="Enter"&&!u&&(Te.preventDefault(),g&&g(Te))}),Z=pn(Te=>{h&&Te.key===" "&&B&&!Te.defaultPrevented&&L.stop(Te,()=>{L.pulsate(Te)}),A&&A(Te),g&&Te.target===Te.currentTarget&&q()&&Te.key===" "&&!Te.defaultPrevented&&g(Te)});let te=c;te==="button"&&($.href||$.to)&&(te=y);const le={};te==="button"?(le.type=j===void 0?"button":j,le.disabled=u):(!$.href&&!$.to&&(le.role="button"),u&&(le["aria-disabled"]=u));const fe=At(n,F),xe={...o,centerRipple:s,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:M,focusVisible:B},Ee=n1(xe);return k.jsxs(r1,{as:te,className:we(Ee.root,a),ownerState:xe,onBlur:U,onClick:g,onContextMenu:Y,onFocus:Q,onKeyDown:ne,onKeyUp:Z,onMouseDown:ee,onMouseLeave:z,onMouseUp:se,onDragLeave:J,onTouchEnd:G,onTouchMove:ue,onTouchStart:H,ref:fe,tabIndex:u?-1:M,type:j,...le,...$,children:[l,X?k.jsx(Wb,{ref:_,center:s,...D}):null]})});function Zn(e,t,n,o=!1){return pn(i=>(n&&n(i),o||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Vn.propTypes={action:Yt,centerRipple:r.bool,children:r.node,classes:r.object,className:r.string,component:ss,disabled:r.bool,disableRipple:r.bool,disableTouchRipple:r.bool,focusRipple:r.bool,focusVisibleClassName:r.string,href:r.any,LinkComponent:r.elementType,onBlur:r.func,onClick:r.func,onContextMenu:r.func,onDragLeave:r.func,onFocus:r.func,onFocusVisible:r.func,onKeyDown:r.func,onKeyUp:r.func,onMouseDown:r.func,onMouseLeave:r.func,onMouseUp:r.func,onTouchEnd:r.func,onTouchMove:r.func,onTouchStart:r.func,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,TouchRippleProps:r.object,touchRippleRef:r.oneOfType([r.func,r.shape({current:r.shape({pulsate:r.func.isRequired,start:r.func.isRequired,stop:r.func.isRequired})})]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string])});function o1(e){return Ye("MuiDivider",e)}const Hb=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),i1=e=>{const{absolute:t,children:n,classes:o,flexItem:i,light:s,orientation:l,textAlign:a,variant:c}=e;return Xe({root:["root",t&&"absolute",c,s&&"light",l==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",a==="right"&&l!=="vertical"&&"textAlignRight",a==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},o1,o)},s1=re("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Qe(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:et(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),a1=re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Qe(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),ni=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:l,orientation:a="horizontal",component:c=s||a==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:p=c!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth",...y}=o,m={...o,absolute:i,component:c,flexItem:u,light:d,orientation:a,role:p,textAlign:h,variant:b},g=i1(m);return k.jsx(s1,{as:c,className:we(g.root,l),role:p,ref:n,ownerState:m,"aria-orientation":p==="separator"&&(c!=="hr"||a==="vertical")?a:void 0,...y,children:s?k.jsx(a1,{className:g.wrapper,ownerState:m,children:s}):null})});ni&&(ni.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(ni.propTypes={absolute:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,flexItem:r.bool,light:r.bool,orientation:r.oneOf(["horizontal","vertical"]),role:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),textAlign:r.oneOf(["center","left","right"]),variant:r.oneOfType([r.oneOf(["fullWidth","inset","middle"]),r.string])});const Yb=qe("MuiListItemIcon",["root","alignItemsFlexStart"]);function l1(e){return Ye("MuiTypography",e)}qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const c1={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},u1=_0(),d1=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:i,variant:s,classes:l}=e,a={root:["root",s,e.align!=="inherit"&&`align${Re(t)}`,n&&"gutterBottom",o&&"noWrap",i&&"paragraph"]};return Xe(a,l1,l)},p1=re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Re(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Qe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(Qt()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Re(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Kb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wn=E.forwardRef(function(t,n){const{color:o,...i}=tt({props:t,name:"MuiTypography"}),s=!c1[o],l=u1({...i,...s&&{color:o}}),{align:a="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:b="body1",variantMapping:y=Kb,...m}=l,g={...l,align:a,color:o,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:h,variant:b,variantMapping:y},w=u||(h?"p":y[b]||Kb[b])||"span",x=d1(g);return k.jsx(p1,{as:w,ref:n,className:we(x.root,c),...m,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...m.style}})});process.env.NODE_ENV!=="production"&&(wn.propTypes={align:r.oneOf(["center","inherit","justify","left","right"]),children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),r.string]),component:r.elementType,gutterBottom:r.bool,noWrap:r.bool,paragraph:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.string]),variantMapping:r.object});const Gb=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function f1(e){return Ye("MuiMenuItem",e)}const ri=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),h1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},m1=e=>{const{disabled:t,dense:n,divider:o,disableGutters:i,selected:s,classes:l}=e,c=Xe({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",o&&"divider",s&&"selected"]},f1,l);return{...l,...c}},b1=re(Vn,{shouldForwardProp:e=>Xt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:h1})(Qe(({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"}},[`&.${ri.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:et(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ri.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ri.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:et(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})`:et(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ri.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ri.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Hb.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Hb.inset}`]:{marginLeft:52},[`& .${Gb.root}`]:{marginTop:0,marginBottom:0},[`& .${Gb.inset}`]:{paddingLeft:36},[`& .${Yb.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,[`& .${Yb.root} svg`]:{fontSize:"1.25rem"}}}]}))),Qr=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:l=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:h,...b}=o,y=E.useContext(dr),m=E.useMemo(()=>({dense:l||y.dense||!1,disableGutters:c}),[y.dense,l,c]),g=E.useRef(null);vn(()=>{i&&(g.current?g.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={...o,dense:m.dense,divider:a,disableGutters:c},x=m1(o),O=At(g,n);let T;return o.disabled||(T=p!==void 0?p:-1),k.jsx(dr.Provider,{value:m,children:k.jsx(b1,{ref:O,role:d,tabIndex:T,component:s,focusVisibleClassName:we(x.focusVisible,u),className:we(x.root,h),...b,ownerState:w,classes:x})})});process.env.NODE_ENV!=="production"&&(Qr.propTypes={autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disabled:r.bool,disableGutters:r.bool,divider:r.bool,focusVisibleClassName:r.string,role:r.string,selected:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number});function g1(e){const{model:t,form:n,error:o,setDefault:i,onChange:s,onChangeValidate:l,localization:{getLocalizedString:a},form:{key:c,schema:{isObject:u,enum:d,findFn:p,displayFn:h,noLocalization:b}}}=e;let y=n&&n.selectProps&&n.selectProps.multiple?[]:"";e.form.default?y=e.form.default:e.form.schema&&e.form.schema.default&&(y=e.form.schema.default);const[m,g]=_e.useState(Wt.getValueFromModel(t,n.key)||y);_e.useEffect(()=>{i(c,t,n,m)},[]);const w=T=>{const R=T.target.value;if(g(R),u){const A=d.find(N=>p?p(N,R):N===R);s(c,A)}else l(T)},x=T=>h?h(T):b?T.name:a(T.name);let O=[];return u?O=n.schema.enum.map((T,R)=>k.jsx(Qr,{value:T,children:x(T)},R)):O=n.titleMap.map((T,R)=>k.jsx(Qr,{value:T.value,children:x(T)},R)),k.jsxs(wr,{fullWidth:!0,error:!!o,...n.otherProps,children:[k.jsx(Uo,{required:n.required,...n.labelProps,children:n.title&&a(n.title)}),k.jsx(ei,{value:m,placeholder:n.placeholder&&a(n.placeholder),disabled:n.readonly,onChange:w,...n.selectProps,children:O}),k.jsx(Kr,{...n.helperTextProps,children:(o||n.description)&&a(o||n.description)})]})}const y1=Ht(g1),v1=Et(k.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 x1(e){return Ye("MuiChip",e)}const ot=qe("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"]),C1=e=>{const{classes:t,disabled:n,size:o,color:i,iconColor:s,onDelete:l,clickable:a,variant:c}=e,u={root:["root",c,n&&"disabled",`size${Re(o)}`,`color${Re(i)}`,a&&"clickable",a&&`clickableColor${Re(i)}`,l&&"deletable",l&&`deletableColor${Re(i)}`,`${c}${Re(i)}`],label:["label",`label${Re(o)}`],avatar:["avatar",`avatar${Re(o)}`,`avatarColor${Re(i)}`],icon:["icon",`icon${Re(o)}`,`iconColor${Re(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Re(o)}`,`deleteIconColor${Re(i)}`,`deleteIcon${Re(c)}Color${Re(i)}`]};return Xe(u,x1,t)},S1=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:i,clickable:s,onDelete:l,size:a,variant:c}=n;return[{[`& .${ot.avatar}`]:t.avatar},{[`& .${ot.avatar}`]:t[`avatar${Re(a)}`]},{[`& .${ot.avatar}`]:t[`avatarColor${Re(o)}`]},{[`& .${ot.icon}`]:t.icon},{[`& .${ot.icon}`]:t[`icon${Re(a)}`]},{[`& .${ot.icon}`]:t[`iconColor${Re(i)}`]},{[`& .${ot.deleteIcon}`]:t.deleteIcon},{[`& .${ot.deleteIcon}`]:t[`deleteIcon${Re(a)}`]},{[`& .${ot.deleteIcon}`]:t[`deleteIconColor${Re(o)}`]},{[`& .${ot.deleteIcon}`]:t[`deleteIcon${Re(c)}Color${Re(o)}`]},t.root,t[`size${Re(a)}`],t[`color${Re(o)}`],s&&t.clickable,s&&o!=="default"&&t[`clickableColor${Re(o)})`],l&&t.deletable,l&&o!=="default"&&t[`deletableColor${Re(o)}`],t[c],t[`${c}${Re(o)}`]]}})(Qe(({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",[`&.${ot.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ot.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ot.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ot.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ot.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ot.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ot.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:et(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)`:et(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ot.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ot.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Qt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ot.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:et(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ot.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ot.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Qt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ot.focusVisible}`]:{background:(e.vars||e).palette[n].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}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Qt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ot.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].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]}`,[`&.${ot.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ot.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ot.avatar}`]:{marginLeft:4},[`& .${ot.avatarSmall}`]:{marginLeft:2},[`& .${ot.icon}`]:{marginLeft:4},[`& .${ot.iconSmall}`]:{marginLeft:2},[`& .${ot.deleteIcon}`]:{marginRight:5},[`& .${ot.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Qt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:et(e.palette[n].main,.7)}`,[`&.${ot.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:et(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${ot.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:et(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),w1=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${Re(o)}`]]}})({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 Xb(e){return e.key==="Backspace"||e.key==="Delete"}const Es=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiChip"}),{avatar:i,className:s,clickable:l,color:a="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:h,onClick:b,onDelete:y,onKeyDown:m,onKeyUp:g,size:w="medium",variant:x="filled",tabIndex:O,skipFocusWhenDisabled:T=!1,...R}=o,A=E.useRef(null),N=At(A,n),S=L=>{L.stopPropagation(),y&&y(L)},v=L=>{L.currentTarget===L.target&&Xb(L)&&L.preventDefault(),m&&m(L)},f=L=>{L.currentTarget===L.target&&y&&Xb(L)&&y(L),g&&g(L)},C=l!==!1&&b?!0:l,P=C||y?Vn:c||"div",M={...o,component:P,disabled:d,size:w,color:a,iconColor:E.isValidElement(p)&&p.props.color||a,onDelete:!!y,clickable:C,variant:x},D=C1(M),I=P===Vn?{component:c||"div",focusVisibleClassName:D.focusVisible,...y&&{disableRipple:!0}}:{};let j=null;y&&(j=u&&E.isValidElement(u)?E.cloneElement(u,{className:we(u.props.className,D.deleteIcon),onClick:S}):k.jsx(v1,{className:we(D.deleteIcon),onClick:S}));let $=null;i&&E.isValidElement(i)&&($=E.cloneElement(i,{className:we(D.avatar,i.props.className)}));let F=null;return p&&E.isValidElement(p)&&(F=E.cloneElement(p,{className:we(D.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&$&&F&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),k.jsxs(S1,{as:P,className:we(D.root,s),disabled:C&&d?!0:void 0,onClick:b,onKeyDown:v,onKeyUp:f,ref:N,tabIndex:T&&d?-1:O,ownerState:M,...I,...R,children:[$||F,k.jsx(w1,{className:we(D.label),ownerState:M,children:h}),j]})});process.env.NODE_ENV!=="production"&&(Es.propTypes={avatar:r.element,children:Nm,classes:r.object,className:r.string,clickable:r.bool,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,deleteIcon:r.element,disabled:r.bool,icon:r.element,label:r.node,onClick:r.func,onDelete:r.func,onKeyDown:r.func,onKeyUp:r.func,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),skipFocusWhenDisabled:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,variant:r.oneOfType([r.oneOf(["filled","outlined"]),r.string])});const oi="MultiSelect",Ln={root:`${oi}-root`,chips:`${oi}-chips`,chip:`${oi}-chip`,menuItem:`${oi}-menuItem`,selectedMenuItem:`${oi}-selectedMenuItem`},O1=ns("div")(({theme:e})=>({[`&.${Ln.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${Ln.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${Ln.chip}`]:{margin:e.spacing(.25)},[`& .${Ln.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${Ln.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),T1={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}};class E1 extends _e.Component{constructor(n){super(n);Vt(this,"onSelected",n=>{const{onChangeValidate:o}=this.props,i=n.target.value;this.setState({currentValue:i}),o(i)});const{model:o,form:i}=this.props;this.state={currentValue:Wt.getValueFromModel(o,i.key)||[]}}static getDerivedStateFromProps(n){const{model:o,form:i}=n;return o&&i.key?{currentValue:Wt.getValueFromModel(o,i.key)||[]}:null}render(){const{form:n,localization:{getLocalizedString:o}}=this.props,{currentValue:i}=this.state,s=Wt.getTitleByValue.bind(this,n.titleMap),l=n.titleMap.map(a=>k.jsx(Qr,{value:a.value,className:i.indexOf(a.value)===-1?Ln.menuItem:Ln.selectedMenuItem,children:a.name&&o(a.name)},a.value));return k.jsx(O1,{className:Ln.root,children:k.jsxs(wr,{fullWidth:!0,...n.otherProps,children:[k.jsx(Uo,{required:n.required,children:n.title&&o(n.title)}),k.jsx(ei,{multiple:!0,value:i||"",placeholder:n.placeholder&&o(n.placeholder),disabled:n.readonly,onChange:this.onSelected,MenuProps:T1,renderValue:a=>k.jsx("div",{className:Ln.chips,children:a.map(c=>k.jsx(Es,{label:s(c)&&o(s(c)),className:Ln.chip},c))}),children:l})]})})}}const R1=Ht(E1);function P1(e){return Ye("MuiFormControlLabel",e)}const ii=qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),k1=e=>{const{classes:t,disabled:n,labelPlacement:o,error:i,required:s}=e,l={root:["root",n&&"disabled",`labelPlacement${Re(o)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Xe(l,P1,t)},M1=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ii.label}`]:t.label},t.root,t[`labelPlacement${Re(n.labelPlacement)}`]]}})(Qe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ii.disabled}`]:{cursor:"default"},[`& .${ii.label}`]:{[`&.${ii.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}}]}))),I1=re("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Qe(({theme:e})=>({[`&.${ii.error}`]:{color:(e.vars||e).palette.error.main}}))),_u=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:l={},control:a,disabled:c,disableTypography:u,inputRef:d,label:p,labelPlacement:h="end",name:b,onChange:y,required:m,slots:g={},slotProps:w={},value:x,...O}=o,T=en(),R=c??a.props.disabled??(T==null?void 0:T.disabled),A=m??a.props.required,N={disabled:R,required:A};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof a.props[I]>"u"&&typeof o[I]<"u"&&(N[I]=o[I])});const S=lr({props:o,muiFormControl:T,states:["error"]}),v={...o,disabled:R,labelPlacement:h,required:A,error:S.error},f=k1(v),C={slots:g,slotProps:{...l,...w}},[P,M]=tn("typography",{elementType:wn,externalForwardedProps:C,ownerState:v});let D=p;return D!=null&&D.type!==wn&&!u&&(D=k.jsx(P,{component:"span",...M,className:we(f.label,M==null?void 0:M.className),children:D})),k.jsxs(M1,{className:we(f.root,s),ownerState:v,ref:n,...O,children:[E.cloneElement(a,N),A?k.jsxs("div",{children:[D,k.jsxs(I1,{ownerState:v,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}):D]})});process.env.NODE_ENV!=="production"&&(_u.propTypes={checked:r.bool,classes:r.object,className:r.string,componentsProps:r.shape({typography:r.object}),control:r.element.isRequired,disabled:r.bool,disableTypography:r.bool,inputRef:Yt,label:r.node,labelPlacement:r.oneOf(["bottom","end","start","top"]),name:r.string,onChange:r.func,required:r.bool,slotProps:r.shape({typography:r.oneOfType([r.func,r.object])}),slots:r.shape({typography:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});function D1(e){return Ye("MuiFormGroup",e)}qe("MuiFormGroup",["root","row","error"]);const j1=e=>{const{classes:t,row:n,error:o}=e;return Xe({root:["root",n&&"row",o&&"error"]},D1,t)},A1=re("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),$u=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...l}=o,a=en(),c=lr({props:o,muiFormControl:a,states:["error"]}),u={...o,row:s,error:c.error},d=j1(u);return k.jsx(A1,{className:we(d.root,i),ownerState:u,ref:n,...l})});process.env.NODE_ENV!=="production"&&($u.propTypes={children:r.node,classes:r.object,className:r.string,row:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function N1(e){return Ye("MuiRadioGroup",e)}qe("MuiRadioGroup",["root","row","error"]);const Fu=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(Fu.displayName="RadioGroupContext");const _1=e=>{const{classes:t,row:n,error:o}=e;return Xe({root:["root",n&&"row",o&&"error"]},N1,t)},Qb=E.forwardRef(function(t,n){const{actions:o,children:i,className:s,defaultValue:l,name:a,onChange:c,value:u,...d}=t,p=E.useRef(null),h=_1(t),[b,y]=xr({controlled:u,default:l,name:"RadioGroup"});E.useImperativeHandle(o,()=>({focus:()=>{let x=p.current.querySelector("input:not(:disabled):checked");x||(x=p.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=At(n,p),g=wo(a),w=E.useMemo(()=>({name:g,onChange(x){y(x.target.value),c&&c(x,x.target.value)},value:b}),[g,c,y,b]);return k.jsx(Fu.Provider,{value:w,children:k.jsx($u,{role:"radiogroup",ref:m,className:we(h.root,s),...d,children:i})})});process.env.NODE_ENV!=="production"&&(Qb.propTypes={children:r.node,className:r.string,defaultValue:r.any,name:r.string,onChange:r.func,value:r.any});function $1(){return E.useContext(Fu)}function F1(e){return Ye("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const V1=e=>{const{classes:t,checked:n,disabled:o,edge:i}=e,s={root:["root",n&&"checked",o&&"disabled",i&&`edge${Re(i)}`],input:["input"]};return Xe(s,F1,t)},L1=re(Vn)({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}}]}),B1=re("input",{shouldForwardProp:Xt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Vu=E.forwardRef(function(t,n){const{autoFocus:o,checked:i,checkedIcon:s,className:l,defaultChecked:a,disabled:c,disableFocusRipple:u=!1,edge:d=!1,icon:p,id:h,inputProps:b,inputRef:y,name:m,onBlur:g,onChange:w,onFocus:x,readOnly:O,required:T=!1,tabIndex:R,type:A,value:N,...S}=t,[v,f]=xr({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),C=en(),P=L=>{x&&x(L),C&&C.onFocus&&C.onFocus(L)},M=L=>{g&&g(L),C&&C.onBlur&&C.onBlur(L)},D=L=>{if(L.nativeEvent.defaultPrevented)return;const _=L.target.checked;f(_),w&&w(L,_)};let I=c;C&&typeof I>"u"&&(I=C.disabled);const j=A==="checkbox"||A==="radio",$={...t,checked:v,disabled:I,disableFocusRipple:u,edge:d},F=V1($);return k.jsxs(L1,{component:"span",className:we(F.root,l),centerRipple:!0,focusRipple:!u,disabled:I,tabIndex:null,role:void 0,onFocus:P,onBlur:M,ownerState:$,ref:n,...S,children:[k.jsx(B1,{autoFocus:o,checked:i,defaultChecked:a,className:F.input,disabled:I,id:j?h:void 0,name:m,onChange:D,readOnly:O,ref:y,required:T,ownerState:$,tabIndex:R,type:A,...A==="checkbox"&&N===void 0?{}:{value:N},...b}),v?s:p]})});process.env.NODE_ENV!=="production"&&(Vu.propTypes={autoFocus:r.bool,checked:r.bool,checkedIcon:r.node.isRequired,classes:r.object,className:r.string,defaultChecked:r.bool,disabled:r.bool,disableFocusRipple:r.bool,edge:r.oneOf(["end","start",!1]),icon:r.node.isRequired,id:r.string,inputProps:r.object,inputRef:Yt,name:r.string,onBlur:r.func,onChange:r.func,onFocus:r.func,readOnly:r.bool,required:r.bool,sx:r.object,tabIndex:r.oneOfType([r.number,r.string]),type:r.string.isRequired,value:r.any});const q1=Et(k.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"),z1=Et(k.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"),U1=re("span",{shouldForwardProp:Xt})({position:"relative",display:"flex"}),W1=re(q1)({transform:"scale(1)"}),H1=re(z1)(Qe(({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 Lu(e){const{checked:t=!1,classes:n={},fontSize:o}=e,i={...e,checked:t};return k.jsxs(U1,{className:n.root,ownerState:i,children:[k.jsx(W1,{fontSize:o,className:n.background,ownerState:i}),k.jsx(H1,{fontSize:o,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Lu.propTypes={checked:r.bool,classes:r.object,fontSize:r.oneOf(["small","medium"])});function Y1(e){return Ye("MuiRadio",e)}const Zb=qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),K1=e=>{const{classes:t,color:n,size:o}=e,i={root:["root",`color${Re(n)}`,o!=="medium"&&`size${Re(o)}`]};return{...t,...Xe(i,Y1,t)}},G1=re(Vu,{shouldForwardProp:e=>Xt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${Re(n.size)}`],t[`color${Re(n.color)}`]]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Zb.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})`:et(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Qt()).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})`:et(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Zb.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function X1(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Jb=k.jsx(Lu,{checked:!0}),eg=k.jsx(Lu,{}),tg=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=Jb,color:l="primary",icon:a=eg,name:c,onChange:u,size:d="medium",className:p,disabled:h,disableRipple:b=!1,...y}=o,m=en();let g=h;m&&typeof g>"u"&&(g=m.disabled),g??(g=!1);const w={...o,disabled:g,disableRipple:b,color:l,size:d},x=K1(w),O=$1();let T=i;const R=uu(u,O&&O.onChange);let A=c;return O&&(typeof T>"u"&&(T=X1(O.value,o.value)),typeof A>"u"&&(A=O.name)),k.jsx(G1,{type:"radio",icon:E.cloneElement(a,{fontSize:eg.props.fontSize??d}),checkedIcon:E.cloneElement(s,{fontSize:Jb.props.fontSize??d}),disabled:g,ownerState:w,classes:x,name:A,checked:T,onChange:R,ref:n,className:we(x.root,p),...y})});process.env.NODE_ENV!=="production"&&(tg.propTypes={checked:r.bool,checkedIcon:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),disabled:r.bool,disableRipple:r.bool,icon:r.node,id:r.string,inputProps:r.object,inputRef:Yt,name:r.string,onChange:r.func,required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});const ng="Radios",Rs={formControl:`${ng}-formControl`,group:`${ng}-group`},Q1=ns(wr)(({theme:e})=>({[`&.${Rs.formControl}`]:{marginTop:e.spacing(1)},[`& .${Rs.group}`]:{margin:e.spacing(1,0)}}));class Z1 extends _e.Component{constructor(){super(...arguments);Vt(this,"renderItems",n=>{const{localization:{getLocalizedString:o}}=this.props;return n.titleMap.map((i,s)=>k.jsx(_u,{control:k.jsx(tg,{}),label:i.name&&o(i.name),value:i.value,disabled:n.readonly},s))})}render(){const{form:n,value:o,onChangeValidate:i,localization:{getLocalizedString:s}}=this.props;return k.jsxs(Q1,{component:"fieldset",className:Rs.formControl,...n.otherProps,children:[k.jsx(ur,{component:"legend",required:n.required,children:n.title&&s(n.title)}),k.jsx(Qb,{value:o,name:n.title,onChange:i,className:Rs.group,children:this.renderItems(n)})]})}}const J1=Ht(Z1),eE=Ht(e=>{const{value:t,localization:{getLocalizedDate:n},form:o,type:i}=e;return k.jsx(ti,{...e,form:{...o,type:i},value:n(t),otherProps:{InputLabelProps:{shrink:!0}},...o.otherProps})},{type:"date"});function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},W.apply(null,arguments)}function Le(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}const rg=jw({themeId:_o});function lt({props:e,name:t}){return Mw({props:e,name:t,defaultTheme:cs,themeId:_o})}function tE(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Jn=r.oneOfType([r.func,r.object]);function nE(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":tE(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Bu(e){return e&&e.ownerDocument||document}function rE(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Bn=typeof window<"u"?E.useLayoutEffect:E.useEffect;let og=0;function oE(e){const[t,n]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(og+=1,n(`mui-${og}`))},[t]),o}const ig={...E}.useId;function Zr(e){if(ig!==void 0){const t=ig();return e??t}return oE(e)}function Pr({controlled:e,default:t,name:n,state:o="value"}){const{current:i}=E.useRef(e!==void 0),[s,l]=E.useState(t),a=i?e:s;if(process.env.NODE_ENV!=="production"){E.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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(`
|
|
210
|
+
`))},[o,n,e]);const{current:u}=E.useRef(t);E.useEffect(()=>{!i&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
211
|
+
`))},[JSON.stringify(t)])}const c=E.useCallback(u=>{i||l(u)},[]);return[a,c]}function je(e){const t=E.useRef(e);return Bn(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function nn(...e){return E.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{rE(n,t)})},e)}const iE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ht(e,t,n=void 0){const o={};for(const i in e){const s=e[i];let l="",a=!0;for(let c=0;c<s.length;c+=1){const u=s[c];u&&(l+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(l+=" "+n[u]))}o[i]=l}return o}const sg=e=>e,sE=(()=>{let e=sg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sg}}})(),aE={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 mt(e,t,n="Mui"){const o=aE[t];return o?`${n}-${o}`:`${sE.generate(e)}-${t}`}function St(e,t,n="Mui"){const o={};return t.forEach(i=>{o[i]=mt(e,i,n)}),o}function lE(e){return typeof e=="string"}function cE(e,t,n){return e===void 0||lE(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function uE(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function ag(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function dE(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:i,className:s}=e;if(!t){const b=we(n==null?void 0:n.className,s,i==null?void 0:i.className,o==null?void 0:o.className),y={...n==null?void 0:n.style,...i==null?void 0:i.style,...o==null?void 0:o.style},m={...n,...i,...o};return b.length>0&&(m.className=b),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const l=uE({...i,...o}),a=ag(o),c=ag(i),u=t(l),d=we(u==null?void 0:u.className,n==null?void 0:n.className,s,i==null?void 0:i.className,o==null?void 0:o.className),p={...u==null?void 0:u.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...o==null?void 0:o.style},h={...u,...n,...c,...a};return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:u.ref}}function Ps(e,t,n){return typeof e=="function"?e(t,n):e}function wt(e){var p;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1,...s}=e,l=i?{}:Ps(n,o),{props:a,internalRef:c}=dE({...s,externalSlotProps:l}),u=nn(c,l==null?void 0:l.ref,(p=e.additionalProps)==null?void 0:p.ref);return cE(t,{...a,ref:u},o)}const qn=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),pE=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const i=n??o;let s;if(e!=null)s=e;else if(i.includes(t))s=t;else if(i.length>0)s=i[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:i,openTo:s}},ks=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},si=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:i,isDateDisabled:s,utils:l,timezone:a})=>{const c=ks(l,l.date(void 0,a),e);n&&l.isBefore(i,c)&&(i=c),t&&l.isAfter(o,c)&&(o=c);let u=e,d=e;for(l.isBefore(e,i)&&(u=i,d=null),l.isAfter(e,o)&&(d&&(d=o),u=null);u||d;){if(u&&l.isAfter(u,o)&&(u=null),d&&l.isBefore(d,i)&&(d=null),u){if(!s(u))return u;u=l.addDays(u,1)}if(d){if(!s(d))return d;d=l.addDays(d,-1)}}return null},fE=(e,t)=>t==null||!e.isValid(t)?null:t,On=(e,t,n)=>t==null||!e.isValid(t)?n:t,hE=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),qu=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const i=o[o.length-1];o.push(e.addMonths(i,1))}return o},zu=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),er=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},mE=["year","month","day"],Jr=e=>mE.includes(e),lg=(e,{format:t,views:n},o)=>{if(t!=null)return t;const i=e.formats;return qn(n,["year"])?i.year:qn(n,["month"])?i.month:qn(n,["day"])?i.dayOfMonth:qn(n,["month","year"])?`${i.month} ${i.year}`:qn(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:i.keyboardDate},bE=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},cg=["hours","minutes","seconds"],eo=e=>cg.includes(e),ai=e=>cg.includes(e)||e==="meridiem",gE=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,li=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,yE=(e,t,n,o)=>{const i=li(o.getHours(e),t,n);return o.setHours(e,i)},ug=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),ci=(e,t)=>(n,o)=>e?t.isAfter(n,o):ug(n,t)>ug(o,t),dg=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const i=e.formats;return qn(n,["hours"])?o?`${i.hours12h} ${i.meridiem}`:i.hours24h:qn(n,["minutes"])?i.minutes:qn(n,["seconds"])?i.seconds:qn(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:qn(n,["hours","minutes","seconds"])?o?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:o?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},Dn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},vE=e=>Math.max(...e.map(t=>Dn[t.type]??1)),ui=(e,t,n)=>{if(t===Dn.year)return e.startOfYear(n);if(t===Dn.month)return e.startOfMonth(n);if(t===Dn.day)return e.startOfDay(n);let o=n;return t<Dn.minutes&&(o=e.setMinutes(o,0)),t<Dn.seconds&&(o=e.setSeconds(o,0)),t<Dn.milliseconds&&(o=e.setMilliseconds(o,0)),o},xE=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:i})=>{let s=i?i():ui(t,n,zu(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=ui(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=ui(t,n,e.maxDate));const l=ci(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&l(e.minTime,s)&&(s=ui(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:ks(t,s,e.minTime))),e.maxTime!=null&&l(s,e.maxTime)&&(s=ui(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:ks(t,s,e.maxTime))),s},Uu=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
212
|
+
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},CE=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ms=(e,t)=>{const n=[],o=e.date(void 0,"default"),i=e.startOfWeek(o),s=e.endOfWeek(o);let l=i;for(;e.isBefore(l,s);)n.push(l),l=e.addDays(l,1);return n.map(a=>e.formatByString(a,t))},pg=(e,t,n,o)=>{switch(n){case"month":return qu(e,e.date(void 0,t)).map(i=>e.formatByString(i,o));case"weekDay":return Ms(e,o);case"meridiem":{const i=e.date(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(s=>e.formatByString(s,o))}default:return[]}},fg="s",SE=["0","1","2","3","4","5","6","7","8","9"],wE=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),fg)==="0"?SE:Array.from({length:10}).map((o,i)=>e.formatByString(e.setSeconds(t,i),fg))},kr=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let i=0;i<e.length;i+=1){o+=e[i];const s=t.indexOf(o);s>-1&&(n.push(s.toString()),o="")}return n.join("")},Wu=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),hg=(e,t)=>{const n=kr(e,t);return n!==" "&&!Number.isNaN(Number(n))},mg=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},bg=(e,t,n,o,i)=>{if(process.env.NODE_ENV!=="production"&&i.type!=="day"&&i.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${i.format}" is a digit format with letter in it.'
|
|
213
|
+
This type of format is only supported for 'day' sections`].join(`
|
|
214
|
+
`));if(i.type==="day"&&i.contentType==="digit-with-letter"){const l=e.setDate(n.longestMonth,t);return e.formatByString(l,i.format)}let s=t.toString();return i.hasLeadingZerosInInput&&(s=mg(s,i.maxLength)),Wu(s,o)},OE=(e,t,n,o,i,s,l,a)=>{const c=CE(o),u=o==="Home",d=o==="End",p=n.value===""||u||d,h=()=>{const y=i[n.type]({currentDate:l,format:n.format,contentType:n.contentType}),m=O=>bg(e,O,y,s,n),g=n.type==="minutes"&&(a!=null&&a.minutesStep)?a.minutesStep:1;let x=parseInt(kr(n.value,s),10)+c*g;if(p){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?x=y.minimum:x=y.maximum}return x%g!==0&&((c<0||u)&&(x+=g-(g+x)%g),(c>0||d)&&(x-=x%g)),x>y.maximum?m(y.minimum+(x-y.maximum-1)%(y.maximum-y.minimum+1)):x<y.minimum?m(y.maximum-(y.minimum-x-1)%(y.maximum-y.minimum+1)):m(x)},b=()=>{const y=pg(e,t,n.type,n.format);if(y.length===0)return n.value;if(p)return c>0||u?y[0]:y[y.length-1];const w=((y.indexOf(n.value)+c)%y.length+y.length)%y.length;return y[w]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():b()},Hu=(e,t,n)=>{let o=e.value||e.placeholder;const i=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(kr(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!i&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},gg=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Uu(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},yg=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,vg=(e,t,n,o)=>{if(t!=="digit")return!1;const i=e.date(void 0,"default");switch(n){case"year":return yg(e,o)?e.formatByString(e.setYear(i,1),o)==="0001":e.formatByString(e.setYear(i,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(i),o).length>1;case"day":return e.formatByString(e.startOfMonth(i),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),o).length>1;case"hours":return e.formatByString(e.setHours(i,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),o).length>1;default:throw new Error("Invalid section type")}},TE=(e,t,n)=>{const o=t.some(c=>c.type==="day"),i=[],s=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(i.push(u.format),s.push(Hu(u,"non-input",n)))}const l=i.join(" "),a=s.join(" ");return e.parse(a,l)},EE=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),RE=(e,t,n)=>{const i=e.map(s=>{const l=Hu(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${l}${s.endSeparator}`}).join("");return n?`${i}`:i},PE=(e,t,n)=>{const o=e.date(void 0,n),i=e.endOfYear(o),s=e.endOfDay(o),{maxDaysInMonth:l,longestMonth:a}=qu(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:yg(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(i)+1}),day:({currentDate:c})=>({minimum:1,maximum:c!=null&&e.isValid(c)?e.getDaysInMonth(c):l,longestMonth:a}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=Ms(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(s);return kr(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number(kr(e.formatByString(e.startOfDay(o),c),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(s)}),seconds:()=>({minimum:0,maximum:e.getSeconds(s)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let xg=!1;const Cg=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!xg){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(i=>!n.includes(i.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),xg=!0)}},kE=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{const i=Ms(e,t.format),s=e.formatByString(n,t.format),l=i.indexOf(s),c=i.indexOf(t.value)-l;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const i=e.getHours(n)<12,s=e.getHours(o);return i&&s>=12?e.addHours(o,-12):!i&&s<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Sg={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},wg=(e,t,n,o,i)=>[...n].sort((s,l)=>Sg[s.type]-Sg[l.type]).reduce((s,l)=>!i||l.modified?kE(e,l,t,s):s,o),ME=()=>navigator.userAgent.toLowerCase().includes("android"),IE=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},i={};let s=0,l=0,a=e.length-1;for(;a>=0;){l=e.findIndex((c,u)=>{var d;return u>=s&&((d=c.endSeparator)==null?void 0:d.includes(" "))&&c.endSeparator!==" / "}),l===-1&&(l=e.length-1);for(let c=l;c>=s;c-=1)i[c]=a,o[a]=c,a-=1;s=l+1}return e.forEach((c,u)=>{const d=i[u],p=d===0?null:o[d-1],h=d===e.length-1?null:o[d+1];n[u]={leftIndex:p,rightIndex:h}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},Yu=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},DE=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},jE=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},AE=["value","referenceDate"],Zt={emptyValue:null,getTodayValue:zu,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Le(e,AE);return t!=null&&o.utils.isValid(t)?t:n??xE(o)},cleanValue:fE,areValuesEqual:hE,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},NE={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,o)=>!e.isValid(t)&&!!n?n:o(t),getV7HiddenInputValueFromSections:EE,getV6InputValueFromSections:RE,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Ku=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:i,shouldDisableMonth:s,shouldDisableYear:l,disablePast:a,disableFuture:c}=e,u=o.utils.date(void 0,n),d=On(o.utils,e.minDate,o.defaultDates.minDate),p=On(o.utils,e.maxDate,o.defaultDates.maxDate);switch(!0){case!o.utils.isValid(t):return"invalidDate";case!!(i&&i(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(l&&l(t)):return"shouldDisableYear";case!!(c&&o.utils.isAfterDay(t,u)):return"disableFuture";case!!(a&&o.utils.isBeforeDay(t,u)):return"disablePast";case!!(d&&o.utils.isBeforeDay(t,d)):return"minDate";case!!(p&&o.utils.isAfterDay(t,p)):return"maxDate";default:return null}};Ku.valueManager=Zt;const Og=({adapter:e,value:t,timezone:n,props:o})=>{if(t===null)return null;const{minTime:i,maxTime:s,minutesStep:l,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=o,p=e.utils.date(void 0,n),h=ci(c,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&h(i,t)):return"minTime";case!!(s&&h(t,s)):return"maxTime";case!!(d&&e.utils.isAfter(t,p)):return"disableFuture";case!!(u&&e.utils.isBefore(t,p)):return"disablePast";case!!(a&&a(t,"hours")):return"shouldDisableTime-hours";case!!(a&&a(t,"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(t,"seconds")):return"shouldDisableTime-seconds";case!!(l&&e.utils.getMinutes(t)%l!==0):return"minutesStep";default:return null}};Og.valueManager=Zt;const Is=({adapter:e,value:t,timezone:n,props:o})=>{const i=Ku({adapter:e,value:t,timezone:n,props:o});return i!==null?i:Og({adapter:e,value:t,timezone:n,props:o})};Is.valueManager=Zt;const Tg=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Eg=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Rg=["minDateTime","maxDateTime"],_E=[...Tg,...Eg,...Rg],Pg=e=>_E.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),$E=["localeText"],Ds=E.createContext(null);process.env.NODE_ENV!=="production"&&(Ds.displayName="MuiPickersAdapterContext");const Gu=function(t){const{localeText:n}=t,o=Le(t,$E),{utils:i,localeText:s}=E.useContext(Ds)??{utils:void 0,localeText:void 0},l=lt({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:h}=l,b=E.useMemo(()=>W({},h,s,n),[h,s,n]),y=E.useMemo(()=>{if(!c)return i||null;const w=new c({locale:p,formats:u,instance:d});if(!w.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
215
|
+
`));return w},[c,p,u,d,i]),m=E.useMemo(()=>y?{minDate:y.date("1900-01-01T00:00:00.000"),maxDate:y.date("2099-12-31T00:00:00.000")}:null,[y]),g=E.useMemo(()=>({utils:y,defaultDates:m,localeText:b}),[m,y,b]);return k.jsx(Ds.Provider,{value:g,children:a})};process.env.NODE_ENV!=="production"&&(Gu.propTypes={adapterLocale:r.any,children:r.node,dateAdapter:r.func,dateFormats:r.shape({dayOfMonth:r.string,dayOfMonthFull:r.string,fullDate:r.string,fullTime:r.string,fullTime12h:r.string,fullTime24h:r.string,hours12h:r.string,hours24h:r.string,keyboardDate:r.string,keyboardDateTime:r.string,keyboardDateTime12h:r.string,keyboardDateTime24h:r.string,meridiem:r.string,minutes:r.string,month:r.string,monthShort:r.string,normalDate:r.string,normalDateWithWeekday:r.string,seconds:r.string,shortDate:r.string,weekday:r.string,weekdayShort:r.string,year:r.string}),dateLibInstance:r.any,localeText:r.object});const FE=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:W({},e)}}}}),kg=e=>{const{utils:t,formatKey:n,contextTranslation:o,propsTranslation:i}=e;return s=>{const l=s!==null&&t.isValid(s)?t.format(s,n):null;return(i??o)(s,t,l)}},Mg={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,o)=>`Select ${e}. ${!o&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${o??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},VE=Mg;FE(Mg);const Mr=()=>{const e=E.useContext(Ds);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
216
|
+
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
217
|
+
`));const t=E.useMemo(()=>W({},VE,e.localeText),[e.localeText]);return E.useMemo(()=>W({},e,{localeText:t}),[e,t])},Ot=()=>Mr().utils,di=()=>Mr().defaultDates,Ir=e=>{const t=Ot(),n=E.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Ig(e){const{props:t,validator:n,value:o,timezone:i,onError:s}=e,l=Mr(),a=E.useRef(n.valueManager.defaultErrorState),c=n({adapter:l,value:o,timezone:i,props:t}),u=n.valueManager.hasError(c);E.useEffect(()=>{s&&!n.valueManager.isSameError(c,a.current)&&s(c,o),a.current=c},[n,s,c,o]);const d=je(p=>n({adapter:l,value:p,timezone:i,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const an=()=>Mr().localeText,LE=({utils:e,format:t})=>{let n=10,o=t,i=e.expandFormat(t);for(;i!==o;)if(o=i,i=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return i},BE=({utils:e,expandedFormat:t})=>{const n=[],{start:o,end:i}=e.escapedCharacters,s=new RegExp(`(\\${o}[^\\${i}]*\\${i})+`,"g");let l=null;for(;l=s.exec(t);)n.push({start:l.index,end:s.lastIndex-1});return n},qE=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},zE=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:i,now:s,token:l,startSeparator:a})=>{if(l==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=Uu(e,l),u=vg(e,c.contentType,c.type,l),d=n?u:c.contentType==="digit",p=t!=null&&e.isValid(t);let h=p?e.formatByString(t,l):"",b=null;if(d)if(u)b=h===""?e.formatByString(s,l).length:h.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${l} should have a 'maxDigitNumber' property on it's adapter`);b=c.maxLength,p&&(h=Wu(mg(kr(h,i),b),i))}return W({},c,{format:l,maxLength:b,value:h,placeholder:qE(e,o,c,l),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:a,endSeparator:"",modified:!1})},UE=e=>{var b;const{utils:t,expandedFormat:n,escapedParts:o}=e,i=t.date(void 0),s=[];let l="";const a=Object.keys(t.formatTokenMap).sort((y,m)=>m.length-y.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${a.join("|")})*$`),d=new RegExp(`^(${a.join("|")})`),p=y=>o.find(m=>m.start<=y&&m.end>=y);let h=0;for(;h<n.length;){const y=p(h),m=y!=null,g=(b=c.exec(n.slice(h)))==null?void 0:b[1];if(!m&&g!=null&&u.test(g)){let w=g;for(;w.length>0;){const x=d.exec(w)[1];w=w.slice(x.length),s.push(zE(W({},e,{now:i,token:x,startSeparator:l}))),l=""}h+=g.length}else{const w=n[h];m&&(y==null?void 0:y.start)===h||(y==null?void 0:y.end)===h||(s.length===0?l+=w:s[s.length-1].endSeparator+=w),h+=1}}return s.length===0&&l.length>0&&s.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:l,endSeparator:"",modified:!1}),s},WE=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const i=s=>{let l=s;return e&&l!==null&&l.includes(" ")&&(l=`${l}`),t==="spacious"&&["/",".","-"].includes(l)&&(l=` ${l} `),l};return o.startSeparator=i(o.startSeparator),o.endSeparator=i(o.endSeparator),o}),Dg=e=>{let t=LE(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=BE(W({},e,{expandedFormat:t})),o=UE(W({},e,{expandedFormat:t,escapedParts:n}));return WE(W({},e,{sections:o}))},Xu=({timezone:e,value:t,defaultValue:n,referenceDate:o,onChange:i,valueManager:s})=>{const l=Ot(),a=E.useRef(n),c=t??a.current??s.emptyValue,u=E.useMemo(()=>s.getTimezone(l,c),[l,s,c]),d=je(y=>u==null?y:s.setTimezone(l,u,y));let p;e?p=e:u?p=u:o?p=l.getTimezone(o):p="default";const h=E.useMemo(()=>s.setTimezone(l,p,c),[s,l,p,c]),b=je((y,...m)=>{const g=d(y);i==null||i(g,...m)});return{value:h,handleValueChange:b,timezone:p}},to=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:i,onChange:s,valueManager:l})=>{const[a,c]=Pr({name:e,state:"value",controlled:n,default:o??l.emptyValue}),u=je((d,...p)=>{c(d),s==null||s(d,...p)});return Xu({timezone:t,value:a,defaultValue:void 0,referenceDate:i,onChange:u,valueManager:l})},HE=e=>{const t=Ot(),n=an(),o=Mr(),i=Gt(),{valueManager:s,fieldValueManager:l,valueType:a,validator:c,internalProps:u,internalProps:{value:d,defaultValue:p,referenceDate:h,onChange:b,format:y,formatDensity:m="dense",selectedSections:g,onSelectedSectionsChange:w,shouldRespectLeadingZeros:x=!1,timezone:O,enableAccessibleFieldDOMStructure:T=!1}}=e,{timezone:R,value:A,handleValueChange:N}=Xu({timezone:O,value:d,defaultValue:p,referenceDate:h,onChange:b,valueManager:s}),S=E.useMemo(()=>wE(t),[t]),v=E.useMemo(()=>PE(t,S,R),[t,S,R]),f=E.useCallback((Y,J=null)=>l.getSectionsFromValue(t,Y,J,se=>Dg({utils:t,localeText:n,localizedDigits:S,format:y,date:se,formatDensity:m,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:T,isRtl:i})),[l,y,n,S,i,x,t,m,T]),[C,P]=E.useState(()=>{const Y=f(A);Cg(Y,a);const J={sections:Y,value:A,referenceValue:s.emptyValue,tempValueStrAndroid:null},se=vE(Y),z=s.getInitialReferenceValue({referenceDate:h,value:A,utils:t,props:u,granularity:se,timezone:R});return W({},J,{referenceValue:z})}),[M,D]=Pr({controlled:g,default:null,name:"useField",state:"selectedSections"}),I=Y=>{D(Y),w==null||w(Y)},j=E.useMemo(()=>Yu(M,C.sections),[M,C.sections]),$=j==="all"?0:j,F=({value:Y,referenceValue:J,sections:se})=>{if(P(H=>W({},H,{sections:se,value:Y,referenceValue:J,tempValueStrAndroid:null})),s.areValuesEqual(t,C.value,Y))return;const z={validationError:c({adapter:o,value:Y,timezone:R,props:u})};N(Y,z)},L=(Y,J)=>{const se=[...C.sections];return se[Y]=W({},se[Y],{value:J,modified:!0}),se},_=()=>{F({value:s.emptyValue,referenceValue:C.referenceValue,sections:f(s.emptyValue)})},B=()=>{if($==null)return;const Y=C.sections[$],J=l.getActiveDateManager(t,C,Y),z=J.getSections(C.sections).filter(U=>U.value!=="").length===(Y.value===""?0:1),H=L($,""),G=z?null:t.getInvalidDate(),ue=J.getNewValuesFromNewActiveDate(G);F(W({},ue,{sections:H}))},oe=Y=>{const J=(H,G)=>{const ue=t.parse(H,y);if(ue==null||!t.isValid(ue))return null;const U=Dg({utils:t,localeText:n,localizedDigits:S,format:y,date:ue,formatDensity:m,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:T,isRtl:i});return wg(t,ue,U,G,!1)},se=l.parseValueStr(Y,C.referenceValue,J),z=l.updateReferenceValue(t,se,C.referenceValue);F({value:se,referenceValue:z,sections:f(se,C.sections)})},X=({activeSection:Y,newSectionValue:J,shouldGoToNextSection:se})=>{se&&$<C.sections.length-1&&I($+1);const z=l.getActiveDateManager(t,C,Y),H=L($,J),G=z.getSections(H),ue=TE(t,G,S);let U,Q;if(ue!=null&&t.isValid(ue)){const q=wg(t,ue,G,z.referenceDate,!0);U=z.getNewValuesFromNewActiveDate(q),Q=!0}else U=z.getNewValuesFromNewActiveDate(ue),Q=(ue!=null&&!t.isValid(ue))!=(z.date!=null&&!t.isValid(z.date));return Q?F(W({},U,{sections:H})):P(q=>W({},q,U,{sections:H,tempValueStrAndroid:null}))},ee=Y=>P(J=>W({},J,{tempValueStrAndroid:Y}));return E.useEffect(()=>{const Y=f(C.value);Cg(Y,a),P(J=>W({},J,{sections:Y}))},[y,t.locale,i]),E.useEffect(()=>{let Y;s.areValuesEqual(t,C.value,A)?Y=s.getTimezone(t,C.value)!==s.getTimezone(t,A):Y=!0,Y&&P(J=>W({},J,{value:A,referenceValue:l.updateReferenceValue(t,A,J.referenceValue),sections:f(A)}))},[A]),{state:C,activeSectionIndex:$,parsedSelectedSections:j,setSelectedSections:I,clearValue:_,clearActiveSection:B,updateSectionValue:X,updateValueFromValueStr:oe,setTempAndroidValueStr:ee,getSectionsFromValue:f,sectionsValueBoundaries:v,localizedDigits:S,timezone:R}},YE=5e3,no=e=>e.saveQuery!=null,KE=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:i,timezone:s})=>{const l=Ot(),[a,c]=E.useState(null),u=je(()=>c(null));E.useEffect(()=>{var y;a!=null&&((y=e[a.sectionIndex])==null?void 0:y.type)!==a.sectionType&&u()},[e,a,u]),E.useEffect(()=>{if(a!=null){const y=setTimeout(()=>u(),YE);return()=>{clearTimeout(y)}}return()=>{}},[a,u]);const d=({keyPressed:y,sectionIndex:m},g,w)=>{const x=y.toLowerCase(),O=e[m];if(a!=null&&(!w||w(a.value))&&a.sectionIndex===m){const R=`${a.value}${x}`,A=g(R,O);if(!no(A))return c({sectionIndex:m,value:R,sectionType:O.type}),A}const T=g(x,O);return no(T)&&!T.saveQuery?(u(),null):(c({sectionIndex:m,value:x,sectionType:O.type}),no(T)?null:T)},p=y=>{const m=(x,O,T)=>{const R=O.filter(A=>A.toLowerCase().startsWith(T));return R.length===0?{saveQuery:!1}:{sectionValue:R[0],shouldGoToNextSection:R.length===1}},g=(x,O,T,R)=>{const A=N=>pg(l,s,O.type,N);if(O.contentType==="letter")return m(O.format,A(O.format),x);if(T&&R!=null&&Uu(l,T).contentType==="letter"){const N=A(T),S=m(T,N,x);return no(S)?{saveQuery:!1}:W({},S,{sectionValue:R(S.sectionValue,N)})}return{saveQuery:!1}};return d(y,(x,O)=>{switch(O.type){case"month":{const T=R=>gg(l,R,l.formats.month,O.format);return g(x,O,l.formats.month,T)}case"weekDay":{const T=(R,A)=>A.indexOf(R).toString();return g(x,O,l.formats.weekday,T)}case"meridiem":return g(x,O);default:return{saveQuery:!1}}})},h=y=>{const m=(w,x)=>{const O=kr(w,o),T=Number(O),R=n[x.type]({currentDate:null,format:x.format,contentType:x.contentType});if(T>R.maximum)return{saveQuery:!1};if(T<R.minimum)return{saveQuery:!0};const A=T*10>R.maximum||O.length===R.maximum.toString().length;return{sectionValue:bg(l,T,R,o,x),shouldGoToNextSection:A}};return d(y,(w,x)=>{if(x.contentType==="digit"||x.contentType==="digit-with-letter")return m(w,x);if(x.type==="month"){const O=vg(l,"digit","month","MM"),T=m(w,{type:x.type,format:"MM",hasLeadingZerosInFormat:O,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(no(T))return T;const R=gg(l,T.sectionValue,"MM",x.format);return W({},T,{sectionValue:R})}if(x.type==="weekDay"){const O=m(w,x);if(no(O))return O;const T=Ms(l,x.format)[Number(O.sectionValue)-1];return W({},O,{sectionValue:T})}return{saveQuery:!1}},w=>hg(w,o))};return{applyCharacterEditing:je(y=>{const m=e[y.sectionIndex],w=hg(y.keyPressed,o)?h(W({},y,{keyPressed:Wu(y.keyPressed,o)})):p(y);if(w==null){i(null);return}t({activeSection:m,newSectionValue:w.sectionValue,shouldGoToNextSection:w.shouldGoToNextSection})}),resetCharacterQuery:u}};function GE(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const XE=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},ln=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ln(t.shadowRoot):t:null},js=e=>Array.from(e.children).indexOf(ln(document)),QE="@media (pointer: fine)",ZE=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:i,onClick:s,onFocus:l,onInput:a,onPaste:c,focused:u,autoFocus:d=!1},fieldValueManager:p,applyCharacterEditing:h,resetCharacterQuery:b,setSelectedSections:y,parsedSelectedSections:m,state:g,clearActiveSection:w,clearValue:x,updateSectionValue:O,updateValueFromValueStr:T,sectionOrder:R,areAllSectionsEmpty:A,sectionsValueBoundaries:N}=e,S=E.useRef(null),v=nn(o,S),f=an(),C=Ot(),P=Zr(),[M,D]=E.useState(!1),I=E.useMemo(()=>({syncSelectionToDOM:()=>{if(!S.current)return;const Q=document.getSelection();if(!Q)return;if(m==null){Q.rangeCount>0&&S.current.getRoot().contains(Q.getRangeAt(0).startContainer)&&Q.removeAllRanges(),M&&S.current.getRoot().blur();return}if(!S.current.getRoot().contains(ln(document)))return;const q=new window.Range;let ne;m==="all"?ne=S.current.getRoot():g.sections[m].type==="empty"?ne=S.current.getSectionContainer(m):ne=S.current.getSectionContent(m),q.selectNodeContents(ne),ne.focus(),Q.removeAllRanges(),Q.addRange(q)},getActiveSectionIndexFromDOM:()=>{const Q=ln(document);return!Q||!S.current||!S.current.getRoot().contains(Q)?null:S.current.getSectionIndexFromDOMElement(Q)},focusField:(Q=0)=>{if(!S.current)return;const q=Yu(Q,g.sections);D(!0),S.current.getSectionContent(q).focus()},setSelectedSections:Q=>{if(!S.current)return;const q=Yu(Q,g.sections);D((q==="all"?0:q)!==null),y(Q)},isFieldFocused:()=>{const Q=ln(document);return!!S.current&&S.current.getRoot().contains(Q)}}),[m,y,g.sections,M]),j=je(Q=>{if(!S.current)return;const q=g.sections[Q];S.current.getSectionContent(Q).innerHTML=q.value||q.placeholder,I.syncSelectionToDOM()}),$=je((Q,...q)=>{Q.isDefaultPrevented()||!S.current||(D(!0),s==null||s(Q,...q),m==="all"?setTimeout(()=>{const ne=document.getSelection().getRangeAt(0).startOffset;if(ne===0){y(R.startIndex);return}let Z=0,te=0;for(;te<ne&&Z<g.sections.length;){const le=g.sections[Z];Z+=1,te+=`${le.startSeparator}${le.value||le.placeholder}${le.endSeparator}`.length}y(Z-1)}):M?S.current.getRoot().contains(Q.target)||y(R.startIndex):(D(!0),y(R.startIndex)))}),F=je(Q=>{if(a==null||a(Q),!S.current||m!=="all")return;const ne=Q.target.textContent??"";S.current.getRoot().innerHTML=g.sections.map(Z=>`${Z.startSeparator}${Z.value||Z.placeholder}${Z.endSeparator}`).join(""),I.syncSelectionToDOM(),ne.length===0||ne.charCodeAt(0)===10?(b(),x(),y("all")):ne.length>1?T(ne):(m==="all"&&y(0),h({keyPressed:ne,sectionIndex:0}))}),L=je(Q=>{if(c==null||c(Q),n||m!=="all"){Q.preventDefault();return}const q=Q.clipboardData.getData("text");Q.preventDefault(),b(),T(q)}),_=je((...Q)=>{if(l==null||l(...Q),M||!S.current)return;D(!0),S.current.getSectionIndexFromDOMElement(ln(document))!=null||y(R.startIndex)}),B=je((...Q)=>{i==null||i(...Q),setTimeout(()=>{if(!S.current)return;const q=ln(document);!S.current.getRoot().contains(q)&&(D(!1),y(null))})}),oe=je(Q=>q=>{q.isDefaultPrevented()||y(Q)}),X=je(Q=>{Q.preventDefault()}),ee=je(Q=>()=>{y(Q)}),Y=je(Q=>{if(Q.preventDefault(),n||t||typeof m!="number")return;const q=g.sections[m],ne=Q.clipboardData.getData("text"),Z=/^[a-zA-Z]+$/.test(ne),te=/^[0-9]+$/.test(ne),le=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ne);q.contentType==="letter"&&Z||q.contentType==="digit"&&te||q.contentType==="digit-with-letter"&&le?(b(),O({activeSection:q,newSectionValue:ne,shouldGoToNextSection:!0})):!Z&&!te&&(b(),T(ne))}),J=je(Q=>{Q.preventDefault(),Q.dataTransfer.dropEffect="none"}),se=je(Q=>{if(!S.current)return;const q=Q.target,ne=q.textContent??"",Z=S.current.getSectionIndexFromDOMElement(q),te=g.sections[Z];if(n||!S.current){j(Z);return}if(ne.length===0){if(te.value===""){j(Z);return}const le=Q.nativeEvent.inputType;if(le==="insertParagraph"||le==="insertLineBreak"){j(Z);return}b(),w();return}h({keyPressed:ne,sectionIndex:Z}),j(Z)});Bn(()=>{if(!(!M||!S.current)){if(m==="all")S.current.getRoot().focus();else if(typeof m=="number"){const Q=S.current.getSectionContent(m);Q&&Q.focus()}}},[m,M]);const z=E.useMemo(()=>g.sections.reduce((Q,q)=>(Q[q.type]=N[q.type]({currentDate:null,contentType:q.contentType,format:q.format}),Q),{}),[N,g.sections]),H=m==="all",G=E.useMemo(()=>g.sections.map((Q,q)=>{const ne=!H&&!t&&!n;return{container:{"data-sectionindex":q,onClick:oe(q)},content:{tabIndex:H||q>0?-1:0,contentEditable:!H&&!t&&!n,role:"spinbutton",id:`${P}-${Q.type}`,"aria-labelledby":`${P}-${Q.type}`,"aria-readonly":n,"aria-valuenow":jE(Q,C),"aria-valuemin":z[Q.type].minimum,"aria-valuemax":z[Q.type].maximum,"aria-valuetext":Q.value?DE(Q,C):f.empty,"aria-label":f[Q.type],"aria-disabled":t,spellCheck:ne?!1:void 0,autoCapitalize:ne?"off":void 0,autoCorrect:ne?"off":void 0,[parseInt(E.version,10)>=17?"enterKeyHint":"enterkeyhint"]:ne?"next":void 0,children:Q.value||Q.placeholder,onInput:se,onPaste:Y,onFocus:ee(q),onDragOver:J,onMouseUp:X,inputMode:Q.contentType==="letter"?"text":"numeric"},before:{children:Q.startSeparator},after:{children:Q.endSeparator}}}),[g.sections,ee,Y,J,se,oe,X,t,n,H,f,C,z,P]),ue=je(Q=>{T(Q.target.value)}),U=E.useMemo(()=>A?"":p.getV7HiddenInputValueFromSections(g.sections),[A,g.sections,p]);return E.useEffect(()=>{if(S.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
218
|
+
`));d&&S.current&&S.current.getSectionContent(R.startIndex).focus()},[]),{interactions:I,returnedValue:{autoFocus:d,readOnly:n,focused:u??M,sectionListRef:v,onBlur:B,onClick:$,onFocus:_,onInput:F,onPaste:L,enableAccessibleFieldDOMStructure:!0,elements:G,tabIndex:m===0?-1:0,contentEditable:H,value:U,onChange:ue,areAllSectionsEmpty:A}}},ro=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),JE=(e,t,n)=>{let o=0,i=n?1:0;const s=[];for(let l=0;l<e.length;l+=1){const a=e[l],c=Hu(a,n?"input-rtl":"input-ltr",t),u=`${a.startSeparator}${c}${a.endSeparator}`,d=ro(u).length,p=u.length,h=ro(c),b=i+(h===""?0:c.indexOf(h[0]))+a.startSeparator.length,y=b+h.length;s.push(W({},a,{start:o,end:o+d,startInInput:b,endInInput:y})),o+=d,i+=p}return s},eR=e=>{const t=Gt(),n=E.useRef(void 0),o=E.useRef(void 0),{forwardedProps:{onFocus:i,onClick:s,onPaste:l,onBlur:a,inputRef:c,placeholder:u},internalProps:{readOnly:d=!1,disabled:p=!1},parsedSelectedSections:h,activeSectionIndex:b,state:y,fieldValueManager:m,valueManager:g,applyCharacterEditing:w,resetCharacterQuery:x,updateSectionValue:O,updateValueFromValueStr:T,clearActiveSection:R,clearValue:A,setTempAndroidValueStr:N,setSelectedSections:S,getSectionsFromValue:v,areAllSectionsEmpty:f,localizedDigits:C}=e,P=E.useRef(null),M=nn(c,P),D=E.useMemo(()=>JE(y.sections,C,t),[y.sections,C,t]),I=E.useMemo(()=>({syncSelectionToDOM:()=>{if(!P.current)return;if(h==null){P.current.scrollLeft&&(P.current.scrollLeft=0);return}if(P.current!==ln(document))return;const se=P.current.scrollTop;if(h==="all")P.current.select();else{const z=D[h],H=z.type==="empty"?z.startInInput-z.startSeparator.length:z.startInInput,G=z.type==="empty"?z.endInInput+z.endSeparator.length:z.endInInput;(H!==P.current.selectionStart||G!==P.current.selectionEnd)&&P.current===ln(document)&&P.current.setSelectionRange(H,G),clearTimeout(o.current),o.current=setTimeout(()=>{P.current&&P.current===ln(document)&&P.current.selectionStart===P.current.selectionEnd&&(P.current.selectionStart!==H||P.current.selectionEnd!==G)&&I.syncSelectionToDOM()})}P.current.scrollTop=se},getActiveSectionIndexFromDOM:()=>{const se=P.current.selectionStart??0,z=P.current.selectionEnd??0;if(se===0&&z===0)return null;const H=se<=D[0].startInInput?1:D.findIndex(G=>G.startInInput-G.startSeparator.length>se);return H===-1?D.length-1:H-1},focusField:(se=0)=>{var z;(z=P.current)==null||z.focus(),S(se)},setSelectedSections:se=>S(se),isFieldFocused:()=>P.current===ln(document)}),[P,h,D,S]),j=()=>{const se=P.current.selectionStart??0;let z;se<=D[0].startInInput||se>=D[D.length-1].endInInput?z=1:z=D.findIndex(G=>G.startInInput-G.startSeparator.length>se);const H=z===-1?D.length-1:z-1;S(H)},$=je((...se)=>{i==null||i(...se);const z=P.current;clearTimeout(n.current),n.current=setTimeout(()=>{!z||z!==P.current||b==null&&(z.value.length&&Number(z.selectionEnd)-Number(z.selectionStart)===z.value.length?S("all"):j())})}),F=je((se,...z)=>{se.isDefaultPrevented()||(s==null||s(se,...z),j())}),L=je(se=>{if(l==null||l(se),se.preventDefault(),d||p)return;const z=se.clipboardData.getData("text");if(typeof h=="number"){const H=y.sections[h],G=/^[a-zA-Z]+$/.test(z),ue=/^[0-9]+$/.test(z),U=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(z);if(H.contentType==="letter"&&G||H.contentType==="digit"&&ue||H.contentType==="digit-with-letter"&&U){x(),O({activeSection:H,newSectionValue:z,shouldGoToNextSection:!0});return}if(G||ue)return}x(),T(z)}),_=je((...se)=>{a==null||a(...se),S(null)}),B=je(se=>{if(d)return;const z=se.target.value;if(z===""){x(),A();return}const H=se.nativeEvent.data,G=H&&H.length>1,ue=G?H:z,U=ro(ue);if(h==="all"&&S(b),b==null||G){T(G?H:U);return}let Q;if(h==="all"&&U.length===1)Q=U;else{const q=ro(m.getV6InputValueFromSections(D,C,t));let ne=-1,Z=-1;for(let xe=0;xe<q.length;xe+=1)ne===-1&&q[xe]!==U[xe]&&(ne=xe),Z===-1&&q[q.length-xe-1]!==U[U.length-xe-1]&&(Z=xe);const te=D[b];if(ne<te.start||q.length-Z-1>te.end)return;const fe=U.length-q.length+te.end-ro(te.endSeparator||"").length;Q=U.slice(te.start+ro(te.startSeparator||"").length,fe)}if(Q.length===0){ME()&&N(ue),x(),R();return}w({keyPressed:Q,sectionIndex:b})}),oe=E.useMemo(()=>u!==void 0?u:m.getV6InputValueFromSections(v(g.emptyValue),C,t),[u,m,v,g.emptyValue,C,t]),X=E.useMemo(()=>y.tempValueStrAndroid??m.getV6InputValueFromSections(y.sections,C,t),[y.sections,m,y.tempValueStrAndroid,C,t]);E.useEffect(()=>(P.current&&P.current===ln(document)&&S("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const ee=E.useMemo(()=>b==null||y.sections[b].contentType==="letter"?"text":"numeric",[b,y.sections]),J=!(P.current&&P.current===ln(document))&&f;return{interactions:I,returnedValue:{readOnly:d,onBlur:_,onClick:F,onFocus:$,onPaste:L,inputRef:M,enableAccessibleFieldDOMStructure:!1,placeholder:oe,inputMode:ee,autoComplete:"off",value:J?"":X,onChange:B}}},tR=e=>{const t=Ot(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:i,enableAccessibleFieldDOMStructure:s=!1,disabled:l=!1,readOnly:a=!1},forwardedProps:{onKeyDown:c,error:u,clearable:d,onClear:p},fieldValueManager:h,valueManager:b,validator:y}=e,m=Gt(),g=HE(e),{state:w,activeSectionIndex:x,parsedSelectedSections:O,setSelectedSections:T,clearValue:R,clearActiveSection:A,updateSectionValue:N,setTempAndroidValueStr:S,sectionsValueBoundaries:v,localizedDigits:f,timezone:C}=g,P=KE({sections:w.sections,updateSectionValue:N,sectionsValueBoundaries:v,localizedDigits:f,setTempAndroidValueStr:S,timezone:C}),{resetCharacterQuery:M}=P,D=b.areValuesEqual(t,w.value,b.emptyValue),I=s?ZE:eR,j=E.useMemo(()=>IE(w.sections,m&&!s),[w.sections,m,s]),{returnedValue:$,interactions:F}=I(W({},e,g,P,{areAllSectionsEmpty:D,sectionOrder:j})),L=je(Y=>{if(c==null||c(Y),!l)switch(!0){case((Y.ctrlKey||Y.metaKey)&&String.fromCharCode(Y.keyCode)==="A"&&!Y.shiftKey&&!Y.altKey):{Y.preventDefault(),T("all");break}case Y.key==="ArrowRight":{if(Y.preventDefault(),O==null)T(j.startIndex);else if(O==="all")T(j.endIndex);else{const J=j.neighbors[O].rightIndex;J!==null&&T(J)}break}case Y.key==="ArrowLeft":{if(Y.preventDefault(),O==null)T(j.endIndex);else if(O==="all")T(j.startIndex);else{const J=j.neighbors[O].leftIndex;J!==null&&T(J)}break}case Y.key==="Delete":{if(Y.preventDefault(),a)break;O==null||O==="all"?R():A(),M();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Y.key):{if(Y.preventDefault(),a||x==null)break;O==="all"&&T(x);const J=w.sections[x],se=h.getActiveDateManager(t,w,J),z=OE(t,C,J,Y.key,v,f,se.date,{minutesStep:i});N({activeSection:J,newSectionValue:z,shouldGoToNextSection:!1});break}}});Bn(()=>{F.syncSelectionToDOM()});const{hasValidationError:_}=Ig({props:n,validator:y,timezone:C,value:w.value,onError:n.onError}),B=E.useMemo(()=>u!==void 0?u:_,[_,u]);E.useEffect(()=>{!B&&x==null&&M()},[w.referenceValue,x,B]),E.useEffect(()=>{w.tempValueStrAndroid!=null&&x!=null&&(M(),A())},[w.sections]),E.useImperativeHandle(o,()=>({getSections:()=>w.sections,getActiveSectionIndex:F.getActiveSectionIndexFromDOM,setSelectedSections:F.setSelectedSections,focusField:F.focusField,isFieldFocused:F.isFieldFocused}));const oe=je((Y,...J)=>{Y.preventDefault(),p==null||p(Y,...J),R(),F.isFieldFocused()?T(j.startIndex):F.focusField(0)}),X={onKeyDown:L,onClear:oe,error:B,clearable:!!(d&&!D&&!a&&!l)},ee={disabled:l,readOnly:a};return W({},e.forwardedProps,X,ee,$)};function nR(e){return Ye("MuiIconButton",e)}const rR=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),oR=e=>{const{classes:t,disabled:n,color:o,edge:i,size:s}=e,l={root:["root",n&&"disabled",o!=="default"&&`color${Re(o)}`,i&&`edge${Re(i)}`,`size${Re(s)}`]};return Xe(l,nR,t)},iR=re(Vn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Re(n.color)}`],n.edge&&t[`edge${Re(n.edge)}`],t[`size${Re(n.size)}`]]}})(Qe(({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})`:et(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}}]})),Qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et((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)}}],[`&.${rR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),zn=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:l,color:a="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",...p}=o,h={...o,edge:i,color:a,disabled:c,disableFocusRipple:u,size:d},b=oR(h);return k.jsx(iR,{className:we(b.root,l),centerRipple:!0,focusRipple:!u,disabled:c,ref:n,...p,ownerState:h,children:s})});process.env.NODE_ENV!=="production"&&(zn.propTypes={children:Mn(r.node,e=>E.Children.toArray(e.children).some(n=>E.isValidElement(n)&&n.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(`
|
|
219
|
+
`)):null),classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),r.string]),disabled:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,edge:r.oneOf(["end","start",!1]),size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function sR(e){return Ye("MuiInputAdornment",e)}const jg=qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ag;const aR=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Re(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},lR=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:i,size:s,variant:l}=e,a={root:["root",n&&"disablePointerEvents",i&&`position${Re(i)}`,l,o&&"hiddenLabel",s&&`size${Re(s)}`]};return Xe(a,sR,t)},cR=re("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:aR})(Qe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${jg.positionStart}&:not(.${jg.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Qu=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiInputAdornment"}),{children:i,className:s,component:l="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:u,variant:d,...p}=o,h=en()||{};let b=d;d&&h.variant&&process.env.NODE_ENV!=="production"&&d===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!b&&(b=h.variant);const y={...o,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:u,variant:b},m=lR(y);return k.jsx(Fo.Provider,{value:null,children:k.jsx(cR,{as:l,ownerState:y,className:we(m.root,s),ref:n,...p,children:typeof i=="string"&&!c?k.jsx(wn,{color:"textSecondary",children:i}):k.jsxs(E.Fragment,{children:[u==="start"?Ag||(Ag=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,i]})})})});process.env.NODE_ENV!=="production"&&(Qu.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disablePointerEvents:r.bool,disableTypography:r.bool,position:r.oneOf(["end","start"]).isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});const uR=Et(k.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),dR=Et(k.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),pR=Et(k.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),fR=Et(k.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Et(k.jsxs(E.Fragment,{children:[k.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),k.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const hR=Et(k.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),mR=Et(k.jsxs(E.Fragment,{children:[k.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),k.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),bR=Et(k.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"}),"Clear"),gR=["clearable","onClear","InputProps","sx","slots","slotProps"],yR=["ownerState"],vR=e=>{const t=an(),{clearable:n,onClear:o,InputProps:i,sx:s,slots:l,slotProps:a}=e,c=Le(e,gR),u=(l==null?void 0:l.clearButton)??zn,d=wt({elementType:u,externalSlotProps:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=Le(d,yR),h=(l==null?void 0:l.clearIcon)??bR,b=wt({elementType:h,externalSlotProps:a==null?void 0:a.clearIcon,ownerState:{}});return W({},c,{InputProps:W({},i,{endAdornment:k.jsxs(E.Fragment,{children:[n&&k.jsx(Qu,{position:"end",sx:{marginRight:i!=null&&i.endAdornment?-1:-1.5},children:k.jsx(u,W({},p,{onClick:o,children:k.jsx(h,W({fontSize:"small"},b))}))}),i==null?void 0:i.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})},xR=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],CR=(e,t)=>E.useMemo(()=>{const n=W({},e),o={},i=s=>{n.hasOwnProperty(s)&&(o[s]=n[s],delete n[s])};return xR.forEach(i),Tg.forEach(i),Eg.forEach(i),Rg.forEach(i),{forwardedProps:n,internalProps:o}},[e,t]),SR=E.createContext(null);function Ng(e){const{contextValue:t,localeText:n,children:o}=e;return k.jsx(SR.Provider,{value:t,children:k.jsx(Gu,{localeText:n,children:o})})}const wR=e=>{const t=Ot(),n=di(),i=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return W({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??i,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:On(t,e.minDateTime??e.minDate,n.minDate),maxDate:On(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})},OR=e=>{const t=wR(e),{forwardedProps:n,internalProps:o}=CR(t,"date-time");return tR({forwardedProps:n,internalProps:o,valueManager:Zt,fieldValueManager:NE,validator:Is,valueType:"date-time"})};function TR(e){return mt("MuiPickersTextField",e)}St("MuiPickersTextField",["root","focused","disabled","error","required"]);function ER(e){return mt("MuiPickersInputBase",e)}const oo=St("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function RR(e){return mt("MuiPickersSectionList",e)}const pi=St("MuiPickersSectionList",["root","section","sectionContent"]),PR=["slots","slotProps","elements","sectionListRef"],_g=re("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),$g=re("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Fg=re("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Vg=re("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),kR=e=>{const{classes:t}=e;return ht({root:["root"],section:["section"],sectionContent:["sectionContent"]},RR,t)};function Lg(e){const{slots:t,slotProps:n,element:o,classes:i}=e,s=(t==null?void 0:t.section)??$g,l=wt({elementType:s,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:i.section,ownerState:{}}),a=(t==null?void 0:t.sectionContent)??Vg,c=wt({elementType:a,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:i.sectionContent,ownerState:{}}),u=(t==null?void 0:t.sectionSeparator)??Fg,d=wt({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=wt({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return k.jsxs(s,W({},l,{children:[k.jsx(u,W({},d)),k.jsx(a,W({},c)),k.jsx(u,W({},p))]}))}process.env.NODE_ENV!=="production"&&(Lg.propTypes={classes:r.object.isRequired,element:r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired}).isRequired,slotProps:r.object,slots:r.object});const Bg=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersSectionList"}),{slots:i,slotProps:s,elements:l,sectionListRef:a}=o,c=Le(o,PR),u=kR(o),d=E.useRef(null),p=nn(n,d),h=m=>{if(!d.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return d.current};E.useImperativeHandle(a,()=>({getRoot(){return h("getRoot")},getSectionContainer(m){return h("getSectionContainer").querySelector(`.${pi.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return h("getSectionContent").querySelector(`.${pi.section}[data-sectionindex="${m}"] .${pi.sectionContent}`)},getSectionIndexFromDOMElement(m){const g=h("getSectionIndexFromDOMElement");if(m==null||!g.contains(m))return null;let w=null;return m.classList.contains(pi.section)?w=m:m.classList.contains(pi.sectionContent)&&(w=m.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const b=(i==null?void 0:i.root)??_g,y=wt({elementType:b,externalSlotProps:s==null?void 0:s.root,externalForwardedProps:c,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return k.jsx(b,W({},y,{children:y.contentEditable?l.map(({content:m,before:g,after:w})=>`${g.children}${m.children}${w.children}`).join(""):k.jsx(E.Fragment,{children:l.map((m,g)=>k.jsx(Lg,{slots:i,slotProps:s,element:m,classes:u},g))})}))});process.env.NODE_ENV!=="production"&&(Bg.propTypes={classes:r.object,contentEditable:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object});const MR=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],IR=e=>Math.round(e*1e5)/1e5,As=re("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>W({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${IR(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Zu=re(_g,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:o,label:i})=>!t&&!n&&!o&&i==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),DR=re($g,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),jR=re(Vg,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),AR=re(Fg,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),NR=re("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(W({},iE)),_R=e=>{const{focused:t,disabled:n,error:o,classes:i,fullWidth:s,readOnly:l,color:a,size:c,endAdornment:u,startAdornment:d}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",l&&"readOnly",o&&"error",s&&"fullWidth",`color${nE(a)}`,c==="small"&&"inputSizeSmall",!!d&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ht(p,ER,i)},Ns=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersInputBase"}),{elements:i,areAllSectionsEmpty:s,value:l,onChange:a,id:c,endAdornment:u,startAdornment:d,renderSuffix:p,slots:h,slotProps:b,contentEditable:y,tabIndex:m,onInput:g,onPaste:w,onKeyDown:x,name:O,readOnly:T,inputProps:R,inputRef:A,sectionListRef:N}=o,S=Le(o,MR),v=E.useRef(null),f=nn(n,v),C=nn(R==null?void 0:R.ref,A),P=Gt(),M=en();if(!M)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=_=>{var B;if(M.disabled){_.stopPropagation();return}(B=M.onFocus)==null||B.call(M,_)};E.useEffect(()=>{M&&M.setAdornedStart(!!d)},[M,d]),E.useEffect(()=>{M&&(s?M.onEmpty():M.onFilled())},[M,s]);const I=W({},o,M,{isRtl:P}),j=_R(I),$=(h==null?void 0:h.root)||As,F=wt({elementType:$,externalSlotProps:b==null?void 0:b.root,externalForwardedProps:S,additionalProps:{"aria-invalid":M.error,ref:f},className:j.root,ownerState:I}),L=(h==null?void 0:h.input)||Zu;return k.jsxs($,W({},F,{children:[d,k.jsx(Bg,{sectionListRef:N,elements:i,contentEditable:y,tabIndex:m,className:j.sectionsContainer,onFocus:D,onBlur:M.onBlur,onInput:g,onPaste:w,onKeyDown:x,slots:{root:L,section:DR,sectionContent:jR,sectionSeparator:AR},slotProps:{root:{ownerState:I},sectionContent:{className:oo.sectionContent},sectionSeparator:({position:_})=>({className:_==="before"?oo.sectionBefore:oo.sectionAfter})}}),u,p?p(W({},M)):null,k.jsx(NR,W({name:O,className:j.input,value:l,onChange:a,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:T,required:M.required,disabled:M.disabled},R,{ref:C}))]}))});process.env.NODE_ENV!=="production"&&(Ns.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,component:r.elementType,contentEditable:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputProps:r.object,inputRef:Jn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});function $R(e){return mt("MuiPickersOutlinedInput",e)}const jn=W({},oo,St("MuiPickersOutlinedInput",["root","notchedOutline","input"])),FR=["children","className","label","notched","shrink"],VR=re("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),qg=re("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),LR=re("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},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:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function BR(e){const{className:t,label:n}=e,o=Le(e,FR),i=n!=null&&n!=="",s=W({},e,{withLabel:i});return k.jsx(VR,W({"aria-hidden":!0,className:t},o,{ownerState:s,children:k.jsx(LR,{ownerState:s,children:i?k.jsx(qg,{children:n}):k.jsx(qg,{className:"notranslate",children:""})})}))}const qR=["label","autoFocus","ownerState","notched"],zR=re(As,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${jn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${jn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${jn.focused} .${jn.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${jn.disabled}`]:{[`& .${jn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${jn.error} .${jn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{color:n},style:{[`&.${jn.focused}:not(.${jn.error}) .${jn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),UR=re(Zu,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),WR=e=>{const{classes:t}=e,o=ht({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$R,t);return W({},t,o)},Ju=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersOutlinedInput"}),{label:i,ownerState:s,notched:l}=o,a=Le(o,qR),c=en(),u=W({},o,s,c,{color:(c==null?void 0:c.color)||"primary"}),d=WR(u);return k.jsx(Ns,W({slots:{root:zR,input:UR},renderSuffix:p=>k.jsx(BR,{shrink:!!(l||p.adornedStart||p.focused||p.filled),notched:!!(l||p.adornedStart||p.focused||p.filled),className:d.notchedOutline,label:i!=null&&i!==""&&(c!=null&&c.required)?k.jsxs(E.Fragment,{children:[i," ","*"]}):i,ownerState:u})},a,{label:i,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(Ju.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,component:r.elementType,contentEditable:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputProps:r.object,inputRef:Jn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,notched:r.bool,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired}),Ju.muiName="Input";function HR(e){return mt("MuiPickersFilledInput",e)}const Dr=W({},oo,St("MuiPickersFilledInput",["root","underline","input"])),YR=["label","autoFocus","disableUnderline","ownerState"],KR=re(As,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>es(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=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{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:o}},[`&.${Dr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Dr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(l=>(e.vars??e).palette[l].main).map(l=>{var a;return{props:{color:l,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[l])==null?void 0:a.main}`}}}}),{props:{disableUnderline:!1},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"},[`&.${Dr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Dr.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})`:n}`,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(.${Dr.disabled}, .${Dr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Dr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:l})=>!!l,style:{paddingLeft:12}},{props:({endAdornment:l})=>!!l,style:{paddingRight:12}}]}}),GR=re(Zu,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),XR=e=>{const{classes:t,disableUnderline:n}=e,i=ht({root:["root",!n&&"underline"],input:["input"]},HR,t);return W({},t,i)},ed=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersFilledInput"}),{label:i,disableUnderline:s=!1,ownerState:l}=o,a=Le(o,YR),c=en(),u=W({},o,l,c,{color:(c==null?void 0:c.color)||"primary"}),d=XR(u);return k.jsx(Ns,W({slots:{root:KR,input:GR},slotProps:{root:{disableUnderline:s}}},a,{label:i,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(ed.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,component:r.elementType,contentEditable:r.bool.isRequired,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,hiddenLabel:r.bool,id:r.string,inputProps:r.object,inputRef:Jn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired}),ed.muiName="Input";function QR(e){return mt("MuiPickersFilledInput",e)}const fi=W({},oo,St("MuiPickersInput",["root","input"])),ZR=["label","autoFocus","disableUnderline","ownerState"],JR=re(As,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${fi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fi.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${fi.disabled}, .${fi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${fi.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),eP=e=>{const{classes:t,disableUnderline:n}=e,i=ht({root:["root",!n&&"underline"],input:["input"]},QR,t);return W({},t,i)},td=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersInput"}),{label:i,disableUnderline:s=!1,ownerState:l}=o,a=Le(o,ZR),c=en(),u=W({},o,l,c,{disableUnderline:s,color:(c==null?void 0:c.color)||"primary"}),d=eP(u);return k.jsx(Ns,W({slots:{root:JR}},a,{label:i,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(td.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,component:r.elementType,contentEditable:r.bool.isRequired,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputProps:r.object,inputRef:Jn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired}),td.muiName="Input";const tP=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],nP={standard:td,filled:ed,outlined:Ju},rP=re(wr,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oP=e=>{const{focused:t,disabled:n,classes:o,required:i}=e;return ht({root:["root",t&&!n&&"focused",n&&"disabled",i&&"required"]},TR,o)},zg=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersTextField"}),{onFocus:i,onBlur:s,className:l,color:a="primary",disabled:c=!1,error:u=!1,variant:d="outlined",required:p=!1,InputProps:h,inputProps:b,inputRef:y,sectionListRef:m,elements:g,areAllSectionsEmpty:w,onClick:x,onKeyDown:O,onKeyUp:T,onPaste:R,onInput:A,endAdornment:N,startAdornment:S,tabIndex:v,contentEditable:f,focused:C,value:P,onChange:M,fullWidth:D,id:I,name:j,helperText:$,FormHelperTextProps:F,label:L,InputLabelProps:_}=o,B=Le(o,tP),oe=E.useRef(null),X=nn(n,oe),ee=Zr(I),Y=$&&ee?`${ee}-helper-text`:void 0,J=L&&ee?`${ee}-label`:void 0,se=W({},o,{color:a,disabled:c,error:u,focused:C,required:p,variant:d}),z=oP(se),H=nP[d];return k.jsxs(rP,W({className:we(z.root,l),ref:X,focused:C,onFocus:i,onBlur:s,disabled:c,variant:d,error:u,color:a,fullWidth:D,required:p,ownerState:se},B,{children:[k.jsx(Uo,W({htmlFor:ee,id:J},_,{children:L})),k.jsx(H,W({elements:g,areAllSectionsEmpty:w,onClick:x,onKeyDown:O,onKeyUp:T,onInput:A,onPaste:R,endAdornment:N,startAdornment:S,tabIndex:v,contentEditable:f,value:P,onChange:M,id:ee,fullWidth:D,inputProps:b,inputRef:y,sectionListRef:m,label:L,name:j,role:"group","aria-labelledby":J},h)),$&&k.jsx(Kr,W({id:Y},F,{children:$}))]}))});process.env.NODE_ENV!=="production"&&(zg.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,contentEditable:r.bool.isRequired,disabled:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,error:r.bool.isRequired,focused:r.bool,FormHelperTextProps:r.object,fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,InputLabelProps:r.object,inputProps:r.object,InputProps:r.object,inputRef:Jn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onBlur:r.func.isRequired,onChange:r.func.isRequired,onClick:r.func.isRequired,onFocus:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onPaste:r.func.isRequired,readOnly:r.bool,required:r.bool,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),size:r.oneOf(["medium","small"]),startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired,variant:r.oneOf(["filled","outlined","standard"])});const iP=["enableAccessibleFieldDOMStructure"],sP=["InputProps","readOnly"],aP=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],lP=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Le(e,iP);if(t){const{InputProps:p,readOnly:h}=n,b=Le(n,sP);return W({},b,{InputProps:W({},p??{},{readOnly:h})})}const{onPaste:o,onKeyDown:i,inputMode:s,readOnly:l,InputProps:a,inputProps:c,inputRef:u}=n,d=Le(n,aP);return W({},d,{InputProps:W({},a??{},{readOnly:l}),inputProps:W({},c??{},{inputMode:s,onPaste:o,onKeyDown:i,ref:u})})},cP=["slots","slotProps","InputProps","inputProps"],nd=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiDateTimeField"}),{slots:i,slotProps:s,InputProps:l,inputProps:a}=o,c=Le(o,cP),u=o,d=(i==null?void 0:i.textField)??(t.enableAccessibleFieldDOMStructure?zg:Os),p=wt({elementType:d,externalSlotProps:s==null?void 0:s.textField,externalForwardedProps:c,ownerState:u,additionalProps:{ref:n}});p.inputProps=W({},a,p.inputProps),p.InputProps=W({},l,p.InputProps);const h=OR(p),b=lP(h),y=vR(W({},b,{slots:i,slotProps:s}));return k.jsx(d,W({},y))});process.env.NODE_ENV!=="production"&&(nd.propTypes={ampm:r.bool,autoFocus:r.bool,className:r.string,clearable:r.bool,color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,enableAccessibleFieldDOMStructure:r.bool,focused:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),FormHelperTextProps:r.object,fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,InputLabelProps:r.object,inputProps:r.object,InputProps:r.object,inputRef:Jn,label:r.node,margin:r.oneOf(["dense","none","normal"]),maxDate:r.object,maxDateTime:r.object,maxTime:r.object,minDate:r.object,minDateTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onBlur:r.func,onChange:r.func,onClear:r.func,onError:r.func,onFocus:r.func,onSelectedSectionsChange:r.func,readOnly:r.bool,referenceDate:r.object,required:r.bool,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableTime:r.func,shouldDisableYear:r.func,shouldRespectLeadingZeros:r.bool,size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,unstableFieldRef:r.oneOfType([r.func,r.object]),value:r.object,variant:r.oneOf(["filled","outlined","standard"])});function uP(e){return Ye("MuiTab",e)}const Tn=qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),dP=e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:i,icon:s,label:l,selected:a,disabled:c}=e,u={root:["root",s&&l&&"labelIcon",`textColor${Re(n)}`,o&&"fullWidth",i&&"wrapped",a&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return Xe(u,uP,t)},pP=re(Vn,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Re(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Tn.iconWrapper}`]:t.iconWrapper},{[`& .${Tn.icon}`]:t.icon}]}})(Qe(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Tn.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Tn.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Tn.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Tn.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Tn.selected}`]:{opacity:1},[`&.${Tn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Tn.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Tn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Tn.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Tn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),rd=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiTab"}),{className:i,disabled:s=!1,disableFocusRipple:l=!1,fullWidth:a,icon:c,iconPosition:u="top",indicator:d,label:p,onChange:h,onClick:b,onFocus:y,selected:m,selectionFollowsFocus:g,textColor:w="inherit",value:x,wrapped:O=!1,...T}=o,R={...o,disabled:s,disableFocusRipple:l,selected:m,icon:!!c,iconPosition:u,label:!!p,fullWidth:a,textColor:w,wrapped:O},A=dP(R),N=c&&p&&E.isValidElement(c)?E.cloneElement(c,{className:we(A.icon,c.props.className)}):c,S=f=>{!m&&h&&h(f,x),b&&b(f)},v=f=>{g&&!m&&h&&h(f,x),y&&y(f)};return k.jsxs(pP,{focusRipple:!l,className:we(A.root,i),ref:n,role:"tab","aria-selected":m,disabled:s,onClick:S,onFocus:v,ownerState:R,tabIndex:m?0:-1,...T,children:[u==="top"||u==="start"?k.jsxs(E.Fragment,{children:[N,p]}):k.jsxs(E.Fragment,{children:[p,N]}),d]})});process.env.NODE_ENV!=="production"&&(rd.propTypes={children:Nm,classes:r.object,className:r.string,disabled:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,icon:r.oneOfType([r.element,r.string]),iconPosition:r.oneOf(["bottom","end","start","top"]),label:r.node,onChange:r.func,onClick:r.func,onFocus:r.func,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any,wrapped:r.bool});function fP(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function hP(e,t,n,o={},i=()=>{}){const{ease:s=fP,duration:l=300}=o;let a=null;const c=t[e];let u=!1;const d=()=>{u=!0},p=h=>{if(u){i(new Error("Animation cancelled"));return}a===null&&(a=h);const b=Math.min(1,(h-a)/l);if(t[e]=s(b)*(n-c)+c,b>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(p)};return c===n?(i(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const mP={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ug(e){const{onChange:t,...n}=e,o=E.useRef(),i=E.useRef(null),s=()=>{o.current=i.current.offsetHeight-i.current.clientHeight};return vn(()=>{const l=as(()=>{const c=o.current;s(),c!==o.current&&t(o.current)}),a=In(i.current);return a.addEventListener("resize",l),()=>{l.clear(),a.removeEventListener("resize",l)}},[t]),E.useEffect(()=>{s(),t(o.current)},[t]),k.jsx("div",{style:mP,...n,ref:i})}process.env.NODE_ENV!=="production"&&(Ug.propTypes={onChange:r.func.isRequired});const bP=Et(k.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),gP=Et(k.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function yP(e){return Ye("MuiTabScrollButton",e)}const vP=qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),xP=e=>{const{classes:t,orientation:n,disabled:o}=e;return Xe({root:["root",n,o&&"disabled"]},yP,t)},CP=re(Vn,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${vP.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Wg=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:a,orientation:c,disabled:u,...d}=o,p=Gt(),h={isRtl:p,...o},b=xP(h),y=s.StartScrollButtonIcon??bP,m=s.EndScrollButtonIcon??gP,g=Cr({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),w=Cr({elementType:m,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return k.jsx(CP,{component:"div",className:we(b.root,i),ref:n,role:null,ownerState:h,tabIndex:null,...d,style:{...d.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${p?-90:90}deg)`}},children:a==="left"?k.jsx(y,{...g}):k.jsx(m,{...w})})});process.env.NODE_ENV!=="production"&&(Wg.propTypes={children:r.node,classes:r.object,className:r.string,direction:r.oneOf(["left","right"]).isRequired,disabled:r.bool,orientation:r.oneOf(["horizontal","vertical"]).isRequired,slotProps:r.shape({endScrollButtonIcon:r.oneOfType([r.func,r.object]),startScrollButtonIcon:r.oneOfType([r.func,r.object])}),slots:r.shape({EndScrollButtonIcon:r.elementType,StartScrollButtonIcon:r.elementType}),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function SP(e){return Ye("MuiTabs",e)}const _s=qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Hg=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Yg=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,$s=(e,t,n)=>{let o=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(o)return;o=!0}const s=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||s)i=n(e,i);else{i.focus();return}}},wP=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:i,scrollableY:s,centered:l,scrollButtonsHideMobile:a,classes:c}=e;return Xe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",i&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},SP,c)},OP=re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_s.scrollButtons}`]:t.scrollButtons},{[`& .${_s.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Qe(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${_s.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),TP=re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),EP=re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),RP=re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Qe(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),PP=re(Ug)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Kg={};let Gg=!1;const Xg=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiTabs"}),i=Sr(),s=Gt(),{"aria-label":l,"aria-labelledby":a,action:c,centered:u=!1,children:d,className:p,component:h="div",allowScrollButtonsMobile:b=!1,indicatorColor:y="primary",onChange:m,orientation:g="horizontal",ScrollButtonComponent:w=Wg,scrollButtons:x="auto",selectionFollowsFocus:O,slots:T={},slotProps:R={},TabIndicatorProps:A={},TabScrollButtonProps:N={},textColor:S="primary",value:v,variant:f="standard",visibleScrollbar:C=!1,...P}=o,M=f==="scrollable",D=g==="vertical",I=D?"scrollTop":"scrollLeft",j=D?"top":"left",$=D?"bottom":"right",F=D?"clientHeight":"clientWidth",L=D?"height":"width",_={...o,component:h,allowScrollButtonsMobile:b,indicatorColor:y,orientation:g,vertical:D,scrollButtons:x,textColor:S,variant:f,visibleScrollbar:C,fixed:!M,hideScrollbar:M&&!C,scrollableX:M&&!D,scrollableY:M&&D,centered:u&&!M,scrollButtonsHideMobile:!b},B=wP(_),oe=Cr({elementType:T.StartScrollButtonIcon,externalSlotProps:R.startScrollButtonIcon,ownerState:_}),X=Cr({elementType:T.EndScrollButtonIcon,externalSlotProps:R.endScrollButtonIcon,ownerState:_});process.env.NODE_ENV!=="production"&&u&&M&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[ee,Y]=E.useState(!1),[J,se]=E.useState(Kg),[z,H]=E.useState(!1),[G,ue]=E.useState(!1),[U,Q]=E.useState(!1),[q,ne]=E.useState({overflow:"hidden",scrollbarWidth:0}),Z=new Map,te=E.useRef(null),le=E.useRef(null),fe=()=>{const ge=te.current;let Se;if(ge){const Fe=ge.getBoundingClientRect();Se={clientWidth:ge.clientWidth,scrollLeft:ge.scrollLeft,scrollTop:ge.scrollTop,scrollWidth:ge.scrollWidth,top:Fe.top,bottom:Fe.bottom,left:Fe.left,right:Fe.right}}let Ae;if(ge&&v!==!1){const Fe=le.current.children;if(Fe.length>0){const De=Fe[Z.get(v)];process.env.NODE_ENV!=="production"&&(De||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${v}".`,Z.keys?`You can provide one of the following values: ${Array.from(Z.keys()).join(", ")}.`:null].join(`
|
|
220
|
+
`))),Ae=De?De.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!Gg&&Ae&&Ae.width===0&&Ae.height===0&&Se.clientWidth!==0&&(Se=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${v}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
221
|
+
`)),Gg=!0)}}return{tabsMeta:Se,tabMeta:Ae}},xe=pn(()=>{const{tabsMeta:ge,tabMeta:Se}=fe();let Ae=0,Fe;D?(Fe="top",Se&&ge&&(Ae=Se.top-ge.top+ge.scrollTop)):(Fe=s?"right":"left",Se&&ge&&(Ae=(s?-1:1)*(Se[Fe]-ge[Fe]+ge.scrollLeft)));const De={[Fe]:Ae,[L]:Se?Se[L]:0};if(typeof J[Fe]!="number"||typeof J[L]!="number")se(De);else{const at=Math.abs(J[Fe]-De[Fe]),pt=Math.abs(J[L]-De[L]);(at>=1||pt>=1)&&se(De)}}),Ee=(ge,{animation:Se=!0}={})=>{Se?hP(I,te.current,ge,{duration:i.transitions.duration.standard}):te.current[I]=ge},Te=ge=>{let Se=te.current[I];D?Se+=ge:Se+=ge*(s?-1:1),Ee(Se)},$e=()=>{const ge=te.current[F];let Se=0;const Ae=Array.from(le.current.children);for(let Fe=0;Fe<Ae.length;Fe+=1){const De=Ae[Fe];if(Se+De[F]>ge){Fe===0&&(Se=ge);break}Se+=De[F]}return Se},Ze=()=>{Te(-1*$e())},We=()=>{Te($e())},it=E.useCallback(ge=>{ne({overflow:null,scrollbarWidth:ge})},[]),st=()=>{const ge={};ge.scrollbarSizeListener=M?k.jsx(PP,{onChange:it,className:we(B.scrollableX,B.hideScrollbar)}):null;const Ae=M&&(x==="auto"&&(z||G)||x===!0);return ge.scrollButtonStart=Ae?k.jsx(w,{slots:{StartScrollButtonIcon:T.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:g,direction:s?"right":"left",onClick:Ze,disabled:!z,...N,className:we(B.scrollButtons,N.className)}):null,ge.scrollButtonEnd=Ae?k.jsx(w,{slots:{EndScrollButtonIcon:T.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:X},orientation:g,direction:s?"left":"right",onClick:We,disabled:!G,...N,className:we(B.scrollButtons,N.className)}):null,ge},Ge=pn(ge=>{const{tabsMeta:Se,tabMeta:Ae}=fe();if(!(!Ae||!Se)){if(Ae[j]<Se[j]){const Fe=Se[I]+(Ae[j]-Se[j]);Ee(Fe,{animation:ge})}else if(Ae[$]>Se[$]){const Fe=Se[I]+(Ae[$]-Se[$]);Ee(Fe,{animation:ge})}}}),Ke=pn(()=>{M&&x!==!1&&Q(!U)});E.useEffect(()=>{const ge=as(()=>{te.current&&xe()});let Se;const Ae=at=>{at.forEach(pt=>{pt.removedNodes.forEach(Rt=>{Se==null||Se.unobserve(Rt)}),pt.addedNodes.forEach(Rt=>{Se==null||Se.observe(Rt)})}),ge(),Ke()},Fe=In(te.current);Fe.addEventListener("resize",ge);let De;return typeof ResizeObserver<"u"&&(Se=new ResizeObserver(ge),Array.from(le.current.children).forEach(at=>{Se.observe(at)})),typeof MutationObserver<"u"&&(De=new MutationObserver(Ae),De.observe(le.current,{childList:!0})),()=>{ge.clear(),Fe.removeEventListener("resize",ge),De==null||De.disconnect(),Se==null||Se.disconnect()}},[xe,Ke]),E.useEffect(()=>{const ge=Array.from(le.current.children),Se=ge.length;if(typeof IntersectionObserver<"u"&&Se>0&&M&&x!==!1){const Ae=ge[0],Fe=ge[Se-1],De={root:te.current,threshold:.99},at=de=>{H(!de[0].isIntersecting)},pt=new IntersectionObserver(at,De);pt.observe(Ae);const Rt=de=>{ue(!de[0].isIntersecting)},Jt=new IntersectionObserver(Rt,De);return Jt.observe(Fe),()=>{pt.disconnect(),Jt.disconnect()}}},[M,x,U,d==null?void 0:d.length]),E.useEffect(()=>{Y(!0)},[]),E.useEffect(()=>{xe()}),E.useEffect(()=>{Ge(Kg!==J)},[Ge,J]),E.useImperativeHandle(c,()=>({updateIndicator:xe,updateScrollButtons:Ke}),[xe,Ke]);const ut=k.jsx(RP,{...A,className:we(B.indicator,A.className),ownerState:_,style:{...J,...A.style}});let ze=0;const ct=E.Children.map(d,ge=>{if(!E.isValidElement(ge))return null;process.env.NODE_ENV!=="production"&&ys.isFragment(ge)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
222
|
+
`));const Se=ge.props.value===void 0?ze:ge.props.value;Z.set(Se,ze);const Ae=Se===v;return ze+=1,E.cloneElement(ge,{fullWidth:f==="fullWidth",indicator:Ae&&!ee&&ut,selected:Ae,selectionFollowsFocus:O,onChange:m,textColor:S,value:Se,...ze===1&&v===!1&&!ge.props.tabIndex?{tabIndex:0}:{}})}),Tt=ge=>{const Se=le.current,Ae=sn(Se).activeElement;if(Ae.getAttribute("role")!=="tab")return;let De=g==="horizontal"?"ArrowLeft":"ArrowUp",at=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&s&&(De="ArrowRight",at="ArrowLeft"),ge.key){case De:ge.preventDefault(),$s(Se,Ae,Yg);break;case at:ge.preventDefault(),$s(Se,Ae,Hg);break;case"Home":ge.preventDefault(),$s(Se,null,Hg);break;case"End":ge.preventDefault(),$s(Se,null,Yg);break}},dt=st();return k.jsxs(OP,{className:we(B.root,p),ownerState:_,ref:n,as:h,...P,children:[dt.scrollButtonStart,dt.scrollbarSizeListener,k.jsxs(TP,{className:B.scroller,ownerState:_,style:{overflow:q.overflow,[D?`margin${s?"Left":"Right"}`:"marginBottom"]:C?void 0:-q.scrollbarWidth},ref:te,children:[k.jsx(EP,{"aria-label":l,"aria-labelledby":a,"aria-orientation":g==="vertical"?"vertical":null,className:B.flexContainer,ownerState:_,onKeyDown:Tt,ref:le,role:"tablist",children:ct}),ee&&ut]}),dt.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(Xg.propTypes={action:Yt,allowScrollButtonsMobile:r.bool,"aria-label":r.string,"aria-labelledby":r.string,centered:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,indicatorColor:r.oneOfType([r.oneOf(["primary","secondary"]),r.string]),onChange:r.func,orientation:r.oneOf(["horizontal","vertical"]),ScrollButtonComponent:r.elementType,scrollButtons:r.oneOf(["auto",!1,!0]),selectionFollowsFocus:r.bool,slotProps:r.shape({endScrollButtonIcon:r.oneOfType([r.func,r.object]),startScrollButtonIcon:r.oneOfType([r.func,r.object])}),slots:r.shape({EndScrollButtonIcon:r.elementType,StartScrollButtonIcon:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TabIndicatorProps:r.object,TabScrollButtonProps:r.object,textColor:r.oneOf(["inherit","primary","secondary"]),value:r.any,variant:r.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:r.bool});function kP(e){return mt("MuiDateTimePickerTabs",e)}St("MuiDateTimePickerTabs",["root"]);const MP=e=>Jr(e)?"date":"time",IP=e=>e==="date"?"day":"hours",DP=e=>{const{classes:t}=e;return ht({root:["root"]},kP,t)},jP=re(Xg,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${_s.indicator}`]:{bottom:"auto",top:0}}})),Qg=function(t){const n=lt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:o=k.jsx(hR,{}),onViewChange:i,timeIcon:s=k.jsx(mR,{}),view:l,hidden:a=typeof window>"u"||window.innerHeight<667,className:c,sx:u}=n,d=an(),p=DP(n),h=(b,y)=>{i(IP(y))};return a?null:k.jsxs(jP,{ownerState:n,variant:"fullWidth",value:MP(l),onChange:h,className:we(c,p.root),sx:u,children:[k.jsx(rd,{value:"date","aria-label":d.dateTableLabel,icon:k.jsx(E.Fragment,{children:o})}),k.jsx(rd,{value:"time","aria-label":d.timeTableLabel,icon:k.jsx(E.Fragment,{children:s})})]})};process.env.NODE_ENV!=="production"&&(Qg.propTypes={classes:r.object,className:r.string,dateIcon:r.node,hidden:r.bool,onViewChange:r.func.isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeIcon:r.node,view:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired});function AP(e){return mt("MuiPickersToolbarText",e)}const od=St("MuiPickersToolbarText",["root","selected"]),NP=["className","selected","value"],_P=e=>{const{classes:t,selected:n}=e;return ht({root:["root",n&&"selected"]},AP,t)},$P=re(wn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${od.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${od.selected}`]:{color:(e.vars||e).palette.text.primary}})),Zg=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:s}=o,l=Le(o,NP),a=_P(o);return k.jsx($P,W({ref:n,className:we(a.root,i),component:"span"},l,{children:s}))});function Jg(e){return mt("MuiPickersToolbar",e)}const FP=St("MuiPickersToolbar",["root","content"]),VP=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],LP=e=>{const{classes:t}=e;return ht({root:["root"],content:["content"]},Jg,t)},BP=re("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),qP=re("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),zP=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersToolbar"}),{children:i,className:s,toolbarTitle:l,hidden:a,titleId:c}=o,u=Le(o,VP),d=o,p=LP(d);return a?null:k.jsxs(BP,W({ref:n,className:we(p.root,s),ownerState:d},u,{children:[k.jsx(wn,{color:"text.secondary",variant:"overline",id:c,children:l}),k.jsx(qP,{className:p.content,ownerState:d,children:i})]}))});function UP(e){return Ye("MuiButton",e)}const io=qe("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"]),ey=E.createContext({});process.env.NODE_ENV!=="production"&&(ey.displayName="ButtonGroupContext");const ty=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(ty.displayName="ButtonGroupButtonContext");const WP=e=>{const{color:t,disableElevation:n,fullWidth:o,size:i,variant:s,classes:l}=e,a={root:["root",s,`${s}${Re(t)}`,`size${Re(i)}`,`${s}Size${Re(i)}`,`color${Re(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Re(i)}`],endIcon:["icon","endIcon",`iconSize${Re(i)}`]},c=Xe(a,UP,l);return{...l,...c}},ny=[{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}}}],HP=re(Vn,{shouldForwardProp:e=>Xt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Re(n.color)}`],t[`size${Re(n.size)}`],t[`${n.variant}Size${Re(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=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"},[`&.${io.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]},[`&.${io.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${io.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)",[`&.${io.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(Qt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:et(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[o].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:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:et(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"},[`&.${io.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${io.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),YP=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Re(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...ny]}),KP=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Re(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...ny]}),jr=E.forwardRef(function(t,n){const o=E.useContext(ey),i=E.useContext(ty),s=Po(o,t),l=tt({props:s,name:"MuiButton"}),{children:a,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:y,focusVisibleClassName:m,fullWidth:g=!1,size:w="medium",startIcon:x,type:O,variant:T="text",...R}=l,A={...l,color:c,component:u,disabled:p,disableElevation:h,disableFocusRipple:b,fullWidth:g,size:w,type:O,variant:T},N=WP(A),S=x&&k.jsx(YP,{className:N.startIcon,ownerState:A,children:x}),v=y&&k.jsx(KP,{className:N.endIcon,ownerState:A,children:y}),f=i||"";return k.jsxs(HP,{ownerState:A,className:we(o.className,N.root,d,f),component:u,disabled:p,focusRipple:!b,focusVisibleClassName:we(N.focusVisible,m),ref:n,type:O,...R,classes:N,children:[S,a,v]})});process.env.NODE_ENV!=="production"&&(jr.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","success","error","info","warning"]),r.string]),component:r.elementType,disabled:r.bool,disableElevation:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,endIcon:r.node,focusVisibleClassName:r.string,fullWidth:r.bool,href:r.string,size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),startIcon:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string]),variant:r.oneOfType([r.oneOf(["contained","outlined","text"]),r.string])});const GP=["align","className","selected","typographyClassName","value","variant","width"],XP=e=>{const{classes:t}=e;return ht({root:["root"]},Jg,t)},QP=re(jr,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),fr=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:s,selected:l,typographyClassName:a,value:c,variant:u,width:d}=o,p=Le(o,GP),h=XP(o);return k.jsx(QP,W({variant:"text",ref:n,className:we(h.root,s)},d?{sx:{width:d}}:{},p,{children:k.jsx(Zg,{align:i,className:a,variant:u,value:c,selected:l})}))});function ZP(e){return mt("MuiDateTimePickerToolbar",e)}const id=St("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]);function JP(e,{disableFuture:t,maxDate:n,timezone:o}){const i=Ot();return E.useMemo(()=>{const s=i.date(void 0,o),l=i.startOfMonth(t&&i.isBefore(s,n)?s:n);return!i.isAfter(l,e)},[t,n,e,i,o])}function ek(e,{disablePast:t,minDate:n,timezone:o}){const i=Ot();return E.useMemo(()=>{const s=i.date(void 0,o),l=i.startOfMonth(t&&i.isAfter(s,n)?s:n);return!i.isBefore(l,e)},[t,n,e,i,o])}function sd(e,t,n,o){const i=Ot(),s=gE(e,i),l=E.useCallback(a=>{const c=e==null?null:yE(e,a,!!t,i);n(c,o??"partial")},[t,e,n,o,i]);return{meridiemMode:s,handleMeridiemChange:l}}const hi=36,Fs=2,Vs=320,tk=280,Ls=336,ry=232,mi=48,nk=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],rk=e=>{const{classes:t,isLandscape:n,isRtl:o}=e;return ht({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",o&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",o&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},ZP,t)},ok=re(zP,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${FP.content} .${od.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),ik=re("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),sk=re("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&t!=="desktop",style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&t!=="desktop"&&n,style:{flexDirection:"column-reverse"}}]}),ak=re("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),oy=re(Zg,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),lk=re("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${id.ampmLabel}`]:t.ampmLabel},{[`&.${id.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${id.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function iy(e){const t=lt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:o,value:i,onChange:s,view:l,isLandscape:a,onViewChange:c,toolbarFormat:u,toolbarPlaceholder:d="––",views:p,disabled:h,readOnly:b,toolbarVariant:y="mobile",toolbarTitle:m,className:g}=t,w=Le(t,nk),x=Gt(),O=W({},t,{isRtl:x}),T=Ot(),{meridiemMode:R,handleMeridiemChange:A}=sd(i,n,s),N=!!(n&&!o),S=y==="desktop",v=an(),f=rk(O),C=m??v.dateTimePickerToolbarTitle,P=D=>n?T.format(D,"hours12h"):T.format(D,"hours24h"),M=E.useMemo(()=>i?u?T.formatByString(i,u):T.format(i,"shortDate"):d,[i,u,d,T]);return k.jsxs(ok,W({isLandscape:a,className:we(f.root,g),toolbarTitle:C},w,{ownerState:O,children:[k.jsxs(ik,{className:f.dateContainer,ownerState:O,children:[p.includes("year")&&k.jsx(fr,{tabIndex:-1,variant:"subtitle1",onClick:()=>c("year"),selected:l==="year",value:i?T.format(i,"year"):"–"}),p.includes("day")&&k.jsx(fr,{tabIndex:-1,variant:S?"h5":"h4",onClick:()=>c("day"),selected:l==="day",value:M})]}),k.jsxs(sk,{className:f.timeContainer,ownerState:O,children:[k.jsxs(ak,{className:f.timeDigitsContainer,ownerState:O,children:[p.includes("hours")&&k.jsxs(E.Fragment,{children:[k.jsx(fr,{variant:S?"h5":"h3",width:S&&!a?mi:void 0,onClick:()=>c("hours"),selected:l==="hours",value:i?P(i):"--"}),k.jsx(oy,{variant:S?"h5":"h3",value:":",className:f.separator,ownerState:O}),k.jsx(fr,{variant:S?"h5":"h3",width:S&&!a?mi:void 0,onClick:()=>c("minutes"),selected:l==="minutes"||!p.includes("minutes")&&l==="hours",value:i?T.format(i,"minutes"):"--",disabled:!p.includes("minutes")})]}),p.includes("seconds")&&k.jsxs(E.Fragment,{children:[k.jsx(oy,{variant:S?"h5":"h3",value:":",className:f.separator,ownerState:O}),k.jsx(fr,{variant:S?"h5":"h3",width:S&&!a?mi:void 0,onClick:()=>c("seconds"),selected:l==="seconds",value:i?T.format(i,"seconds"):"--"})]})]}),N&&!S&&k.jsxs(lk,{className:f.ampmSelection,ownerState:O,children:[k.jsx(fr,{variant:"subtitle2",selected:R==="am",typographyClassName:f.ampmLabel,value:er(T,"am"),onClick:b?void 0:()=>A("am"),disabled:h}),k.jsx(fr,{variant:"subtitle2",selected:R==="pm",typographyClassName:f.ampmLabel,value:er(T,"pm"),onClick:b?void 0:()=>A("pm"),disabled:h})]}),n&&S&&k.jsx(fr,{variant:"h5",onClick:()=>c("meridiem"),selected:l==="meridiem",value:i&&R?er(T,R):"--",width:mi})]})]}))}process.env.NODE_ENV!=="production"&&(iy.propTypes={ampm:r.bool,ampmInClock:r.bool,classes:r.object,className:r.string,disabled:r.bool,hidden:r.bool,isLandscape:r.bool.isRequired,onChange:r.func.isRequired,onViewChange:r.func.isRequired,readOnly:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleId:r.string,toolbarFormat:r.string,toolbarPlaceholder:r.node,toolbarTitle:r.node,toolbarVariant:r.oneOf(["desktop","mobile"]),value:r.object,view:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:r.arrayOf(r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired});function sy(e,t){var a;const n=Ot(),o=di(),i=lt({props:e,name:t}),s=i.ampm??n.is12HourCycleInCurrentLocale(),l=E.useMemo(()=>{var c;return((c=i.localeText)==null?void 0:c.toolbarTitle)==null?i.localeText:W({},i.localeText,{dateTimePickerToolbarTitle:i.localeText.toolbarTitle})},[i.localeText]);return W({},i,pE({views:i.views,openTo:i.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:s,localeText:l,orientation:i.orientation??"portrait",disableIgnoringDatePartForTimeValidation:i.disableIgnoringDatePartForTimeValidation??!!(i.minDateTime||i.maxDateTime||i.disablePast||i.disableFuture),disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:On(n,i.minDateTime??i.minDate,o.minDate),maxDate:On(n,i.maxDateTime??i.maxDate,o.maxDate),minTime:i.minDateTime??i.minTime,maxTime:i.maxDateTime??i.maxTime,slots:W({toolbar:iy,tabs:Qg},i.slots),slotProps:W({},i.slotProps,{toolbar:W({ampm:s},(a=i.slotProps)==null?void 0:a.toolbar)})})}const ay=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:i,disableFuture:s,disablePast:l,timezone:a})=>{const c=Mr();return E.useCallback(u=>Ku({adapter:c,value:u,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:i,disableFuture:s,disablePast:l}})!==null,[c,e,t,n,o,i,s,l,a])},ck=(e,t,n)=>(o,i)=>{switch(i.type){case"changeMonth":return W({},o,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const s=i.newTimezone;if(n.getTimezone(o.currentMonth)===s)return o;let l=n.setTimezone(o.currentMonth,s);return n.getMonth(l)!==n.getMonth(o.currentMonth)&&(l=n.setMonth(l,n.getMonth(o.currentMonth))),W({},o,{currentMonth:l})}case"finishMonthSwitchingAnimation":return W({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,o.focusedDay))return o;const s=i.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,i.focusedDay);return W({},o,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:s&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(i.focusedDay):o.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},uk=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:i,disableSwitchToMonthOnDayFocus:s=!1,maxDate:l,minDate:a,onMonthChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:p}=e,h=Ot(),b=E.useRef(ck(!!u,s,h)).current,y=E.useMemo(()=>Zt.getInitialReferenceValue({value:t,utils:h,timezone:p,props:e,referenceDate:n,granularity:Dn.day}),[n,p]),[m,g]=E.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:y,currentMonth:h.startOfMonth(y),slideDirection:"left"});E.useEffect(()=>{g({type:"changeMonthTimezone",newTimezone:h.getTimezone(y)})},[y,h]);const w=E.useCallback(A=>{g(W({type:"changeMonth"},A)),c&&c(A.newMonth)},[c]),x=E.useCallback(A=>{const N=A;h.isSameMonth(N,m.currentMonth)||w({newMonth:h.startOfMonth(N),direction:h.isAfterDay(N,m.currentMonth)?"left":"right"})},[m.currentMonth,w,h]),O=ay({shouldDisableDate:d,minDate:a,maxDate:l,disableFuture:o,disablePast:i,timezone:p}),T=E.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),R=je((A,N)=>{O(A)||g({type:"changeFocusedDay",focusedDay:A,withoutMonthSwitchingAnimation:N})});return{referenceDate:y,calendarState:m,changeMonth:x,changeFocusedDay:R,isDateDisabled:O,onMonthSwitchingAnimationEnd:T,handleChangeMonth:w}},dk=e=>mt("MuiPickersFadeTransitionGroup",e);St("MuiPickersFadeTransitionGroup",["root"]);const pk=e=>{const{classes:t}=e;return ht({root:["root"]},dk,t)},fk=re(Ko,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function ly(e){const t=lt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:i,transKey:s}=t,l=pk(t),a=Sr();return i?n:k.jsx(fk,{className:we(l.root,o),children:k.jsx(Rr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}function hk(e){return mt("MuiPickersDay",e)}const Ar=St("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),mk=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],bk=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:i,disabled:s,outsideCurrentMonth:l,showDaysOutsideCurrentMonth:a,classes:c}=e,u=l&&!a;return ht({root:["root",t&&!u&&"selected",s&&"disabled",!n&&"dayWithMargin",!o&&i&&"today",l&&a&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},hk,c)},cy=({theme:e})=>W({},e.typography.caption,{width:hi,height:hi,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:et(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Ar.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ar.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ar.disabled}:not(.${Ar.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ar.disabled}&.${Ar.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Fs}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Ar.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),uy=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},gk=re(Vn,{name:"MuiPickersDay",slot:"Root",overridesResolver:uy})(cy),yk=re("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:uy})(({theme:e})=>W({},cy({theme:e}),{opacity:0,pointerEvents:"none"})),bi=()=>{},dy=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:s,day:l,disabled:a=!1,disableHighlightToday:c=!1,disableMargin:u=!1,isAnimating:d,onClick:p,onDaySelect:h,onFocus:b=bi,onBlur:y=bi,onKeyDown:m=bi,onMouseDown:g=bi,onMouseEnter:w=bi,outsideCurrentMonth:x,selected:O=!1,showDaysOutsideCurrentMonth:T=!1,children:R,today:A=!1}=o,N=Le(o,mk),S=W({},o,{autoFocus:i,disabled:a,disableHighlightToday:c,disableMargin:u,selected:O,showDaysOutsideCurrentMonth:T,today:A}),v=bk(S),f=Ot(),C=E.useRef(null),P=nn(C,n);Bn(()=>{i&&!a&&!d&&!x&&C.current.focus()},[i,a,d,x]);const M=I=>{g(I),x&&I.preventDefault()},D=I=>{a||h(l),x&&I.currentTarget.focus(),p&&p(I)};return x&&!T?k.jsx(yk,{className:we(v.root,v.hiddenDaySpacingFiller,s),ownerState:S,role:N.role}):k.jsx(gk,W({className:we(v.root,s),ref:P,centerRipple:!0,disabled:a,tabIndex:O?0:-1,onKeyDown:I=>m(I,l),onFocus:I=>b(I,l),onBlur:I=>y(I,l),onMouseEnter:I=>w(I,l),onClick:D,onMouseDown:M},N,{ownerState:S,children:R||f.format(l,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(dy.propTypes={action:r.oneOfType([r.func,r.shape({current:r.shape({focusVisible:r.func.isRequired})})]),centerRipple:r.bool,classes:r.object,className:r.string,component:r.elementType,day:r.object.isRequired,disabled:r.bool,disableHighlightToday:r.bool,disableMargin:r.bool,disableRipple:r.bool,disableTouchRipple:r.bool,focusRipple:r.bool,focusVisibleClassName:r.string,isAnimating:r.bool,isFirstVisibleCell:r.bool.isRequired,isLastVisibleCell:r.bool.isRequired,onBlur:r.func,onDaySelect:r.func.isRequired,onFocus:r.func,onFocusVisible:r.func,onKeyDown:r.func,onMouseEnter:r.func,outsideCurrentMonth:r.bool.isRequired,selected:r.bool,showDaysOutsideCurrentMonth:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,today:r.bool,TouchRippleProps:r.object,touchRippleRef:r.oneOfType([r.func,r.shape({current:r.shape({pulsate:r.func.isRequired,start:r.func.isRequired,stop:r.func.isRequired})})])});const vk=E.memo(dy),xk=e=>mt("MuiPickersSlideTransition",e),En=St("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Ck=["children","className","reduceAnimations","slideDirection","transKey","classes"],Sk=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ht(o,xk,t)},wk=re(Ko,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${En["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${En["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${En.slideEnterActive}`]:t.slideEnterActive},{[`.${En.slideExit}`]:t.slideExit},{[`.${En["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${En["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${En["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${En["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${En.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${En.slideExit}`]:{transform:"translate(0%)"},[`& .${En["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${En["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Ok(e){const t=lt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:i,transKey:s}=t,l=Le(t,Ck),a=Sk(t),c=Sr();if(i)return k.jsx("div",{className:we(a.root,o),children:n});const u={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return k.jsx(wk,{className:we(a.root,o),childFactory:d=>E.cloneElement(d,{classNames:u}),role:"presentation",children:k.jsx(Eu,W({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:u},l,{children:n}),s)})}const Tk=e=>mt("MuiDayCalendar",e);St("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Ek=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Rk=["ownerState"],Pk=e=>{const{classes:t}=e;return ht({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Tk,t)},py=(hi+Fs*2)*6,kk=re("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mk=re("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Ik=re(wn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Dk=re(wn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),jk=re(wn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>W({},e.typography.caption,{width:hi,height:hi,padding:0,margin:`0 ${Fs}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Ak=re("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:py}),Nk=re(Ok,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:py}),_k=re("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),$k=re("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Fs}px 0`,display:"flex",justifyContent:"center"});function Fk(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:i,isDateDisabled:s,currentMonthNumber:l,isViewFocused:a}=e,c=Le(e,Ek);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:h,slots:b,slotProps:y,timezone:m}=t,g=Ot(),w=Ir(m),x=o!==null&&g.isSameDay(n,o),O=i.some(P=>g.isSameDay(P,n)),T=g.isSameDay(n,w),R=(b==null?void 0:b.day)??vk,A=wt({elementType:R,externalSlotProps:y==null?void 0:y.day,additionalProps:W({disableHighlightToday:d,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:p,"data-timestamp":g.toJsDate(n).valueOf()},c),ownerState:W({},t,{day:n,selected:O})}),N=Le(A,Rk),S=E.useMemo(()=>u||s(n),[u,s,n]),v=E.useMemo(()=>g.getMonth(n)!==l,[g,n,l]),f=E.useMemo(()=>{const P=g.startOfMonth(g.setMonth(n,l));return h?g.isSameDay(n,g.startOfWeek(P)):g.isSameDay(n,P)},[l,n,h,g]),C=E.useMemo(()=>{const P=g.endOfMonth(g.setMonth(n,l));return h?g.isSameDay(n,g.endOfWeek(P)):g.isSameDay(n,P)},[l,n,h,g]);return k.jsx(R,W({},N,{day:n,disabled:S,autoFocus:a&&x,today:T,outsideCurrentMonth:v,isFirstVisibleCell:f,isLastVisibleCell:C,selected:O,tabIndex:x?0:-1,"aria-selected":O,"aria-current":T?"date":void 0}))}function Vk(e){const t=lt({props:e,name:"MuiDayCalendar"}),n=Ot(),{onFocusedDayChange:o,className:i,currentMonth:s,selectedDays:l,focusedDay:a,loading:c,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:d,readOnly:p,reduceAnimations:h,renderLoading:b=()=>k.jsx("span",{children:"..."}),slideDirection:y,TransitionProps:m,disablePast:g,disableFuture:w,minDate:x,maxDate:O,shouldDisableDate:T,shouldDisableMonth:R,shouldDisableYear:A,dayOfWeekFormatter:N=Z=>n.format(Z,"weekdayShort").charAt(0).toUpperCase(),hasFocus:S,onFocusedViewChange:v,gridLabelId:f,displayWeekNumber:C,fixedWeekNumber:P,autoFocus:M,timezone:D}=t,I=Ir(D),j=Pk(t),$=Gt(),F=ay({shouldDisableDate:T,shouldDisableMonth:R,shouldDisableYear:A,minDate:x,maxDate:O,disablePast:g,disableFuture:w,timezone:D}),L=an(),[_,B]=Pr({name:"DayCalendar",state:"hasFocus",controlled:S,default:M??!1}),[oe,X]=E.useState(()=>a||I),ee=je(Z=>{p||u(Z)}),Y=Z=>{F(Z)||(o(Z),X(Z),v==null||v(!0),B(!0))},J=je((Z,te)=>{switch(Z.key){case"ArrowUp":Y(n.addDays(te,-7)),Z.preventDefault();break;case"ArrowDown":Y(n.addDays(te,7)),Z.preventDefault();break;case"ArrowLeft":{const le=n.addDays(te,$?1:-1),fe=n.addMonths(te,$?1:-1),xe=si({utils:n,date:le,minDate:$?le:n.startOfMonth(fe),maxDate:$?n.endOfMonth(fe):le,isDateDisabled:F,timezone:D});Y(xe||le),Z.preventDefault();break}case"ArrowRight":{const le=n.addDays(te,$?-1:1),fe=n.addMonths(te,$?-1:1),xe=si({utils:n,date:le,minDate:$?n.startOfMonth(fe):le,maxDate:$?le:n.endOfMonth(fe),isDateDisabled:F,timezone:D});Y(xe||le),Z.preventDefault();break}case"Home":Y(n.startOfWeek(te)),Z.preventDefault();break;case"End":Y(n.endOfWeek(te)),Z.preventDefault();break;case"PageUp":Y(n.addMonths(te,1)),Z.preventDefault();break;case"PageDown":Y(n.addMonths(te,-1)),Z.preventDefault();break}}),se=je((Z,te)=>Y(te)),z=je((Z,te)=>{_&&n.isSameDay(oe,te)&&(v==null||v(!1))}),H=n.getMonth(s),G=n.getYear(s),ue=E.useMemo(()=>l.filter(Z=>!!Z).map(Z=>n.startOfDay(Z)),[n,l]),U=`${G}-${H}`,Q=E.useMemo(()=>E.createRef(),[U]),q=E.useMemo(()=>{const Z=n.startOfMonth(s),te=n.endOfMonth(s);return F(oe)||n.isAfterDay(oe,te)||n.isBeforeDay(oe,Z)?si({utils:n,date:oe,minDate:Z,maxDate:te,disablePast:g,disableFuture:w,isDateDisabled:F,timezone:D}):oe},[s,w,g,oe,F,n,D]),ne=E.useMemo(()=>{const Z=n.getWeekArray(s);let te=n.addMonths(s,1);for(;P&&Z.length<P;){const le=n.getWeekArray(te),fe=n.isSameDay(Z[Z.length-1][0],le[0][0]);le.slice(fe?1:0).forEach(xe=>{Z.length<P&&Z.push(xe)}),te=n.addMonths(te,1)}return Z},[s,P,n]);return k.jsxs(kk,{role:"grid","aria-labelledby":f,className:j.root,children:[k.jsxs(Mk,{role:"row",className:j.header,children:[C&&k.jsx(Dk,{variant:"caption",role:"columnheader","aria-label":L.calendarWeekNumberHeaderLabel,className:j.weekNumberLabel,children:L.calendarWeekNumberHeaderText}),bE(n,I).map((Z,te)=>k.jsx(Ik,{variant:"caption",role:"columnheader","aria-label":n.format(Z,"weekday"),className:j.weekDayLabel,children:N(Z)},te.toString()))]}),c?k.jsx(Ak,{className:j.loadingContainer,children:b()}):k.jsx(Nk,W({transKey:U,onExited:d,reduceAnimations:h,slideDirection:y,className:we(i,j.slideTransition)},m,{nodeRef:Q,children:k.jsx(_k,{ref:Q,role:"rowgroup",className:j.monthContainer,children:ne.map((Z,te)=>k.jsxs($k,{role:"row",className:j.weekContainer,"aria-rowindex":te+1,children:[C&&k.jsx(jk,{className:j.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(n.getWeekNumber(Z[0])),children:L.calendarWeekNumberText(n.getWeekNumber(Z[0]))}),Z.map((le,fe)=>k.jsx(Fk,{parentProps:t,day:le,selectedDays:ue,focusableDay:q,onKeyDown:J,onFocus:se,onBlur:z,onDaySelect:ee,isDateDisabled:F,currentMonthNumber:H,isViewFocused:_,"aria-colindex":fe+1},le.toString()))]},`week-${Z[0]}`))})}))]})}function Lk(e){return mt("MuiPickersMonth",e)}const Bs=St("MuiPickersMonth",["root","monthButton","disabled","selected"]),Bk=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],qk=e=>{const{disabled:t,selected:n,classes:o}=e;return ht({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Lk,o)},zk=re("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),Uk=re("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Bs.disabled}`]:t.disabled},{[`&.${Bs.selected}`]:t.selected}]})(({theme:e})=>W({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Bs.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Bs.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Wk=E.memo(function(t){const n=lt({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:i,children:s,disabled:l,selected:a,value:c,tabIndex:u,onClick:d,onKeyDown:p,onFocus:h,onBlur:b,"aria-current":y,"aria-label":m,slots:g,slotProps:w}=n,x=Le(n,Bk),O=E.useRef(null),T=qk(n);Bn(()=>{var N;o&&((N=O.current)==null||N.focus())},[o]);const R=(g==null?void 0:g.monthButton)??Uk,A=wt({elementType:R,externalSlotProps:w==null?void 0:w.monthButton,additionalProps:{children:s,disabled:l,tabIndex:u,ref:O,type:"button",role:"radio","aria-current":y,"aria-checked":a,"aria-label":m,onClick:N=>d(N,c),onKeyDown:N=>p(N,c),onFocus:N=>h(N,c),onBlur:N=>b(N,c)},ownerState:n,className:T.monthButton});return k.jsx(zk,W({className:we(T.root,i),ownerState:n},x,{children:k.jsx(R,W({},A))}))});function Hk(e){return mt("MuiMonthCalendar",e)}St("MuiMonthCalendar",["root"]);const Yk=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Kk=e=>{const{classes:t}=e;return ht({root:["root"]},Hk,t)};function Gk(e,t){const n=Ot(),o=di(),i=lt({props:e,name:t});return W({disableFuture:!1,disablePast:!1},i,{minDate:On(n,i.minDate,o.minDate),maxDate:On(n,i.maxDate,o.maxDate)})}const Xk=re("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Vs,boxSizing:"border-box"}),fy=E.forwardRef(function(t,n){const o=Gk(t,"MuiMonthCalendar"),{className:i,value:s,defaultValue:l,referenceDate:a,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:h,onChange:b,shouldDisableMonth:y,readOnly:m,autoFocus:g=!1,onMonthFocus:w,hasFocus:x,onFocusedViewChange:O,monthsPerRow:T=3,timezone:R,gridLabelId:A,slots:N,slotProps:S}=o,v=Le(o,Yk),{value:f,handleValueChange:C,timezone:P}=to({name:"MonthCalendar",timezone:R,value:s,defaultValue:l,referenceDate:a,onChange:b,valueManager:Zt}),M=Ir(P),D=Gt(),I=Ot(),j=E.useMemo(()=>Zt.getInitialReferenceValue({value:f,utils:I,props:o,timezone:P,referenceDate:a,granularity:Dn.month}),[]),$=o,F=Kk($),L=E.useMemo(()=>I.getMonth(M),[I,M]),_=E.useMemo(()=>f!=null?I.getMonth(f):null,[f,I]),[B,oe]=E.useState(()=>_||I.getMonth(j)),[X,ee]=Pr({name:"MonthCalendar",state:"hasFocus",controlled:x,default:g??!1}),Y=je(U=>{ee(U),O&&O(U)}),J=E.useCallback(U=>{const Q=I.startOfMonth(d&&I.isAfter(M,h)?M:h),q=I.startOfMonth(u&&I.isBefore(M,p)?M:p),ne=I.startOfMonth(U);return I.isBefore(ne,Q)||I.isAfter(ne,q)?!0:y?y(ne):!1},[u,d,p,h,M,y,I]),se=je((U,Q)=>{if(m)return;const q=I.setMonth(f??j,Q);C(q)}),z=je(U=>{J(I.setMonth(f??j,U))||(oe(U),Y(!0),w&&w(U))});E.useEffect(()=>{oe(U=>_!==null&&U!==_?_:U)},[_]);const H=je((U,Q)=>{switch(U.key){case"ArrowUp":z((12+Q-3)%12),U.preventDefault();break;case"ArrowDown":z((12+Q+3)%12),U.preventDefault();break;case"ArrowLeft":z((12+Q+(D?1:-1))%12),U.preventDefault();break;case"ArrowRight":z((12+Q+(D?-1:1))%12),U.preventDefault();break}}),G=je((U,Q)=>{z(Q)}),ue=je((U,Q)=>{B===Q&&Y(!1)});return k.jsx(Xk,W({ref:n,className:we(F.root,i),ownerState:$,role:"radiogroup","aria-labelledby":A},v,{children:qu(I,f??j).map(U=>{const Q=I.getMonth(U),q=I.format(U,"monthShort"),ne=I.format(U,"month"),Z=Q===_,te=c||J(U);return k.jsx(Wk,{selected:Z,value:Q,onClick:se,onKeyDown:H,autoFocus:X&&Q===B,disabled:te,tabIndex:Q===B&&!te?0:-1,onFocus:G,onBlur:ue,"aria-current":L===Q?"date":void 0,"aria-label":ne,monthsPerRow:T,slots:N,slotProps:S,children:q},q)})}))});process.env.NODE_ENV!=="production"&&(fy.propTypes={autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disablePast:r.bool,gridLabelId:r.string,hasFocus:r.bool,maxDate:r.object,minDate:r.object,monthsPerRow:r.oneOf([3,4]),onChange:r.func,onFocusedViewChange:r.func,onMonthFocus:r.func,readOnly:r.bool,referenceDate:r.object,shouldDisableMonth:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object});function Qk(e){return mt("MuiPickersYear",e)}const qs=St("MuiPickersYear",["root","yearButton","selected","disabled"]),Zk=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Jk=e=>{const{disabled:t,selected:n,classes:o}=e;return ht({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Qk,o)},eM=re("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),tM=re("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${qs.disabled}`]:t.disabled},{[`&.${qs.selected}`]:t.selected}]})(({theme:e})=>W({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:et(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${qs.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${qs.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),nM=E.memo(function(t){const n=lt({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:i,children:s,disabled:l,selected:a,value:c,tabIndex:u,onClick:d,onKeyDown:p,onFocus:h,onBlur:b,"aria-current":y,slots:m,slotProps:g}=n,w=Le(n,Zk),x=E.useRef(null),O=Jk(n);Bn(()=>{var A;o&&((A=x.current)==null||A.focus())},[o]);const T=(m==null?void 0:m.yearButton)??tM,R=wt({elementType:T,externalSlotProps:g==null?void 0:g.yearButton,additionalProps:{children:s,disabled:l,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":y,"aria-checked":a,onClick:A=>d(A,c),onKeyDown:A=>p(A,c),onFocus:A=>h(A,c),onBlur:A=>b(A,c)},ownerState:n,className:O.yearButton});return k.jsx(eM,W({className:we(O.root,i),ownerState:n},w,{children:k.jsx(T,W({},R))}))});function rM(e){return mt("MuiYearCalendar",e)}St("MuiYearCalendar",["root"]);const oM=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],iM=e=>{const{classes:t}=e;return ht({root:["root"]},rM,t)};function sM(e,t){const n=Ot(),o=di(),i=lt({props:e,name:t});return W({disablePast:!1,disableFuture:!1},i,{yearsPerRow:i.yearsPerRow??3,minDate:On(n,i.minDate,o.minDate),maxDate:On(n,i.maxDate,o.maxDate)})}const aM=re("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Vs,maxHeight:tk,boxSizing:"border-box",position:"relative"}),hy=E.forwardRef(function(t,n){const o=sM(t,"MuiYearCalendar"),{autoFocus:i,className:s,value:l,defaultValue:a,referenceDate:c,disabled:u,disableFuture:d,disablePast:p,maxDate:h,minDate:b,onChange:y,readOnly:m,shouldDisableYear:g,onYearFocus:w,hasFocus:x,onFocusedViewChange:O,yearsOrder:T="asc",yearsPerRow:R,timezone:A,gridLabelId:N,slots:S,slotProps:v}=o,f=Le(o,oM),{value:C,handleValueChange:P,timezone:M}=to({name:"YearCalendar",timezone:A,value:l,defaultValue:a,referenceDate:c,onChange:y,valueManager:Zt}),D=Ir(M),I=Gt(),j=Ot(),$=E.useMemo(()=>Zt.getInitialReferenceValue({value:C,utils:j,props:o,timezone:M,referenceDate:c,granularity:Dn.year}),[]),F=o,L=iM(F),_=E.useMemo(()=>j.getYear(D),[j,D]),B=E.useMemo(()=>C!=null?j.getYear(C):null,[C,j]),[oe,X]=E.useState(()=>B||j.getYear($)),[ee,Y]=Pr({name:"YearCalendar",state:"hasFocus",controlled:x,default:i??!1}),J=je(le=>{Y(le),O&&O(le)}),se=E.useCallback(le=>{if(p&&j.isBeforeYear(le,D)||d&&j.isAfterYear(le,D)||b&&j.isBeforeYear(le,b)||h&&j.isAfterYear(le,h))return!0;if(!g)return!1;const fe=j.startOfYear(le);return g(fe)},[d,p,h,b,D,g,j]),z=je((le,fe)=>{if(m)return;const xe=j.setYear(C??$,fe);P(xe)}),H=je(le=>{se(j.setYear(C??$,le))||(X(le),J(!0),w==null||w(le))});E.useEffect(()=>{X(le=>B!==null&&le!==B?B:le)},[B]);const G=T!=="desc"?R*1:R*-1,ue=I&&T==="asc"||!I&&T==="desc"?-1:1,U=je((le,fe)=>{switch(le.key){case"ArrowUp":H(fe-G),le.preventDefault();break;case"ArrowDown":H(fe+G),le.preventDefault();break;case"ArrowLeft":H(fe-ue),le.preventDefault();break;case"ArrowRight":H(fe+ue),le.preventDefault();break}}),Q=je((le,fe)=>{H(fe)}),q=je((le,fe)=>{oe===fe&&J(!1)}),ne=E.useRef(null),Z=nn(n,ne);E.useEffect(()=>{if(i||ne.current===null)return;const le=ne.current.querySelector('[tabindex="0"]');if(!le)return;const fe=le.offsetHeight,xe=le.offsetTop,Ee=ne.current.clientHeight,Te=ne.current.scrollTop,$e=xe+fe;fe>Ee||xe<Te||(ne.current.scrollTop=$e-Ee/2-fe/2)},[i]);const te=j.getYearRange([b,h]);return T==="desc"&&te.reverse(),k.jsx(aM,W({ref:Z,className:we(L.root,s),ownerState:F,role:"radiogroup","aria-labelledby":N},f,{children:te.map(le=>{const fe=j.getYear(le),xe=fe===B,Ee=u||se(le);return k.jsx(nM,{selected:xe,value:fe,onClick:z,onKeyDown:U,autoFocus:ee&&fe===oe,disabled:Ee,tabIndex:fe===oe&&!Ee?0:-1,onFocus:Q,onBlur:q,"aria-current":_===fe?"date":void 0,yearsPerRow:R,slots:S,slotProps:v,children:j.format(le,"year")},j.format(le,"year"))})}))});process.env.NODE_ENV!=="production"&&(hy.propTypes={autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disablePast:r.bool,gridLabelId:r.string,hasFocus:r.bool,maxDate:r.object,minDate:r.object,onChange:r.func,onFocusedViewChange:r.func,onYearFocus:r.func,readOnly:r.bool,referenceDate:r.object,shouldDisableYear:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});let ad=!1;function gi({onChange:e,onViewChange:t,openTo:n,view:o,views:i,autoFocus:s,focusedView:l,onFocusedViewChange:a}){process.env.NODE_ENV!=="production"&&(ad||(o!=null&&!i.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${i.join('", "')}"]\`.`),ad=!0),o==null&&n!=null&&!i.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${i.join('", "')}"]\`.`),ad=!0)));const c=E.useRef(n),u=E.useRef(i),d=E.useRef(i.includes(n)?n:i[0]),[p,h]=Pr({name:"useViews",state:"view",controlled:o,default:d.current}),b=E.useRef(s?p:null),[y,m]=Pr({name:"useViews",state:"focusedView",controlled:l,default:b.current});E.useEffect(()=>{(c.current&&c.current!==n||u.current&&u.current.some(N=>!i.includes(N)))&&(h(i.includes(n)?n:i[0]),u.current=i,c.current=n)},[n,h,p,i]);const g=i.indexOf(p),w=i[g-1]??null,x=i[g+1]??null,O=je((N,S)=>{m(S?N:v=>N===v?null:v),a==null||a(N,S)}),T=je(N=>{O(N,!0),N!==p&&(h(N),t&&t(N))}),R=je(()=>{x&&T(x)}),A=je((N,S,v)=>{const f=S==="finish",C=v?i.indexOf(v)<i.length-1:!!x;if(e(N,f&&C?"partial":S,v),v&&v!==p){const M=i[i.indexOf(v)+1];M&&T(M)}else f&&R()});return{view:p,setView:T,focusedView:y,setFocusedView:O,nextView:x,previousView:w,defaultView:i.includes(n)?n:i[0],goToNextView:R,setValueAndGoToNextView:A}}const lM=e=>mt("MuiPickersCalendarHeader",e),cM=St("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function uM(e){return mt("MuiPickersArrowSwitcher",e)}St("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const dM=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],pM=["ownerState"],fM=["ownerState"],hM=re("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),mM=re("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),my=re(zn,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),bM=e=>{const{classes:t}=e;return ht({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},uM,t)},by=E.forwardRef(function(t,n){const o=Gt(),i=lt({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:l,slots:a,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:p,nextLabel:h,isPreviousDisabled:b,isPreviousHidden:y,onGoToPrevious:m,previousLabel:g,labelId:w}=i,x=Le(i,dM),O=i,T=bM(O),R={isDisabled:u,isHidden:d,goTo:p,label:h},A={isDisabled:b,isHidden:y,goTo:m,label:g},N=(a==null?void 0:a.previousIconButton)??my,S=wt({elementType:N,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"end",onClick:A.goTo},ownerState:W({},O,{hidden:A.isHidden}),className:we(T.button,T.previousIconButton)}),v=(a==null?void 0:a.nextIconButton)??my,f=wt({elementType:v,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"start",onClick:R.goTo},ownerState:W({},O,{hidden:R.isHidden}),className:we(T.button,T.nextIconButton)}),C=(a==null?void 0:a.leftArrowIcon)??dR,P=wt({elementType:C,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:O,className:T.leftArrowIcon}),M=Le(P,pM),D=(a==null?void 0:a.rightArrowIcon)??pR,I=wt({elementType:D,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:O,className:T.rightArrowIcon}),j=Le(I,fM);return k.jsxs(hM,W({ref:n,className:we(T.root,l),ownerState:O},x,{children:[k.jsx(N,W({},S,{children:o?k.jsx(D,W({},j)):k.jsx(C,W({},M))})),s?k.jsx(wn,{variant:"subtitle1",component:"span",id:w,children:s}):k.jsx(mM,{className:T.spacer,ownerState:O}),k.jsx(v,W({},f,{children:o?k.jsx(C,W({},M)):k.jsx(D,W({},j))}))]}))}),gM=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],yM=["ownerState"],vM=e=>{const{classes:t}=e;return ht({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},lM,t)},xM=re("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),CM=re("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>W({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),SM=re("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),wM=re(zn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${cM.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),OM=re(uR,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),gy=E.forwardRef(function(t,n){const o=an(),i=Ot(),s=lt({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:a,currentMonth:c,disabled:u,disableFuture:d,disablePast:p,maxDate:h,minDate:b,onMonthChange:y,onViewChange:m,view:g,reduceAnimations:w,views:x,labelId:O,className:T,timezone:R,format:A=`${i.formats.month} ${i.formats.year}`}=s,N=Le(s,gM),S=s,v=vM(s),f=(l==null?void 0:l.switchViewButton)??wM,C=wt({elementType:f,externalSlotProps:a==null?void 0:a.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(g)},ownerState:S,className:v.switchViewButton}),P=(l==null?void 0:l.switchViewIcon)??OM,M=wt({elementType:P,externalSlotProps:a==null?void 0:a.switchViewIcon,ownerState:S,className:v.switchViewIcon}),D=Le(M,yM),I=()=>y(i.addMonths(c,1),"left"),j=()=>y(i.addMonths(c,-1),"right"),$=JP(c,{disableFuture:d,maxDate:h,timezone:R}),F=ek(c,{disablePast:p,minDate:b,timezone:R}),L=()=>{if(!(x.length===1||!m||u))if(x.length===2)m(x.find(B=>B!==g)||x[0]);else{const B=x.indexOf(g)!==0?0:1;m(x[B])}};if(x.length===1&&x[0]==="year")return null;const _=i.formatByString(c,A);return k.jsxs(xM,W({},N,{ownerState:S,className:we(v.root,T),ref:n,children:[k.jsxs(CM,{role:"presentation",onClick:L,ownerState:S,"aria-live":"polite",className:v.labelContainer,children:[k.jsx(ly,{reduceAnimations:w,transKey:_,children:k.jsx(SM,{id:O,ownerState:S,className:v.label,children:_})}),x.length>1&&!u&&k.jsx(f,W({},C,{children:k.jsx(P,W({},D))}))]}),k.jsx(Rr,{in:g==="day",appear:!w,enter:!w,children:k.jsx(by,{slots:l,slotProps:a,onGoToPrevious:j,isPreviousDisabled:F,previousLabel:o.previousMonth,onGoToNext:I,isNextDisabled:$,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(gy.propTypes={classes:r.object,className:r.string,currentMonth:r.object.isRequired,disabled:r.bool,disableFuture:r.bool,disablePast:r.bool,format:r.string,labelId:r.string,maxDate:r.object.isRequired,minDate:r.object.isRequired,onMonthChange:r.func.isRequired,onViewChange:r.func,reduceAnimations:r.bool.isRequired,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string.isRequired,view:r.oneOf(["day","month","year"]).isRequired,views:r.arrayOf(r.oneOf(["day","month","year"]).isRequired).isRequired});const zs=re("div")({overflow:"hidden",width:Vs,maxHeight:Ls,display:"flex",flexDirection:"column",margin:"0 auto"}),TM="@media (prefers-reduced-motion: reduce)",so=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),yy=so&&so[1]?parseInt(so[1],10):null,vy=so&&so[2]?parseInt(so[2],10):null,EM=yy&&yy<10||vy&&vy<13||!1,xy=()=>rg(TM,{defaultMatches:!1})||EM,RM=e=>mt("MuiDateCalendar",e);St("MuiDateCalendar",["root","viewTransitionContainer"]);const PM=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],kM=e=>{const{classes:t}=e;return ht({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},RM,t)};function MM(e,t){const n=Ot(),o=di(),i=xy(),s=lt({props:e,name:t});return W({},s,{loading:s.loading??!1,disablePast:s.disablePast??!1,disableFuture:s.disableFuture??!1,openTo:s.openTo??"day",views:s.views??["year","day"],reduceAnimations:s.reduceAnimations??i,renderLoading:s.renderLoading??(()=>k.jsx("span",{children:"..."})),minDate:On(n,s.minDate,o.minDate),maxDate:On(n,s.maxDate,o.maxDate)})}const IM=re(zs,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Ls}),DM=re(ly,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Cy=E.forwardRef(function(t,n){const o=Ot(),i=Zr(),s=MM(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:a,value:c,defaultValue:u,referenceDate:d,disableFuture:p,disablePast:h,onChange:b,onYearChange:y,onMonthChange:m,reduceAnimations:g,shouldDisableDate:w,shouldDisableMonth:x,shouldDisableYear:O,view:T,views:R,openTo:A,className:N,disabled:S,readOnly:v,minDate:f,maxDate:C,disableHighlightToday:P,focusedView:M,onFocusedViewChange:D,showDaysOutsideCurrentMonth:I,fixedWeekNumber:j,dayOfWeekFormatter:$,slots:F,slotProps:L,loading:_,renderLoading:B,displayWeekNumber:oe,yearsOrder:X,yearsPerRow:ee,monthsPerRow:Y,timezone:J}=s,se=Le(s,PM),{value:z,handleValueChange:H,timezone:G}=to({name:"DateCalendar",timezone:J,value:c,defaultValue:u,referenceDate:d,onChange:b,valueManager:Zt}),{view:ue,setView:U,focusedView:Q,setFocusedView:q,goToNextView:ne,setValueAndGoToNextView:Z}=gi({view:T,views:R,openTo:A,onChange:H,onViewChange:a,autoFocus:l,focusedView:M,onFocusedViewChange:D}),{referenceDate:te,calendarState:le,changeFocusedDay:fe,changeMonth:xe,handleChangeMonth:Ee,isDateDisabled:Te,onMonthSwitchingAnimationEnd:$e}=uk({value:z,referenceDate:d,reduceAnimations:g,onMonthChange:m,minDate:f,maxDate:C,shouldDisableDate:w,disablePast:h,disableFuture:p,timezone:G}),Ze=S&&z||f,We=S&&z||C,it=`${i}-grid-label`,st=Q!==null,Ge=(F==null?void 0:F.calendarHeader)??gy,Ke=wt({elementType:Ge,externalSlotProps:L==null?void 0:L.calendarHeader,additionalProps:{views:R,view:ue,currentMonth:le.currentMonth,onViewChange:U,onMonthChange:(De,at)=>Ee({newMonth:De,direction:at}),minDate:Ze,maxDate:We,disabled:S,disablePast:h,disableFuture:p,reduceAnimations:g,timezone:G,labelId:it},ownerState:s}),ut=je(De=>{const at=o.startOfMonth(De),pt=o.endOfMonth(De),Rt=Te(De)?si({utils:o,date:De,minDate:o.isBefore(f,at)?at:f,maxDate:o.isAfter(C,pt)?pt:C,disablePast:h,disableFuture:p,isDateDisabled:Te,timezone:G}):De;Rt?(Z(Rt,"finish"),m==null||m(at)):(ne(),xe(at)),fe(Rt,!0)}),ze=je(De=>{const at=o.startOfYear(De),pt=o.endOfYear(De),Rt=Te(De)?si({utils:o,date:De,minDate:o.isBefore(f,at)?at:f,maxDate:o.isAfter(C,pt)?pt:C,disablePast:h,disableFuture:p,isDateDisabled:Te,timezone:G}):De;Rt?(Z(Rt,"finish"),y==null||y(Rt)):(ne(),xe(at)),fe(Rt,!0)}),ct=je(De=>H(De&&ks(o,De,z??te),"finish",ue));E.useEffect(()=>{z!=null&&o.isValid(z)&&xe(z)},[z]);const Tt=s,dt=kM(Tt),ge={disablePast:h,disableFuture:p,maxDate:C,minDate:f},Se={disableHighlightToday:P,readOnly:v,disabled:S,timezone:G,gridLabelId:it,slots:F,slotProps:L},Ae=E.useRef(ue);E.useEffect(()=>{Ae.current!==ue&&(Q===Ae.current&&q(ue,!0),Ae.current=ue)},[Q,q,ue]);const Fe=E.useMemo(()=>[z],[z]);return k.jsxs(IM,W({ref:n,className:we(dt.root,N),ownerState:Tt},se,{children:[k.jsx(Ge,W({},Ke,{slots:F,slotProps:L})),k.jsx(DM,{reduceAnimations:g,className:dt.viewTransitionContainer,transKey:ue,ownerState:Tt,children:k.jsxs("div",{children:[ue==="year"&&k.jsx(hy,W({},ge,Se,{value:z,onChange:ze,shouldDisableYear:O,hasFocus:st,onFocusedViewChange:De=>q("year",De),yearsOrder:X,yearsPerRow:ee,referenceDate:te})),ue==="month"&&k.jsx(fy,W({},ge,Se,{hasFocus:st,className:N,value:z,onChange:ut,shouldDisableMonth:x,onFocusedViewChange:De=>q("month",De),monthsPerRow:Y,referenceDate:te})),ue==="day"&&k.jsx(Vk,W({},le,ge,Se,{onMonthSwitchingAnimationEnd:$e,onFocusedDayChange:fe,reduceAnimations:g,selectedDays:Fe,onSelectedDaysChange:ct,shouldDisableDate:w,shouldDisableMonth:x,shouldDisableYear:O,hasFocus:st,onFocusedViewChange:De=>q("day",De),showDaysOutsideCurrentMonth:I,fixedWeekNumber:j,dayOfWeekFormatter:$,displayWeekNumber:oe,loading:_,renderLoading:B}))]})})]}))});process.env.NODE_ENV!=="production"&&(Cy.propTypes={autoFocus:r.bool,classes:r.object,className:r.string,dayOfWeekFormatter:r.func,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,fixedWeekNumber:r.number,focusedView:r.oneOf(["day","month","year"]),loading:r.bool,maxDate:r.object,minDate:r.object,monthsPerRow:r.oneOf([3,4]),onChange:r.func,onFocusedViewChange:r.func,onMonthChange:r.func,onViewChange:r.func,onYearChange:r.func,openTo:r.oneOf(["day","month","year"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["day","month","year"]),views:r.arrayOf(r.oneOf(["day","month","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});const ao=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:i,value:s,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:b,maxDate:y,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:w,reduceAnimations:x,onMonthChange:O,monthsPerRow:T,onYearChange:R,yearsOrder:A,yearsPerRow:N,slots:S,slotProps:v,loading:f,renderLoading:C,disableHighlightToday:P,readOnly:M,disabled:D,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:j,sx:$,autoFocus:F,fixedWeekNumber:L,displayWeekNumber:_,timezone:B})=>k.jsx(Cy,{view:e,onViewChange:t,views:n.filter(Jr),focusedView:o&&Jr(o)?o:null,onFocusedViewChange:i,value:s,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:b,maxDate:y,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:w,reduceAnimations:x,onMonthChange:O,monthsPerRow:T,onYearChange:R,yearsOrder:A,yearsPerRow:N,slots:S,slotProps:v,loading:f,renderLoading:C,disableHighlightToday:P,readOnly:M,disabled:D,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:j,sx:$,autoFocus:F,fixedWeekNumber:L,displayWeekNumber:_,timezone:B});var cn="top",Rn="bottom",Pn="right",un="left",ld="auto",yi=[cn,Rn,Pn,un],lo="start",vi="end",jM="clippingParents",Sy="viewport",xi="popper",AM="reference",wy=yi.reduce(function(e,t){return e.concat([t+"-"+lo,t+"-"+vi])},[]),Oy=[].concat(yi,[ld]).reduce(function(e,t){return e.concat([t,t+"-"+lo,t+"-"+vi])},[]),NM="beforeRead",_M="read",$M="afterRead",FM="beforeMain",VM="main",LM="afterMain",BM="beforeWrite",qM="write",zM="afterWrite",UM=[NM,_M,$M,FM,VM,LM,BM,qM,zM];function Un(e){return e?(e.nodeName||"").toLowerCase():null}function mn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nr(e){var t=mn(e).Element;return e instanceof t||e instanceof Element}function kn(e){var t=mn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cd(e){if(typeof ShadowRoot>"u")return!1;var t=mn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!kn(s)||!Un(s)||(Object.assign(s.style,o),Object.keys(i).forEach(function(l){var a=i[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function HM(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var i=t.elements[o],s=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),a=l.reduce(function(c,u){return c[u]="",c},{});!kn(i)||!Un(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}const YM={name:"applyStyles",enabled:!0,phase:"write",fn:WM,effect:HM,requires:["computeStyles"]};function Wn(e){return e.split("-")[0]}var _r=Math.max,Us=Math.min,co=Math.round;function ud(){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 Ty(){return!/^((?!chrome|android).)*safari/i.test(ud())}function uo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),i=1,s=1;t&&kn(e)&&(i=e.offsetWidth>0&&co(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&co(o.height)/e.offsetHeight||1);var l=Nr(e)?mn(e):window,a=l.visualViewport,c=!Ty()&&n,u=(o.left+(c&&a?a.offsetLeft:0))/i,d=(o.top+(c&&a?a.offsetTop:0))/s,p=o.width/i,h=o.height/s;return{width:p,height:h,top:d,right:u+p,bottom:d+h,left:u,x:u,y:d}}function dd(e){var t=uo(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Ey(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&cd(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function tr(e){return mn(e).getComputedStyle(e)}function KM(e){return["table","td","th"].indexOf(Un(e))>=0}function hr(e){return((Nr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ws(e){return Un(e)==="html"?e:e.assignedSlot||e.parentNode||(cd(e)?e.host:null)||hr(e)}function Ry(e){return!kn(e)||tr(e).position==="fixed"?null:e.offsetParent}function GM(e){var t=/firefox/i.test(ud()),n=/Trident/i.test(ud());if(n&&kn(e)){var o=tr(e);if(o.position==="fixed")return null}var i=Ws(e);for(cd(i)&&(i=i.host);kn(i)&&["html","body"].indexOf(Un(i))<0;){var s=tr(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 Ci(e){for(var t=mn(e),n=Ry(e);n&&KM(n)&&tr(n).position==="static";)n=Ry(n);return n&&(Un(n)==="html"||Un(n)==="body"&&tr(n).position==="static")?t:n||GM(e)||t}function pd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Si(e,t,n){return _r(e,Us(t,n))}function XM(e,t,n){var o=Si(e,t,n);return o>n?n:o}function Py(){return{top:0,right:0,bottom:0,left:0}}function ky(e){return Object.assign({},Py(),e)}function My(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var QM=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ky(typeof t!="number"?t:My(t,yi))};function ZM(e){var t,n=e.state,o=e.name,i=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Wn(n.placement),c=pd(a),u=[un,Pn].indexOf(a)>=0,d=u?"height":"width";if(!(!s||!l)){var p=QM(i.padding,n),h=dd(s),b=c==="y"?cn:un,y=c==="y"?Rn:Pn,m=n.rects.reference[d]+n.rects.reference[c]-l[c]-n.rects.popper[d],g=l[c]-n.rects.reference[c],w=Ci(s),x=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,O=m/2-g/2,T=p[b],R=x-h[d]-p[y],A=x/2-h[d]/2+O,N=Si(T,A,R),S=c;n.modifiersData[o]=(t={},t[S]=N,t.centerOffset=N-A,t)}}function JM(e){var t=e.state,n=e.options,o=n.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Ey(t.elements.popper,i)&&(t.elements.arrow=i))}const eI={name:"arrow",enabled:!0,phase:"main",fn:ZM,effect:JM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function po(e){return e.split("-")[1]}var tI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nI(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:co(n*i)/i||0,y:co(o*i)/i||0}}function Iy(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=l.x,b=h===void 0?0:h,y=l.y,m=y===void 0?0:y,g=typeof d=="function"?d({x:b,y:m}):{x:b,y:m};b=g.x,m=g.y;var w=l.hasOwnProperty("x"),x=l.hasOwnProperty("y"),O=un,T=cn,R=window;if(u){var A=Ci(n),N="clientHeight",S="clientWidth";if(A===mn(n)&&(A=hr(n),tr(A).position!=="static"&&a==="absolute"&&(N="scrollHeight",S="scrollWidth")),A=A,i===cn||(i===un||i===Pn)&&s===vi){T=Rn;var v=p&&A===R&&R.visualViewport?R.visualViewport.height:A[N];m-=v-o.height,m*=c?1:-1}if(i===un||(i===cn||i===Rn)&&s===vi){O=Pn;var f=p&&A===R&&R.visualViewport?R.visualViewport.width:A[S];b-=f-o.width,b*=c?1:-1}}var C=Object.assign({position:a},u&&tI),P=d===!0?nI({x:b,y:m},mn(n)):{x:b,y:m};if(b=P.x,m=P.y,c){var M;return Object.assign({},C,(M={},M[T]=x?"0":"",M[O]=w?"0":"",M.transform=(R.devicePixelRatio||1)<=1?"translate("+b+"px, "+m+"px)":"translate3d("+b+"px, "+m+"px, 0)",M))}return Object.assign({},C,(t={},t[T]=x?m+"px":"",t[O]=w?b+"px":"",t.transform="",t))}function rI(e){var t=e.state,n=e.options,o=n.gpuAcceleration,i=o===void 0?!0:o,s=n.adaptive,l=s===void 0?!0:s,a=n.roundOffsets,c=a===void 0?!0:a,u={placement:Wn(t.placement),variation:po(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,Iy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Iy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const oI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rI,data:{}};var Hs={passive:!0};function iI(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,s=i===void 0?!0:i,l=o.resize,a=l===void 0?!0:l,c=mn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Hs)}),a&&c.addEventListener("resize",n.update,Hs),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Hs)}),a&&c.removeEventListener("resize",n.update,Hs)}}const sI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iI,data:{}};var aI={left:"right",right:"left",bottom:"top",top:"bottom"};function Ys(e){return e.replace(/left|right|bottom|top/g,function(t){return aI[t]})}var lI={start:"end",end:"start"};function Dy(e){return e.replace(/start|end/g,function(t){return lI[t]})}function fd(e){var t=mn(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function hd(e){return uo(hr(e)).left+fd(e).scrollLeft}function cI(e,t){var n=mn(e),o=hr(e),i=n.visualViewport,s=o.clientWidth,l=o.clientHeight,a=0,c=0;if(i){s=i.width,l=i.height;var u=Ty();(u||!u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:s,height:l,x:a+hd(e),y:c}}function uI(e){var t,n=hr(e),o=fd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=_r(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=_r(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-o.scrollLeft+hd(e),c=-o.scrollTop;return tr(i||n).direction==="rtl"&&(a+=_r(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function md(e){var t=tr(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function jy(e){return["html","body","#document"].indexOf(Un(e))>=0?e.ownerDocument.body:kn(e)&&md(e)?e:jy(Ws(e))}function wi(e,t){var n;t===void 0&&(t=[]);var o=jy(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=mn(o),l=i?[s].concat(s.visualViewport||[],md(o)?o:[]):o,a=t.concat(l);return i?a:a.concat(wi(Ws(l)))}function bd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dI(e,t){var n=uo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ay(e,t,n){return t===Sy?bd(cI(e,n)):Nr(t)?dI(t,n):bd(uI(hr(e)))}function pI(e){var t=wi(Ws(e)),n=["absolute","fixed"].indexOf(tr(e).position)>=0,o=n&&kn(e)?Ci(e):e;return Nr(o)?t.filter(function(i){return Nr(i)&&Ey(i,o)&&Un(i)!=="body"}):[]}function fI(e,t,n,o){var i=t==="clippingParents"?pI(e):[].concat(t),s=[].concat(i,[n]),l=s[0],a=s.reduce(function(c,u){var d=Ay(e,u,o);return c.top=_r(d.top,c.top),c.right=Us(d.right,c.right),c.bottom=Us(d.bottom,c.bottom),c.left=_r(d.left,c.left),c},Ay(e,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ny(e){var t=e.reference,n=e.element,o=e.placement,i=o?Wn(o):null,s=o?po(o):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(i){case cn:c={x:l,y:t.y-n.height};break;case Rn:c={x:l,y:t.y+t.height};break;case Pn:c={x:t.x+t.width,y:a};break;case un:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var u=i?pd(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case lo:c[u]=c[u]-(t[d]/2-n[d]/2);break;case vi:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Oi(e,t){t===void 0&&(t={});var n=t,o=n.placement,i=o===void 0?e.placement:o,s=n.strategy,l=s===void 0?e.strategy:s,a=n.boundary,c=a===void 0?jM:a,u=n.rootBoundary,d=u===void 0?Sy:u,p=n.elementContext,h=p===void 0?xi:p,b=n.altBoundary,y=b===void 0?!1:b,m=n.padding,g=m===void 0?0:m,w=ky(typeof g!="number"?g:My(g,yi)),x=h===xi?AM:xi,O=e.rects.popper,T=e.elements[y?x:h],R=fI(Nr(T)?T:T.contextElement||hr(e.elements.popper),c,d,l),A=uo(e.elements.reference),N=Ny({reference:A,element:O,strategy:"absolute",placement:i}),S=bd(Object.assign({},O,N)),v=h===xi?S:A,f={top:R.top-v.top+w.top,bottom:v.bottom-R.bottom+w.bottom,left:R.left-v.left+w.left,right:v.right-R.right+w.right},C=e.modifiersData.offset;if(h===xi&&C){var P=C[i];Object.keys(f).forEach(function(M){var D=[Pn,Rn].indexOf(M)>=0?1:-1,I=[cn,Rn].indexOf(M)>=0?"y":"x";f[M]+=P[I]*D})}return f}function hI(e,t){t===void 0&&(t={});var n=t,o=n.placement,i=n.boundary,s=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Oy:c,d=po(o),p=d?a?wy:wy.filter(function(y){return po(y)===d}):yi,h=p.filter(function(y){return u.indexOf(y)>=0});h.length===0&&(h=p);var b=h.reduce(function(y,m){return y[m]=Oi(e,{placement:m,boundary:i,rootBoundary:s,padding:l})[Wn(m)],y},{});return Object.keys(b).sort(function(y,m){return b[y]-b[m]})}function mI(e){if(Wn(e)===ld)return[];var t=Ys(e);return[Dy(e),t,Dy(t)]}function bI(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,y=b===void 0?!0:b,m=n.allowedAutoPlacements,g=t.options.placement,w=Wn(g),x=w===g,O=c||(x||!y?[Ys(g)]:mI(g)),T=[g].concat(O).reduce(function(ee,Y){return ee.concat(Wn(Y)===ld?hI(t,{placement:Y,boundary:d,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:m}):Y)},[]),R=t.rects.reference,A=t.rects.popper,N=new Map,S=!0,v=T[0],f=0;f<T.length;f++){var C=T[f],P=Wn(C),M=po(C)===lo,D=[cn,Rn].indexOf(P)>=0,I=D?"width":"height",j=Oi(t,{placement:C,boundary:d,rootBoundary:p,altBoundary:h,padding:u}),$=D?M?Pn:un:M?Rn:cn;R[I]>A[I]&&($=Ys($));var F=Ys($),L=[];if(s&&L.push(j[P]<=0),a&&L.push(j[$]<=0,j[F]<=0),L.every(function(ee){return ee})){v=C,S=!1;break}N.set(C,L)}if(S)for(var _=y?3:1,B=function(Y){var J=T.find(function(se){var z=N.get(se);if(z)return z.slice(0,Y).every(function(H){return H})});if(J)return v=J,"break"},oe=_;oe>0;oe--){var X=B(oe);if(X==="break")break}t.placement!==v&&(t.modifiersData[o]._skip=!0,t.placement=v,t.reset=!0)}}const gI={name:"flip",enabled:!0,phase:"main",fn:bI,requiresIfExists:["offset"],data:{_skip:!1}};function _y(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $y(e){return[cn,Pn,Rn,un].some(function(t){return e[t]>=0})}function yI(e){var t=e.state,n=e.name,o=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,l=Oi(t,{elementContext:"reference"}),a=Oi(t,{altBoundary:!0}),c=_y(l,o),u=_y(a,i,s),d=$y(c),p=$y(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const vI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yI};function xI(e,t,n){var o=Wn(e),i=[un,cn].indexOf(o)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],a=s[1];return l=l||0,a=(a||0)*i,[un,Pn].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}function CI(e){var t=e.state,n=e.options,o=e.name,i=n.offset,s=i===void 0?[0,0]:i,l=Oy.reduce(function(d,p){return d[p]=xI(p,t.rects,s),d},{}),a=l[t.placement],c=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=l}const SI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:CI};function wI(e){var t=e.state,n=e.name;t.modifiersData[n]=Ny({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const OI={name:"popperOffsets",enabled:!0,phase:"read",fn:wI,data:{}};function TI(e){return e==="x"?"y":"x"}function EI(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,s=i===void 0?!0:i,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,h=n.tether,b=h===void 0?!0:h,y=n.tetherOffset,m=y===void 0?0:y,g=Oi(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),w=Wn(t.placement),x=po(t.placement),O=!x,T=pd(w),R=TI(T),A=t.modifiersData.popperOffsets,N=t.rects.reference,S=t.rects.popper,v=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,f=typeof v=="number"?{mainAxis:v,altAxis:v}:Object.assign({mainAxis:0,altAxis:0},v),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(A){if(s){var M,D=T==="y"?cn:un,I=T==="y"?Rn:Pn,j=T==="y"?"height":"width",$=A[T],F=$+g[D],L=$-g[I],_=b?-S[j]/2:0,B=x===lo?N[j]:S[j],oe=x===lo?-S[j]:-N[j],X=t.elements.arrow,ee=b&&X?dd(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Py(),J=Y[D],se=Y[I],z=Si(0,N[j],ee[j]),H=O?N[j]/2-_-z-J-f.mainAxis:B-z-J-f.mainAxis,G=O?-N[j]/2+_+z+se+f.mainAxis:oe+z+se+f.mainAxis,ue=t.elements.arrow&&Ci(t.elements.arrow),U=ue?T==="y"?ue.clientTop||0:ue.clientLeft||0:0,Q=(M=C==null?void 0:C[T])!=null?M:0,q=$+H-Q-U,ne=$+G-Q,Z=Si(b?Us(F,q):F,$,b?_r(L,ne):L);A[T]=Z,P[T]=Z-$}if(a){var te,le=T==="x"?cn:un,fe=T==="x"?Rn:Pn,xe=A[R],Ee=R==="y"?"height":"width",Te=xe+g[le],$e=xe-g[fe],Ze=[cn,un].indexOf(w)!==-1,We=(te=C==null?void 0:C[R])!=null?te:0,it=Ze?Te:xe-N[Ee]-S[Ee]-We+f.altAxis,st=Ze?xe+N[Ee]+S[Ee]-We-f.altAxis:$e,Ge=b&&Ze?XM(it,xe,st):Si(b?it:Te,xe,b?st:$e);A[R]=Ge,P[R]=Ge-xe}t.modifiersData[o]=P}}const RI={name:"preventOverflow",enabled:!0,phase:"main",fn:EI,requiresIfExists:["offset"]};function PI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kI(e){return e===mn(e)||!kn(e)?fd(e):PI(e)}function MI(e){var t=e.getBoundingClientRect(),n=co(t.width)/e.offsetWidth||1,o=co(t.height)/e.offsetHeight||1;return n!==1||o!==1}function II(e,t,n){n===void 0&&(n=!1);var o=kn(t),i=kn(t)&&MI(t),s=hr(t),l=uo(e,i,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Un(t)!=="body"||md(s))&&(a=kI(t)),kn(t)?(c=uo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=hd(s))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function DI(e){var t=new Map,n=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&i(c)}}),o.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),o}function jI(e){var t=DI(e);return UM.reduce(function(n,o){return n.concat(t.filter(function(i){return i.phase===o}))},[])}function AI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function NI(e){var t=e.reduce(function(n,o){var i=n[o.name];return n[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Fy={placement:"bottom",modifiers:[],strategy:"absolute"};function Vy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function _I(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Fy:i;return function(a,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fy,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},p=[],h=!1,b={state:d,setOptions:function(w){var x=typeof w=="function"?w(d.options):w;m(),d.options=Object.assign({},s,d.options,x),d.scrollParents={reference:Nr(a)?wi(a):a.contextElement?wi(a.contextElement):[],popper:wi(c)};var O=jI(NI([].concat(o,d.options.modifiers)));return d.orderedModifiers=O.filter(function(T){return T.enabled}),y(),b.update()},forceUpdate:function(){if(!h){var w=d.elements,x=w.reference,O=w.popper;if(Vy(x,O)){d.rects={reference:II(x,Ci(O),d.options.strategy==="fixed"),popper:dd(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(f){return d.modifiersData[f.name]=Object.assign({},f.data)});for(var T=0;T<d.orderedModifiers.length;T++){if(d.reset===!0){d.reset=!1,T=-1;continue}var R=d.orderedModifiers[T],A=R.fn,N=R.options,S=N===void 0?{}:N,v=R.name;typeof A=="function"&&(d=A({state:d,options:S,name:v,instance:b})||d)}}}},update:AI(function(){return new Promise(function(g){b.forceUpdate(),g(d)})}),destroy:function(){m(),h=!0}};if(!Vy(a,c))return b;b.setOptions(u).then(function(g){!h&&u.onFirstUpdate&&u.onFirstUpdate(g)});function y(){d.orderedModifiers.forEach(function(g){var w=g.name,x=g.options,O=x===void 0?{}:x,T=g.effect;if(typeof T=="function"){var R=T({state:d,name:w,instance:b,options:O}),A=function(){};p.push(R||A)}})}function m(){p.forEach(function(g){return g()}),p=[]}return b}}var $I=[sI,OI,oI,YM,SI,gI,RI,eI,vI],FI=_I({defaultModifiers:$I});function VI(e){return Ye("MuiPopper",e)}qe("MuiPopper",["root"]);function LI(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 Ks(e){return typeof e=="function"?e():e}function Gs(e){return e.nodeType!==void 0}function BI(e){return!Gs(e)}const qI=e=>{const{classes:t}=e;return Xe({root:["root"]},VI,t)},zI={},UI=E.forwardRef(function(t,n){const{anchorEl:o,children:i,direction:s,disablePortal:l,modifiers:a,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:b={},TransitionProps:y,ownerState:m,...g}=t,w=E.useRef(null),x=At(w,n),O=E.useRef(null),T=At(O,p),R=E.useRef(T);vn(()=>{R.current=T},[T]),E.useImperativeHandle(p,()=>O.current,[]);const A=LI(u,s),[N,S]=E.useState(A),[v,f]=E.useState(Ks(o));E.useEffect(()=>{O.current&&O.current.forceUpdate()}),E.useEffect(()=>{o&&f(Ks(o))},[o]),vn(()=>{if(!v||!c)return;const I=F=>{S(F.placement)};if(process.env.NODE_ENV!=="production"&&v&&Gs(v)&&v.nodeType===1){const F=v.getBoundingClientRect();process.env.NODE_ENV!=="test"&&F.top===0&&F.left===0&&F.right===0&&F.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(`
|
|
223
|
+
`))}let j=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{I(F)}}];a!=null&&(j=j.concat(a)),d&&d.modifiers!=null&&(j=j.concat(d.modifiers));const $=FI(v,w.current,{placement:A,...d,modifiers:j});return R.current($),()=>{$.destroy(),R.current(null)}},[v,l,a,c,d,A]);const C={placement:N};y!==null&&(C.TransitionProps=y);const P=qI(t),M=b.root??"div",D=Cr({elementType:M,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:P.root});return k.jsx(M,{...D,children:typeof i=="function"?i(C):i})}),Ly=E.forwardRef(function(t,n){const{anchorEl:o,children:i,container:s,direction:l="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:h=zI,popperRef:b,style:y,transition:m=!1,slotProps:g={},slots:w={},...x}=t,[O,T]=E.useState(!0),R=()=>{T(!1)},A=()=>{T(!0)};if(!c&&!d&&(!m||O))return null;let N;if(s)N=s;else if(o){const f=Ks(o);N=f&&Gs(f)?sn(f).body:sn(null).body}const S=!d&&c&&(!m||O)?"none":void 0,v=m?{in:d,onEnter:R,onExited:A}:void 0;return k.jsx(Zo,{disablePortal:a,container:N,children:k.jsx(UI,{anchorEl:o,direction:l,disablePortal:a,modifiers:u,ref:n,open:m?!O:d,placement:p,popperOptions:h,popperRef:b,slotProps:g,slots:w,...x,style:{position:"fixed",top:0,left:0,display:S,...y},TransitionProps:v,children:i})})});process.env.NODE_ENV!=="production"&&(Ly.propTypes={anchorEl:Mn(r.oneOfType([Xn,r.object,r.func]),e=>{if(e.open){const t=Ks(e.anchorEl);if(t&&Gs(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.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(`
|
|
224
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||BI(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(`
|
|
225
|
+
`))}return null}),children:r.oneOfType([r.node,r.func]),container:r.oneOfType([Xn,r.func]),direction:r.oneOf(["ltr","rtl"]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.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:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.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:r.oneOf(["absolute","fixed"])}),popperRef:Yt,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),transition:r.bool});const WI=re(Ly,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xs=E.forwardRef(function(t,n){const o=Gt(),i=tt({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:a,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:b,placement:y,popperOptions:m,popperRef:g,transition:w,slots:x,slotProps:O,...T}=i,R=(x==null?void 0:x.root)??(a==null?void 0:a.Root),A={anchorEl:s,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:b,placement:y,popperOptions:m,popperRef:g,transition:w,...T};return k.jsx(WI,{as:l,direction:o?"rtl":"ltr",slots:{root:R},slotProps:O??c,...A,ref:n})});process.env.NODE_ENV!=="production"&&(Xs.propTypes={anchorEl:r.oneOfType([Xn,r.object,r.func]),children:r.oneOfType([r.node,r.func]),component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([Xn,r.func]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.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:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.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:r.oneOf(["absolute","fixed"])}),popperRef:Yt,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transition:r.bool});function HI(e){return mt("MuiPickersPopper",e)}St("MuiPickersPopper",["root","paper"]);const YI=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],KI=e=>{const{classes:t}=e;return ht({root:["root"],paper:["paper"]},HI,t)},GI=re(Xs,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),XI=re(pr,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function QI(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function ZI(e,t){const n=E.useRef(!1),o=E.useRef(!1),i=E.useRef(null),s=E.useRef(!1);E.useEffect(()=>{if(!e)return;function c(){s.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),s.current=!1}},[e]);const l=je(c=>{if(!s.current)return;const u=o.current;o.current=!1;const d=Bu(i.current);if(!i.current||"clientX"in c&&QI(c,d))return;if(n.current){n.current=!1;return}let p;c.composedPath?p=c.composedPath().indexOf(i.current)>-1:p=!d.documentElement.contains(c.target)||i.current.contains(c.target),!p&&!u&&t(c)}),a=()=>{o.current=!0};return E.useEffect(()=>{if(e){const c=Bu(i.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",l),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",l),c.removeEventListener("touchmove",u)}}},[e,l]),E.useEffect(()=>{if(e){const c=Bu(i.current);return c.addEventListener("click",l),()=>{c.removeEventListener("click",l),o.current=!1}}},[e,l]),[i,a,a]}const JI=E.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:i,children:s,paperSlotProps:l,paperClasses:a,onPaperClick:c,onPaperTouchStart:u}=e,d=Le(e,YI),p=W({},i,{placement:o}),h=wt({elementType:n,externalSlotProps:l,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:p});return k.jsx(n,W({},d,h,{onClick:b=>{var y;c(b),(y=h.onClick)==null||y.call(h,b)},onTouchStart:b=>{var y;u(b),(y=h.onTouchStart)==null||y.call(h,b)},ownerState:p,children:s}))});function eD(e){const t=lt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:o,containerRef:i=null,shouldRestoreFocus:s,onBlur:l,onDismiss:a,open:c,role:u,placement:d,slots:p,slotProps:h,reduceAnimations:b}=t;E.useEffect(()=>{function I(j){c&&j.key==="Escape"&&a()}return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[a,c]);const y=E.useRef(null);E.useEffect(()=>{u==="tooltip"||s&&!s()||(c?y.current=ln(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[c,u,s]);const[m,g,w]=ZI(c,l??a),x=E.useRef(null),O=nn(x,i),T=nn(O,m),R=t,A=KI(R),N=xy(),S=b??N,v=I=>{I.key==="Escape"&&(I.stopPropagation(),a())},f=(p==null?void 0:p.desktopTransition)??S?Rr:Go,C=(p==null?void 0:p.desktopTrapFocus)??Qo,P=(p==null?void 0:p.desktopPaper)??XI,M=(p==null?void 0:p.popper)??GI,D=wt({elementType:M,externalSlotProps:h==null?void 0:h.popper,additionalProps:{transition:!0,role:u,open:c,anchorEl:n,placement:d,onKeyDown:v},className:A.root,ownerState:t});return k.jsx(M,W({},D,{children:({TransitionProps:I,placement:j})=>k.jsx(C,W({open:c,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},h==null?void 0:h.desktopTrapFocus,{children:k.jsx(f,W({},I,h==null?void 0:h.desktopTransition,{children:k.jsx(JI,{PaperComponent:P,ownerState:R,popperPlacement:j,ref:T,onPaperClick:g,onPaperTouchStart:w,paperClasses:A.paper,paperSlotProps:h==null?void 0:h.desktopPaper,children:o})}))}))}))}const By=new Set;function qy(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
226
|
+
`):e;By.has(n)||(By.add(n),t==="error"?console.error(n):console.warn(n))}const tD=({open:e,onOpen:t,onClose:n})=>{const o=E.useRef(typeof e=="boolean").current,[i,s]=E.useState(!1);E.useEffect(()=>{if(o){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[o,e]);const l=E.useCallback(a=>{o||s(a),a&&t&&t(),!a&&n&&n()},[o,t,n]);return{isOpen:i,setIsOpen:l}},nD=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:i}=e,s=!i&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(o.lastPublishedValue):!1},rD=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:i,closeOnSelect:s}=e,l=!i&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?l&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?l?!0:n(o.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(o.lastCommittedValue):!1},oD=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},iD=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i})=>{const{onAccept:s,onChange:l,value:a,defaultValue:c,closeOnSelect:u=o==="desktop",timezone:d,referenceDate:p}=e,{current:h}=E.useRef(c),{current:b}=E.useRef(a!==void 0),[y,m]=E.useState(d);process.env.NODE_ENV!=="production"&&(E.useEffect(()=>{b!==(a!==void 0)&&console.error([`MUI X: A component is changing the ${b?"":"un"}controlled value of a picker to be ${b?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor 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(`
|
|
227
|
+
`))},[a]),E.useEffect(()=>{!b&&h!==c&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
|
|
228
|
+
`))},[JSON.stringify(h)]));const g=Ot(),w=Mr(),{isOpen:x,setIsOpen:O}=tD(e),{timezone:T,value:R,handleValueChange:A}=Xu({timezone:d,value:a,defaultValue:h,referenceDate:p,onChange:l,valueManager:t}),[N,S]=E.useState(()=>{let H;return R!==void 0?H=R:h!==void 0?H=h:H=t.emptyValue,{draft:H,lastPublishedValue:H,lastCommittedValue:H,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),v=t.getTimezone(g,N.draft);y!==d&&(m(d),d&&v&&d!==v&&S(H=>W({},H,{draft:t.setTimezone(g,d,H.draft)})));const{getValidationErrorForNewValue:f}=Ig({props:e,validator:i,timezone:T,value:N.draft,onError:e.onError}),C=je(H=>{const G={action:H,dateState:N,hasChanged:Z=>!t.areValuesEqual(g,H.value,Z),isControlled:b,closeOnSelect:u},ue=nD(G),U=rD(G),Q=oD(G);S(Z=>W({},Z,{draft:H.value,lastPublishedValue:ue?H.value:Z.lastPublishedValue,lastCommittedValue:U?H.value:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let q=null;const ne=()=>(q||(q={validationError:H.name==="setValueFromField"?H.context.validationError:f(H.value)},H.name==="setValueFromShortcut"&&(q.shortcut=H.shortcut)),q);ue&&A(H.value,ne()),U&&s&&s(H.value,ne()),Q&&O(!1)});if(N.lastControlledValue!==a){const H=t.areValuesEqual(g,N.draft,R);S(G=>W({},G,{lastControlledValue:a},H?{}:{lastCommittedValue:R,lastPublishedValue:R,draft:R,hasBeenModifiedSinceMount:!0}))}const P=je(()=>{C({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),M=je(()=>{C({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=je(()=>{C({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),I=je(()=>{C({value:N.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),j=je(()=>{C({value:t.getTodayValue(g,T,n),name:"setValueFromAction",pickerAction:"today"})}),$=je(H=>{H.preventDefault(),O(!0)}),F=je(H=>{H==null||H.preventDefault(),O(!1)}),L=je((H,G="partial")=>C({name:"setValueFromView",value:H,selectionState:G})),_=je((H,G,ue)=>C({name:"setValueFromShortcut",value:H,changeImportance:G,shortcut:ue})),B=je((H,G)=>C({name:"setValueFromField",value:H,context:G})),oe={onClear:P,onAccept:M,onDismiss:D,onCancel:I,onSetToday:j,onOpen:$,onClose:F},X={value:N.draft,onChange:B},ee=E.useMemo(()=>t.cleanValue(g,N.draft),[g,t,N.draft]),Y={value:ee,onChange:L,onClose:F,open:x},se=W({},oe,{value:ee,onChange:L,onSelectShortcut:_,isValid:H=>{const G=i({adapter:w,value:H,timezone:T,props:e});return!t.hasError(G)}}),z=E.useMemo(()=>({onOpen:$,onClose:F,open:x}),[x,F,$]);return{open:x,fieldProps:X,viewProps:Y,layoutProps:se,actions:oe,contextValue:z}},sD=["className","sx"],aD=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:i,fieldRef:s})=>{const{onChange:l,open:a,onClose:c}=t,{view:u,views:d,openTo:p,onViewChange:h,viewRenderers:b,timezone:y}=e,m=Le(e,sD),{view:g,setView:w,defaultView:x,focusedView:O,setFocusedView:T,setValueAndGoToNextView:R}=gi({view:u,views:d,openTo:p,onChange:l,onViewChange:h,autoFocus:o}),{hasUIView:A,viewModeLookup:N}=E.useMemo(()=>d.reduce((D,I)=>{let j;return b[I]!=null?j="UI":j="field",D.viewModeLookup[I]=j,j==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[b,d]),S=E.useMemo(()=>d.reduce((D,I)=>b[I]!=null&&eo(I)?D+1:D,0),[b,d]),v=N[g],f=je(()=>v==="UI"),[C,P]=E.useState(v==="UI"?g:null);return C!==g&&N[g]==="UI"&&P(g),Bn(()=>{v==="field"&&a&&(c(),setTimeout(()=>{var D,I;(D=s==null?void 0:s.current)==null||D.setSelectedSections(g),(I=s==null?void 0:s.current)==null||I.focusField(g)}))},[g]),Bn(()=>{if(!a)return;let D=g;v==="field"&&C!=null&&(D=C),D!==x&&N[D]==="UI"&&N[x]==="UI"&&(D=x),D!==g&&w(D),T(D,!0)},[a]),{hasUIView:A,shouldRestoreFocus:f,layoutProps:{views:d,view:C,onViewChange:w},renderCurrentView:()=>{if(C==null)return null;const D=b[C];if(D==null)return null;const I=W({},m,n,t,{views:d,timezone:y,onChange:R,view:C,onViewChange:w,focusedView:O,onFocusedViewChange:T,showViewSwitcher:S>1,timeViewsCount:S});return i?i(b,C,I):D(I)}}};function zy(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const lD=(e,t)=>{const[n,o]=E.useState(zy);return Bn(()=>{const s=()=>{o(zy())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),GE(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},cD=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:i}=e,s=lD(n.views,i),l=Gt();return{layoutProps:W({},n,t,{isLandscape:s,isRtl:l,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function uD(e){const{props:t,pickerValueResponse:n}=e;return E.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Uy=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:i,validator:s,autoFocusView:l,rendererInterceptor:a,fieldRef:c})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&qy(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=iD({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:s}),d=aD({props:e,additionalViewProps:i,autoFocusView:l,fieldRef:c,propsFromPickerValue:u.viewProps,rendererInterceptor:a}),p=cD({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:d.layoutProps}),h=uD({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:h}};function Wy(e){return mt("MuiPickersLayout",e)}const An=St("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function dD(e){return Ye("MuiDialogActions",e)}qe("MuiDialogActions",["root","spacing"]);const pD=e=>{const{classes:t,disableSpacing:n}=e;return Xe({root:["root",!n&&"spacing"]},dD,t)},fD=re("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.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}}}]}),Hy=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...l}=o,a={...o,disableSpacing:s},c=pD(a);return k.jsx(fD,{className:we(c.root,i),ownerState:a,ref:n,...l})});process.env.NODE_ENV!=="production"&&(Hy.propTypes={children:r.node,classes:r.object,className:r.string,disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const hD=["onAccept","onClear","onCancel","onSetToday","actions"];function Yy(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:i,actions:s}=e,l=Le(e,hD),a=an();if(s==null||s.length===0)return null;const c=s==null?void 0:s.map(u=>{switch(u){case"clear":return k.jsx(jr,{onClick:n,children:a.clearButtonLabel},u);case"cancel":return k.jsx(jr,{onClick:o,children:a.cancelButtonLabel},u);case"accept":return k.jsx(jr,{onClick:t,children:a.okButtonLabel},u);case"today":return k.jsx(jr,{onClick:i,children:a.todayButtonLabel},u);default:return null}});return k.jsx(Hy,W({},l,{children:c}))}process.env.NODE_ENV!=="production"&&(Yy.propTypes={actions:r.arrayOf(r.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:r.bool,onAccept:r.func.isRequired,onCancel:r.func.isRequired,onClear:r.func.isRequired,onSetToday:r.func.isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function mD(e){return Ye("MuiListItem",e)}qe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const bD=qe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function gD(e){return Ye("MuiListItemSecondaryAction",e)}qe("MuiListItemSecondaryAction",["root","disableGutters"]);const yD=e=>{const{disableGutters:t,classes:n}=e;return Xe({root:["root",t&&"disableGutters"]},gD,n)},vD=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),gd=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...s}=o,l=E.useContext(dr),a={...o,disableGutters:l.disableGutters},c=yD(a);return k.jsx(vD,{className:we(c.root,i),ownerState:a,ref:n,...s})});process.env.NODE_ENV!=="production"&&(gd.propTypes={children:r.node,classes:r.object,className:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])}),gd.muiName="ListItemSecondaryAction";const xD=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},CD=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:a}=e;return Xe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},mD,n)},SD=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:xD})(Qe(({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:{[`& > .${bD.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}}]}))),wD=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ky=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiListItem"}),{alignItems:i="center",children:s,className:l,component:a,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p,...h}={},dense:b=!1,disableGutters:y=!1,disablePadding:m=!1,divider:g=!1,secondaryAction:w,slotProps:x={},slots:O={},...T}=o,R=E.useContext(dr),A=E.useMemo(()=>({dense:b||R.dense||!1,alignItems:i,disableGutters:y}),[i,R.dense,b,y]),N=E.useRef(null),S=E.Children.toArray(s),v=S.length&&Io(S[S.length-1],["ListItemSecondaryAction"]),f={...o,alignItems:i,dense:A.dense,disableGutters:y,disablePadding:m,divider:g,hasSecondaryAction:v},C=CD(f),P=At(N,n),M=O.root||c.Root||SD,D=x.root||u.root||{},I={className:we(C.root,D.className,l),...T};let j=a||"li";return v?(j=!I.component&&!a?"div":j,d==="li"&&(j==="li"?j="div":I.component==="li"&&(I.component="div")),k.jsx(dr.Provider,{value:A,children:k.jsxs(wD,{as:d,className:we(C.container,p),ref:P,ownerState:f,...h,children:[k.jsx(M,{...D,...!$o(M)&&{as:j,ownerState:{...f,...D.ownerState}},...I,children:S}),S.pop()]})})):k.jsx(dr.Provider,{value:A,children:k.jsxs(M,{...D,as:j,ref:P,...!$o(M)&&{ownerState:{...f,...D.ownerState}},...I,children:[S,w&&k.jsx(gd,{children:w})]})})});process.env.NODE_ENV!=="production"&&(Ky.propTypes={alignItems:r.oneOf(["center","flex-start"]),children:Mn(r.node,e=>{const t=E.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const i=t[o];if(Io(i,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==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:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),ContainerComponent:ss,ContainerProps:r.object,dense:r.bool,disableGutters:r.bool,disablePadding:r.bool,divider:r.bool,secondaryAction:r.node,slotProps:r.shape({root:r.object}),slots:r.shape({root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const OD=["items","changeImportance","isLandscape","onChange","isValid"],TD=["getValue"];function Gy(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:i}=e,s=Le(e,OD);if(t==null||t.length===0)return null;const l=t.map(a=>{let{getValue:c}=a,u=Le(a,TD);const d=c({isValid:i});return W({},u,{label:u.label,onClick:()=>{o(d,n,u)},disabled:!i(d)})});return k.jsx(vu,W({dense:!0,sx:[{maxHeight:Ls,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:l.map(a=>k.jsx(Ky,{children:k.jsx(Es,W({},a))},a.id??a.label))}))}process.env.NODE_ENV!=="production"&&(Gy.propTypes={changeImportance:r.oneOf(["accept","set"]),className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,isLandscape:r.bool.isRequired,isValid:r.func.isRequired,items:r.arrayOf(r.shape({getValue:r.func.isRequired,id:r.string,label:r.string.isRequired})),onChange:r.func.isRequired,style:r.object,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function ED(e){return e.view!==null}const RD=e=>{const{classes:t,isLandscape:n}=e;return ht({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Wy,t)},Xy=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:i,onSetToday:s,view:l,views:a,onViewChange:c,value:u,onChange:d,onSelectShortcut:p,isValid:h,isLandscape:b,disabled:y,readOnly:m,children:g,slots:w,slotProps:x}=e,O=RD(e),T=(w==null?void 0:w.actionBar)??Yy,R=wt({elementType:T,externalSlotProps:x==null?void 0:x.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:i,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:O.actionBar,ownerState:W({},e,{wrapperVariant:t})}),A=k.jsx(T,W({},R)),N=w==null?void 0:w.toolbar,S=wt({elementType:N,externalSlotProps:x==null?void 0:x.toolbar,additionalProps:{isLandscape:b,onChange:d,value:u,view:l,onViewChange:c,views:a,disabled:y,readOnly:m},className:O.toolbar,ownerState:W({},e,{wrapperVariant:t})}),v=ED(S)&&N?k.jsx(N,W({},S)):null,f=g,C=w==null?void 0:w.tabs,P=l&&C?k.jsx(C,W({view:l,onViewChange:c,className:O.tabs},x==null?void 0:x.tabs)):null,M=(w==null?void 0:w.shortcuts)??Gy,D=wt({elementType:M,externalSlotProps:x==null?void 0:x.shortcuts,additionalProps:{isValid:h,isLandscape:b,onChange:p},className:O.shortcuts,ownerState:{isValid:h,isLandscape:b,onChange:p,wrapperVariant:t}}),I=l&&M?k.jsx(M,W({},D)):null;return{toolbar:v,content:f,tabs:P,actionBar:A,shortcuts:I}},PD=e=>{const{isLandscape:t,classes:n}=e;return ht({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Wy,n)},Qy=re("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${An.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${An.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${An.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${An.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${An.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${An.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${An.shortcuts}`]:{gridColumn:3}}}]}),Zy=re("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),yd=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiPickersLayout"}),{toolbar:i,content:s,tabs:l,actionBar:a,shortcuts:c}=Xy(o),{sx:u,className:d,isLandscape:p,wrapperVariant:h}=o,b=PD(o);return k.jsxs(Qy,{ref:n,sx:u,className:we(b.root,d),ownerState:o,children:[p?c:i,p?i:c,k.jsx(Zy,{className:b.contentWrapper,children:h==="desktop"?k.jsxs(E.Fragment,{children:[s,l]}):k.jsxs(E.Fragment,{children:[l,s]})}),a]})});process.env.NODE_ENV!=="production"&&(yd.propTypes={children:r.node,classes:r.object,className:r.string,disabled:r.bool,isLandscape:r.bool.isRequired,isRtl:r.bool.isRequired,isValid:r.func.isRequired,onAccept:r.func.isRequired,onCancel:r.func.isRequired,onChange:r.func.isRequired,onClear:r.func.isRequired,onClose:r.func.isRequired,onDismiss:r.func.isRequired,onOpen:r.func.isRequired,onSelectShortcut:r.func.isRequired,onSetToday:r.func.isRequired,onViewChange:r.func.isRequired,orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any,view:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:r.arrayOf(r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:r.oneOf(["desktop","mobile"])});const kD=["props","getOpenDialogAriaText"],MD=["ownerState"],ID=["ownerState"],DD=e=>{var ne;let{props:t,getOpenDialogAriaText:n}=e,o=Le(e,kD);const{slots:i,slotProps:s,className:l,sx:a,format:c,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:p,onSelectedSectionsChange:h,timezone:b,name:y,label:m,inputRef:g,readOnly:w,disabled:x,autoFocus:O,localeText:T,reduceAnimations:R}=t,A=E.useRef(null),N=E.useRef(null),S=Zr(),v=((ne=s==null?void 0:s.toolbar)==null?void 0:ne.hidden)??!1,{open:f,actions:C,hasUIView:P,layoutProps:M,renderCurrentView:D,shouldRestoreFocus:I,fieldProps:j,contextValue:$,ownerState:F}=Uy(W({},o,{props:t,fieldRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=i.inputAdornment??Qu,_=wt({elementType:L,externalSlotProps:s==null?void 0:s.inputAdornment,additionalProps:{position:"end"},ownerState:t}),B=Le(_,MD),oe=i.openPickerButton??zn,X=wt({elementType:oe,externalSlotProps:s==null?void 0:s.openPickerButton,additionalProps:{disabled:x||w,onClick:f?C.onClose:C.onOpen,"aria-label":n(j.value),edge:B.position},ownerState:t}),ee=Le(X,ID),Y=i.openPickerIcon,J=wt({elementType:Y,externalSlotProps:s==null?void 0:s.openPickerIcon,ownerState:F}),se=i.field,z=wt({elementType:se,externalSlotProps:s==null?void 0:s.field,additionalProps:W({},j,v&&{id:S},{readOnly:w,disabled:x,className:l,sx:a,format:c,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:p,onSelectedSectionsChange:h,timezone:b,label:m,name:y,autoFocus:O&&!t.open,focused:f?!0:void 0},g?{inputRef:g}:{}),ownerState:t});P&&(z.InputProps=W({},z.InputProps,{ref:A},!t.disableOpenPicker&&{[`${B.position}Adornment`]:k.jsx(L,W({},B,{children:k.jsx(oe,W({},ee,{children:k.jsx(Y,W({},J))}))}))}));const H=W({textField:i.textField,clearIcon:i.clearIcon,clearButton:i.clearButton},z.slots),G=i.layout??yd;let ue=S;v&&(m?ue=`${S}-label`:ue=void 0);const U=W({},s,{toolbar:W({},s==null?void 0:s.toolbar,{titleId:S}),popper:W({"aria-labelledby":ue},s==null?void 0:s.popper)}),Q=nn(N,z.unstableFieldRef);return{renderPicker:()=>k.jsxs(Ng,{contextValue:$,localeText:T,children:[k.jsx(se,W({},z,{slots:H,slotProps:U,unstableFieldRef:Q})),k.jsx(eD,W({role:"dialog",placement:"bottom-start",anchorEl:A.current},C,{open:f,slots:i,slotProps:U,shouldRestoreFocus:I,reduceAnimations:R,children:k.jsx(G,W({},M,U==null?void 0:U.layout,{slots:i,slotProps:U,children:D()}))}))]})}},jD=["views","format"],Jy=(e,t,n)=>{let{views:o,format:i}=t,s=Le(t,jD);if(i)return i;const l=[],a=[];if(o.forEach(d=>{eo(d)?a.push(d):Jr(d)&&l.push(d)}),a.length===0)return lg(e,W({views:l},s));if(l.length===0)return dg(e,W({views:a},s));const c=dg(e,W({views:a},s));return`${lg(e,W({views:l},s))} ${c}`},AD=(e,t,n)=>n?t.filter(o=>!ai(o)||o==="hours"):e?[...t,"meridiem"]:t,ND=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function _D({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const i=e??24,s=W({hours:1,minutes:5,seconds:5},n),l=ND(s,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:s,shouldRenderTimeInASingleColumn:l,views:AD(t,o,l)}}function $D(e){return mt("MuiTimeClock",e)}St("MuiTimeClock",["root","arrowSwitcher"]);const fo=220,nr=36,Ti={x:fo/2,y:fo/2},ev={x:Ti.x,y:0},FD=ev.x-Ti.x,VD=ev.y-Ti.y,LD=e=>e*(180/Math.PI),tv=(e,t,n)=>{const o=t-Ti.x,i=n-Ti.y,s=Math.atan2(FD,VD)-Math.atan2(o,i);let l=LD(s);l=Math.round(l/e)*e,l%=360;const a=Math.floor(l/e)||0,c=o**2+i**2,u=Math.sqrt(c);return{value:a,distance:u}},BD=(e,t,n=1)=>{const o=n*6;let{value:i}=tv(o,e,t);return i=i*n%60,i},qD=(e,t,n)=>{const{value:o,distance:i}=tv(30,e,t);let s=o||12;return n?s%=12:i<fo/2-nr&&(s+=12,s%=24),s};function zD(e){return mt("MuiClockPointer",e)}St("MuiClockPointer",["root","thumb"]);const UD=["className","hasSelected","isInner","type","viewValue"],WD=e=>{const{classes:t}=e;return ht({root:["root"],thumb:["thumb"]},zD,t)},HD=re("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),YD=re("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${nr/2}px)`,border:`${(nr-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function KD(e){const t=lt({props:e,name:"MuiClockPointer"}),{className:n,isInner:o,type:i,viewValue:s}=t,l=Le(t,UD),a=E.useRef(i);E.useEffect(()=>{a.current=i},[i]);const c=W({},t,{shouldAnimate:a.current!==i}),u=WD(c),d=()=>{let h=360/(i==="hours"?12:60)*s;return i==="hours"&&s>12&&(h-=360),{height:Math.round((o?.26:.4)*fo),transform:`rotateZ(${h}deg)`}};return k.jsx(HD,W({style:d(),className:we(u.root,n),ownerState:c},l,{children:k.jsx(YD,{ownerState:c,className:u.thumb})}))}function GD(e){return mt("MuiClock",e)}St("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const XD=e=>{const{classes:t,meridiemMode:n}=e;return ht({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",n==="am"&&"selected"],pmButton:["pmButton",n==="pm"&&"selected"],meridiemText:["meridiemText"]},GD,t)},QD=re("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),ZD=re("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),JD=re("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),ej=re("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),tj=re("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),nv=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:nr,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),nj=re(zn,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>W({},nv(e,"am"),{position:"absolute",left:8})),rj=re(zn,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>W({},nv(e,"pm"),{position:"absolute",right:8})),rv=re(wn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function oj(e){const t=lt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:i,children:s,value:l,handleMeridiemChange:a,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:p,selectedId:h,type:b,viewValue:y,viewRange:[m,g],disabled:w=!1,readOnly:x,className:O}=t,T=t,R=Ot(),A=an(),N=E.useRef(!1),S=XD(T),v=c(y,b),f=!n&&b==="hours"&&(y<1||y>12),C=(X,ee)=>{w||x||c(X,b)||p(X,ee)},P=(X,ee)=>{let{offsetX:Y,offsetY:J}=X;if(Y===void 0){const z=X.target.getBoundingClientRect();Y=X.changedTouches[0].clientX-z.left,J=X.changedTouches[0].clientY-z.top}const se=b==="seconds"||b==="minutes"?BD(Y,J,d):qD(Y,J,!!n);C(se,ee)},M=X=>{N.current=!0,P(X,"shallow")},D=X=>{N.current&&(P(X,"finish"),N.current=!1),X.preventDefault()},I=X=>{X.buttons>0&&P(X.nativeEvent,"shallow")},j=X=>{N.current&&(N.current=!1),P(X.nativeEvent,"finish")},$=E.useMemo(()=>b==="hours"?!0:y%5===0,[b,y]),F=b==="minutes"?d:1,L=E.useRef(null);Bn(()=>{i&&L.current.focus()},[i]);const _=X=>Math.max(m,Math.min(g,X)),B=X=>(X+(g+1))%(g+1),oe=X=>{if(!N.current)switch(X.key){case"Home":C(m,"partial"),X.preventDefault();break;case"End":C(g,"partial"),X.preventDefault();break;case"ArrowUp":C(B(y+F),"partial"),X.preventDefault();break;case"ArrowDown":C(B(y-F),"partial"),X.preventDefault();break;case"PageUp":C(_(y+5),"partial"),X.preventDefault();break;case"PageDown":C(_(y-5),"partial"),X.preventDefault();break;case"Enter":case" ":C(y,"finish"),X.preventDefault();break}};return k.jsxs(QD,{className:we(S.root,O),children:[k.jsxs(ZD,{className:S.clock,children:[k.jsx(ej,{onTouchMove:M,onTouchStart:M,onTouchEnd:D,onMouseUp:j,onMouseMove:I,ownerState:{disabled:w},className:S.squareMask}),!v&&k.jsxs(E.Fragment,{children:[k.jsx(tj,{className:S.pin}),l!=null&&k.jsx(KD,{type:b,viewValue:y,isInner:f,hasSelected:$})]}),k.jsx(JD,{"aria-activedescendant":h,"aria-label":A.clockLabelText(b,l,R,l==null?null:R.format(l,"fullTime")),ref:L,role:"listbox",onKeyDown:oe,tabIndex:0,className:S.wrapper,children:s})]}),n&&o&&k.jsxs(E.Fragment,{children:[k.jsx(nj,{onClick:x?void 0:()=>a("am"),disabled:w||u===null,ownerState:T,className:S.amButton,title:er(R,"am"),children:k.jsx(rv,{variant:"caption",className:S.meridiemText,children:er(R,"am")})}),k.jsx(rj,{disabled:w||u===null,onClick:x?void 0:()=>a("pm"),ownerState:T,className:S.pmButton,title:er(R,"pm"),children:k.jsx(rv,{variant:"caption",className:S.meridiemText,children:er(R,"pm")})})]})]})}function ij(e){return mt("MuiClockNumber",e)}const Qs=St("MuiClockNumber",["root","selected","disabled"]),sj=["className","disabled","index","inner","label","selected"],aj=e=>{const{classes:t,selected:n,disabled:o}=e;return ht({root:["root",n&&"selected",o&&"disabled"]},ij,t)},lj=re("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Qs.disabled}`]:t.disabled},{[`&.${Qs.selected}`]:t.selected}]})(({theme:e})=>({height:nr,width:nr,position:"absolute",left:`calc((100% - ${nr}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Qs.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Qs.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:W({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function ov(e){const t=lt({props:e,name:"MuiClockNumber"}),{className:n,disabled:o,index:i,inner:s,label:l,selected:a}=t,c=Le(t,sj),u=t,d=aj(u),p=i%12/12*Math.PI*2-Math.PI/2,h=(fo-nr-2)/2*(s?.65:1),b=Math.round(Math.cos(p)*h),y=Math.round(Math.sin(p)*h);return k.jsx(lj,W({className:we(d.root,n),"aria-disabled":o?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${b}px, ${y+(fo-nr)/2}px`},ownerState:u},c,{children:l}))}const cj=({ampm:e,value:t,getClockNumberText:n,isDisabled:o,selectedId:i,utils:s})=>{const l=t?s.getHours(t):null,a=[],c=e?1:0,u=e?12:23,d=p=>l===null?!1:e?p===12?l===12||l===0:l===p||l-12===p:l===p;for(let p=c;p<=u;p+=1){let h=p.toString();p===0&&(h="00");const b=!e&&(p===0||p>12);h=s.formatNumber(h);const y=d(p);a.push(k.jsx(ov,{id:y?i:void 0,index:p,inner:b,selected:y,disabled:o(p),label:h,"aria-label":n(h)},p))}return a},iv=({utils:e,value:t,isDisabled:n,getClockNumberText:o,selectedId:i})=>{const s=e.formatNumber;return[[5,s("05")],[10,s("10")],[15,s("15")],[20,s("20")],[25,s("25")],[30,s("30")],[35,s("35")],[40,s("40")],[45,s("45")],[50,s("50")],[55,s("55")],[0,s("00")]].map(([l,a],c)=>{const u=l===t;return k.jsx(ov,{label:a,id:u?i:void 0,index:c+1,inner:!1,disabled:n(l),selected:u,"aria-label":o(a)},l)})},vd=({value:e,referenceDate:t,utils:n,props:o,timezone:i})=>{const s=E.useMemo(()=>Zt.getInitialReferenceValue({value:e,utils:n,props:o,referenceDate:t,granularity:Dn.day,timezone:i,getTodayDate:()=>zu(n,i,"date")}),[]);return e??s},uj=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],dj=e=>{const{classes:t}=e;return ht({root:["root"],arrowSwitcher:["arrowSwitcher"]},$D,t)},pj=re(zs,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),fj=re(by,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),hj=["hours","minutes"],sv=E.forwardRef(function(t,n){const o=Ot(),i=lt({props:t,name:"MuiTimeClock"}),{ampm:s=o.is12HourCycleInCurrentLocale(),ampmInClock:l=!1,autoFocus:a,slots:c,slotProps:u,value:d,defaultValue:p,referenceDate:h,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:y,minTime:m,disableFuture:g,disablePast:w,minutesStep:x=1,shouldDisableTime:O,showViewSwitcher:T,onChange:R,view:A,views:N=hj,openTo:S,onViewChange:v,focusedView:f,onFocusedViewChange:C,className:P,disabled:M,readOnly:D,timezone:I}=i,j=Le(i,uj),{value:$,handleValueChange:F,timezone:L}=to({name:"TimeClock",timezone:I,value:d,defaultValue:p,referenceDate:h,onChange:R,valueManager:Zt}),_=vd({value:$,referenceDate:h,utils:o,props:i,timezone:L}),B=an(),oe=Ir(L),{view:X,setView:ee,previousView:Y,nextView:J,setValueAndGoToNextView:se}=gi({view:A,views:N,openTo:S,onViewChange:v,onChange:F,focusedView:f,onFocusedViewChange:C}),{meridiemMode:z,handleMeridiemChange:H}=sd(_,s,se),G=E.useCallback((ne,Z)=>{const te=ci(b,o),le=Z==="hours"||Z==="minutes"&&N.includes("seconds"),fe=({start:Ee,end:Te})=>!(m&&te(m,Te)||y&&te(Ee,y)||g&&te(Ee,oe)||w&&te(oe,le?Te:Ee)),xe=(Ee,Te=1)=>{if(Ee%Te!==0)return!1;if(O)switch(Z){case"hours":return!O(o.setHours(_,Ee),"hours");case"minutes":return!O(o.setMinutes(_,Ee),"minutes");case"seconds":return!O(o.setSeconds(_,Ee),"seconds");default:return!1}return!0};switch(Z){case"hours":{const Ee=li(ne,z,s),Te=o.setHours(_,Ee);if(o.getHours(Te)!==Ee)return!0;const $e=o.setSeconds(o.setMinutes(Te,0),0),Ze=o.setSeconds(o.setMinutes(Te,59),59);return!fe({start:$e,end:Ze})||!xe(Ee)}case"minutes":{const Ee=o.setMinutes(_,ne),Te=o.setSeconds(Ee,0),$e=o.setSeconds(Ee,59);return!fe({start:Te,end:$e})||!xe(ne,x)}case"seconds":{const Ee=o.setSeconds(_,ne);return!fe({start:Ee,end:Ee})||!xe(ne)}default:throw new Error("not supported")}},[s,_,b,y,z,m,x,O,o,g,w,oe,N]),ue=Zr(),U=E.useMemo(()=>{switch(X){case"hours":{const ne=(le,fe)=>{const xe=li(le,z,s);se(o.setHours(_,xe),fe,"hours")},Z=o.getHours(_);let te;return s?Z>12?te=[12,23]:te=[0,11]:te=[0,23],{onChange:ne,viewValue:Z,children:cj({value:$,utils:o,ampm:s,onChange:ne,getClockNumberText:B.hoursClockNumberText,isDisabled:le=>M||G(le,"hours"),selectedId:ue}),viewRange:te}}case"minutes":{const ne=o.getMinutes(_),Z=(te,le)=>{se(o.setMinutes(_,te),le,"minutes")};return{viewValue:ne,onChange:Z,children:iv({utils:o,value:ne,onChange:Z,getClockNumberText:B.minutesClockNumberText,isDisabled:te=>M||G(te,"minutes"),selectedId:ue}),viewRange:[0,59]}}case"seconds":{const ne=o.getSeconds(_),Z=(te,le)=>{se(o.setSeconds(_,te),le,"seconds")};return{viewValue:ne,onChange:Z,children:iv({utils:o,value:ne,onChange:Z,getClockNumberText:B.secondsClockNumberText,isDisabled:te=>M||G(te,"seconds"),selectedId:ue}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[X,o,$,s,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,z,se,_,G,ue,M]),Q=i,q=dj(Q);return k.jsxs(pj,W({ref:n,className:we(q.root,P),ownerState:Q},j,{children:[k.jsx(oj,W({autoFocus:a??!!f,ampmInClock:l&&N.includes("hours"),value:$,type:X,ampm:s,minutesStep:x,isTimeDisabled:G,meridiemMode:z,handleMeridiemChange:H,selectedId:ue,disabled:M,readOnly:D},U)),T&&k.jsx(fj,{className:q.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>ee(Y),isPreviousDisabled:!Y,previousLabel:B.openPreviousView,onGoToNext:()=>ee(J),isNextDisabled:!J,nextLabel:B.openNextView,ownerState:Q})]}))});process.env.NODE_ENV!=="production"&&(sv.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,showViewSwitcher:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});function mj(e){return mt("MuiDigitalClock",e)}const bj=St("MuiDigitalClock",["root","list","item"]),gj=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],yj=e=>{const{classes:t}=e;return ht({root:["root"],list:["list"],item:["item"]},mj,t)},vj=re(zs,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:ry,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),xj=re(vs,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Cj=re(Qr,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:et(e.palette.primary.main,e.palette.action.focusOpacity)}})),av=E.forwardRef(function(t,n){const o=Ot(),i=E.useRef(null),s=nn(n,i),l=E.useRef(null),a=lt({props:t,name:"MuiDigitalClock"}),{ampm:c=o.is12HourCycleInCurrentLocale(),timeStep:u=30,autoFocus:d,slots:p,slotProps:h,value:b,defaultValue:y,referenceDate:m,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:w,minTime:x,disableFuture:O,disablePast:T,minutesStep:R=1,shouldDisableTime:A,onChange:N,view:S,openTo:v,onViewChange:f,focusedView:C,onFocusedViewChange:P,className:M,disabled:D,readOnly:I,views:j=["hours"],skipDisabled:$=!1,timezone:F}=a,L=Le(a,gj),{value:_,handleValueChange:B,timezone:oe}=to({name:"DigitalClock",timezone:F,value:b,defaultValue:y,referenceDate:m,onChange:N,valueManager:Zt}),X=an(),ee=Ir(oe),Y=E.useMemo(()=>W({},a,{alreadyRendered:!!i.current}),[a]),J=yj(Y),se=(p==null?void 0:p.digitalClockItem)??Cj,z=wt({elementType:se,externalSlotProps:h==null?void 0:h.digitalClockItem,ownerState:{},className:J.item}),H=vd({value:_,referenceDate:m,utils:o,props:a,timezone:oe}),G=je(te=>B(te,"finish","hours")),{setValueAndGoToNextView:ue}=gi({view:S,views:j,openTo:v,onViewChange:f,onChange:G,focusedView:C,onFocusedViewChange:P}),U=je(te=>{ue(te,"finish")});E.useEffect(()=>{if(i.current===null)return;const te=i.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!te)return;const le=te.offsetTop;(d||C)&&te.focus(),i.current.scrollTop=le-4});const Q=E.useCallback(te=>{const le=ci(g,o),fe=()=>!(x&&le(x,te)||w&&le(te,w)||O&&le(te,ee)||T&&le(ee,te)),xe=()=>o.getMinutes(te)%R!==0?!1:A?!A(te,"hours"):!0;return!fe()||!xe()},[g,o,x,w,O,ee,T,R,A]),q=E.useMemo(()=>{const te=[];let fe=o.startOfDay(H);for(;o.isSameDay(H,fe);)te.push(fe),fe=o.addMinutes(fe,u);return te},[H,u,o]),ne=q.findIndex(te=>o.isEqual(te,H)),Z=te=>{switch(te.key){case"PageUp":{const le=js(l.current)-5,fe=l.current.children,xe=Math.max(0,le),Ee=fe[xe];Ee&&Ee.focus(),te.preventDefault();break}case"PageDown":{const le=js(l.current)+5,fe=l.current.children,xe=Math.min(fe.length-1,le),Ee=fe[xe];Ee&&Ee.focus(),te.preventDefault();break}}};return k.jsx(vj,W({ref:s,className:we(J.root,M),ownerState:Y},L,{children:k.jsx(xj,{ref:l,role:"listbox","aria-label":X.timePickerToolbarTitle,className:J.list,onKeyDown:Z,children:q.map((te,le)=>{if($&&Q(te))return null;const fe=o.isEqual(te,_),xe=o.format(te,c?"fullTime12h":"fullTime24h"),Ee=ne===le||ne===-1&&le===0?0:-1;return k.jsx(se,W({onClick:()=>!I&&U(te),selected:fe,disabled:D||Q(te),disableRipple:I,role:"option","aria-disabled":I,"aria-selected":fe,tabIndex:Ee},z,{children:xe}),`${te.valueOf()}-${xe}`)})})}))});process.env.NODE_ENV!=="production"&&(av.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeStep:r.number,timezone:r.string,value:r.object,view:r.oneOf(["hours"]),views:r.arrayOf(r.oneOf(["hours"]))});function Sj(e){return mt("MuiMultiSectionDigitalClock",e)}const lv=St("MuiMultiSectionDigitalClock",["root"]);function wj(e){return mt("MuiMultiSectionDigitalClockSection",e)}const Oj=St("MuiMultiSectionDigitalClockSection",["root","item"]),Tj=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Ej=e=>{const{classes:t}=e;return ht({root:["root"],item:["item"]},wj,t)},Rj=re(vs,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:ry,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),Pj=re(Qr,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:mi,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:et(e.palette.primary.main,e.palette.action.focusOpacity)}})),kj=E.forwardRef(function(t,n){const o=E.useRef(null),i=nn(n,o),s=E.useRef(null),l=lt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:c,className:u,disabled:d,readOnly:p,items:h,active:b,slots:y,slotProps:m,skipDisabled:g}=l,w=Le(l,Tj),x=E.useMemo(()=>W({},l,{alreadyRendered:!!o.current}),[l]),O=Ej(x),T=(y==null?void 0:y.digitalClockSectionItem)??Pj;E.useEffect(()=>{if(o.current===null)return;const N=o.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(b&&a&&N&&N.focus(),!N||s.current===N)return;s.current=N;const S=N.offsetTop;o.current.scrollTop=S-4});const R=h.findIndex(N=>N.isFocused(N.value)),A=N=>{switch(N.key){case"PageUp":{const S=js(o.current)-5,v=o.current.children,f=Math.max(0,S),C=v[f];C&&C.focus(),N.preventDefault();break}case"PageDown":{const S=js(o.current)+5,v=o.current.children,f=Math.min(v.length-1,S),C=v[f];C&&C.focus(),N.preventDefault();break}}};return k.jsx(Rj,W({ref:i,className:we(O.root,u),ownerState:x,autoFocusItem:a&&b,role:"listbox",onKeyDown:A},w,{children:h.map((N,S)=>{var M;const v=(M=N.isDisabled)==null?void 0:M.call(N,N.value),f=d||v;if(g&&f)return null;const C=N.isSelected(N.value),P=R===S||R===-1&&S===0?0:-1;return k.jsx(T,W({onClick:()=>!p&&c(N.value),selected:C,disabled:f,disableRipple:p,role:"option","aria-disabled":p||f||void 0,"aria-label":N.ariaLabel,"aria-selected":C,tabIndex:P,className:O.item},m==null?void 0:m.digitalClockSectionItem,{children:N.label}),N.label)})}))}),Mj=({now:e,value:t,utils:n,ampm:o,isDisabled:i,resolveAriaLabel:s,timeStep:l,valueOrReferenceDate:a})=>{const c=t?n.getHours(t):null,u=[],d=(b,y)=>{const m=y??c;return m===null?!1:o?b===12?m===12||m===0:m===b||m-12===b:m===b},p=b=>d(b,n.getHours(a)),h=o?11:23;for(let b=0;b<=h;b+=l){let y=n.format(n.setHours(e,b),o?"hours12h":"hours24h");const m=s(parseInt(y,10).toString());y=n.formatNumber(y),u.push({value:b,label:y,isSelected:d,isDisabled:i,isFocused:p,ariaLabel:m})}return u},cv=({value:e,utils:t,isDisabled:n,timeStep:o,resolveLabel:i,resolveAriaLabel:s,hasValue:l=!0})=>{const a=u=>e===null?!1:l&&e===u,c=u=>e===u;return[...Array.from({length:Math.ceil(60/o)},(u,d)=>{const p=o*d;return{value:p,label:t.formatNumber(i(p)),isDisabled:n,isSelected:a,isFocused:c,ariaLabel:s(p.toString())}})]},Ij=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],Dj=e=>{const{classes:t}=e;return ht({root:["root"]},Sj,t)},jj=re(zs,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),uv=E.forwardRef(function(t,n){const o=Ot(),i=Gt(),s=lt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:l=o.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:c,slots:u,slotProps:d,value:p,defaultValue:h,referenceDate:b,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:m,minTime:g,disableFuture:w,disablePast:x,minutesStep:O=1,shouldDisableTime:T,onChange:R,view:A,views:N=["hours","minutes"],openTo:S,onViewChange:v,focusedView:f,onFocusedViewChange:C,className:P,disabled:M,readOnly:D,skipDisabled:I=!1,timezone:j}=s,$=Le(s,Ij),{value:F,handleValueChange:L,timezone:_}=to({name:"MultiSectionDigitalClock",timezone:j,value:p,defaultValue:h,referenceDate:b,onChange:R,valueManager:Zt}),B=an(),oe=Ir(_),X=E.useMemo(()=>W({hours:1,minutes:5,seconds:5},a),[a]),ee=vd({value:F,referenceDate:b,utils:o,props:s,timezone:_}),Y=je((fe,xe,Ee)=>L(fe,xe,Ee)),J=E.useMemo(()=>!l||!N.includes("hours")||N.includes("meridiem")?N:[...N,"meridiem"],[l,N]),{view:se,setValueAndGoToNextView:z,focusedView:H}=gi({view:A,views:J,openTo:S,onViewChange:v,onChange:Y,focusedView:f,onFocusedViewChange:C}),G=je(fe=>{z(fe,"finish","meridiem")}),{meridiemMode:ue,handleMeridiemChange:U}=sd(ee,l,G,"finish"),Q=E.useCallback((fe,xe)=>{const Ee=ci(y,o),Te=xe==="hours"||xe==="minutes"&&J.includes("seconds"),$e=({start:We,end:it})=>!(g&&Ee(g,it)||m&&Ee(We,m)||w&&Ee(We,oe)||x&&Ee(oe,Te?it:We)),Ze=(We,it=1)=>{if(We%it!==0)return!1;if(T)switch(xe){case"hours":return!T(o.setHours(ee,We),"hours");case"minutes":return!T(o.setMinutes(ee,We),"minutes");case"seconds":return!T(o.setSeconds(ee,We),"seconds");default:return!1}return!0};switch(xe){case"hours":{const We=li(fe,ue,l),it=o.setHours(ee,We);if(o.getHours(it)!==We)return!0;const st=o.setSeconds(o.setMinutes(it,0),0),Ge=o.setSeconds(o.setMinutes(it,59),59);return!$e({start:st,end:Ge})||!Ze(We)}case"minutes":{const We=o.setMinutes(ee,fe),it=o.setSeconds(We,0),st=o.setSeconds(We,59);return!$e({start:it,end:st})||!Ze(fe,O)}case"seconds":{const We=o.setSeconds(ee,fe);return!$e({start:We,end:We})||!Ze(fe)}default:throw new Error("not supported")}},[l,ee,y,m,ue,g,O,T,o,w,x,oe,J]),q=E.useCallback(fe=>{switch(fe){case"hours":return{onChange:xe=>{const Ee=li(xe,ue,l);z(o.setHours(ee,Ee),"finish","hours")},items:Mj({now:oe,value:F,ampm:l,utils:o,isDisabled:xe=>Q(xe,"hours"),timeStep:X.hours,resolveAriaLabel:B.hoursClockNumberText,valueOrReferenceDate:ee})};case"minutes":return{onChange:xe=>{z(o.setMinutes(ee,xe),"finish","minutes")},items:cv({value:o.getMinutes(ee),utils:o,isDisabled:xe=>Q(xe,"minutes"),resolveLabel:xe=>o.format(o.setMinutes(oe,xe),"minutes"),timeStep:X.minutes,hasValue:!!F,resolveAriaLabel:B.minutesClockNumberText})};case"seconds":return{onChange:xe=>{z(o.setSeconds(ee,xe),"finish","seconds")},items:cv({value:o.getSeconds(ee),utils:o,isDisabled:xe=>Q(xe,"seconds"),resolveLabel:xe=>o.format(o.setSeconds(oe,xe),"seconds"),timeStep:X.seconds,hasValue:!!F,resolveAriaLabel:B.secondsClockNumberText})};case"meridiem":{const xe=er(o,"am"),Ee=er(o,"pm");return{onChange:U,items:[{value:"am",label:xe,isSelected:()=>!!F&&ue==="am",isFocused:()=>!!ee&&ue==="am",ariaLabel:xe},{value:"pm",label:Ee,isSelected:()=>!!F&&ue==="pm",isFocused:()=>!!ee&&ue==="pm",ariaLabel:Ee}]}}default:throw new Error(`Unknown view: ${fe} found.`)}},[oe,F,l,o,X.hours,X.minutes,X.seconds,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,ue,z,ee,Q,U]),ne=E.useMemo(()=>{if(!i)return J;const fe=J.filter(xe=>xe!=="meridiem");return fe.reverse(),J.includes("meridiem")&&fe.push("meridiem"),fe},[i,J]),Z=E.useMemo(()=>J.reduce((fe,xe)=>W({},fe,{[xe]:q(xe)}),{}),[J,q]),te=s,le=Dj(te);return k.jsx(jj,W({ref:n,className:we(le.root,P),ownerState:te,role:"group"},$,{children:ne.map(fe=>k.jsx(kj,{items:Z[fe].items,onChange:Z[fe].onChange,active:se===fe,autoFocus:c??H===fe,disabled:M,readOnly:D,slots:u,slotProps:d,skipDisabled:I,"aria-label":B.selectViewText(fe)},fe))}))});process.env.NODE_ENV!=="production"&&(uv.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});const xd=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:i,value:s,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:b,maxTime:y,shouldDisableTime:m,minutesStep:g,ampm:w,ampmInClock:x,slots:O,slotProps:T,readOnly:R,disabled:A,sx:N,autoFocus:S,showViewSwitcher:v,disableIgnoringDatePartForTimeValidation:f,timezone:C})=>k.jsx(sv,{view:e,onViewChange:t,focusedView:n&&eo(n)?n:null,onFocusedViewChange:o,views:i.filter(eo),value:s,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:b,maxTime:y,shouldDisableTime:m,minutesStep:g,ampm:w,ampmInClock:x,slots:O,slotProps:T,readOnly:R,disabled:A,sx:N,autoFocus:S,showViewSwitcher:v,disableIgnoringDatePartForTimeValidation:f,timezone:C}),Aj=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:i,value:s,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:b,maxTime:y,shouldDisableTime:m,minutesStep:g,ampm:w,slots:x,slotProps:O,readOnly:T,disabled:R,sx:A,autoFocus:N,disableIgnoringDatePartForTimeValidation:S,timeSteps:v,skipDisabled:f,timezone:C})=>k.jsx(av,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:i.filter(eo),value:s,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:b,maxTime:y,shouldDisableTime:m,minutesStep:g,ampm:w,slots:x,slotProps:O,readOnly:T,disabled:R,sx:A,autoFocus:N,disableIgnoringDatePartForTimeValidation:S,timeStep:v==null?void 0:v.minutes,skipDisabled:f,timezone:C}),dv=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:i,value:s,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:b,maxTime:y,shouldDisableTime:m,minutesStep:g,ampm:w,slots:x,slotProps:O,readOnly:T,disabled:R,sx:A,autoFocus:N,disableIgnoringDatePartForTimeValidation:S,timeSteps:v,skipDisabled:f,timezone:C})=>k.jsx(uv,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:i.filter(eo),value:s,defaultValue:l,referenceDate:a,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minTime:b,maxTime:y,shouldDisableTime:m,minutesStep:g,ampm:w,slots:x,slotProps:O,readOnly:T,disabled:R,sx:A,autoFocus:N,disableIgnoringDatePartForTimeValidation:S,timeSteps:v,skipDisabled:f,timezone:C}),pv=E.forwardRef(function(t,n){var m;const o=Gt(),{toolbar:i,tabs:s,content:l,actionBar:a,shortcuts:c}=Xy(t),{sx:u,className:d,isLandscape:p,classes:h}=t,b=a&&(((m=a.props.actions)==null?void 0:m.length)??0)>0,y=W({},t,{isRtl:o});return k.jsxs(Qy,{ref:n,className:we(An.root,h==null?void 0:h.root,d),sx:[{[`& .${An.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${An.actionBar}`]:{gridRow:5}},...Array.isArray(u)?u:[u]],ownerState:y,children:[p?c:i,p?i:c,k.jsxs(Zy,{className:we(An.contentWrapper,h==null?void 0:h.contentWrapper),sx:{display:"grid"},children:[l,s,b&&k.jsx(ni,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})});process.env.NODE_ENV!=="production"&&(pv.propTypes={children:r.node,classes:r.object,className:r.string,disabled:r.bool,isLandscape:r.bool.isRequired,isRtl:r.bool.isRequired,isValid:r.func.isRequired,onAccept:r.func.isRequired,onCancel:r.func.isRequired,onChange:r.func.isRequired,onClear:r.func.isRequired,onClose:r.func.isRequired,onDismiss:r.func.isRequired,onOpen:r.func.isRequired,onSelectShortcut:r.func.isRequired,onSetToday:r.func.isRequired,onViewChange:r.func.isRequired,orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any,view:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:r.arrayOf(r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:r.oneOf(["desktop","mobile"])});const Nj=["openTo","focusedView","timeViewsCount"],_j=function(t,n,o){var d,p;const{openTo:i,focusedView:s,timeViewsCount:l}=o,a=Le(o,Nj),c=W({},a,{focusedView:null,sx:[{[`&.${lv.root}`]:{borderBottom:0},[`&.${lv.root}, .${Oj.root}, &.${bj.root}`]:{maxHeight:Ls}}]}),u=ai(n);return k.jsxs(E.Fragment,{children:[(d=t[u?"day":n])==null?void 0:d.call(t,W({},o,{view:u?"day":n,focusedView:s&&Jr(s)?s:null,views:o.views.filter(Jr),sx:[{gridColumn:1},...c.sx]})),l>0&&k.jsxs(E.Fragment,{children:[k.jsx(ni,{orientation:"vertical",sx:{gridColumn:2}}),(p=t[u?n:"hours"])==null?void 0:p.call(t,W({},c,{view:u?n:"hours",focusedView:s&&ai(s)?s:null,openTo:ai(i)?i:"hours",views:o.views.filter(ai),sx:[{gridColumn:3},...c.sx]}))]})]})},fv=E.forwardRef(function(t,n){var x,O,T,R;const o=an(),i=Ot(),s=sy(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:l,thresholdToRenderTimeInASingleColumn:a,views:c,timeSteps:u}=_D(s),d=l?Aj:dv,p=W({day:ao,month:ao,year:ao,hours:d,minutes:d,seconds:d,meridiem:d},s.viewRenderers),h=s.ampmInClock??!0,y=((x=p.hours)==null?void 0:x.name)===dv.name?c:c.filter(A=>A!=="meridiem"),m=l?[]:["accept"],g=W({},s,{viewRenderers:p,format:Jy(i,s),views:y,yearsPerRow:s.yearsPerRow??4,ampmInClock:h,timeSteps:u,thresholdToRenderTimeInASingleColumn:a,shouldRenderTimeInASingleColumn:l,slots:W({field:nd,layout:pv,openPickerIcon:fR},s.slots),slotProps:W({},s.slotProps,{field:A=>{var N;return W({},Ps((N=s.slotProps)==null?void 0:N.field,A),Pg(s),{ref:n})},toolbar:W({hidden:!0,ampmInClock:h,toolbarVariant:"desktop"},(O=s.slotProps)==null?void 0:O.toolbar),tabs:W({hidden:!0},(T=s.slotProps)==null?void 0:T.tabs),actionBar:A=>{var N;return W({actions:m},Ps((N=s.slotProps)==null?void 0:N.actionBar,A))}})}),{renderPicker:w}=DD({props:g,valueManager:Zt,valueType:"date-time",getOpenDialogAriaText:kg({utils:i,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:(R=g.localeText)==null?void 0:R.openDatePickerDialogue}),validator:Is,rendererInterceptor:_j});return w()});fv.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,dayOfWeekFormatter:r.func,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,enableAccessibleFieldDOMStructure:r.any,fixedWeekNumber:r.number,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Jn,label:r.node,loading:r.bool,localeText:r.object,maxDate:r.object,maxDateTime:r.object,maxTime:r.object,minDate:r.object,minDateTime:r.object,minTime:r.object,minutesStep:r.number,monthsPerRow:r.oneOf([3,4]),name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onMonthChange:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,onYearChange:r.func,open:r.bool,openTo:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableTime:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:r.shape({day:r.func,hours:r.func,meridiem:r.func,minutes:r.func,month:r.func,seconds:r.func,year:r.func}),views:r.arrayOf(r.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])};function $j(e){return Ye("MuiDialogContent",e)}qe("MuiDialogContent",["root","dividers"]);const Fj=qe("MuiDialogTitle",["root"]),Vj=e=>{const{classes:t,dividers:n}=e;return Xe({root:["root",n&&"dividers"]},$j,t)},Lj=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Qe(({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:{[`.${Fj.root} + &`]:{paddingTop:0}}}]}))),hv=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...l}=o,a={...o,dividers:s},c=Vj(a);return k.jsx(Lj,{className:we(c.root,i),ownerState:a,ref:n,...l})});process.env.NODE_ENV!=="production"&&(hv.propTypes={children:r.node,classes:r.object,className:r.string,dividers:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Bj(e){return Ye("MuiDialog",e)}const Ei=qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),mv=E.createContext({});process.env.NODE_ENV!=="production"&&(mv.displayName="DialogContext");const qj=re(Iu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),zj=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:i,fullScreen:s}=e,l={root:["root"],container:["container",`scroll${Re(n)}`],paper:["paper",`paperScroll${Re(n)}`,`paperWidth${Re(String(o))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return Xe(l,Bj,t)},Uj=re(Du,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Wj=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Re(n.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"}}}]}),Hj=re(pr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Re(n.scroll)}`],t[`paperWidth${Re(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Qe(({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)`,[`&.${Ei.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{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}`,[`&.${Ei.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{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,[`&.${Ei.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),bv=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiDialog"}),i=Sr(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":a,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:p,className:h,disableEscapeKeyDown:b=!1,fullScreen:y=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:w,onClick:x,onClose:O,open:T,PaperComponent:R=pr,PaperProps:A={},scroll:N="paper",TransitionComponent:S=Rr,transitionDuration:v=s,TransitionProps:f,...C}=o,P={...o,disableEscapeKeyDown:b,fullScreen:y,fullWidth:m,maxWidth:g,scroll:N},M=zj(P),D=E.useRef(),I=L=>{D.current=L.target===L.currentTarget},j=L=>{x&&x(L),D.current&&(D.current=null,w&&w(L),O&&O(L,"backdropClick"))},$=wo(a),F=E.useMemo(()=>({titleId:$}),[$]);return k.jsx(Uj,{className:we(M.root,h),closeAfterTransition:!0,components:{Backdrop:qj},componentsProps:{backdrop:{transitionDuration:v,as:u,...d}},disableEscapeKeyDown:b,onClose:O,open:T,ref:n,onClick:j,ownerState:P,...C,children:k.jsx(S,{appear:!0,in:T,timeout:v,role:"presentation",...f,children:k.jsx(Wj,{className:we(M.container),onMouseDown:I,ownerState:P,children:k.jsx(Hj,{as:R,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":$,"aria-modal":c,...A,className:we(M.paper,A.className),ownerState:P,children:k.jsx(mv.Provider,{value:F,children:p})})})})})});process.env.NODE_ENV!=="production"&&(bv.propTypes={"aria-describedby":r.string,"aria-labelledby":r.string,"aria-modal":r.oneOfType([r.oneOf(["false","true"]),r.bool]),BackdropComponent:r.elementType,BackdropProps:r.object,children:r.node,classes:r.object,className:r.string,disableEscapeKeyDown:r.bool,fullScreen:r.bool,fullWidth:r.bool,maxWidth:r.oneOfType([r.oneOf(["xs","sm","md","lg","xl",!1]),r.string]),onBackdropClick:r.func,onClick:r.func,onClose:r.func,open:r.bool.isRequired,PaperComponent:r.elementType,PaperProps:r.object,scroll:r.oneOf(["body","paper"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object});const Yj=re(bv)({[`& .${Ei.container}`]:{outline:0},[`& .${Ei.paper}`]:{outline:0,minWidth:Vs}}),Kj=re(hv)({"&:first-of-type":{padding:0}});function Gj(e){const{children:t,onDismiss:n,open:o,slots:i,slotProps:s}=e,l=(i==null?void 0:i.dialog)??Yj,a=(i==null?void 0:i.mobileTransition)??Rr;return k.jsx(l,W({open:o,onClose:n},s==null?void 0:s.dialog,{TransitionComponent:a,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:k.jsx(Kj,{children:t})}))}const Xj=["props","getOpenDialogAriaText"],Qj=e=>{var B;let{props:t,getOpenDialogAriaText:n}=e,o=Le(e,Xj);const{slots:i,slotProps:s,className:l,sx:a,format:c,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:p,onSelectedSectionsChange:h,timezone:b,name:y,label:m,inputRef:g,readOnly:w,disabled:x,localeText:O}=t,T=E.useRef(null),R=Zr(),A=((B=s==null?void 0:s.toolbar)==null?void 0:B.hidden)??!1,{open:N,actions:S,layoutProps:v,renderCurrentView:f,fieldProps:C,contextValue:P}=Uy(W({},o,{props:t,fieldRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),M=i.field,D=wt({elementType:M,externalSlotProps:s==null?void 0:s.field,additionalProps:W({},C,A&&{id:R},!(x||w)&&{onClick:S.onOpen,onKeyDown:XE(S.onOpen)},{readOnly:w??!0,disabled:x,className:l,sx:a,format:c,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:p,onSelectedSectionsChange:h,timezone:b,label:m,name:y},g?{inputRef:g}:{}),ownerState:t});D.inputProps=W({},D.inputProps,{"aria-label":n(C.value)});const I=W({textField:i.textField},D.slots),j=i.layout??yd;let $=R;A&&(m?$=`${R}-label`:$=void 0);const F=W({},s,{toolbar:W({},s==null?void 0:s.toolbar,{titleId:R}),mobilePaper:W({"aria-labelledby":$},s==null?void 0:s.mobilePaper)}),L=nn(T,D.unstableFieldRef);return{renderPicker:()=>k.jsxs(Ng,{contextValue:P,localeText:O,children:[k.jsx(M,W({},D,{slots:I,slotProps:F,unstableFieldRef:L})),k.jsx(Gj,W({},S,{open:N,slots:i,slotProps:F,children:k.jsx(j,W({},v,F==null?void 0:F.layout,{slots:i,slotProps:F,children:f()}))}))]})}},gv=E.forwardRef(function(t,n){var d,p,h;const o=an(),i=Ot(),s=sy(t,"MuiMobileDateTimePicker"),l=W({day:ao,month:ao,year:ao,hours:xd,minutes:xd,seconds:xd},s.viewRenderers),a=s.ampmInClock??!1,c=W({},s,{viewRenderers:l,format:Jy(i,s),ampmInClock:a,slots:W({field:nd},s.slots),slotProps:W({},s.slotProps,{field:b=>{var y;return W({},Ps((y=s.slotProps)==null?void 0:y.field,b),Pg(s),{ref:n})},toolbar:W({hidden:!1,ampmInClock:a},(d=s.slotProps)==null?void 0:d.toolbar),tabs:W({hidden:!1},(p=s.slotProps)==null?void 0:p.tabs)})}),{renderPicker:u}=Qj({props:c,valueManager:Zt,valueType:"date-time",getOpenDialogAriaText:kg({utils:i,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:(h=c.localeText)==null?void 0:h.openDatePickerDialogue}),validator:Is});return u()});gv.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,dayOfWeekFormatter:r.func,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,enableAccessibleFieldDOMStructure:r.any,fixedWeekNumber:r.number,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Jn,label:r.node,loading:r.bool,localeText:r.object,maxDate:r.object,maxDateTime:r.object,maxTime:r.object,minDate:r.object,minDateTime:r.object,minTime:r.object,minutesStep:r.number,monthsPerRow:r.oneOf([3,4]),name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onMonthChange:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,onYearChange:r.func,open:r.bool,openTo:r.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableTime:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:r.shape({day:r.func,hours:r.func,minutes:r.func,month:r.func,seconds:r.func,year:r.func}),views:r.arrayOf(r.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])};const Zj=["desktopModeMediaQuery"],yv=E.forwardRef(function(t,n){const o=lt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=QE}=o,s=Le(o,Zj);return rg(i,{defaultMatches:!0})?k.jsx(fv,W({ref:n},s)):k.jsx(gv,W({ref:n},s))});process.env.NODE_ENV!=="production"&&(yv.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,dayOfWeekFormatter:r.func,defaultValue:r.object,desktopModeMediaQuery:r.string,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,enableAccessibleFieldDOMStructure:r.any,fixedWeekNumber:r.number,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Jn,label:r.node,loading:r.bool,localeText:r.object,maxDate:r.object,maxDateTime:r.object,maxTime:r.object,minDate:r.object,minDateTime:r.object,minTime:r.object,minutesStep:r.number,monthsPerRow:r.oneOf([3,4]),name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onMonthChange:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,onYearChange:r.func,open:r.bool,openTo:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableTime:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:r.shape({day:r.func,hours:r.func,meridiem:r.func,minutes:r.func,month:r.func,seconds:r.func,year:r.func}),views:r.arrayOf(r.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});var Zs={exports:{}},Jj=Zs.exports,vv;function eA(){return vv||(vv=1,function(e,t){(function(n,o){e.exports=o()})(Jj,function(){var n=1e3,o=6e4,i=36e5,s="millisecond",l="second",a="minute",c="hour",u="day",d="week",p="month",h="quarter",b="year",y="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var I=["th","st","nd","rd"],j=D%100;return"["+D+(I[(j-20)%10]||I[j]||I[0])+"]"}},O=function(D,I,j){var $=String(D);return!$||$.length>=I?D:""+Array(I+1-$.length).join(j)+D},T={s:O,z:function(D){var I=-D.utcOffset(),j=Math.abs(I),$=Math.floor(j/60),F=j%60;return(I<=0?"+":"-")+O($,2,"0")+":"+O(F,2,"0")},m:function D(I,j){if(I.date()<j.date())return-D(j,I);var $=12*(j.year()-I.year())+(j.month()-I.month()),F=I.clone().add($,p),L=j-F<0,_=I.clone().add($+(L?-1:1),p);return+(-($+(j-F)/(L?F-_:_-F))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:p,y:b,w:d,d:u,D:y,h:c,m:a,s:l,ms:s,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},R="en",A={};A[R]=x;var N="$isDayjsObject",S=function(D){return D instanceof P||!(!D||!D[N])},v=function D(I,j,$){var F;if(!I)return R;if(typeof I=="string"){var L=I.toLowerCase();A[L]&&(F=L),j&&(A[L]=j,F=L);var _=I.split("-");if(!F&&_.length>1)return D(_[0])}else{var B=I.name;A[B]=I,F=B}return!$&&F&&(R=F),F||!$&&R},f=function(D,I){if(S(D))return D.clone();var j=typeof I=="object"?I:{};return j.date=D,j.args=arguments,new P(j)},C=T;C.l=v,C.i=S,C.w=function(D,I){return f(D,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var P=function(){function D(j){this.$L=v(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[N]=!0}var I=D.prototype;return I.parse=function(j){this.$d=function($){var F=$.date,L=$.utc;if(F===null)return new Date(NaN);if(C.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var _=F.match(g);if(_){var B=_[2]-1||0,oe=(_[7]||"0").substring(0,3);return L?new Date(Date.UTC(_[1],B,_[3]||1,_[4]||0,_[5]||0,_[6]||0,oe)):new Date(_[1],B,_[3]||1,_[4]||0,_[5]||0,_[6]||0,oe)}}return new Date(F)}(j),this.init()},I.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},I.$utils=function(){return C},I.isValid=function(){return this.$d.toString()!==m},I.isSame=function(j,$){var F=f(j);return this.startOf($)<=F&&F<=this.endOf($)},I.isAfter=function(j,$){return f(j)<this.startOf($)},I.isBefore=function(j,$){return this.endOf($)<f(j)},I.$g=function(j,$,F){return C.u(j)?this[$]:this.set(F,j)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(j,$){var F=this,L=!!C.u($)||$,_=C.p(j),B=function(H,G){var ue=C.w(F.$u?Date.UTC(F.$y,G,H):new Date(F.$y,G,H),F);return L?ue:ue.endOf(u)},oe=function(H,G){return C.w(F.toDate()[H].apply(F.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(G)),F)},X=this.$W,ee=this.$M,Y=this.$D,J="set"+(this.$u?"UTC":"");switch(_){case b:return L?B(1,0):B(31,11);case p:return L?B(1,ee):B(0,ee+1);case d:var se=this.$locale().weekStart||0,z=(X<se?X+7:X)-se;return B(L?Y-z:Y+(6-z),ee);case u:case y:return oe(J+"Hours",0);case c:return oe(J+"Minutes",1);case a:return oe(J+"Seconds",2);case l:return oe(J+"Milliseconds",3);default:return this.clone()}},I.endOf=function(j){return this.startOf(j,!1)},I.$set=function(j,$){var F,L=C.p(j),_="set"+(this.$u?"UTC":""),B=(F={},F[u]=_+"Date",F[y]=_+"Date",F[p]=_+"Month",F[b]=_+"FullYear",F[c]=_+"Hours",F[a]=_+"Minutes",F[l]=_+"Seconds",F[s]=_+"Milliseconds",F)[L],oe=L===u?this.$D+($-this.$W):$;if(L===p||L===b){var X=this.clone().set(y,1);X.$d[B](oe),X.init(),this.$d=X.set(y,Math.min(this.$D,X.daysInMonth())).$d}else B&&this.$d[B](oe);return this.init(),this},I.set=function(j,$){return this.clone().$set(j,$)},I.get=function(j){return this[C.p(j)]()},I.add=function(j,$){var F,L=this;j=Number(j);var _=C.p($),B=function(ee){var Y=f(L);return C.w(Y.date(Y.date()+Math.round(ee*j)),L)};if(_===p)return this.set(p,this.$M+j);if(_===b)return this.set(b,this.$y+j);if(_===u)return B(1);if(_===d)return B(7);var oe=(F={},F[a]=o,F[c]=i,F[l]=n,F)[_]||1,X=this.$d.getTime()+j*oe;return C.w(X,this)},I.subtract=function(j,$){return this.add(-1*j,$)},I.format=function(j){var $=this,F=this.$locale();if(!this.isValid())return F.invalidDate||m;var L=j||"YYYY-MM-DDTHH:mm:ssZ",_=C.z(this),B=this.$H,oe=this.$m,X=this.$M,ee=F.weekdays,Y=F.months,J=F.meridiem,se=function(G,ue,U,Q){return G&&(G[ue]||G($,L))||U[ue].slice(0,Q)},z=function(G){return C.s(B%12||12,G,"0")},H=J||function(G,ue,U){var Q=G<12?"AM":"PM";return U?Q.toLowerCase():Q};return L.replace(w,function(G,ue){return ue||function(U){switch(U){case"YY":return String($.$y).slice(-2);case"YYYY":return C.s($.$y,4,"0");case"M":return X+1;case"MM":return C.s(X+1,2,"0");case"MMM":return se(F.monthsShort,X,Y,3);case"MMMM":return se(Y,X);case"D":return $.$D;case"DD":return C.s($.$D,2,"0");case"d":return String($.$W);case"dd":return se(F.weekdaysMin,$.$W,ee,2);case"ddd":return se(F.weekdaysShort,$.$W,ee,3);case"dddd":return ee[$.$W];case"H":return String(B);case"HH":return C.s(B,2,"0");case"h":return z(1);case"hh":return z(2);case"a":return H(B,oe,!0);case"A":return H(B,oe,!1);case"m":return String(oe);case"mm":return C.s(oe,2,"0");case"s":return String($.$s);case"ss":return C.s($.$s,2,"0");case"SSS":return C.s($.$ms,3,"0");case"Z":return _}return null}(G)||_.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(j,$,F){var L,_=this,B=C.p($),oe=f(j),X=(oe.utcOffset()-this.utcOffset())*o,ee=this-oe,Y=function(){return C.m(_,oe)};switch(B){case b:L=Y()/12;break;case p:L=Y();break;case h:L=Y()/3;break;case d:L=(ee-X)/6048e5;break;case u:L=(ee-X)/864e5;break;case c:L=ee/i;break;case a:L=ee/o;break;case l:L=ee/n;break;default:L=ee}return F?L:C.a(L)},I.daysInMonth=function(){return this.endOf(p).$D},I.$locale=function(){return A[this.$L]},I.locale=function(j,$){if(!j)return this.$L;var F=this.clone(),L=v(j,$,!0);return L&&(F.$L=L),F},I.clone=function(){return C.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},D}(),M=P.prototype;return f.prototype=M,[["$ms",s],["$s",l],["$m",a],["$H",c],["$W",u],["$M",p],["$y",b],["$D",y]].forEach(function(D){M[D[1]]=function(I){return this.$g(I,D[0],D[1])}}),f.extend=function(D,I){return D.$i||(D(I,P,f),D.$i=!0),f},f.locale=v,f.isDayjs=S,f.unix=function(D){return f(1e3*D)},f.en=A[R],f.Ls=A,f.p={},f})}(Zs)),Zs.exports}var tA=eA();const Lt=qt(tA);var Js={exports:{}},nA=Js.exports,xv;function rA(){return xv||(xv=1,function(e,t){(function(n,o){e.exports=o()})(nA,function(){var n="week",o="year";return function(i,s,l){var a=s.prototype;a.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=l(this).startOf(o).add(1,o).date(u),p=l(this).endOf(n);if(d.isBefore(p))return 1}var h=l(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),b=this.diff(h,n,!0);return b<0?l(this).startOf("week").week():Math.ceil(b)},a.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})}(Js)),Js.exports}var oA=rA();const iA=qt(oA);var ea={exports:{}},sA=ea.exports,Cv;function aA(){return Cv||(Cv=1,function(e,t){(function(n,o){e.exports=o()})(sA,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,l=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},u=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(w){this[g]=+w}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var x=w.match(/([+-]|\d\d)/g),O=60*x[1]+(+x[2]||0);return O===0?0:x[0]==="+"?-O:O}(g)}],h=function(g){var w=c[g];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(g,w){var x,O=c.meridiem;if(O){for(var T=1;T<=24;T+=1)if(g.indexOf(O(T,0,w))>-1){x=T>12;break}}else x=g===(w?"pm":"PM");return x},y={A:[a,function(g){this.afternoon=b(g,!1)}],a:[a,function(g){this.afternoon=b(g,!0)}],Q:[i,function(g){this.month=3*(g-1)+1}],S:[i,function(g){this.milliseconds=100*+g}],SS:[s,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[l,d("seconds")],ss:[l,d("seconds")],m:[l,d("minutes")],mm:[l,d("minutes")],H:[l,d("hours")],h:[l,d("hours")],HH:[l,d("hours")],hh:[l,d("hours")],D:[l,d("day")],DD:[s,d("day")],Do:[a,function(g){var w=c.ordinal,x=g.match(/\d+/);if(this.day=x[0],w)for(var O=1;O<=31;O+=1)w(O).replace(/\[|\]/g,"")===g&&(this.day=O)}],w:[l,d("week")],ww:[s,d("week")],M:[l,d("month")],MM:[s,d("month")],MMM:[a,function(g){var w=h("months"),x=(h("monthsShort")||w.map(function(O){return O.slice(0,3)})).indexOf(g)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[a,function(g){var w=h("months").indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,d("year")],YY:[s,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:p,ZZ:p};function m(g){var w,x;w=g,x=c&&c.formats;for(var O=(g=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(f,C,P){var M=P&&P.toUpperCase();return C||x[P]||n[P]||x[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,I,j){return I||j.slice(1)})})).match(o),T=O.length,R=0;R<T;R+=1){var A=O[R],N=y[A],S=N&&N[0],v=N&&N[1];O[R]=v?{regex:S,parser:v}:A.replace(/^\[|\]$/g,"")}return function(f){for(var C={},P=0,M=0;P<T;P+=1){var D=O[P];if(typeof D=="string")M+=D.length;else{var I=D.regex,j=D.parser,$=f.slice(M),F=I.exec($)[0];j.call(C,F),f=f.replace(F,"")}}return function(L){var _=L.afternoon;if(_!==void 0){var B=L.hours;_?B<12&&(L.hours+=12):B===12&&(L.hours=0),delete L.afternoon}}(C),C}}return function(g,w,x){x.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var O=w.prototype,T=O.parse;O.parse=function(R){var A=R.date,N=R.utc,S=R.args;this.$u=N;var v=S[1];if(typeof v=="string"){var f=S[2]===!0,C=S[3]===!0,P=f||C,M=S[2];C&&(M=S[2]),c=this.$locale(),!f&&M&&(c=x.Ls[M]),this.$d=function($,F,L,_){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*$);var B=m(F)($),oe=B.year,X=B.month,ee=B.day,Y=B.hours,J=B.minutes,se=B.seconds,z=B.milliseconds,H=B.zone,G=B.week,ue=new Date,U=ee||(oe||X?1:ue.getDate()),Q=oe||ue.getFullYear(),q=0;oe&&!X||(q=X>0?X-1:ue.getMonth());var ne,Z=Y||0,te=J||0,le=se||0,fe=z||0;return H?new Date(Date.UTC(Q,q,U,Z,te,le,fe+60*H.offset*1e3)):L?new Date(Date.UTC(Q,q,U,Z,te,le,fe)):(ne=new Date(Q,q,U,Z,te,le,fe),G&&(ne=_(ne).week(G).toDate()),ne)}catch{return new Date("")}}(A,v,N,x),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),P&&A!=this.format(v)&&(this.$d=new Date("")),c={}}else if(v instanceof Array)for(var D=v.length,I=1;I<=D;I+=1){S[1]=v[I-1];var j=x.apply(this,S);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}I===D&&(this.$d=new Date(""))}else T.call(this,R)}}})}(ea)),ea.exports}var lA=aA();const cA=qt(lA);var ta={exports:{}},uA=ta.exports,Sv;function dA(){return Sv||(Sv=1,function(e,t){(function(n,o){e.exports=o()})(uA,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,i,s){var l=i.prototype,a=l.format;s.en.formats=n,l.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(p,h){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,y,m){var g=m&&m.toUpperCase();return y||h[m]||n[m]||h[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,x,O){return x||O.slice(1)})})}(c,u===void 0?{}:u);return a.call(this,d)}}})}(ta)),ta.exports}var pA=dA();const fA=qt(pA);var na={exports:{}},hA=na.exports,wv;function mA(){return wv||(wv=1,function(e,t){(function(n,o){e.exports=o()})(hA,function(){return function(n,o,i){o.prototype.isBetween=function(s,l,a,c){var u=i(s),d=i(l),p=(c=c||"()")[0]==="(",h=c[1]===")";return(p?this.isAfter(u,a):!this.isBefore(u,a))&&(h?this.isBefore(d,a):!this.isAfter(d,a))||(p?this.isBefore(u,a):!this.isAfter(u,a))&&(h?this.isAfter(d,a):!this.isBefore(d,a))}}})}(na)),na.exports}var bA=mA();const gA=qt(bA);var ra={exports:{}},yA=ra.exports,Ov;function vA(){return Ov||(Ov=1,function(e,t){(function(n,o){e.exports=o()})(yA,function(){return function(n,o){var i=o.prototype,s=i.format;i.format=function(l){var a=this,c=this.$locale();if(!this.isValid())return s.bind(this)(l);var u=this.$utils(),d=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return c.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return c.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),p==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return p}});return s.bind(this)(d)}}})}(ra)),ra.exports}var xA=vA();const CA=qt(xA);Lt.extend(fA),Lt.extend(iA),Lt.extend(gA),Lt.extend(CA);const SA={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},wA={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Cd=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
|
|
229
|
+
`),Tv=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
|
|
230
|
+
`),OA=(e,t)=>t?(...n)=>e(...n).locale(t):e;class TA{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=SA,this.setLocaleToValue=o=>{const i=this.getCurrentLocaleCode();return i===o.locale()?o:o.locale(i)},this.hasUTCPlugin=()=>typeof Lt.utc<"u",this.hasTimezonePlugin=()=>typeof Lt.tz<"u",this.isSame=(o,i,s)=>{const l=this.setTimezone(i,this.getTimezone(o));return o.format(s)===l.format(s)},this.cleanTimezone=o=>{switch(o){case"default":return;case"system":return Lt.tz.guess();default:return o}},this.createSystemDate=o=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=Lt.tz.guess();return i!=="UTC"?Lt.tz(o,i):Lt(o)}return Lt(o)},this.createUTCDate=o=>{if(!this.hasUTCPlugin())throw new Error(Cd);return Lt.utc(o)},this.createTZDate=(o,i)=>{if(!this.hasUTCPlugin())throw new Error(Cd);if(!this.hasTimezonePlugin())throw new Error(Tv);const s=o!==void 0&&!o.endsWith("Z");return Lt(o).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const o=Lt.Ls,i=this.locale||"en";let s=o[i];return s===void 0&&(process.env.NODE_ENV!=="production"&&qy(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),s=o.en),s.formats},this.adjustOffset=o=>{if(!this.hasTimezonePlugin())return o;const i=this.getTimezone(o);if(i!=="UTC"){const s=o.tz(this.cleanTimezone(i),!0);if(s.$offset===(o.$offset??0))return o;o.$offset=s.$offset}return o},this.date=(o,i="default")=>{if(o===null)return null;let s;return i==="UTC"?s=this.createUTCDate(o):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(o):s=this.createTZDate(o,i),this.locale===void 0?s:s.locale(this.locale)},this.getInvalidDate=()=>Lt(new Date("Invalid date")),this.getTimezone=o=>{var i;if(this.hasTimezonePlugin()){const s=(i=o.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&o.isUTC()?"UTC":"system"},this.setTimezone=(o,i)=>{if(this.getTimezone(o)===i)return o;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(Cd);return o.utc()}if(i==="system")return o.local();if(!this.hasTimezonePlugin()){if(i==="default")return o;throw new Error(Tv)}return Lt.tz(o,this.cleanTimezone(i))},this.toJsDate=o=>o.toDate(),this.parse=(o,i)=>o===""?null:this.dayjs(o,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=o=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,c,u)=>c||u.slice(1));return o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,a,c)=>{const u=c&&c.toUpperCase();return a||i[c]||s(i[u])})},this.isValid=o=>o==null?!1:o.isValid(),this.format=(o,i)=>this.formatByString(o,this.formats[i]),this.formatByString=(o,i)=>this.dayjs(o).format(i),this.formatNumber=o=>o,this.isEqual=(o,i)=>o===null&&i===null?!0:o===null||i===null?!1:o.toDate().getTime()===i.toDate().getTime(),this.isSameYear=(o,i)=>this.isSame(o,i,"YYYY"),this.isSameMonth=(o,i)=>this.isSame(o,i,"YYYY-MM"),this.isSameDay=(o,i)=>this.isSame(o,i,"YYYY-MM-DD"),this.isSameHour=(o,i)=>o.isSame(i,"hour"),this.isAfter=(o,i)=>o>i,this.isAfterYear=(o,i)=>this.hasUTCPlugin()?!this.isSameYear(o,i)&&o.utc()>i.utc():o.isAfter(i,"year"),this.isAfterDay=(o,i)=>this.hasUTCPlugin()?!this.isSameDay(o,i)&&o.utc()>i.utc():o.isAfter(i,"day"),this.isBefore=(o,i)=>o<i,this.isBeforeYear=(o,i)=>this.hasUTCPlugin()?!this.isSameYear(o,i)&&o.utc()<i.utc():o.isBefore(i,"year"),this.isBeforeDay=(o,i)=>this.hasUTCPlugin()?!this.isSameDay(o,i)&&o.utc()<i.utc():o.isBefore(i,"day"),this.isWithinRange=(o,[i,s])=>o>=i&&o<=s,this.startOfYear=o=>this.adjustOffset(o.startOf("year")),this.startOfMonth=o=>this.adjustOffset(o.startOf("month")),this.startOfWeek=o=>this.adjustOffset(this.setLocaleToValue(o).startOf("week")),this.startOfDay=o=>this.adjustOffset(o.startOf("day")),this.endOfYear=o=>this.adjustOffset(o.endOf("year")),this.endOfMonth=o=>this.adjustOffset(o.endOf("month")),this.endOfWeek=o=>this.adjustOffset(this.setLocaleToValue(o).endOf("week")),this.endOfDay=o=>this.adjustOffset(o.endOf("day")),this.addYears=(o,i)=>this.adjustOffset(i<0?o.subtract(Math.abs(i),"year"):o.add(i,"year")),this.addMonths=(o,i)=>this.adjustOffset(i<0?o.subtract(Math.abs(i),"month"):o.add(i,"month")),this.addWeeks=(o,i)=>this.adjustOffset(i<0?o.subtract(Math.abs(i),"week"):o.add(i,"week")),this.addDays=(o,i)=>this.adjustOffset(i<0?o.subtract(Math.abs(i),"day"):o.add(i,"day")),this.addHours=(o,i)=>this.adjustOffset(i<0?o.subtract(Math.abs(i),"hour"):o.add(i,"hour")),this.addMinutes=(o,i)=>this.adjustOffset(i<0?o.subtract(Math.abs(i),"minute"):o.add(i,"minute")),this.addSeconds=(o,i)=>this.adjustOffset(i<0?o.subtract(Math.abs(i),"second"):o.add(i,"second")),this.getYear=o=>o.year(),this.getMonth=o=>o.month(),this.getDate=o=>o.date(),this.getHours=o=>o.hour(),this.getMinutes=o=>o.minute(),this.getSeconds=o=>o.second(),this.getMilliseconds=o=>o.millisecond(),this.setYear=(o,i)=>this.adjustOffset(o.set("year",i)),this.setMonth=(o,i)=>this.adjustOffset(o.set("month",i)),this.setDate=(o,i)=>this.adjustOffset(o.set("date",i)),this.setHours=(o,i)=>this.adjustOffset(o.set("hour",i)),this.setMinutes=(o,i)=>this.adjustOffset(o.set("minute",i)),this.setSeconds=(o,i)=>this.adjustOffset(o.set("second",i)),this.setMilliseconds=(o,i)=>this.adjustOffset(o.set("millisecond",i)),this.getDaysInMonth=o=>o.daysInMonth(),this.getWeekArray=o=>{const i=this.startOfWeek(this.startOfMonth(o)),s=this.endOfWeek(this.endOfMonth(o));let l=0,a=i;const c=[];for(;a<s;){const u=Math.floor(l/7);c[u]=c[u]||[],c[u].push(a),a=this.addDays(a,1),l+=1}return c},this.getWeekNumber=o=>o.week(),this.getYearRange=([o,i])=>{const s=this.startOfYear(o),l=this.endOfYear(i),a=[];let c=s;for(;this.isBefore(c,l);)a.push(c),c=this.addYears(c,1);return a},this.dayjs=OA(Lt,t),this.locale=t,this.formats=W({},wA,n),Lt.extend(cA)}getDayOfWeek(t){return t.day()+1}}class EA extends _e.Component{constructor(t){super(t);const{model:n,form:o,value:i,setDefault:s}=this.props,{key:l}=o,c=new Date().toISOString().substring(0,16);s(l,n,o,i||c)}render(){const{form:t,error:n,value:o,onChangeValidate:i,localization:{getLocalizedString:s}}=this.props;return k.jsx(Gu,{dateAdapter:TA,children:k.jsx(yv,{label:t.title&&s(t.title),value:o?Lt(o):null,onChange:l=>{const a=l?l.toISOString():"";i(a)},disabled:t.readonly,desktopModeMediaQuery:"@media (min-width: 1px)",slotProps:{textField:{helperText:(n||t.description)&&s(n||t.description),error:!!n,placeholder:t.placeholder&&s(t.placeholder),fullWidth:!0,required:t.required,style:t.style,...t.otherProps},popper:{sx:{"& .MuiTypography-root":{fontSize:"1.2rem"},"& .MuiPickersCalendarHeader-label":{fontSize:"1.1rem"},"& .MuiDayCalendar-weekDayLabel":{fontSize:"1rem"},"& .MuiPickersDay-root":{fontSize:"1rem"},"& .MuiClockNumber-root":{fontSize:"1rem"}}}}})})}}const RA=Ht(EA),PA=Et(k.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"),kA=Et(k.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"),MA=Et(k.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 IA(e){return Ye("MuiCheckbox",e)}const Sd=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),DA=e=>{const{classes:t,indeterminate:n,color:o,size:i}=e,s={root:["root",n&&"indeterminate",`color${Re(o)}`,`size${Re(i)}`]},l=Xe(s,IA,t);return{...t,...l}},jA=re(Vu,{shouldForwardProp:e=>Xt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Re(n.size)}`],n.color!=="default"&&t[`color${Re(n.color)}`]]}})(Qe(({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})`:et(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:et(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t},style:{[`&.${Sd.checked}, &.${Sd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Sd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),AA=k.jsx(kA,{}),NA=k.jsx(PA,{}),_A=k.jsx(MA,{}),Ev=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiCheckbox"}),{checkedIcon:i=AA,color:s="primary",icon:l=NA,indeterminate:a=!1,indeterminateIcon:c=_A,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,...b}=o,y=a?c:l,m=a?c:i,g={...o,disableRipple:p,color:s,indeterminate:a,size:d},w=DA(g);return k.jsx(jA,{type:"checkbox",inputProps:{"data-indeterminate":a,...u},icon:E.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:E.cloneElement(m,{fontSize:m.props.fontSize??d}),ownerState:g,ref:n,className:we(w.root,h),disableRipple:p,...b,classes:w})});process.env.NODE_ENV!=="production"&&(Ev.propTypes={checked:r.bool,checkedIcon:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),defaultChecked:r.bool,disabled:r.bool,disableRipple:r.bool,icon:r.node,id:r.string,indeterminate:r.bool,indeterminateIcon:r.node,inputProps:r.object,inputRef:Yt,onChange:r.func,required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});function $A(e){const{model:t,form:n,value:o,setDefault:i,localization:{getLocalizedString:s},onChangeValidate:l}=e,{key:a}=n;return i(a,t,n,o),k.jsx($u,{row:!0,children:k.jsx(_u,{className:n.className,label:n.title&&s(n.title),control:k.jsx(Ev,{name:n.key.slice(-1)[0],value:n.key.slice(-1)[0],checked:o||!1,disabled:n.readonly,onChange:l}),...n.otherProps})})}const FA=Ht($A),VA=({form:{description:e,variant:t,align:n,color:o,noWrap:i,paragraph:s,otherProps:l}})=>k.jsx(wn,{variant:t,align:n,color:o,noWrap:i,paragraph:s,...l,children:e});function LA(e){return Ye("MuiCard",e)}qe("MuiCard",["root"]);const BA=e=>{const{classes:t}=e;return Xe({root:["root"]},LA,t)},qA=re(pr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),Rv=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...l}=o,a={...o,raised:s},c=BA(a);return k.jsx(qA,{className:we(c.root,i),elevation:s?8:void 0,ref:n,ownerState:a,...l})});process.env.NODE_ENV!=="production"&&(Rv.propTypes={children:r.node,classes:r.object,className:r.string,raised:Mn(r.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const zA=Et(k.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"),Ri="ArrayComponent",Hn={arrayItem:`${Ri}-arrayItem`,deleteItemButton:`${Ri}-deleteItemButton`,addButton:`${Ri}-addButton`,elementsContainer:`${Ri}-elementsContainer`,title:`${Ri}-title`},UA=ns("div")(({theme:e})=>({[`& .${Hn.arrayItem}`]:{position:"relative",padding:e.spacing(),marginTop:e.spacing(),display:"flex"},[`& .${Hn.deleteItemButton}`]:{margin:[[e.spacing(-1),e.spacing(-1),"auto","auto"]]},[`& .${Hn.addButton}`]:{marginLeft:e.spacing()},[`& .${Hn.elementsContainer}`]:{display:"flex",flexWrap:"wrap"},[`& .${Hn.title}`]:{margin:"auto 0"}})),rn=class rn extends _e.Component{constructor(n){super(n);Vt(this,"SEQUENCE",1);Vt(this,"onAppend",()=>{const{form:n,options:o,onChangeValidate:i}=this.props,{model:s}=this.state;let l;if(n&&n.schema&&n.schema.items){const{items:c}=n.schema;c.type&&c.type.indexOf("object")!==-1?(l={},(!o||o.setSchemaDefaults!==!1)&&(l=typeof c.default<"u"?c.default:l,l&&Wt.traverseSchema(c,(u,d)=>{typeof u.default<"u"&&Wt.selectOrSet(d,l,u.default)}))):(c.type&&c.type.indexOf("array")!==-1&&(l=[]),(!o||o.setSchemaDefaults!==!1)&&(l=c.default||l))}const a=s;rn.assignItemId(l),a.push(l),this.setState({model:a}),i(s)});Vt(this,"onDelete",n=>()=>{const{model:o}=this.state,{onChangeValidate:i}=this.props,s=o;s.splice(n,1),this.setState({model:s}),i(o)});Vt(this,"getAddButton",()=>{const{form:n}=this.props,o=n.AddButton||(i=>k.jsx(jr,{className:Hn.addButton,variant:"contained",color:"primary",...i}));return k.jsx(o,{onClick:this.onAppend,children:n.add||"Add"})});const{form:o,model:i}=this.props;this.state={model:Wt.selectOrSet(o.key,i)||[]}}static assignItemId(n){let o=null;return n&&typeof n=="object"&&Array.isArray(n)?o=[...n]:n&&typeof n=="object"&&!n[rn.ITEM_ID]&&(o={...n}),o?(Object.defineProperty(o,rn.ITEM_ID,{enumerable:!1,writable:!0}),rn.SEQUENCE+=1,o[rn.ITEM_ID]=rn.SEQUENCE,o):n}static getDerivedStateFromProps(n,o){const{form:i}=n,s=i.key;if(n.form&&s===o.formKey&&n.model&&n.model[s]===o.model)return null;const l=Wt.selectOrSet(s,n.model)||[];return{formKey:s,model:l.map(rn.assignItemId)}}componentDidMount(){const{form:n,model:o}=this.props;n.startEmpty!==!0&&o.length===0&&this.onAppend()}render(){const{form:n,builder:o,model:i,mapper:s,onChange:l,localization:{getLocalizedString:a}}=this.props,{model:c}=this.state,u=[];for(let d=0;d<c.length;d+=1){const p=c[d],h=n.items.map((b,y)=>{const m=rn.copyWithIndex(b,d);return o(m,i,y,s,l,o,{arrayIndex:d})});u.push(k.jsxs(Rv,{className:Hn.arrayItem,children:[k.jsx("div",{className:Hn.elementsContainer,children:h}),k.jsx(zn,{onClick:this.onDelete(d),className:Hn.deleteItemButton,size:"large",children:k.jsx(zA,{fontSize:"small"})})]},p&&p[rn.ITEM_ID]||d))}return k.jsxs(UA,{children:[k.jsxs("div",{style:{display:"flex"},children:[k.jsx(ur,{required:n.required,className:Hn.title,children:n.title&&a(n.title)}),this.getAddButton()]}),k.jsx("div",{children:u})]})}};Vt(rn,"setIndex",n=>o=>{o.key&&(o.key[o.key.indexOf("")]=n)}),Vt(rn,"copyWithIndex",(n,o)=>{const i=Fi(n);return i.arrayIndex=o,Wt.traverseForm(i,rn.setIndex(o)),i}),Vt(rn,"ITEM_ID",Symbol("_SCHEMAFORM_ITEM_ID"));let wd=rn;const Pv=Ht(wd);var Od={exports:{}};/*!
|
|
210
231
|
Copyright (c) 2018 Jed Watson.
|
|
211
232
|
Licensed under the MIT License (MIT), see
|
|
212
233
|
http://jedwatson.github.io/classnames
|
|
213
|
-
*/var nm;function uC(){return nm||(nm=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(a=i(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var s in a)t.call(a,s)&&a[s]&&(l=i(l,s));return l}function i(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(nc)),nc.exports}var pC=uC();const fC=Jt(pC),om="FieldSet",im={root:`${om}-root`,fields:`${om}-fields`},dC=jo(an)(({theme:e})=>({[`&.${im.root}`]:{marginTop:e.spacing(1)},[`& .${im.fields}`]:{marginLeft:e.spacing(1)}})),am=({form:e,mapper:t,builder:r,model:n,onChange:i,classes:a,localization:{getLocalizedString:l}})=>{const s=e.items.map((u,f)=>r(u,n,f,t,i,r)),c=fC(a.root,e.htmlClass);return N.jsxs(dC,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[N.jsx(Nr,{component:"legend",required:e.required,children:e.title&&l(e.title)}),N.jsx("div",{className:a.fields,children:s})]})};class hC extends we.Component{constructor(r){super(r);Tt(this,"divStyle",{padding:"20px"});this.state={yesChecked:!1,noChecked:!1};const{model:n,form:i,value:a,setDefault:l}=this.props,{key:s}=i;l(s,n,i,a)}static getDerivedStateFromProps(r){return{yesChecked:r.value==="yes",noChecked:r.value==="no"}}displaySwitch(){const{form:{title:r,yesLabel:n,noLabel:i,clearButtonLabel:a,required:l},onChangeValidate:s,value:c,localization:{getLocalizedString:u}}=this.props,{yesChecked:f,noChecked:d}=this.state;return N.jsxs("div",{style:this.divStyle,children:[N.jsx(Nr,{required:l,children:r&&u(r)}),N.jsx("br",{}),N.jsxs(Lr.FormGroup,{children:[N.jsx(Lr.FormControlLabel,{control:N.jsx(Lr.Checkbox,{onClick:y=>{s(y,"yes")},checked:f}),label:n?u(n):"Yes"}),N.jsx(Lr.FormControlLabel,{control:N.jsx(Lr.Checkbox,{onClick:y=>{s(y,"no")},checked:d}),label:i?u(i):"No"})]}),c==="yes"||c==="no"?N.jsx(Lr.Button,{id:"temp",variant:"text",color:"primary",onClick:y=>s(y,"unanswered"),children:a?u(a):"clear response"}):""]})}render(){return N.jsx(Lr.Card,{children:this.displaySwitch()})}}const mC=jt(hC);var oc={exports:{}};/*! react-checkbox-tree - v1.8.0 | 2022 */var sm;function gC(){return sm||(sm=1,function(e,t){/*! For license information please see index.browser.js.LICENSE.txt */(function(r,n){e.exports=n(we)})(self,r=>(()=>{var n={4184:(s,c)=>{var u;(function(){var f={}.hasOwnProperty;function d(){for(var y=[],m=0;m<arguments.length;m++){var b=arguments[m];if(b){var h=typeof b;if(h==="string"||h==="number")y.push(b);else if(Array.isArray(b)){if(b.length){var v=d.apply(null,b);v&&y.push(v)}}else if(h==="object")if(b.toString===Object.prototype.toString)for(var C in b)f.call(b,C)&&b[C]&&y.push(C);else y.push(b.toString())}}return y.join(" ")}s.exports?(d.default=d,s.exports=d):(u=(function(){return d}).apply(c,[]))===void 0||(s.exports=u)})()},8552:(s,c,u)=>{var f=u(852)(u(5639),"DataView");s.exports=f},1989:(s,c,u)=>{var f=u(1789),d=u(401),y=u(7667),m=u(1327),b=u(1866);function h(v){var C=-1,E=v==null?0:v.length;for(this.clear();++C<E;){var S=v[C];this.set(S[0],S[1])}}h.prototype.clear=f,h.prototype.delete=d,h.prototype.get=y,h.prototype.has=m,h.prototype.set=b,s.exports=h},8407:(s,c,u)=>{var f=u(7040),d=u(4125),y=u(2117),m=u(7518),b=u(4705);function h(v){var C=-1,E=v==null?0:v.length;for(this.clear();++C<E;){var S=v[C];this.set(S[0],S[1])}}h.prototype.clear=f,h.prototype.delete=d,h.prototype.get=y,h.prototype.has=m,h.prototype.set=b,s.exports=h},7071:(s,c,u)=>{var f=u(852)(u(5639),"Map");s.exports=f},3369:(s,c,u)=>{var f=u(4785),d=u(1285),y=u(6e3),m=u(9916),b=u(5265);function h(v){var C=-1,E=v==null?0:v.length;for(this.clear();++C<E;){var S=v[C];this.set(S[0],S[1])}}h.prototype.clear=f,h.prototype.delete=d,h.prototype.get=y,h.prototype.has=m,h.prototype.set=b,s.exports=h},3818:(s,c,u)=>{var f=u(852)(u(5639),"Promise");s.exports=f},8525:(s,c,u)=>{var f=u(852)(u(5639),"Set");s.exports=f},8668:(s,c,u)=>{var f=u(3369),d=u(619),y=u(2385);function m(b){var h=-1,v=b==null?0:b.length;for(this.__data__=new f;++h<v;)this.add(b[h])}m.prototype.add=m.prototype.push=d,m.prototype.has=y,s.exports=m},6384:(s,c,u)=>{var f=u(8407),d=u(7465),y=u(3779),m=u(7599),b=u(4758),h=u(4309);function v(C){var E=this.__data__=new f(C);this.size=E.size}v.prototype.clear=d,v.prototype.delete=y,v.prototype.get=m,v.prototype.has=b,v.prototype.set=h,s.exports=v},2705:(s,c,u)=>{var f=u(5639).Symbol;s.exports=f},1149:(s,c,u)=>{var f=u(5639).Uint8Array;s.exports=f},577:(s,c,u)=>{var f=u(852)(u(5639),"WeakMap");s.exports=f},4963:s=>{s.exports=function(c,u){for(var f=-1,d=c==null?0:c.length,y=0,m=[];++f<d;){var b=c[f];u(b,f,c)&&(m[y++]=b)}return m}},4636:(s,c,u)=>{var f=u(2545),d=u(5694),y=u(1469),m=u(4144),b=u(5776),h=u(6719),v=Object.prototype.hasOwnProperty;s.exports=function(C,E){var S=y(C),T=!S&&d(C),w=!S&&!T&&m(C),A=!S&&!T&&!w&&h(C),M=S||T||w||A,O=M?f(C.length,String):[],g=O.length;for(var p in C)!E&&!v.call(C,p)||M&&(p=="length"||w&&(p=="offset"||p=="parent")||A&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||b(p,g))||O.push(p);return O}},2488:s=>{s.exports=function(c,u){for(var f=-1,d=u.length,y=c.length;++f<d;)c[y+f]=u[f];return c}},2908:s=>{s.exports=function(c,u){for(var f=-1,d=c==null?0:c.length;++f<d;)if(u(c[f],f,c))return!0;return!1}},8470:(s,c,u)=>{var f=u(7813);s.exports=function(d,y){for(var m=d.length;m--;)if(f(d[m][0],y))return m;return-1}},8866:(s,c,u)=>{var f=u(2488),d=u(1469);s.exports=function(y,m,b){var h=m(y);return d(y)?h:f(h,b(y))}},4239:(s,c,u)=>{var f=u(2705),d=u(9607),y=u(2333),m=f?f.toStringTag:void 0;s.exports=function(b){return b==null?b===void 0?"[object Undefined]":"[object Null]":m&&m in Object(b)?d(b):y(b)}},9454:(s,c,u)=>{var f=u(4239),d=u(7005);s.exports=function(y){return d(y)&&f(y)=="[object Arguments]"}},939:(s,c,u)=>{var f=u(2492),d=u(7005);s.exports=function y(m,b,h,v,C){return m===b||(m==null||b==null||!d(m)&&!d(b)?m!=m&&b!=b:f(m,b,h,v,y,C))}},2492:(s,c,u)=>{var f=u(6384),d=u(7114),y=u(8351),m=u(6096),b=u(4160),h=u(1469),v=u(4144),C=u(6719),E="[object Arguments]",S="[object Array]",T="[object Object]",w=Object.prototype.hasOwnProperty;s.exports=function(A,M,O,g,p,x){var R=h(A),P=h(M),_=R?S:b(A),k=P?S:b(M),D=(_=_==E?T:_)==T,W=(k=k==E?T:k)==T,Z=_==k;if(Z&&v(A)){if(!v(M))return!1;R=!0,D=!1}if(Z&&!D)return x||(x=new f),R||C(A)?d(A,M,O,g,p,x):y(A,M,_,O,g,p,x);if(!(1&O)){var G=D&&w.call(A,"__wrapped__"),B=W&&w.call(M,"__wrapped__");if(G||B){var Y=G?A.value():A,ae=B?M.value():M;return x||(x=new f),p(Y,ae,O,g,x)}}return!!Z&&(x||(x=new f),m(A,M,O,g,p,x))}},8458:(s,c,u)=>{var f=u(3560),d=u(5346),y=u(3218),m=u(346),b=/^\[object .+?Constructor\]$/,h=Function.prototype,v=Object.prototype,C=h.toString,E=v.hasOwnProperty,S=RegExp("^"+C.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");s.exports=function(T){return!(!y(T)||d(T))&&(f(T)?S:b).test(m(T))}},8749:(s,c,u)=>{var f=u(4239),d=u(1780),y=u(7005),m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1,s.exports=function(b){return y(b)&&d(b.length)&&!!m[f(b)]}},280:(s,c,u)=>{var f=u(5726),d=u(6916),y=Object.prototype.hasOwnProperty;s.exports=function(m){if(!f(m))return d(m);var b=[];for(var h in Object(m))y.call(m,h)&&h!="constructor"&&b.push(h);return b}},2545:s=>{s.exports=function(c,u){for(var f=-1,d=Array(c);++f<c;)d[f]=u(f);return d}},1717:s=>{s.exports=function(c){return function(u){return c(u)}}},4757:s=>{s.exports=function(c,u){return c.has(u)}},4429:(s,c,u)=>{var f=u(5639)["__core-js_shared__"];s.exports=f},7114:(s,c,u)=>{var f=u(8668),d=u(2908),y=u(4757);s.exports=function(m,b,h,v,C,E){var S=1&h,T=m.length,w=b.length;if(T!=w&&!(S&&w>T))return!1;var A=E.get(m),M=E.get(b);if(A&&M)return A==b&&M==m;var O=-1,g=!0,p=2&h?new f:void 0;for(E.set(m,b),E.set(b,m);++O<T;){var x=m[O],R=b[O];if(v)var P=S?v(R,x,O,b,m,E):v(x,R,O,m,b,E);if(P!==void 0){if(P)continue;g=!1;break}if(p){if(!d(b,function(_,k){if(!y(p,k)&&(x===_||C(x,_,h,v,E)))return p.push(k)})){g=!1;break}}else if(x!==R&&!C(x,R,h,v,E)){g=!1;break}}return E.delete(m),E.delete(b),g}},8351:(s,c,u)=>{var f=u(2705),d=u(1149),y=u(7813),m=u(7114),b=u(8776),h=u(1814),v=f?f.prototype:void 0,C=v?v.valueOf:void 0;s.exports=function(E,S,T,w,A,M,O){switch(T){case"[object DataView]":if(E.byteLength!=S.byteLength||E.byteOffset!=S.byteOffset)return!1;E=E.buffer,S=S.buffer;case"[object ArrayBuffer]":return!(E.byteLength!=S.byteLength||!M(new d(E),new d(S)));case"[object Boolean]":case"[object Date]":case"[object Number]":return y(+E,+S);case"[object Error]":return E.name==S.name&&E.message==S.message;case"[object RegExp]":case"[object String]":return E==S+"";case"[object Map]":var g=b;case"[object Set]":var p=1&w;if(g||(g=h),E.size!=S.size&&!p)return!1;var x=O.get(E);if(x)return x==S;w|=2,O.set(E,S);var R=m(g(E),g(S),w,A,M,O);return O.delete(E),R;case"[object Symbol]":if(C)return C.call(E)==C.call(S)}return!1}},6096:(s,c,u)=>{var f=u(8234),d=Object.prototype.hasOwnProperty;s.exports=function(y,m,b,h,v,C){var E=1&b,S=f(y),T=S.length;if(T!=f(m).length&&!E)return!1;for(var w=T;w--;){var A=S[w];if(!(E?A in m:d.call(m,A)))return!1}var M=C.get(y),O=C.get(m);if(M&&O)return M==m&&O==y;var g=!0;C.set(y,m),C.set(m,y);for(var p=E;++w<T;){var x=y[A=S[w]],R=m[A];if(h)var P=E?h(R,x,A,m,y,C):h(x,R,A,y,m,C);if(!(P===void 0?x===R||v(x,R,b,h,C):P)){g=!1;break}p||(p=A=="constructor")}if(g&&!p){var _=y.constructor,k=m.constructor;_==k||!("constructor"in y)||!("constructor"in m)||typeof _=="function"&&_ instanceof _&&typeof k=="function"&&k instanceof k||(g=!1)}return C.delete(y),C.delete(m),g}},1957:(s,c,u)=>{var f=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;s.exports=f},8234:(s,c,u)=>{var f=u(8866),d=u(9551),y=u(3674);s.exports=function(m){return f(m,y,d)}},5050:(s,c,u)=>{var f=u(7019);s.exports=function(d,y){var m=d.__data__;return f(y)?m[typeof y=="string"?"string":"hash"]:m.map}},852:(s,c,u)=>{var f=u(8458),d=u(7801);s.exports=function(y,m){var b=d(y,m);return f(b)?b:void 0}},9607:(s,c,u)=>{var f=u(2705),d=Object.prototype,y=d.hasOwnProperty,m=d.toString,b=f?f.toStringTag:void 0;s.exports=function(h){var v=y.call(h,b),C=h[b];try{h[b]=void 0;var E=!0}catch{}var S=m.call(h);return E&&(v?h[b]=C:delete h[b]),S}},9551:(s,c,u)=>{var f=u(4963),d=u(479),y=Object.prototype.propertyIsEnumerable,m=Object.getOwnPropertySymbols,b=m?function(h){return h==null?[]:(h=Object(h),f(m(h),function(v){return y.call(h,v)}))}:d;s.exports=b},4160:(s,c,u)=>{var f=u(8552),d=u(7071),y=u(3818),m=u(8525),b=u(577),h=u(4239),v=u(346),C="[object Map]",E="[object Promise]",S="[object Set]",T="[object WeakMap]",w="[object DataView]",A=v(f),M=v(d),O=v(y),g=v(m),p=v(b),x=h;(f&&x(new f(new ArrayBuffer(1)))!=w||d&&x(new d)!=C||y&&x(y.resolve())!=E||m&&x(new m)!=S||b&&x(new b)!=T)&&(x=function(R){var P=h(R),_=P=="[object Object]"?R.constructor:void 0,k=_?v(_):"";if(k)switch(k){case A:return w;case M:return C;case O:return E;case g:return S;case p:return T}return P}),s.exports=x},7801:s=>{s.exports=function(c,u){return c==null?void 0:c[u]}},1789:(s,c,u)=>{var f=u(4536);s.exports=function(){this.__data__=f?f(null):{},this.size=0}},401:s=>{s.exports=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u}},7667:(s,c,u)=>{var f=u(4536),d=Object.prototype.hasOwnProperty;s.exports=function(y){var m=this.__data__;if(f){var b=m[y];return b==="__lodash_hash_undefined__"?void 0:b}return d.call(m,y)?m[y]:void 0}},1327:(s,c,u)=>{var f=u(4536),d=Object.prototype.hasOwnProperty;s.exports=function(y){var m=this.__data__;return f?m[y]!==void 0:d.call(m,y)}},1866:(s,c,u)=>{var f=u(4536);s.exports=function(d,y){var m=this.__data__;return this.size+=this.has(d)?0:1,m[d]=f&&y===void 0?"__lodash_hash_undefined__":y,this}},5776:s=>{var c=/^(?:0|[1-9]\d*)$/;s.exports=function(u,f){var d=typeof u;return!!(f=f??9007199254740991)&&(d=="number"||d!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<f}},7019:s=>{s.exports=function(c){var u=typeof c;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?c!=="__proto__":c===null}},5346:(s,c,u)=>{var f,d=u(4429),y=(f=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"";s.exports=function(m){return!!y&&y in m}},5726:s=>{var c=Object.prototype;s.exports=function(u){var f=u&&u.constructor;return u===(typeof f=="function"&&f.prototype||c)}},7040:s=>{s.exports=function(){this.__data__=[],this.size=0}},4125:(s,c,u)=>{var f=u(8470),d=Array.prototype.splice;s.exports=function(y){var m=this.__data__,b=f(m,y);return!(b<0||(b==m.length-1?m.pop():d.call(m,b,1),--this.size,0))}},2117:(s,c,u)=>{var f=u(8470);s.exports=function(d){var y=this.__data__,m=f(y,d);return m<0?void 0:y[m][1]}},7518:(s,c,u)=>{var f=u(8470);s.exports=function(d){return f(this.__data__,d)>-1}},4705:(s,c,u)=>{var f=u(8470);s.exports=function(d,y){var m=this.__data__,b=f(m,d);return b<0?(++this.size,m.push([d,y])):m[b][1]=y,this}},4785:(s,c,u)=>{var f=u(1989),d=u(8407),y=u(7071);s.exports=function(){this.size=0,this.__data__={hash:new f,map:new(y||d),string:new f}}},1285:(s,c,u)=>{var f=u(5050);s.exports=function(d){var y=f(this,d).delete(d);return this.size-=y?1:0,y}},6e3:(s,c,u)=>{var f=u(5050);s.exports=function(d){return f(this,d).get(d)}},9916:(s,c,u)=>{var f=u(5050);s.exports=function(d){return f(this,d).has(d)}},5265:(s,c,u)=>{var f=u(5050);s.exports=function(d,y){var m=f(this,d),b=m.size;return m.set(d,y),this.size+=m.size==b?0:1,this}},8776:s=>{s.exports=function(c){var u=-1,f=Array(c.size);return c.forEach(function(d,y){f[++u]=[y,d]}),f}},4536:(s,c,u)=>{var f=u(852)(Object,"create");s.exports=f},6916:(s,c,u)=>{var f=u(5569)(Object.keys,Object);s.exports=f},1167:(s,c,u)=>{s=u.nmd(s);var f=u(1957),d=c&&!c.nodeType&&c,y=d&&s&&!s.nodeType&&s,m=y&&y.exports===d&&f.process,b=function(){try{return y&&y.require&&y.require("util").types||m&&m.binding&&m.binding("util")}catch{}}();s.exports=b},2333:s=>{var c=Object.prototype.toString;s.exports=function(u){return c.call(u)}},5569:s=>{s.exports=function(c,u){return function(f){return c(u(f))}}},5639:(s,c,u)=>{var f=u(1957),d=typeof self=="object"&&self&&self.Object===Object&&self,y=f||d||Function("return this")();s.exports=y},619:s=>{s.exports=function(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},2385:s=>{s.exports=function(c){return this.__data__.has(c)}},1814:s=>{s.exports=function(c){var u=-1,f=Array(c.size);return c.forEach(function(d){f[++u]=d}),f}},7465:(s,c,u)=>{var f=u(8407);s.exports=function(){this.__data__=new f,this.size=0}},3779:s=>{s.exports=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f}},7599:s=>{s.exports=function(c){return this.__data__.get(c)}},4758:s=>{s.exports=function(c){return this.__data__.has(c)}},4309:(s,c,u)=>{var f=u(8407),d=u(7071),y=u(3369);s.exports=function(m,b){var h=this.__data__;if(h instanceof f){var v=h.__data__;if(!d||v.length<199)return v.push([m,b]),this.size=++h.size,this;h=this.__data__=new y(v)}return h.set(m,b),this.size=h.size,this}},346:s=>{var c=Function.prototype.toString;s.exports=function(u){if(u!=null){try{return c.call(u)}catch{}try{return u+""}catch{}}return""}},7813:s=>{s.exports=function(c,u){return c===u||c!=c&&u!=u}},5694:(s,c,u)=>{var f=u(9454),d=u(7005),y=Object.prototype,m=y.hasOwnProperty,b=y.propertyIsEnumerable,h=f(function(){return arguments}())?f:function(v){return d(v)&&m.call(v,"callee")&&!b.call(v,"callee")};s.exports=h},1469:s=>{var c=Array.isArray;s.exports=c},8612:(s,c,u)=>{var f=u(3560),d=u(1780);s.exports=function(y){return y!=null&&d(y.length)&&!f(y)}},4144:(s,c,u)=>{s=u.nmd(s);var f=u(5639),d=u(5062),y=c&&!c.nodeType&&c,m=y&&s&&!s.nodeType&&s,b=m&&m.exports===y?f.Buffer:void 0,h=(b?b.isBuffer:void 0)||d;s.exports=h},8446:(s,c,u)=>{var f=u(939);s.exports=function(d,y){return f(d,y)}},3560:(s,c,u)=>{var f=u(4239),d=u(3218);s.exports=function(y){if(!d(y))return!1;var m=f(y);return m=="[object Function]"||m=="[object GeneratorFunction]"||m=="[object AsyncFunction]"||m=="[object Proxy]"}},1780:s=>{s.exports=function(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}},3218:s=>{s.exports=function(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}},7005:s=>{s.exports=function(c){return c!=null&&typeof c=="object"}},6719:(s,c,u)=>{var f=u(8749),d=u(1717),y=u(1167),m=y&&y.isTypedArray,b=m?d(m):f;s.exports=b},3674:(s,c,u)=>{var f=u(4636),d=u(280),y=u(8612);s.exports=function(m){return y(m)?f(m):d(m)}},8306:(s,c,u)=>{var f=u(3369);function d(y,m){if(typeof y!="function"||m!=null&&typeof m!="function")throw new TypeError("Expected a function");var b=function(){var h=arguments,v=m?m.apply(this,h):h[0],C=b.cache;if(C.has(v))return C.get(v);var E=y.apply(this,h);return b.cache=C.set(v,E)||C,E};return b.cache=new(d.Cache||f),b}d.Cache=f,s.exports=d},479:s=>{s.exports=function(){return[]}},5062:s=>{s.exports=function(){return!1}},2703:(s,c,u)=>{var f=u(414);function d(){}function y(){}y.resetWarningCache=d,s.exports=function(){function m(v,C,E,S,T,w){if(w!==f){var A=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 A.name="Invariant Violation",A}}function b(){return m}m.isRequired=m;var h={array:m,bigint:m,bool:m,func:m,number:m,object:m,string:m,symbol:m,any:m,arrayOf:b,element:m,elementType:m,instanceOf:b,node:m,objectOf:b,oneOf:b,oneOfType:b,shape:b,exact:b,checkPropTypes:y,resetWarningCache:d};return h.PropTypes=h,h}},5697:(s,c,u)=>{s.exports=u(2703)()},414:s=>{s.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:s=>{s.exports=r}},i={};function a(s){var c=i[s];if(c!==void 0)return c.exports;var u=i[s]={id:s,loaded:!1,exports:{}};return n[s](u,u.exports,a),u.loaded=!0,u.exports}a.n=s=>{var c=s&&s.__esModule?()=>s.default:()=>s;return a.d(c,{a:c}),c},a.d=(s,c)=>{for(var u in c)a.o(c,u)&&!a.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:c[u]})},a.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),a.o=(s,c)=>Object.prototype.hasOwnProperty.call(s,c),a.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.nmd=s=>(s.paths=[],s.children||(s.children=[]),s);var l={};return(()=>{a.r(l),a.d(l,{default:()=>Xt,expandNodesToLevel:()=>Yt});var s=a(4184),c=a.n(s),u=a(8446),f=a.n(u),d=a(8306),y=a.n(d);let m=(U=21)=>crypto.getRandomValues(new Uint8Array(U)).reduce(($,K)=>$+((K&=63)<36?K.toString(36):K<62?(K-26).toString(36).toUpperCase():K>62?"-":"_"),"");var b=a(5697),h=a.n(b),v=a(9787),C=a.n(v);function E(U){return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},E(U)}var S=["children","title"];function T(){return T=Object.assign?Object.assign.bind():function(U){for(var $=1;$<arguments.length;$++){var K=arguments[$];for(var V in K)Object.prototype.hasOwnProperty.call(K,V)&&(U[V]=K[V])}return U},T.apply(this,arguments)}function w(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function A(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function M(U,$){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},M(U,$)}function O(U,$){if($&&(E($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(U)}function g(U){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},g(U)}function p(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var x=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&M(ee,L)})(je,U);var $,K,V,Se,ke=(V=je,Se=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ee,L=g(V);if(Se){var H=g(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return O(this,ee)});function je(){return w(this,je),ke.apply(this,arguments)}return $=je,(K=[{key:"render",value:function(){var ee=this.props,L=ee.children,H=ee.title,ie=function(Oe,Me){if(Oe==null)return{};var lt,I,J=function(F,q){if(F==null)return{};var re,me,ge={},Ie=Object.keys(F);for(me=0;me<Ie.length;me++)re=Ie[me],q.indexOf(re)>=0||(ge[re]=F[re]);return ge}(Oe,Me);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(Oe);for(I=0;I<fe.length;I++)lt=fe[I],Me.indexOf(lt)>=0||Object.prototype.propertyIsEnumerable.call(Oe,lt)&&(J[lt]=Oe[lt])}return J}(ee,S);return C().createElement("button",T({"aria-label":H,title:H,type:"button"},ie),L)}}])&&A($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(C().PureComponent);p(x,"propTypes",{children:h().node.isRequired,title:h().string}),p(x,"defaultProps",{title:null});const R=x,P={ALL:"all",PARENT:"parent",LEAF:"leaf"};function _(U){this.message=U,this.stack=Error().stack}_.prototype=Object.create(Error.prototype),_.prototype.name="CheckboxTreeError";const k=_;function D(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function W(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}function Z(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function G(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}var B=P;const Y=function(){function U(V){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Z(this,U),this.props=V,this.flatNodes=Se}var $,K;return $=U,K=[{key:"setProps",value:function(V){this.props=V}},{key:"clone",value:function(){var V=this,Se={};return Object.keys(this.flatNodes).forEach(function(ke){var je=V.flatNodes[ke];Se[ke]=function(ee){for(var L=1;L<arguments.length;L++){var H=arguments[L]!=null?arguments[L]:{};L%2?D(Object(H),!0).forEach(function(ie){W(ee,ie,H[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ee,Object.getOwnPropertyDescriptors(H)):D(Object(H)).forEach(function(ie){Object.defineProperty(ee,ie,Object.getOwnPropertyDescriptor(H,ie))})}return ee}({},je)}),new U(this.props,Se)}},{key:"getNode",value:function(V){return this.flatNodes[V]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(V){var Se=this,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(V)&&V.length!==0){var ee=this.props,L=ee.disabled,H=ee.noCascade;V.forEach(function(ie,Oe){var Me=Se.nodeHasChildren(ie);if(Se.flatNodes[ie.value]!==void 0)throw new k("Duplicate value '".concat(ie.value,"' detected. All node values must be unique."));Se.flatNodes[ie.value]={label:ie.label,value:ie.value,children:ie.children,parent:ke,isChild:ke.value!==void 0,isParent:Me,isLeaf:!Me,showCheckbox:ie.showCheckbox===void 0||ie.showCheckbox,disabled:Se.getDisabledState(ie,ke,L,H),treeDepth:je,index:Oe},Se.flattenNodes(ie.children,ie,je+1)})}}},{key:"nodeHasChildren",value:function(V){return Array.isArray(V.children)}},{key:"getDisabledState",value:function(V,Se,ke,je){return!!ke||!(je||!Se.disabled)||!!V.disabled}},{key:"deserializeLists",value:function(V){var Se=this,ke=["checked","expanded"];Object.keys(this.flatNodes).forEach(function(je){ke.forEach(function(ee){Se.flatNodes[je][ee]=!1})}),ke.forEach(function(je){V[je].forEach(function(ee){Se.flatNodes[ee]!==void 0&&(Se.flatNodes[ee][je]=!0)})})}},{key:"serializeList",value:function(V){var Se=this,ke=[];return Object.keys(this.flatNodes).forEach(function(je){Se.flatNodes[je][V]&&ke.push(je)}),ke}},{key:"expandAllNodes",value:function(V){var Se=this;return Object.keys(this.flatNodes).forEach(function(ke){Se.flatNodes[ke].isParent&&(Se.flatNodes[ke].expanded=V)}),this}},{key:"toggleChecked",value:function(V,Se,ke,je){var ee=this,L=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],H=this.flatNodes[V.value],ie=[B.PARENT,B.ALL].indexOf(ke)>-1,Oe=[B.LEAF,B.ALL].indexOf(ke)>-1;if(H.isLeaf||je){if(V.disabled)return this;this.toggleNode(V.value,"checked",Se)}else(ie||H.children.length===0)&&this.toggleNode(V.value,"checked",Se),Oe&&H.children.forEach(function(Me){ee.toggleChecked(Me,Se,ke,je,!1)});return L&&!je&&H.isChild&&ie&&this.toggleParentStatus(H.parent,ke),this}},{key:"toggleParentStatus",value:function(V,Se){var ke=this.flatNodes[V.value];ke.isChild?(Se===B.ALL&&this.toggleNode(V.value,"checked",this.isEveryChildChecked(ke)),this.toggleParentStatus(ke.parent,Se)):this.toggleNode(V.value,"checked",this.isEveryChildChecked(ke))}},{key:"isEveryChildChecked",value:function(V){var Se=this;return V.children.every(function(ke){return Se.getNode(ke.value).checked})}},{key:"toggleNode",value:function(V,Se,ke){return this.flatNodes[V][Se]=ke,this}}],K&&G($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),U}();function ae(U){return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},ae(U)}function oe(){return oe=Object.assign?Object.assign.bind():function(U){for(var $=1;$<arguments.length;$++){var K=arguments[$];for(var V in K)Object.prototype.hasOwnProperty.call(K,V)&&(U[V]=K[V])}return U},oe.apply(this,arguments)}function ne(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function ue(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function ce(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function ye(U,$){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},ye(U,$)}function se(U,$){if($&&(ae($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(U)}function le(U){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},le(U)}function te(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var ve=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&ye(ee,L)})(je,U);var $,K,V,Se,ke=(V=je,Se=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ee,L=le(V);if(Se){var H=le(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return se(this,ee)});function je(){return ue(this,je),ke.apply(this,arguments)}return $=je,K=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var ee=this.props.indeterminate;this.checkbox.indeterminate=ee}},{key:"render",value:function(){var ee=this,L=function(H){for(var ie=1;ie<arguments.length;ie++){var Oe=arguments[ie]!=null?arguments[ie]:{};ie%2?ne(Object(Oe),!0).forEach(function(Me){te(H,Me,Oe[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(Oe)):ne(Object(Oe)).forEach(function(Me){Object.defineProperty(H,Me,Object.getOwnPropertyDescriptor(Oe,Me))})}return H}({},this.props);return delete L.indeterminate,C().createElement("input",oe({},L,{ref:function(H){ee.checkbox=H},type:"checkbox"}))}}],K&&ce($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(C().PureComponent);te(ve,"propTypes",{indeterminate:h().bool}),te(ve,"defaultProps",{indeterminate:!1});const X=ve,Re=h().shape({check:h().node,uncheck:h().node,halfCheck:h().node,expandClose:h().node,expandOpen:h().node,expandAll:h().node,collapseAll:h().node,parentClose:h().node,parentOpen:h().node,leaf:h().node}),z=h().shape({collapseAll:h().string.isRequired,expandAll:h().string.isRequired,toggle:h().string.isRequired});function pe(U){return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},pe(U)}function de(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function Ce(U,$){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},Ce(U,$)}function Te(U,$){if($&&(pe($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $e(U)}function $e(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function He(U){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},He(U)}function Ne(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var be=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&Ce(ee,L)})(je,U);var $,K,V,Se,ke=(V=je,Se=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ee,L=He(V);if(Se){var H=He(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return Te(this,ee)});function je(ee){var L;return function(H,ie){if(!(H instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,je),(L=ke.call(this,ee)).onCheck=L.onCheck.bind($e(L)),L.onCheckboxKeyPress=L.onCheckboxKeyPress.bind($e(L)),L.onCheckboxKeyUp=L.onCheckboxKeyUp.bind($e(L)),L.onClick=L.onClick.bind($e(L)),L.onExpand=L.onExpand.bind($e(L)),L}return $=je,(K=[{key:"onCheck",value:function(){var ee=this.props,L=ee.value;(0,ee.onCheck)({value:L,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(ee){ee.which===32&&ee.preventDefault()}},{key:"onCheckboxKeyUp",value:function(ee){var L=ee.keyCode;[13,32].includes(L)&&this.onCheck()}},{key:"onClick",value:function(){var ee=this.props,L=ee.expandOnClick,H=ee.isParent,ie=ee.value,Oe=ee.onClick;H&&L&&this.onExpand(),Oe({value:ie,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var ee=this.props,L=ee.expanded,H=ee.value;(0,ee.onExpand)({value:H,expanded:!L})}},{key:"getCheckState",value:function(ee){var L=ee.toggle,H=this.props,ie=H.checked,Oe=H.optimisticToggle;return!(ie!==0||!L)||ie===1&&!L||ie===2&&Oe}},{key:"renderCollapseButton",value:function(){var ee=this.props,L=ee.expandDisabled,H=ee.isLeaf,ie=ee.lang;return H?C().createElement("span",{className:"rct-collapse"},C().createElement("span",{className:"rct-icon"})):C().createElement(R,{className:"rct-collapse rct-collapse-btn",disabled:L,title:ie.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var ee=this.props,L=ee.expanded,H=ee.icons,ie=H.expandClose,Oe=H.expandOpen;return L?Oe:ie}},{key:"renderCheckboxIcon",value:function(){var ee=this.props,L=ee.checked,H=ee.icons,ie=H.uncheck,Oe=H.check,Me=H.halfCheck;return L===0?ie:L===1?Oe:Me}},{key:"renderNodeIcon",value:function(){var ee=this.props,L=ee.expanded,H=ee.icon,ie=ee.icons,Oe=ie.leaf,Me=ie.parentClose,lt=ie.parentOpen,I=ee.isLeaf;return H!==null?H:I?Oe:L?lt:Me}},{key:"renderBareLabel",value:function(ee){var L=this.props,H=L.onClick,ie=L.title,Oe=H!==null;return C().createElement("span",{className:"rct-bare-label",title:ie},Oe?C().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},ee):ee)}},{key:"renderCheckboxLabel",value:function(ee){var L=this.props,H=L.checked,ie=L.disabled,Oe=L.title,Me=L.treeId,lt=L.value,I=L.onClick!==null,J="".concat(Me,"-").concat(String(lt).split(" ").join("_")),fe=[C().createElement("label",{key:0,htmlFor:J,title:Oe},C().createElement(X,{checked:H===1,disabled:ie,id:J,indeterminate:H===2,onClick:this.onCheck,onChange:function(){}}),C().createElement("span",{"aria-checked":H===1,"aria-disabled":ie,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),I?null:ee)];return I&&fe.push(C().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},ee)),fe}},{key:"renderLabel",value:function(){var ee=this.props,L=ee.label,H=ee.showCheckbox,ie=[ee.showNodeIcon?C().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,C().createElement("span",{key:1,className:"rct-title"},L)];return H?this.renderCheckboxLabel(ie):this.renderBareLabel(ie)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var ee=this.props,L=ee.className,H=ee.disabled,ie=ee.expanded,Oe=ee.isLeaf,Me=c()({"rct-node":!0,"rct-node-leaf":Oe,"rct-node-parent":!Oe,"rct-node-expanded":!Oe&&ie,"rct-node-collapsed":!Oe&&!ie,"rct-disabled":H},L);return C().createElement("li",{className:Me},C().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&de($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(C().PureComponent);Ne(be,"propTypes",{checked:h().number.isRequired,disabled:h().bool.isRequired,expandDisabled:h().bool.isRequired,expanded:h().bool.isRequired,icons:Re.isRequired,isLeaf:h().bool.isRequired,isParent:h().bool.isRequired,label:h().node.isRequired,lang:z.isRequired,optimisticToggle:h().bool.isRequired,showNodeIcon:h().bool.isRequired,treeId:h().string.isRequired,value:h().oneOfType([h().string,h().number]).isRequired,onCheck:h().func.isRequired,onExpand:h().func.isRequired,children:h().node,className:h().string,expandOnClick:h().bool,icon:h().node,showCheckbox:h().bool,title:h().string,onClick:h().func}),Ne(be,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const Fe=be,Ye=h().oneOfType([h().arrayOf(h().string),h().arrayOf(h().number)]);function ht(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function Ct(U){for(var $=1;$<arguments.length;$++){var K=arguments[$]!=null?arguments[$]:{};$%2?ht(Object(K),!0).forEach(function(V){pt(U,V,K[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(K)):ht(Object(K)).forEach(function(V){Object.defineProperty(U,V,Object.getOwnPropertyDescriptor(K,V))})}return U}function pt(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var Ue={label:h().node.isRequired,value:h().oneOfType([h().string,h().number]).isRequired,disabled:h().bool,icon:h().node,showCheckbox:h().bool,title:h().string};const Be=h().oneOfType([h().shape(Ue),h().shape(Ct(Ct({},Ue),{},{children:h().arrayOf(Ue).isRequired}))]);function st(U){return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},st(U)}function De(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function Ze(U){for(var $=1;$<arguments.length;$++){var K=arguments[$]!=null?arguments[$]:{};$%2?De(Object(K),!0).forEach(function(V){wt(U,V,K[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(K)):De(Object(K)).forEach(function(V){Object.defineProperty(U,V,Object.getOwnPropertyDescriptor(K,V))})}return U}function mt(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function ft(U,$){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},ft(U,$)}function Ee(U,$){if($&&(st($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ae(U)}function Ae(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function at(U){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},at(U)}function wt(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var St=function(U){(function(L,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(H&&H.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),H&&ft(L,H)})(ee,U);var $,K,V,Se,ke,je=(Se=ee,ke=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var L,H=at(Se);if(ke){var ie=at(this).constructor;L=Reflect.construct(H,arguments,ie)}else L=H.apply(this,arguments);return Ee(this,L)});function ee(L){var H;(function(Oe,Me){if(!(Oe instanceof Me))throw new TypeError("Cannot call a class as a function")})(this,ee),H=je.call(this,L);var ie=new Y(L);return ie.flattenNodes(L.nodes),ie.deserializeLists({checked:L.checked,expanded:L.expanded}),H.state={id:L.id||"rct-".concat(m()),model:ie,prevProps:L},H.onCheck=H.onCheck.bind(Ae(H)),H.onExpand=H.onExpand.bind(Ae(H)),H.onNodeClick=H.onNodeClick.bind(Ae(H)),H.onExpandAll=H.onExpandAll.bind(Ae(H)),H.onCollapseAll=H.onCollapseAll.bind(Ae(H)),H.combineMemorized=y()(function(Oe,Me){return Ze(Ze({},Oe),Me)}).bind(Ae(H)),H}return $=ee,K=[{key:"onCheck",value:function(L){var H=this.props,ie=H.checkModel,Oe=H.noCascade,Me=H.onCheck,lt=this.state.model.clone(),I=lt.getNode(L.value);lt.toggleChecked(L,L.checked,ie,Oe),Me(lt.serializeList("checked"),Ze(Ze({},I),L))}},{key:"onExpand",value:function(L){var H=this.props.onExpand,ie=this.state.model.clone(),Oe=ie.getNode(L.value);ie.toggleNode(L.value,"expanded",L.expanded),H(ie.serializeList("expanded"),Ze(Ze({},Oe),L))}},{key:"onNodeClick",value:function(L){(0,this.props.onClick)(Ze(Ze({},this.state.model.getNode(L.value)),L))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var L=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],H=this.props.onExpand;H(this.state.model.clone().expandAllNodes(L).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(L,H){var ie=this.state.model.getNode(L.value);return ie.isLeaf||H||L.children.length===0?ie.checked?1:0:this.isEveryChildChecked(L)?1:this.isSomeChildChecked(L)?2:0}},{key:"isEveryChildChecked",value:function(L){var H=this;return L.children.every(function(ie){return H.state.model.getNode(ie.value).checkState===1})}},{key:"isSomeChildChecked",value:function(L){var H=this;return L.children.some(function(ie){return H.state.model.getNode(ie.value).checkState>0})}},{key:"renderTreeNodes",value:function(L){var H=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=this.props,Me=Oe.expandDisabled,lt=Oe.expandOnClick,I=Oe.icons,J=Oe.lang,fe=Oe.noCascade,F=Oe.onClick,q=Oe.onlyLeafCheckboxes,re=Oe.optimisticToggle,me=Oe.showNodeTitle,ge=Oe.showNodeIcon,Ie=this.state,_e=Ie.id,ze=Ie.model,Et=ee.defaultProps.icons,Rr=L.map(function(vt){var Pt=vt.value,It=ze.getNode(vt.value),Mr=It.isParent?H.renderTreeNodes(vt.children,vt):null;It.checkState=H.determineShallowCheckState(vt,fe);var Kr=q?It.isLeaf:It.showCheckbox;return!ie.value||ze.getNode(ie.value).expanded?C().createElement(Fe,{key:Pt,checked:It.checkState,className:vt.className,disabled:It.disabled,expandDisabled:Me,expandOnClick:lt,expanded:It.expanded,icon:vt.icon,icons:H.combineMemorized(Et,I),label:vt.label,lang:J,optimisticToggle:re,isLeaf:It.isLeaf,isParent:It.isParent,showCheckbox:Kr,showNodeIcon:ge,title:me?vt.title||vt.label:vt.title,treeId:_e,value:vt.value,onCheck:H.onCheck,onClick:F&&H.onNodeClick,onExpand:H.onExpand},Mr):null});return C().createElement("ol",null,Rr)}},{key:"renderExpandAll",value:function(){var L=this.props,H=L.icons,ie=H.expandAll,Oe=H.collapseAll,Me=L.lang;return L.showExpandAll?C().createElement("div",{className:"rct-options"},C().createElement(R,{className:"rct-option rct-option-expand-all",title:Me.expandAll,onClick:this.onExpandAll},ie),C().createElement(R,{className:"rct-option rct-option-collapse-all",title:Me.collapseAll,onClick:this.onCollapseAll},Oe)):null}},{key:"renderHiddenInput",value:function(){var L=this.props,H=L.name,ie=L.nameAsArray;return H===void 0?null:ie?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var L=this.props,H=L.checked,ie=L.name;return H.map(function(Oe){var Me="".concat(ie,"[]");return C().createElement("input",{key:Oe,name:Me,type:"hidden",value:Oe})})}},{key:"renderJoinedHiddenInput",value:function(){var L=this.props,H=L.checked,ie=L.name,Oe=H.join(",");return C().createElement("input",{name:ie,type:"hidden",value:Oe})}},{key:"render",value:function(){var L,H=this.props,ie=H.direction,Oe=H.disabled,Me=H.iconsClass,lt=H.nodes,I=H.nativeCheckboxes,J=this.state.id,fe=this.renderTreeNodes(lt),F=c()((wt(L={"react-checkbox-tree":!0,"rct-disabled":Oe},"rct-icons-".concat(Me),!0),wt(L,"rct-native-display",I),wt(L,"rct-direction-rtl",ie==="rtl"),L));return C().createElement("div",{className:F,id:J},this.renderExpandAll(),this.renderHiddenInput(),fe)}}],V=[{key:"getDerivedStateFromProps",value:function(L,H){var ie=H.model,Oe=H.prevProps,Me=L.disabled,lt=L.id,I=L.nodes,J=Ze(Ze({},H),{},{prevProps:L});return ie.setProps(L),f()(Oe.nodes,I)&&Oe.disabled===Me||(ie.reset(),ie.flattenNodes(I)),lt!==null&&(J=Ze(Ze({},J),{},{id:lt})),ie.deserializeLists({checked:L.checked,expanded:L.expanded}),J}}],K&&mt($.prototype,K),V&&mt($,V),Object.defineProperty($,"prototype",{writable:!1}),ee}(C().Component);function Bt(U){return function($){if(Array.isArray($))return Rt($)}(U)||function($){if(typeof Symbol<"u"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(U)||function($,K){if($){if(typeof $=="string")return Rt($,K);var V=Object.prototype.toString.call($).slice(8,-1);return V==="Object"&&$.constructor&&(V=$.constructor.name),V==="Map"||V==="Set"?Array.from($):V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V)?Rt($,K):void 0}}(U)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
214
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function
|
|
234
|
+
*/var kv;function WA(){return kv||(kv=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",l=0;l<arguments.length;l++){var a=arguments[l];a&&(s=i(s,o(a)))}return s}function o(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var a in s)t.call(s,a)&&s[a]&&(l=i(l,a));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Od)),Od.exports}var HA=WA();const YA=qt(HA),Mv="FieldSet",Iv={root:`${Mv}-root`,fields:`${Mv}-fields`},KA=ns(wr)(({theme:e})=>({[`&.${Iv.root}`]:{marginTop:e.spacing(1)},[`& .${Iv.fields}`]:{marginLeft:e.spacing(1)}})),Dv=({form:e,mapper:t,builder:n,model:o,onChange:i,classes:s,localization:{getLocalizedString:l}})=>{const a=e.items.map((u,d)=>n(u,o,d,t,i,n)),c=YA(s.root,e.htmlClass);return k.jsxs(KA,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[k.jsx(ur,{component:"legend",required:e.required,children:e.title&&l(e.title)}),k.jsx("div",{className:s.fields,children:a})]})};class GA extends _e.Component{constructor(n){super(n);Vt(this,"divStyle",{padding:"20px"});this.state={yesChecked:!1,noChecked:!1};const{model:o,form:i,value:s,setDefault:l}=this.props,{key:a}=i;l(a,o,i,s)}static getDerivedStateFromProps(n){return{yesChecked:n.value==="yes",noChecked:n.value==="no"}}displaySwitch(){const{form:{title:n,yesLabel:o,noLabel:i,clearButtonLabel:s,required:l},onChangeValidate:a,value:c,localization:{getLocalizedString:u}}=this.props,{yesChecked:d,noChecked:p}=this.state;return k.jsxs("div",{style:this.divStyle,children:[k.jsx(ur,{required:l,children:n&&u(n)}),k.jsx("br",{}),k.jsxs(gr.FormGroup,{children:[k.jsx(gr.FormControlLabel,{control:k.jsx(gr.Checkbox,{onClick:h=>{a(h,"yes")},checked:d}),label:o?u(o):"Yes"}),k.jsx(gr.FormControlLabel,{control:k.jsx(gr.Checkbox,{onClick:h=>{a(h,"no")},checked:p}),label:i?u(i):"No"})]}),c==="yes"||c==="no"?k.jsx(gr.Button,{id:"temp",variant:"text",color:"primary",onClick:h=>a(h,"unanswered"),children:s?u(s):"clear response"}):""]})}render(){return k.jsx(gr.Card,{children:this.displaySwitch()})}}const XA=Ht(GA);var Td={exports:{}};/*! react-checkbox-tree - v1.8.0 | 2022 */var jv;function QA(){return jv||(jv=1,function(e,t){/*! For license information please see index.browser.js.LICENSE.txt */(function(n,o){e.exports=o(_e)})(self,n=>(()=>{var o={4184:(a,c)=>{var u;(function(){var d={}.hasOwnProperty;function p(){for(var h=[],b=0;b<arguments.length;b++){var y=arguments[b];if(y){var m=typeof y;if(m==="string"||m==="number")h.push(y);else if(Array.isArray(y)){if(y.length){var g=p.apply(null,y);g&&h.push(g)}}else if(m==="object")if(y.toString===Object.prototype.toString)for(var w in y)d.call(y,w)&&y[w]&&h.push(w);else h.push(y.toString())}}return h.join(" ")}a.exports?(p.default=p,a.exports=p):(u=(function(){return p}).apply(c,[]))===void 0||(a.exports=u)})()},8552:(a,c,u)=>{var d=u(852)(u(5639),"DataView");a.exports=d},1989:(a,c,u)=>{var d=u(1789),p=u(401),h=u(7667),b=u(1327),y=u(1866);function m(g){var w=-1,x=g==null?0:g.length;for(this.clear();++w<x;){var O=g[w];this.set(O[0],O[1])}}m.prototype.clear=d,m.prototype.delete=p,m.prototype.get=h,m.prototype.has=b,m.prototype.set=y,a.exports=m},8407:(a,c,u)=>{var d=u(7040),p=u(4125),h=u(2117),b=u(7518),y=u(4705);function m(g){var w=-1,x=g==null?0:g.length;for(this.clear();++w<x;){var O=g[w];this.set(O[0],O[1])}}m.prototype.clear=d,m.prototype.delete=p,m.prototype.get=h,m.prototype.has=b,m.prototype.set=y,a.exports=m},7071:(a,c,u)=>{var d=u(852)(u(5639),"Map");a.exports=d},3369:(a,c,u)=>{var d=u(4785),p=u(1285),h=u(6e3),b=u(9916),y=u(5265);function m(g){var w=-1,x=g==null?0:g.length;for(this.clear();++w<x;){var O=g[w];this.set(O[0],O[1])}}m.prototype.clear=d,m.prototype.delete=p,m.prototype.get=h,m.prototype.has=b,m.prototype.set=y,a.exports=m},3818:(a,c,u)=>{var d=u(852)(u(5639),"Promise");a.exports=d},8525:(a,c,u)=>{var d=u(852)(u(5639),"Set");a.exports=d},8668:(a,c,u)=>{var d=u(3369),p=u(619),h=u(2385);function b(y){var m=-1,g=y==null?0:y.length;for(this.__data__=new d;++m<g;)this.add(y[m])}b.prototype.add=b.prototype.push=p,b.prototype.has=h,a.exports=b},6384:(a,c,u)=>{var d=u(8407),p=u(7465),h=u(3779),b=u(7599),y=u(4758),m=u(4309);function g(w){var x=this.__data__=new d(w);this.size=x.size}g.prototype.clear=p,g.prototype.delete=h,g.prototype.get=b,g.prototype.has=y,g.prototype.set=m,a.exports=g},2705:(a,c,u)=>{var d=u(5639).Symbol;a.exports=d},1149:(a,c,u)=>{var d=u(5639).Uint8Array;a.exports=d},577:(a,c,u)=>{var d=u(852)(u(5639),"WeakMap");a.exports=d},4963:a=>{a.exports=function(c,u){for(var d=-1,p=c==null?0:c.length,h=0,b=[];++d<p;){var y=c[d];u(y,d,c)&&(b[h++]=y)}return b}},4636:(a,c,u)=>{var d=u(2545),p=u(5694),h=u(1469),b=u(4144),y=u(5776),m=u(6719),g=Object.prototype.hasOwnProperty;a.exports=function(w,x){var O=h(w),T=!O&&p(w),R=!O&&!T&&b(w),A=!O&&!T&&!R&&m(w),N=O||T||R||A,S=N?d(w.length,String):[],v=S.length;for(var f in w)!x&&!g.call(w,f)||N&&(f=="length"||R&&(f=="offset"||f=="parent")||A&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||y(f,v))||S.push(f);return S}},2488:a=>{a.exports=function(c,u){for(var d=-1,p=u.length,h=c.length;++d<p;)c[h+d]=u[d];return c}},2908:a=>{a.exports=function(c,u){for(var d=-1,p=c==null?0:c.length;++d<p;)if(u(c[d],d,c))return!0;return!1}},8470:(a,c,u)=>{var d=u(7813);a.exports=function(p,h){for(var b=p.length;b--;)if(d(p[b][0],h))return b;return-1}},8866:(a,c,u)=>{var d=u(2488),p=u(1469);a.exports=function(h,b,y){var m=b(h);return p(h)?m:d(m,y(h))}},4239:(a,c,u)=>{var d=u(2705),p=u(9607),h=u(2333),b=d?d.toStringTag:void 0;a.exports=function(y){return y==null?y===void 0?"[object Undefined]":"[object Null]":b&&b in Object(y)?p(y):h(y)}},9454:(a,c,u)=>{var d=u(4239),p=u(7005);a.exports=function(h){return p(h)&&d(h)=="[object Arguments]"}},939:(a,c,u)=>{var d=u(2492),p=u(7005);a.exports=function h(b,y,m,g,w){return b===y||(b==null||y==null||!p(b)&&!p(y)?b!=b&&y!=y:d(b,y,m,g,h,w))}},2492:(a,c,u)=>{var d=u(6384),p=u(7114),h=u(8351),b=u(6096),y=u(4160),m=u(1469),g=u(4144),w=u(6719),x="[object Arguments]",O="[object Array]",T="[object Object]",R=Object.prototype.hasOwnProperty;a.exports=function(A,N,S,v,f,C){var P=m(A),M=m(N),D=P?O:y(A),I=M?O:y(N),j=(D=D==x?T:D)==T,$=(I=I==x?T:I)==T,F=D==I;if(F&&g(A)){if(!g(N))return!1;P=!0,j=!1}if(F&&!j)return C||(C=new d),P||w(A)?p(A,N,S,v,f,C):h(A,N,D,S,v,f,C);if(!(1&S)){var L=j&&R.call(A,"__wrapped__"),_=$&&R.call(N,"__wrapped__");if(L||_){var B=L?A.value():A,oe=_?N.value():N;return C||(C=new d),f(B,oe,S,v,C)}}return!!F&&(C||(C=new d),b(A,N,S,v,f,C))}},8458:(a,c,u)=>{var d=u(3560),p=u(5346),h=u(3218),b=u(346),y=/^\[object .+?Constructor\]$/,m=Function.prototype,g=Object.prototype,w=m.toString,x=g.hasOwnProperty,O=RegExp("^"+w.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a.exports=function(T){return!(!h(T)||p(T))&&(d(T)?O:y).test(b(T))}},8749:(a,c,u)=>{var d=u(4239),p=u(1780),h=u(7005),b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b["[object Arguments]"]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b["[object Function]"]=b["[object Map]"]=b["[object Number]"]=b["[object Object]"]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1,a.exports=function(y){return h(y)&&p(y.length)&&!!b[d(y)]}},280:(a,c,u)=>{var d=u(5726),p=u(6916),h=Object.prototype.hasOwnProperty;a.exports=function(b){if(!d(b))return p(b);var y=[];for(var m in Object(b))h.call(b,m)&&m!="constructor"&&y.push(m);return y}},2545:a=>{a.exports=function(c,u){for(var d=-1,p=Array(c);++d<c;)p[d]=u(d);return p}},1717:a=>{a.exports=function(c){return function(u){return c(u)}}},4757:a=>{a.exports=function(c,u){return c.has(u)}},4429:(a,c,u)=>{var d=u(5639)["__core-js_shared__"];a.exports=d},7114:(a,c,u)=>{var d=u(8668),p=u(2908),h=u(4757);a.exports=function(b,y,m,g,w,x){var O=1&m,T=b.length,R=y.length;if(T!=R&&!(O&&R>T))return!1;var A=x.get(b),N=x.get(y);if(A&&N)return A==y&&N==b;var S=-1,v=!0,f=2&m?new d:void 0;for(x.set(b,y),x.set(y,b);++S<T;){var C=b[S],P=y[S];if(g)var M=O?g(P,C,S,y,b,x):g(C,P,S,b,y,x);if(M!==void 0){if(M)continue;v=!1;break}if(f){if(!p(y,function(D,I){if(!h(f,I)&&(C===D||w(C,D,m,g,x)))return f.push(I)})){v=!1;break}}else if(C!==P&&!w(C,P,m,g,x)){v=!1;break}}return x.delete(b),x.delete(y),v}},8351:(a,c,u)=>{var d=u(2705),p=u(1149),h=u(7813),b=u(7114),y=u(8776),m=u(1814),g=d?d.prototype:void 0,w=g?g.valueOf:void 0;a.exports=function(x,O,T,R,A,N,S){switch(T){case"[object DataView]":if(x.byteLength!=O.byteLength||x.byteOffset!=O.byteOffset)return!1;x=x.buffer,O=O.buffer;case"[object ArrayBuffer]":return!(x.byteLength!=O.byteLength||!N(new p(x),new p(O)));case"[object Boolean]":case"[object Date]":case"[object Number]":return h(+x,+O);case"[object Error]":return x.name==O.name&&x.message==O.message;case"[object RegExp]":case"[object String]":return x==O+"";case"[object Map]":var v=y;case"[object Set]":var f=1&R;if(v||(v=m),x.size!=O.size&&!f)return!1;var C=S.get(x);if(C)return C==O;R|=2,S.set(x,O);var P=b(v(x),v(O),R,A,N,S);return S.delete(x),P;case"[object Symbol]":if(w)return w.call(x)==w.call(O)}return!1}},6096:(a,c,u)=>{var d=u(8234),p=Object.prototype.hasOwnProperty;a.exports=function(h,b,y,m,g,w){var x=1&y,O=d(h),T=O.length;if(T!=d(b).length&&!x)return!1;for(var R=T;R--;){var A=O[R];if(!(x?A in b:p.call(b,A)))return!1}var N=w.get(h),S=w.get(b);if(N&&S)return N==b&&S==h;var v=!0;w.set(h,b),w.set(b,h);for(var f=x;++R<T;){var C=h[A=O[R]],P=b[A];if(m)var M=x?m(P,C,A,b,h,w):m(C,P,A,h,b,w);if(!(M===void 0?C===P||g(C,P,y,m,w):M)){v=!1;break}f||(f=A=="constructor")}if(v&&!f){var D=h.constructor,I=b.constructor;D==I||!("constructor"in h)||!("constructor"in b)||typeof D=="function"&&D instanceof D&&typeof I=="function"&&I instanceof I||(v=!1)}return w.delete(h),w.delete(b),v}},1957:(a,c,u)=>{var d=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;a.exports=d},8234:(a,c,u)=>{var d=u(8866),p=u(9551),h=u(3674);a.exports=function(b){return d(b,h,p)}},5050:(a,c,u)=>{var d=u(7019);a.exports=function(p,h){var b=p.__data__;return d(h)?b[typeof h=="string"?"string":"hash"]:b.map}},852:(a,c,u)=>{var d=u(8458),p=u(7801);a.exports=function(h,b){var y=p(h,b);return d(y)?y:void 0}},9607:(a,c,u)=>{var d=u(2705),p=Object.prototype,h=p.hasOwnProperty,b=p.toString,y=d?d.toStringTag:void 0;a.exports=function(m){var g=h.call(m,y),w=m[y];try{m[y]=void 0;var x=!0}catch{}var O=b.call(m);return x&&(g?m[y]=w:delete m[y]),O}},9551:(a,c,u)=>{var d=u(4963),p=u(479),h=Object.prototype.propertyIsEnumerable,b=Object.getOwnPropertySymbols,y=b?function(m){return m==null?[]:(m=Object(m),d(b(m),function(g){return h.call(m,g)}))}:p;a.exports=y},4160:(a,c,u)=>{var d=u(8552),p=u(7071),h=u(3818),b=u(8525),y=u(577),m=u(4239),g=u(346),w="[object Map]",x="[object Promise]",O="[object Set]",T="[object WeakMap]",R="[object DataView]",A=g(d),N=g(p),S=g(h),v=g(b),f=g(y),C=m;(d&&C(new d(new ArrayBuffer(1)))!=R||p&&C(new p)!=w||h&&C(h.resolve())!=x||b&&C(new b)!=O||y&&C(new y)!=T)&&(C=function(P){var M=m(P),D=M=="[object Object]"?P.constructor:void 0,I=D?g(D):"";if(I)switch(I){case A:return R;case N:return w;case S:return x;case v:return O;case f:return T}return M}),a.exports=C},7801:a=>{a.exports=function(c,u){return c==null?void 0:c[u]}},1789:(a,c,u)=>{var d=u(4536);a.exports=function(){this.__data__=d?d(null):{},this.size=0}},401:a=>{a.exports=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u}},7667:(a,c,u)=>{var d=u(4536),p=Object.prototype.hasOwnProperty;a.exports=function(h){var b=this.__data__;if(d){var y=b[h];return y==="__lodash_hash_undefined__"?void 0:y}return p.call(b,h)?b[h]:void 0}},1327:(a,c,u)=>{var d=u(4536),p=Object.prototype.hasOwnProperty;a.exports=function(h){var b=this.__data__;return d?b[h]!==void 0:p.call(b,h)}},1866:(a,c,u)=>{var d=u(4536);a.exports=function(p,h){var b=this.__data__;return this.size+=this.has(p)?0:1,b[p]=d&&h===void 0?"__lodash_hash_undefined__":h,this}},5776:a=>{var c=/^(?:0|[1-9]\d*)$/;a.exports=function(u,d){var p=typeof u;return!!(d=d??9007199254740991)&&(p=="number"||p!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<d}},7019:a=>{a.exports=function(c){var u=typeof c;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?c!=="__proto__":c===null}},5346:(a,c,u)=>{var d,p=u(4429),h=(d=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"";a.exports=function(b){return!!h&&h in b}},5726:a=>{var c=Object.prototype;a.exports=function(u){var d=u&&u.constructor;return u===(typeof d=="function"&&d.prototype||c)}},7040:a=>{a.exports=function(){this.__data__=[],this.size=0}},4125:(a,c,u)=>{var d=u(8470),p=Array.prototype.splice;a.exports=function(h){var b=this.__data__,y=d(b,h);return!(y<0||(y==b.length-1?b.pop():p.call(b,y,1),--this.size,0))}},2117:(a,c,u)=>{var d=u(8470);a.exports=function(p){var h=this.__data__,b=d(h,p);return b<0?void 0:h[b][1]}},7518:(a,c,u)=>{var d=u(8470);a.exports=function(p){return d(this.__data__,p)>-1}},4705:(a,c,u)=>{var d=u(8470);a.exports=function(p,h){var b=this.__data__,y=d(b,p);return y<0?(++this.size,b.push([p,h])):b[y][1]=h,this}},4785:(a,c,u)=>{var d=u(1989),p=u(8407),h=u(7071);a.exports=function(){this.size=0,this.__data__={hash:new d,map:new(h||p),string:new d}}},1285:(a,c,u)=>{var d=u(5050);a.exports=function(p){var h=d(this,p).delete(p);return this.size-=h?1:0,h}},6e3:(a,c,u)=>{var d=u(5050);a.exports=function(p){return d(this,p).get(p)}},9916:(a,c,u)=>{var d=u(5050);a.exports=function(p){return d(this,p).has(p)}},5265:(a,c,u)=>{var d=u(5050);a.exports=function(p,h){var b=d(this,p),y=b.size;return b.set(p,h),this.size+=b.size==y?0:1,this}},8776:a=>{a.exports=function(c){var u=-1,d=Array(c.size);return c.forEach(function(p,h){d[++u]=[h,p]}),d}},4536:(a,c,u)=>{var d=u(852)(Object,"create");a.exports=d},6916:(a,c,u)=>{var d=u(5569)(Object.keys,Object);a.exports=d},1167:(a,c,u)=>{a=u.nmd(a);var d=u(1957),p=c&&!c.nodeType&&c,h=p&&a&&!a.nodeType&&a,b=h&&h.exports===p&&d.process,y=function(){try{return h&&h.require&&h.require("util").types||b&&b.binding&&b.binding("util")}catch{}}();a.exports=y},2333:a=>{var c=Object.prototype.toString;a.exports=function(u){return c.call(u)}},5569:a=>{a.exports=function(c,u){return function(d){return c(u(d))}}},5639:(a,c,u)=>{var d=u(1957),p=typeof self=="object"&&self&&self.Object===Object&&self,h=d||p||Function("return this")();a.exports=h},619:a=>{a.exports=function(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},2385:a=>{a.exports=function(c){return this.__data__.has(c)}},1814:a=>{a.exports=function(c){var u=-1,d=Array(c.size);return c.forEach(function(p){d[++u]=p}),d}},7465:(a,c,u)=>{var d=u(8407);a.exports=function(){this.__data__=new d,this.size=0}},3779:a=>{a.exports=function(c){var u=this.__data__,d=u.delete(c);return this.size=u.size,d}},7599:a=>{a.exports=function(c){return this.__data__.get(c)}},4758:a=>{a.exports=function(c){return this.__data__.has(c)}},4309:(a,c,u)=>{var d=u(8407),p=u(7071),h=u(3369);a.exports=function(b,y){var m=this.__data__;if(m instanceof d){var g=m.__data__;if(!p||g.length<199)return g.push([b,y]),this.size=++m.size,this;m=this.__data__=new h(g)}return m.set(b,y),this.size=m.size,this}},346:a=>{var c=Function.prototype.toString;a.exports=function(u){if(u!=null){try{return c.call(u)}catch{}try{return u+""}catch{}}return""}},7813:a=>{a.exports=function(c,u){return c===u||c!=c&&u!=u}},5694:(a,c,u)=>{var d=u(9454),p=u(7005),h=Object.prototype,b=h.hasOwnProperty,y=h.propertyIsEnumerable,m=d(function(){return arguments}())?d:function(g){return p(g)&&b.call(g,"callee")&&!y.call(g,"callee")};a.exports=m},1469:a=>{var c=Array.isArray;a.exports=c},8612:(a,c,u)=>{var d=u(3560),p=u(1780);a.exports=function(h){return h!=null&&p(h.length)&&!d(h)}},4144:(a,c,u)=>{a=u.nmd(a);var d=u(5639),p=u(5062),h=c&&!c.nodeType&&c,b=h&&a&&!a.nodeType&&a,y=b&&b.exports===h?d.Buffer:void 0,m=(y?y.isBuffer:void 0)||p;a.exports=m},8446:(a,c,u)=>{var d=u(939);a.exports=function(p,h){return d(p,h)}},3560:(a,c,u)=>{var d=u(4239),p=u(3218);a.exports=function(h){if(!p(h))return!1;var b=d(h);return b=="[object Function]"||b=="[object GeneratorFunction]"||b=="[object AsyncFunction]"||b=="[object Proxy]"}},1780:a=>{a.exports=function(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}},3218:a=>{a.exports=function(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}},7005:a=>{a.exports=function(c){return c!=null&&typeof c=="object"}},6719:(a,c,u)=>{var d=u(8749),p=u(1717),h=u(1167),b=h&&h.isTypedArray,y=b?p(b):d;a.exports=y},3674:(a,c,u)=>{var d=u(4636),p=u(280),h=u(8612);a.exports=function(b){return h(b)?d(b):p(b)}},8306:(a,c,u)=>{var d=u(3369);function p(h,b){if(typeof h!="function"||b!=null&&typeof b!="function")throw new TypeError("Expected a function");var y=function(){var m=arguments,g=b?b.apply(this,m):m[0],w=y.cache;if(w.has(g))return w.get(g);var x=h.apply(this,m);return y.cache=w.set(g,x)||w,x};return y.cache=new(p.Cache||d),y}p.Cache=d,a.exports=p},479:a=>{a.exports=function(){return[]}},5062:a=>{a.exports=function(){return!1}},2703:(a,c,u)=>{var d=u(414);function p(){}function h(){}h.resetWarningCache=p,a.exports=function(){function b(g,w,x,O,T,R){if(R!==d){var A=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 A.name="Invariant Violation",A}}function y(){return b}b.isRequired=b;var m={array:b,bigint:b,bool:b,func:b,number:b,object:b,string:b,symbol:b,any:b,arrayOf:y,element:b,elementType:b,instanceOf:y,node:b,objectOf:y,oneOf:y,oneOfType:y,shape:y,exact:y,checkPropTypes:h,resetWarningCache:p};return m.PropTypes=m,m}},5697:(a,c,u)=>{a.exports=u(2703)()},414:a=>{a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:a=>{a.exports=n}},i={};function s(a){var c=i[a];if(c!==void 0)return c.exports;var u=i[a]={id:a,loaded:!1,exports:{}};return o[a](u,u.exports,s),u.loaded=!0,u.exports}s.n=a=>{var c=a&&a.__esModule?()=>a.default:()=>a;return s.d(c,{a:c}),c},s.d=(a,c)=>{for(var u in c)s.o(c,u)&&!s.o(a,u)&&Object.defineProperty(a,u,{enumerable:!0,get:c[u]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(a,c)=>Object.prototype.hasOwnProperty.call(a,c),s.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.nmd=a=>(a.paths=[],a.children||(a.children=[]),a);var l={};return(()=>{s.r(l),s.d(l,{default:()=>Jt,expandNodesToLevel:()=>Rt});var a=s(4184),c=s.n(a),u=s(8446),d=s.n(u),p=s(8306),h=s.n(p);let b=(de=21)=>crypto.getRandomValues(new Uint8Array(de)).reduce((K,me)=>K+((me&=63)<36?me.toString(36):me<62?(me-26).toString(36).toUpperCase():me>62?"-":"_"),"");var y=s(5697),m=s.n(y),g=s(9787),w=s.n(g);function x(de){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},x(de)}var O=["children","title"];function T(){return T=Object.assign?Object.assign.bind():function(de){for(var K=1;K<arguments.length;K++){var me=arguments[K];for(var pe in me)Object.prototype.hasOwnProperty.call(me,pe)&&(de[pe]=me[pe])}return de},T.apply(this,arguments)}function R(de,K){if(!(de instanceof K))throw new TypeError("Cannot call a class as a function")}function A(de,K){for(var me=0;me<K.length;me++){var pe=K[me];pe.enumerable=pe.enumerable||!1,pe.configurable=!0,"value"in pe&&(pe.writable=!0),Object.defineProperty(de,pe.key,pe)}}function N(de,K){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(me,pe){return me.__proto__=pe,me},N(de,K)}function S(de,K){if(K&&(x(K)==="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(me){if(me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me}(de)}function v(de){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},v(de)}function f(de,K,me){return K in de?Object.defineProperty(de,K,{value:me,enumerable:!0,configurable:!0,writable:!0}):de[K]=me,de}var C=function(de){(function(ve,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");ve.prototype=Object.create(ie&&ie.prototype,{constructor:{value:ve,writable:!0,configurable:!0}}),Object.defineProperty(ve,"prototype",{writable:!1}),ie&&N(ve,ie)})(He,de);var K,me,pe,Ne,Ue=(pe=He,Ne=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ve,ie=v(pe);if(Ne){var he=v(this).constructor;ve=Reflect.construct(ie,arguments,he)}else ve=ie.apply(this,arguments);return S(this,ve)});function He(){return R(this,He),Ue.apply(this,arguments)}return K=He,(me=[{key:"render",value:function(){var ve=this.props,ie=ve.children,he=ve.title,Oe=function(Ie,Je){if(Ie==null)return{};var Pt,V,be=function(ae,ce){if(ae==null)return{};var Ce,ke,Me={},Be=Object.keys(ae);for(ke=0;ke<Be.length;ke++)Ce=Be[ke],ce.indexOf(Ce)>=0||(Me[Ce]=ae[Ce]);return Me}(Ie,Je);if(Object.getOwnPropertySymbols){var Pe=Object.getOwnPropertySymbols(Ie);for(V=0;V<Pe.length;V++)Pt=Pe[V],Je.indexOf(Pt)>=0||Object.prototype.propertyIsEnumerable.call(Ie,Pt)&&(be[Pt]=Ie[Pt])}return be}(ve,O);return w().createElement("button",T({"aria-label":he,title:he,type:"button"},Oe),ie)}}])&&A(K.prototype,me),Object.defineProperty(K,"prototype",{writable:!1}),He}(w().PureComponent);f(C,"propTypes",{children:m().node.isRequired,title:m().string}),f(C,"defaultProps",{title:null});const P=C,M={ALL:"all",PARENT:"parent",LEAF:"leaf"};function D(de){this.message=de,this.stack=Error().stack}D.prototype=Object.create(Error.prototype),D.prototype.name="CheckboxTreeError";const I=D;function j(de,K){var me=Object.keys(de);if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(de);K&&(pe=pe.filter(function(Ne){return Object.getOwnPropertyDescriptor(de,Ne).enumerable})),me.push.apply(me,pe)}return me}function $(de,K,me){return K in de?Object.defineProperty(de,K,{value:me,enumerable:!0,configurable:!0,writable:!0}):de[K]=me,de}function F(de,K){if(!(de instanceof K))throw new TypeError("Cannot call a class as a function")}function L(de,K){for(var me=0;me<K.length;me++){var pe=K[me];pe.enumerable=pe.enumerable||!1,pe.configurable=!0,"value"in pe&&(pe.writable=!0),Object.defineProperty(de,pe.key,pe)}}var _=M;const B=function(){function de(pe){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F(this,de),this.props=pe,this.flatNodes=Ne}var K,me;return K=de,me=[{key:"setProps",value:function(pe){this.props=pe}},{key:"clone",value:function(){var pe=this,Ne={};return Object.keys(this.flatNodes).forEach(function(Ue){var He=pe.flatNodes[Ue];Ne[Ue]=function(ve){for(var ie=1;ie<arguments.length;ie++){var he=arguments[ie]!=null?arguments[ie]:{};ie%2?j(Object(he),!0).forEach(function(Oe){$(ve,Oe,he[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ve,Object.getOwnPropertyDescriptors(he)):j(Object(he)).forEach(function(Oe){Object.defineProperty(ve,Oe,Object.getOwnPropertyDescriptor(he,Oe))})}return ve}({},He)}),new de(this.props,Ne)}},{key:"getNode",value:function(pe){return this.flatNodes[pe]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(pe){var Ne=this,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(pe)&&pe.length!==0){var ve=this.props,ie=ve.disabled,he=ve.noCascade;pe.forEach(function(Oe,Ie){var Je=Ne.nodeHasChildren(Oe);if(Ne.flatNodes[Oe.value]!==void 0)throw new I("Duplicate value '".concat(Oe.value,"' detected. All node values must be unique."));Ne.flatNodes[Oe.value]={label:Oe.label,value:Oe.value,children:Oe.children,parent:Ue,isChild:Ue.value!==void 0,isParent:Je,isLeaf:!Je,showCheckbox:Oe.showCheckbox===void 0||Oe.showCheckbox,disabled:Ne.getDisabledState(Oe,Ue,ie,he),treeDepth:He,index:Ie},Ne.flattenNodes(Oe.children,Oe,He+1)})}}},{key:"nodeHasChildren",value:function(pe){return Array.isArray(pe.children)}},{key:"getDisabledState",value:function(pe,Ne,Ue,He){return!!Ue||!(He||!Ne.disabled)||!!pe.disabled}},{key:"deserializeLists",value:function(pe){var Ne=this,Ue=["checked","expanded"];Object.keys(this.flatNodes).forEach(function(He){Ue.forEach(function(ve){Ne.flatNodes[He][ve]=!1})}),Ue.forEach(function(He){pe[He].forEach(function(ve){Ne.flatNodes[ve]!==void 0&&(Ne.flatNodes[ve][He]=!0)})})}},{key:"serializeList",value:function(pe){var Ne=this,Ue=[];return Object.keys(this.flatNodes).forEach(function(He){Ne.flatNodes[He][pe]&&Ue.push(He)}),Ue}},{key:"expandAllNodes",value:function(pe){var Ne=this;return Object.keys(this.flatNodes).forEach(function(Ue){Ne.flatNodes[Ue].isParent&&(Ne.flatNodes[Ue].expanded=pe)}),this}},{key:"toggleChecked",value:function(pe,Ne,Ue,He){var ve=this,ie=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],he=this.flatNodes[pe.value],Oe=[_.PARENT,_.ALL].indexOf(Ue)>-1,Ie=[_.LEAF,_.ALL].indexOf(Ue)>-1;if(he.isLeaf||He){if(pe.disabled)return this;this.toggleNode(pe.value,"checked",Ne)}else(Oe||he.children.length===0)&&this.toggleNode(pe.value,"checked",Ne),Ie&&he.children.forEach(function(Je){ve.toggleChecked(Je,Ne,Ue,He,!1)});return ie&&!He&&he.isChild&&Oe&&this.toggleParentStatus(he.parent,Ue),this}},{key:"toggleParentStatus",value:function(pe,Ne){var Ue=this.flatNodes[pe.value];Ue.isChild?(Ne===_.ALL&&this.toggleNode(pe.value,"checked",this.isEveryChildChecked(Ue)),this.toggleParentStatus(Ue.parent,Ne)):this.toggleNode(pe.value,"checked",this.isEveryChildChecked(Ue))}},{key:"isEveryChildChecked",value:function(pe){var Ne=this;return pe.children.every(function(Ue){return Ne.getNode(Ue.value).checked})}},{key:"toggleNode",value:function(pe,Ne,Ue){return this.flatNodes[pe][Ne]=Ue,this}}],me&&L(K.prototype,me),Object.defineProperty(K,"prototype",{writable:!1}),de}();function oe(de){return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},oe(de)}function X(){return X=Object.assign?Object.assign.bind():function(de){for(var K=1;K<arguments.length;K++){var me=arguments[K];for(var pe in me)Object.prototype.hasOwnProperty.call(me,pe)&&(de[pe]=me[pe])}return de},X.apply(this,arguments)}function ee(de,K){var me=Object.keys(de);if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(de);K&&(pe=pe.filter(function(Ne){return Object.getOwnPropertyDescriptor(de,Ne).enumerable})),me.push.apply(me,pe)}return me}function Y(de,K){if(!(de instanceof K))throw new TypeError("Cannot call a class as a function")}function J(de,K){for(var me=0;me<K.length;me++){var pe=K[me];pe.enumerable=pe.enumerable||!1,pe.configurable=!0,"value"in pe&&(pe.writable=!0),Object.defineProperty(de,pe.key,pe)}}function se(de,K){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(me,pe){return me.__proto__=pe,me},se(de,K)}function z(de,K){if(K&&(oe(K)==="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(me){if(me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me}(de)}function H(de){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},H(de)}function G(de,K,me){return K in de?Object.defineProperty(de,K,{value:me,enumerable:!0,configurable:!0,writable:!0}):de[K]=me,de}var ue=function(de){(function(ve,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");ve.prototype=Object.create(ie&&ie.prototype,{constructor:{value:ve,writable:!0,configurable:!0}}),Object.defineProperty(ve,"prototype",{writable:!1}),ie&&se(ve,ie)})(He,de);var K,me,pe,Ne,Ue=(pe=He,Ne=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ve,ie=H(pe);if(Ne){var he=H(this).constructor;ve=Reflect.construct(ie,arguments,he)}else ve=ie.apply(this,arguments);return z(this,ve)});function He(){return Y(this,He),Ue.apply(this,arguments)}return K=He,me=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var ve=this.props.indeterminate;this.checkbox.indeterminate=ve}},{key:"render",value:function(){var ve=this,ie=function(he){for(var Oe=1;Oe<arguments.length;Oe++){var Ie=arguments[Oe]!=null?arguments[Oe]:{};Oe%2?ee(Object(Ie),!0).forEach(function(Je){G(he,Je,Ie[Je])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(Ie)):ee(Object(Ie)).forEach(function(Je){Object.defineProperty(he,Je,Object.getOwnPropertyDescriptor(Ie,Je))})}return he}({},this.props);return delete ie.indeterminate,w().createElement("input",X({},ie,{ref:function(he){ve.checkbox=he},type:"checkbox"}))}}],me&&J(K.prototype,me),Object.defineProperty(K,"prototype",{writable:!1}),He}(w().PureComponent);G(ue,"propTypes",{indeterminate:m().bool}),G(ue,"defaultProps",{indeterminate:!1});const U=ue,Q=m().shape({check:m().node,uncheck:m().node,halfCheck:m().node,expandClose:m().node,expandOpen:m().node,expandAll:m().node,collapseAll:m().node,parentClose:m().node,parentOpen:m().node,leaf:m().node}),q=m().shape({collapseAll:m().string.isRequired,expandAll:m().string.isRequired,toggle:m().string.isRequired});function ne(de){return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},ne(de)}function Z(de,K){for(var me=0;me<K.length;me++){var pe=K[me];pe.enumerable=pe.enumerable||!1,pe.configurable=!0,"value"in pe&&(pe.writable=!0),Object.defineProperty(de,pe.key,pe)}}function te(de,K){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(me,pe){return me.__proto__=pe,me},te(de,K)}function le(de,K){if(K&&(ne(K)==="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fe(de)}function fe(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}function xe(de){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},xe(de)}function Ee(de,K,me){return K in de?Object.defineProperty(de,K,{value:me,enumerable:!0,configurable:!0,writable:!0}):de[K]=me,de}var Te=function(de){(function(ve,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");ve.prototype=Object.create(ie&&ie.prototype,{constructor:{value:ve,writable:!0,configurable:!0}}),Object.defineProperty(ve,"prototype",{writable:!1}),ie&&te(ve,ie)})(He,de);var K,me,pe,Ne,Ue=(pe=He,Ne=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ve,ie=xe(pe);if(Ne){var he=xe(this).constructor;ve=Reflect.construct(ie,arguments,he)}else ve=ie.apply(this,arguments);return le(this,ve)});function He(ve){var ie;return function(he,Oe){if(!(he instanceof Oe))throw new TypeError("Cannot call a class as a function")}(this,He),(ie=Ue.call(this,ve)).onCheck=ie.onCheck.bind(fe(ie)),ie.onCheckboxKeyPress=ie.onCheckboxKeyPress.bind(fe(ie)),ie.onCheckboxKeyUp=ie.onCheckboxKeyUp.bind(fe(ie)),ie.onClick=ie.onClick.bind(fe(ie)),ie.onExpand=ie.onExpand.bind(fe(ie)),ie}return K=He,(me=[{key:"onCheck",value:function(){var ve=this.props,ie=ve.value;(0,ve.onCheck)({value:ie,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(ve){ve.which===32&&ve.preventDefault()}},{key:"onCheckboxKeyUp",value:function(ve){var ie=ve.keyCode;[13,32].includes(ie)&&this.onCheck()}},{key:"onClick",value:function(){var ve=this.props,ie=ve.expandOnClick,he=ve.isParent,Oe=ve.value,Ie=ve.onClick;he&&ie&&this.onExpand(),Ie({value:Oe,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var ve=this.props,ie=ve.expanded,he=ve.value;(0,ve.onExpand)({value:he,expanded:!ie})}},{key:"getCheckState",value:function(ve){var ie=ve.toggle,he=this.props,Oe=he.checked,Ie=he.optimisticToggle;return!(Oe!==0||!ie)||Oe===1&&!ie||Oe===2&&Ie}},{key:"renderCollapseButton",value:function(){var ve=this.props,ie=ve.expandDisabled,he=ve.isLeaf,Oe=ve.lang;return he?w().createElement("span",{className:"rct-collapse"},w().createElement("span",{className:"rct-icon"})):w().createElement(P,{className:"rct-collapse rct-collapse-btn",disabled:ie,title:Oe.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var ve=this.props,ie=ve.expanded,he=ve.icons,Oe=he.expandClose,Ie=he.expandOpen;return ie?Ie:Oe}},{key:"renderCheckboxIcon",value:function(){var ve=this.props,ie=ve.checked,he=ve.icons,Oe=he.uncheck,Ie=he.check,Je=he.halfCheck;return ie===0?Oe:ie===1?Ie:Je}},{key:"renderNodeIcon",value:function(){var ve=this.props,ie=ve.expanded,he=ve.icon,Oe=ve.icons,Ie=Oe.leaf,Je=Oe.parentClose,Pt=Oe.parentOpen,V=ve.isLeaf;return he!==null?he:V?Ie:ie?Pt:Je}},{key:"renderBareLabel",value:function(ve){var ie=this.props,he=ie.onClick,Oe=ie.title,Ie=he!==null;return w().createElement("span",{className:"rct-bare-label",title:Oe},Ie?w().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},ve):ve)}},{key:"renderCheckboxLabel",value:function(ve){var ie=this.props,he=ie.checked,Oe=ie.disabled,Ie=ie.title,Je=ie.treeId,Pt=ie.value,V=ie.onClick!==null,be="".concat(Je,"-").concat(String(Pt).split(" ").join("_")),Pe=[w().createElement("label",{key:0,htmlFor:be,title:Ie},w().createElement(U,{checked:he===1,disabled:Oe,id:be,indeterminate:he===2,onClick:this.onCheck,onChange:function(){}}),w().createElement("span",{"aria-checked":he===1,"aria-disabled":Oe,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),V?null:ve)];return V&&Pe.push(w().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},ve)),Pe}},{key:"renderLabel",value:function(){var ve=this.props,ie=ve.label,he=ve.showCheckbox,Oe=[ve.showNodeIcon?w().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,w().createElement("span",{key:1,className:"rct-title"},ie)];return he?this.renderCheckboxLabel(Oe):this.renderBareLabel(Oe)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var ve=this.props,ie=ve.className,he=ve.disabled,Oe=ve.expanded,Ie=ve.isLeaf,Je=c()({"rct-node":!0,"rct-node-leaf":Ie,"rct-node-parent":!Ie,"rct-node-expanded":!Ie&&Oe,"rct-node-collapsed":!Ie&&!Oe,"rct-disabled":he},ie);return w().createElement("li",{className:Je},w().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&Z(K.prototype,me),Object.defineProperty(K,"prototype",{writable:!1}),He}(w().PureComponent);Ee(Te,"propTypes",{checked:m().number.isRequired,disabled:m().bool.isRequired,expandDisabled:m().bool.isRequired,expanded:m().bool.isRequired,icons:Q.isRequired,isLeaf:m().bool.isRequired,isParent:m().bool.isRequired,label:m().node.isRequired,lang:q.isRequired,optimisticToggle:m().bool.isRequired,showNodeIcon:m().bool.isRequired,treeId:m().string.isRequired,value:m().oneOfType([m().string,m().number]).isRequired,onCheck:m().func.isRequired,onExpand:m().func.isRequired,children:m().node,className:m().string,expandOnClick:m().bool,icon:m().node,showCheckbox:m().bool,title:m().string,onClick:m().func}),Ee(Te,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const $e=Te,Ze=m().oneOfType([m().arrayOf(m().string),m().arrayOf(m().number)]);function We(de,K){var me=Object.keys(de);if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(de);K&&(pe=pe.filter(function(Ne){return Object.getOwnPropertyDescriptor(de,Ne).enumerable})),me.push.apply(me,pe)}return me}function it(de){for(var K=1;K<arguments.length;K++){var me=arguments[K]!=null?arguments[K]:{};K%2?We(Object(me),!0).forEach(function(pe){st(de,pe,me[pe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(me)):We(Object(me)).forEach(function(pe){Object.defineProperty(de,pe,Object.getOwnPropertyDescriptor(me,pe))})}return de}function st(de,K,me){return K in de?Object.defineProperty(de,K,{value:me,enumerable:!0,configurable:!0,writable:!0}):de[K]=me,de}var Ge={label:m().node.isRequired,value:m().oneOfType([m().string,m().number]).isRequired,disabled:m().bool,icon:m().node,showCheckbox:m().bool,title:m().string};const Ke=m().oneOfType([m().shape(Ge),m().shape(it(it({},Ge),{},{children:m().arrayOf(Ge).isRequired}))]);function ut(de){return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},ut(de)}function ze(de,K){var me=Object.keys(de);if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(de);K&&(pe=pe.filter(function(Ne){return Object.getOwnPropertyDescriptor(de,Ne).enumerable})),me.push.apply(me,pe)}return me}function ct(de){for(var K=1;K<arguments.length;K++){var me=arguments[K]!=null?arguments[K]:{};K%2?ze(Object(me),!0).forEach(function(pe){Fe(de,pe,me[pe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(me)):ze(Object(me)).forEach(function(pe){Object.defineProperty(de,pe,Object.getOwnPropertyDescriptor(me,pe))})}return de}function Tt(de,K){for(var me=0;me<K.length;me++){var pe=K[me];pe.enumerable=pe.enumerable||!1,pe.configurable=!0,"value"in pe&&(pe.writable=!0),Object.defineProperty(de,pe.key,pe)}}function dt(de,K){return dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(me,pe){return me.__proto__=pe,me},dt(de,K)}function ge(de,K){if(K&&(ut(K)==="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(de)}function Se(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}function Ae(de){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},Ae(de)}function Fe(de,K,me){return K in de?Object.defineProperty(de,K,{value:me,enumerable:!0,configurable:!0,writable:!0}):de[K]=me,de}var De=function(de){(function(ie,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function");ie.prototype=Object.create(he&&he.prototype,{constructor:{value:ie,writable:!0,configurable:!0}}),Object.defineProperty(ie,"prototype",{writable:!1}),he&&dt(ie,he)})(ve,de);var K,me,pe,Ne,Ue,He=(Ne=ve,Ue=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ie,he=Ae(Ne);if(Ue){var Oe=Ae(this).constructor;ie=Reflect.construct(he,arguments,Oe)}else ie=he.apply(this,arguments);return ge(this,ie)});function ve(ie){var he;(function(Ie,Je){if(!(Ie instanceof Je))throw new TypeError("Cannot call a class as a function")})(this,ve),he=He.call(this,ie);var Oe=new B(ie);return Oe.flattenNodes(ie.nodes),Oe.deserializeLists({checked:ie.checked,expanded:ie.expanded}),he.state={id:ie.id||"rct-".concat(b()),model:Oe,prevProps:ie},he.onCheck=he.onCheck.bind(Se(he)),he.onExpand=he.onExpand.bind(Se(he)),he.onNodeClick=he.onNodeClick.bind(Se(he)),he.onExpandAll=he.onExpandAll.bind(Se(he)),he.onCollapseAll=he.onCollapseAll.bind(Se(he)),he.combineMemorized=h()(function(Ie,Je){return ct(ct({},Ie),Je)}).bind(Se(he)),he}return K=ve,me=[{key:"onCheck",value:function(ie){var he=this.props,Oe=he.checkModel,Ie=he.noCascade,Je=he.onCheck,Pt=this.state.model.clone(),V=Pt.getNode(ie.value);Pt.toggleChecked(ie,ie.checked,Oe,Ie),Je(Pt.serializeList("checked"),ct(ct({},V),ie))}},{key:"onExpand",value:function(ie){var he=this.props.onExpand,Oe=this.state.model.clone(),Ie=Oe.getNode(ie.value);Oe.toggleNode(ie.value,"expanded",ie.expanded),he(Oe.serializeList("expanded"),ct(ct({},Ie),ie))}},{key:"onNodeClick",value:function(ie){(0,this.props.onClick)(ct(ct({},this.state.model.getNode(ie.value)),ie))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var ie=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],he=this.props.onExpand;he(this.state.model.clone().expandAllNodes(ie).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(ie,he){var Oe=this.state.model.getNode(ie.value);return Oe.isLeaf||he||ie.children.length===0?Oe.checked?1:0:this.isEveryChildChecked(ie)?1:this.isSomeChildChecked(ie)?2:0}},{key:"isEveryChildChecked",value:function(ie){var he=this;return ie.children.every(function(Oe){return he.state.model.getNode(Oe.value).checkState===1})}},{key:"isSomeChildChecked",value:function(ie){var he=this;return ie.children.some(function(Oe){return he.state.model.getNode(Oe.value).checkState>0})}},{key:"renderTreeNodes",value:function(ie){var he=this,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie=this.props,Je=Ie.expandDisabled,Pt=Ie.expandOnClick,V=Ie.icons,be=Ie.lang,Pe=Ie.noCascade,ae=Ie.onClick,ce=Ie.onlyLeafCheckboxes,Ce=Ie.optimisticToggle,ke=Ie.showNodeTitle,Me=Ie.showNodeIcon,Be=this.state,Ve=Be.id,rt=Be.model,Ft=ve.defaultProps.icons,rr=ie.map(function(Nt){var Bt=Nt.value,zt=rt.getNode(Nt.value),mr=zt.isParent?he.renderTreeNodes(Nt.children,Nt):null;zt.checkState=he.determineShallowCheckState(Nt,Pe);var $r=ce?zt.isLeaf:zt.showCheckbox;return!Oe.value||rt.getNode(Oe.value).expanded?w().createElement($e,{key:Bt,checked:zt.checkState,className:Nt.className,disabled:zt.disabled,expandDisabled:Je,expandOnClick:Pt,expanded:zt.expanded,icon:Nt.icon,icons:he.combineMemorized(Ft,V),label:Nt.label,lang:be,optimisticToggle:Ce,isLeaf:zt.isLeaf,isParent:zt.isParent,showCheckbox:$r,showNodeIcon:Me,title:ke?Nt.title||Nt.label:Nt.title,treeId:Ve,value:Nt.value,onCheck:he.onCheck,onClick:ae&&he.onNodeClick,onExpand:he.onExpand},mr):null});return w().createElement("ol",null,rr)}},{key:"renderExpandAll",value:function(){var ie=this.props,he=ie.icons,Oe=he.expandAll,Ie=he.collapseAll,Je=ie.lang;return ie.showExpandAll?w().createElement("div",{className:"rct-options"},w().createElement(P,{className:"rct-option rct-option-expand-all",title:Je.expandAll,onClick:this.onExpandAll},Oe),w().createElement(P,{className:"rct-option rct-option-collapse-all",title:Je.collapseAll,onClick:this.onCollapseAll},Ie)):null}},{key:"renderHiddenInput",value:function(){var ie=this.props,he=ie.name,Oe=ie.nameAsArray;return he===void 0?null:Oe?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var ie=this.props,he=ie.checked,Oe=ie.name;return he.map(function(Ie){var Je="".concat(Oe,"[]");return w().createElement("input",{key:Ie,name:Je,type:"hidden",value:Ie})})}},{key:"renderJoinedHiddenInput",value:function(){var ie=this.props,he=ie.checked,Oe=ie.name,Ie=he.join(",");return w().createElement("input",{name:Oe,type:"hidden",value:Ie})}},{key:"render",value:function(){var ie,he=this.props,Oe=he.direction,Ie=he.disabled,Je=he.iconsClass,Pt=he.nodes,V=he.nativeCheckboxes,be=this.state.id,Pe=this.renderTreeNodes(Pt),ae=c()((Fe(ie={"react-checkbox-tree":!0,"rct-disabled":Ie},"rct-icons-".concat(Je),!0),Fe(ie,"rct-native-display",V),Fe(ie,"rct-direction-rtl",Oe==="rtl"),ie));return w().createElement("div",{className:ae,id:be},this.renderExpandAll(),this.renderHiddenInput(),Pe)}}],pe=[{key:"getDerivedStateFromProps",value:function(ie,he){var Oe=he.model,Ie=he.prevProps,Je=ie.disabled,Pt=ie.id,V=ie.nodes,be=ct(ct({},he),{},{prevProps:ie});return Oe.setProps(ie),d()(Ie.nodes,V)&&Ie.disabled===Je||(Oe.reset(),Oe.flattenNodes(V)),Pt!==null&&(be=ct(ct({},be),{},{id:Pt})),Oe.deserializeLists({checked:ie.checked,expanded:ie.expanded}),be}}],me&&Tt(K.prototype,me),pe&&Tt(K,pe),Object.defineProperty(K,"prototype",{writable:!1}),ve}(w().Component);function at(de){return function(K){if(Array.isArray(K))return pt(K)}(de)||function(K){if(typeof Symbol<"u"&&K[Symbol.iterator]!=null||K["@@iterator"]!=null)return Array.from(K)}(de)||function(K,me){if(K){if(typeof K=="string")return pt(K,me);var pe=Object.prototype.toString.call(K).slice(8,-1);return pe==="Object"&&K.constructor&&(pe=K.constructor.name),pe==="Map"||pe==="Set"?Array.from(K):pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe)?pt(K,me):void 0}}(de)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
235
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function pt(de,K){(K==null||K>de.length)&&(K=de.length);for(var me=0,pe=new Array(K);me<K;me++)pe[me]=de[me];return pe}function Rt(de,K){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(me>K)return[];var pe=[];return de.forEach(function(Ne){Ne.children&&(pe=[].concat(at(pe),[Ne.value],at(Rt(Ne.children,K,me+1))))}),pe}Fe(De,"propTypes",{nodes:m().arrayOf(Ke).isRequired,checkModel:m().oneOf([M.LEAF,M.ALL]),checked:Ze,direction:m().string,disabled:m().bool,expandDisabled:m().bool,expandOnClick:m().bool,expanded:Ze,icons:Q,iconsClass:m().string,id:m().string,lang:q,name:m().string,nameAsArray:m().bool,nativeCheckboxes:m().bool,noCascade:m().bool,onlyLeafCheckboxes:m().bool,optimisticToggle:m().bool,showExpandAll:m().bool,showNodeIcon:m().bool,showNodeTitle:m().bool,onCheck:m().func,onClick:m().func,onExpand:m().func}),Fe(De,"defaultProps",{checkModel:M.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:w().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:w().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:w().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:w().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:w().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:w().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:w().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:w().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:w().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:w().createElement("span",{className:"rct-icon rct-icon-leaf"})},iconsClass:"fa4",id:null,lang:{collapseAll:"Collapse all",expandAll:"Expand all",toggle:"Toggle"},name:void 0,nameAsArray:!1,nativeCheckboxes:!1,noCascade:!1,onlyLeafCheckboxes:!1,optimisticToggle:!0,showExpandAll:!1,showNodeIcon:!0,showNodeTitle:!1,onCheck:function(){},onClick:null,onExpand:function(){}});const Jt=De})(),l})())}(Td)),Td.exports}var ZA=QA();const JA=qt(ZA),eN=Et(k.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),tN=Et(k.jsx("path",{d:"M19 5v14H5V5zm0-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-2"}),"CheckBoxOutlineBlank"),Av=Et(k.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-2m-2 10H7v-2h10z"}),"IndeterminateCheckBox"),nN=Et(k.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),rN=Et(k.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),oN=Et(k.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),iN=Et(k.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),sN=Et(k.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),aN=Et(k.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");var oa={};/*!
|
|
215
236
|
* cookie
|
|
216
237
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
217
238
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
218
239
|
* MIT Licensed
|
|
219
|
-
*/var cm;function RC(){if(cm)return si;cm=1,si.parse=l,si.serialize=u;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(m,b){if(typeof m!="string")throw new TypeError("argument str must be a string");var h={},v=m.length;if(v<2)return h;var C=b&&b.decode||f,E=0,S=0,T=0;do{if(S=m.indexOf("=",E),S===-1)break;if(T=m.indexOf(";",E),T===-1)T=v;else if(S>T){E=m.lastIndexOf(";",S-1)+1;continue}var w=s(m,E,S),A=c(m,S,w),M=m.slice(w,A);if(!t.call(h,M)){var O=s(m,S+1,T),g=c(m,T,O);m.charCodeAt(O)===34&&m.charCodeAt(g-1)===34&&(O++,g--);var p=m.slice(O,g);h[M]=y(p,C)}E=T+1}while(E<v);return h}function s(m,b,h){do{var v=m.charCodeAt(b);if(v!==32&&v!==9)return b}while(++b<h);return h}function c(m,b,h){for(;b>h;){var v=m.charCodeAt(--b);if(v!==32&&v!==9)return b+1}return h}function u(m,b,h){var v=h&&h.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!r.test(m))throw new TypeError("argument name is invalid");var C=v(b);if(!n.test(C))throw new TypeError("argument val is invalid");var E=m+"="+C;if(!h)return E;if(h.maxAge!=null){var S=Math.floor(h.maxAge);if(!isFinite(S))throw new TypeError("option maxAge is invalid");E+="; Max-Age="+S}if(h.domain){if(!i.test(h.domain))throw new TypeError("option domain is invalid");E+="; Domain="+h.domain}if(h.path){if(!a.test(h.path))throw new TypeError("option path is invalid");E+="; Path="+h.path}if(h.expires){var T=h.expires;if(!d(T)||isNaN(T.valueOf()))throw new TypeError("option expires is invalid");E+="; Expires="+T.toUTCString()}if(h.httpOnly&&(E+="; HttpOnly"),h.secure&&(E+="; Secure"),h.partitioned&&(E+="; Partitioned"),h.priority){var w=typeof h.priority=="string"?h.priority.toLowerCase():h.priority;switch(w){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(h.sameSite){var A=typeof h.sameSite=="string"?h.sameSite.toLowerCase():h.sameSite;switch(A){case!0:E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"strict":E+="; SameSite=Strict";break;case"none":E+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return E}function f(m){return m.indexOf("%")!==-1?decodeURIComponent(m):m}function d(m){return e.call(m)==="[object Date]"}function y(m,b){try{return b(m)}catch{return m}}return si}var li=RC();function PC(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function _C(e){return typeof e=="string"?li.parse(e):typeof e=="object"&&e!==null?e:{}}function ic(e,t={}){const r=IC(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function IC(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class um{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=li.parse(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=_C(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=PC()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:ic(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),ic(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=ic(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const i=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=li.serialize(t,i,n)),this._emitChange({name:t,value:r,options:n})}remove(t,r){const n=r=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=li.serialize(t,"",n)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function kC(e){const{model:t,form:r,value:n,error:i,setDefault:a,onChangeValidate:l}=e,{key:s,title:c,action:u}=r;a(s,t,r,n);const[f,d]=we.useState(n||[]),[y,m]=we.useState([]),[b,h]=we.useState([]);we.useEffect(()=>{l(f)},[f]);const v=E=>{const S=new um,T={"Content-Type":"application/json"};S.get("csrf")&&Object.assign(T,{"X-CSRF-TOKEN":S.get("csrf")}),fetch(E,{headers:T,credentials:"include"}).then(w=>w.ok?w.json():w.text().then(A=>{throw new Error(A)})).then(w=>{h(w)}).catch(w=>{console.error(w)})};we.useEffect(()=>{const{url:E}=u;v(E)},[]);const C={check:N.jsx(bC,{className:"rct-icon rct-icon-check"}),uncheck:N.jsx(xC,{className:"rct-icon rct-icon-uncheck"}),halfCheck:N.jsx(lm,{className:"rct-icon rct-icon-half-check"}),expandClose:N.jsx(OC,{className:"rct-icon rct-icon-expand-close"}),expandOpen:N.jsx(EC,{className:"rct-icon rct-icon-expand-open"}),expandAll:N.jsx(CC,{className:"rct-icon rct-icon-expand-all"}),collapseAll:N.jsx(lm,{className:"rct-icon rct-icon-collapse-all"}),parentClose:N.jsx(SC,{className:"rct-icon rct-icon-parent-close"}),parentOpen:N.jsx(TC,{className:"rct-icon rct-icon-parent-open"}),leaf:N.jsx(wC,{className:"rct-icon rct-icon-leaf-close"})};return N.jsxs(we.Fragment,{children:[N.jsx(Nr,{required:r.required,children:c}),N.jsx(vC,{nodes:b,checked:f,expanded:y,onCheck:E=>d(E),onExpand:E=>m(E),icons:C,noCascade:!0}),i?N.jsx(Ln,{error:!0,children:i}):null]})}const jC=jt(kC);function pm(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function AC(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:a,trim:l=!1}=e;return(s,{inputValue:c,getOptionLabel:u})=>{let f=l?c.trim():c;r&&(f=f.toLowerCase()),t&&(f=pm(f));const d=f?s.filter(y=>{let m=(a||u)(y);return r&&(m=m.toLowerCase()),t&&(m=pm(m)),i==="start"?m.startsWith(f):m.includes(f)}):s;return typeof n=="number"?d.slice(0,n):d}}const NC=AC(),fm=5,$C=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},MC=[];function DC(e){const{unstable_isActiveElementInListbox:t=$C,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:f=e.multiple?MC:null,disableClearable:d=!1,disableCloseOnSelect:y=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:h=!1,filterOptions:v=NC,filterSelectedOptions:C=!1,freeSolo:E=!1,getOptionDisabled:S,getOptionKey:T,getOptionLabel:w=F=>F.label??F,groupBy:A,handleHomeEndKeys:M=!e.freeSolo,id:O,includeInputInList:g=!1,inputValue:p,isOptionEqualToValue:x=(F,q)=>F===q,multiple:R=!1,onChange:P,onClose:_,onHighlightChange:k,onInputChange:D,onOpen:W,open:Z,openOnFocus:G=!1,options:B,readOnly:Y=!1,selectOnFocus:ae=!e.freeSolo,value:oe}=e,ne=vo(O);let ue=w;ue=F=>{const q=w(F);if(typeof q!="string"){if(process.env.NODE_ENV!=="production"){const re=q===void 0?"undefined":`${typeof q} (${q})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${re} instead of a string for ${JSON.stringify(F)}.`)}return String(q)}return q};const ce=j.useRef(!1),ye=j.useRef(!0),se=j.useRef(null),le=j.useRef(null),[te,ve]=j.useState(null),[X,Re]=j.useState(-1),z=i?0:-1,pe=j.useRef(z),[de,Ce]=qr({controlled:oe,default:f,name:u}),[Te,$e]=qr({controlled:p,default:"",name:u,state:"inputValue"}),[He,Ne]=j.useState(!1),be=j.useCallback((F,q,re)=>{if(!(R?de.length<q.length:q!==null)&&!s)return;let ge;if(R)ge="";else if(q==null)ge="";else{const Ie=ue(q);ge=typeof Ie=="string"?Ie:""}Te!==ge&&($e(ge),D&&D(F,ge,re))},[ue,Te,R,D,$e,s,de]),[Fe,Ye]=qr({controlled:Z,default:!1,name:u,state:"open"}),[ht,Ct]=j.useState(!0),pt=!R&&de!=null&&Te===ue(de),Ue=Fe&&!Y,Be=Ue?v(B.filter(F=>!(C&&(R?de:[de]).some(q=>q!==null&&x(F,q)))),{inputValue:pt&&ht?"":Te,getOptionLabel:ue}):[],st=Ab({filteredOptions:Be,value:de,inputValue:Te});j.useEffect(()=>{const F=de!==st.value;He&&!F||E&&!F||be(null,de,"reset")},[de,be,He,st.value,E]);const De=Fe&&Be.length>0&&!Y,Ze=pr(F=>{F===-1?se.current.focus():te.querySelector(`[data-tag-index="${F}"]`).focus()});j.useEffect(()=>{R&&X>de.length-1&&(Re(-1),Ze(-1))},[de,R,X,Ze]);function mt(F,q){if(!le.current||F<0||F>=Be.length)return-1;let re=F;for(;;){const me=le.current.querySelector(`[data-option-index="${re}"]`),ge=b?!1:!me||me.disabled||me.getAttribute("aria-disabled")==="true";if(me&&me.hasAttribute("tabindex")&&!ge)return re;if(q==="next"?re=(re+1)%Be.length:re=(re-1+Be.length)%Be.length,re===F)return-1}}const ft=pr(({event:F,index:q,reason:re="auto"})=>{if(pe.current=q,q===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${ne}-option-${q}`),k&&k(F,q===-1?null:Be[q],re),!le.current)return;const me=le.current.querySelector(`[role="option"].${r}-focused`);me&&(me.classList.remove(`${r}-focused`),me.classList.remove(`${r}-focusVisible`));let ge=le.current;if(le.current.getAttribute("role")!=="listbox"&&(ge=le.current.parentElement.querySelector('[role="listbox"]')),!ge)return;if(q===-1){ge.scrollTop=0;return}const Ie=le.current.querySelector(`[data-option-index="${q}"]`);if(Ie&&(Ie.classList.add(`${r}-focused`),re==="keyboard"&&Ie.classList.add(`${r}-focusVisible`),ge.scrollHeight>ge.clientHeight&&re!=="mouse"&&re!=="touch")){const _e=Ie,ze=ge.clientHeight+ge.scrollTop,Et=_e.offsetTop+_e.offsetHeight;Et>ze?ge.scrollTop=Et-ge.clientHeight:_e.offsetTop-_e.offsetHeight*(A?1.3:0)<ge.scrollTop&&(ge.scrollTop=_e.offsetTop-_e.offsetHeight*(A?1.3:0))}}),Ee=pr(({event:F,diff:q,direction:re="next",reason:me="auto"})=>{if(!Ue)return;const Ie=mt((()=>{const _e=Be.length-1;if(q==="reset")return z;if(q==="start")return 0;if(q==="end")return _e;const ze=pe.current+q;return ze<0?ze===-1&&g?-1:h&&pe.current!==-1||Math.abs(q)>1?0:_e:ze>_e?ze===_e+1&&g?-1:h||Math.abs(q)>1?_e:0:ze})(),re);if(ft({index:Ie,reason:me,event:F}),n&&q!=="reset")if(Ie===-1)se.current.value=Te;else{const _e=ue(Be[Ie]);se.current.value=_e,_e.toLowerCase().indexOf(Te.toLowerCase())===0&&Te.length>0&&se.current.setSelectionRange(Te.length,_e.length)}}),Ae=()=>{const F=(q,re)=>{const me=q?ue(q):"",ge=re?ue(re):"";return me===ge};if(pe.current!==-1&&st.filteredOptions&&st.filteredOptions.length!==Be.length&&st.inputValue===Te&&(R?de.length===st.value.length&&st.value.every((q,re)=>ue(de[re])===ue(q)):F(st.value,de))){const q=st.filteredOptions[pe.current];if(q)return Be.findIndex(re=>ue(re)===ue(q))}return-1},at=j.useCallback(()=>{if(!Ue)return;const F=Ae();if(F!==-1){pe.current=F;return}const q=R?de[0]:de;if(Be.length===0||q==null){Ee({diff:"reset"});return}if(le.current){if(q!=null){const re=Be[pe.current];if(R&&re&&de.findIndex(ge=>x(re,ge))!==-1)return;const me=Be.findIndex(ge=>x(ge,q));me===-1?Ee({diff:"reset"}):ft({index:me});return}if(pe.current>=Be.length-1){ft({index:Be.length-1});return}ft({index:pe.current})}},[Be.length,R?!1:de,C,Ee,ft,Ue,Te,R]),wt=pr(F=>{Do(le,F),F&&at()});process.env.NODE_ENV!=="production"&&j.useEffect(()=>{(!se.current||se.current.nodeName!=="INPUT")&&(se.current&&se.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
220
|
-
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
221
|
-
`)))},[u]),
|
|
222
|
-
`))}const _e=Ie.findIndex(ze=>x(q,ze));_e===-1?Ie.push(q):me!=="freeSolo"&&(Ie.splice(_e,1),ge="removeOption")}be(F,Ie,ge),Rt(F,Ie,ge,{option:q}),!y&&(!F||!F.ctrlKey&&!F.metaKey)&&Bt(F,ge),(l===!0||l==="touch"&&Yt.current||l==="mouse"&&!Yt.current)&&se.current.blur()};function U(F,q){if(F===-1)return-1;let re=F;for(;;){if(q==="next"&&re===de.length||q==="previous"&&re===-1)return-1;const me=te.querySelector(`[data-tag-index="${re}"]`);if(!me||!me.hasAttribute("tabindex")||me.disabled||me.getAttribute("aria-disabled")==="true")re+=q==="next"?1:-1;else return re}}const $=(F,q)=>{if(!R)return;Te===""&&Bt(F,"toggleInput");let re=X;X===-1?Te===""&&q==="previous"&&(re=de.length-1):(re+=q==="next"?1:-1,re<0&&(re=0),re===de.length&&(re=-1)),re=U(re,q),Re(re),Ze(re)},K=F=>{ce.current=!0,$e(""),D&&D(F,"","clear"),Rt(F,R?[]:null,"clear")},V=F=>q=>{if(F.onKeyDown&&F.onKeyDown(q),!q.defaultMuiPrevented&&(X!==-1&&!["ArrowLeft","ArrowRight"].includes(q.key)&&(Re(-1),Ze(-1)),q.which!==229))switch(q.key){case"Home":Ue&&M&&(q.preventDefault(),Ee({diff:"start",direction:"next",reason:"keyboard",event:q}));break;case"End":Ue&&M&&(q.preventDefault(),Ee({diff:"end",direction:"previous",reason:"keyboard",event:q}));break;case"PageUp":q.preventDefault(),Ee({diff:-fm,direction:"previous",reason:"keyboard",event:q}),St(q);break;case"PageDown":q.preventDefault(),Ee({diff:fm,direction:"next",reason:"keyboard",event:q}),St(q);break;case"ArrowDown":q.preventDefault(),Ee({diff:1,direction:"next",reason:"keyboard",event:q}),St(q);break;case"ArrowUp":q.preventDefault(),Ee({diff:-1,direction:"previous",reason:"keyboard",event:q}),St(q);break;case"ArrowLeft":$(q,"previous");break;case"ArrowRight":$(q,"next");break;case"Enter":if(pe.current!==-1&&Ue){const re=Be[pe.current],me=S?S(re):!1;if(q.preventDefault(),me)return;Xt(q,re,"selectOption"),n&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else E&&Te!==""&&pt===!1&&(R&&q.preventDefault(),Xt(q,Te,"createOption","freeSolo"));break;case"Escape":Ue?(q.preventDefault(),q.stopPropagation(),Bt(q,"escape")):c&&(Te!==""||R&&de.length>0)&&(q.preventDefault(),q.stopPropagation(),K(q));break;case"Backspace":if(R&&!Y&&Te===""&&de.length>0){const re=X===-1?de.length-1:X,me=de.slice();me.splice(re,1),Rt(q,me,"removeOption",{option:de[re]})}break;case"Delete":if(R&&!Y&&Te===""&&de.length>0&&X!==-1){const re=X,me=de.slice();me.splice(re,1),Rt(q,me,"removeOption",{option:de[re]})}break}},Se=F=>{Ne(!0),G&&!ce.current&&St(F)},ke=F=>{if(t(le)){se.current.focus();return}Ne(!1),ye.current=!0,ce.current=!1,a&&pe.current!==-1&&Ue?Xt(F,Be[pe.current],"blur"):a&&E&&Te!==""?Xt(F,Te,"blur","freeSolo"):s&&be(F,de,"blur"),Bt(F,"blur")},je=F=>{const q=F.target.value;Te!==q&&($e(q),Ct(!1),D&&D(F,q,"input")),q===""?!d&&!R&&Rt(F,null,"clear"):St(F)},ee=F=>{const q=Number(F.currentTarget.getAttribute("data-option-index"));pe.current!==q&&ft({event:F,index:q,reason:"mouse"})},L=F=>{ft({event:F,index:Number(F.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Yt.current=!0},H=F=>{const q=Number(F.currentTarget.getAttribute("data-option-index"));Xt(F,Be[q],"selectOption"),Yt.current=!1},ie=F=>q=>{const re=de.slice();re.splice(F,1),Rt(q,re,"removeOption",{option:de[F]})},Oe=F=>{Fe?Bt(F,"toggleInput"):St(F)},Me=F=>{F.currentTarget.contains(F.target)&&F.target.getAttribute("id")!==ne&&F.preventDefault()},lt=F=>{F.currentTarget.contains(F.target)&&(se.current.focus(),ae&&ye.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),ye.current=!1)},I=F=>{!m&&(Te===""||!Fe)&&Oe(F)};let J=E&&Te.length>0;J=J||(R?de.length>0:de!==null);let fe=Be;if(A){const F=new Map;let q=!1;fe=Be.reduce((re,me,ge)=>{const Ie=A(me);return re.length>0&&re[re.length-1].group===Ie?re[re.length-1].options.push(me):(process.env.NODE_ENV!=="production"&&(F.get(Ie)&&!q&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),q=!0),F.set(Ie,!0)),re.push({key:ge,index:ge,group:Ie,options:[me]})),re},[])}return m&&He&&ke(),{getRootProps:(F={})=>({"aria-owns":De?`${ne}-listbox`:null,...F,onKeyDown:V(F),onMouseDown:Me,onClick:lt}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:Te,onBlur:ke,onFocus:Se,onChange:je,onMouseDown:I,"aria-activedescendant":Ue?"":null,"aria-autocomplete":n?"both":"list","aria-controls":De?`${ne}-listbox`:void 0,"aria-expanded":De,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:K}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oe}),getTagProps:({index:F})=>({key:F,"data-tag-index":F,tabIndex:-1,...!Y&&{onDelete:ie(F)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:wt,onMouseDown:F=>{F.preventDefault()}}),getOptionProps:({index:F,option:q})=>{const re=(R?de:[de]).some(ge=>ge!=null&&x(q,ge)),me=S?S(q):!1;return{key:(T==null?void 0:T(q))??ue(q),tabIndex:-1,role:"option",id:`${ne}-option-${F}`,onMouseMove:ee,onClick:H,onTouchStart:L,"data-option-index":F,"aria-disabled":me,"aria-selected":re}},id:ne,inputValue:Te,value:de,dirty:J,expanded:Ue&&te,popupOpen:Ue,focused:He||X!==-1,anchorEl:te,setAnchorEl:ve,focusedTag:X,groupedOptions:fe}}var zt="top",nr="bottom",or="right",Vt="left",ac="auto",Jn=[zt,nr,or,Vt],un="start",Qn="end",LC="clippingParents",dm="viewport",Zn="popper",FC="reference",hm=Jn.reduce(function(e,t){return e.concat([t+"-"+un,t+"-"+Qn])},[]),mm=[].concat(Jn,[ac]).reduce(function(e,t){return e.concat([t,t+"-"+un,t+"-"+Qn])},[]),BC="beforeRead",qC="read",zC="afterRead",VC="beforeMain",UC="main",WC="afterMain",HC="beforeWrite",GC="write",KC="afterWrite",YC=[BC,qC,zC,VC,UC,WC,HC,GC,KC];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hr(e){var t=Kt(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Kt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sc(e){if(typeof ShadowRoot>"u")return!1;var t=Kt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function XC(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!ir(a)||!yr(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(l){var s=i[l];s===!1?a.removeAttribute(l):a.setAttribute(l,s===!0?"":s)}))})}function JC(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=l.reduce(function(c,u){return c[u]="",c},{});!ir(i)||!yr(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const QC={name:"applyStyles",enabled:!0,phase:"write",fn:XC,effect:JC,requires:["computeStyles"]};function vr(e){return e.split("-")[0]}var Gr=Math.max,ci=Math.min,pn=Math.round;function lc(){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 gm(){return!/^((?!chrome|android).)*safari/i.test(lc())}function fn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&ir(e)&&(i=e.offsetWidth>0&&pn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&pn(n.height)/e.offsetHeight||1);var l=Hr(e)?Kt(e):window,s=l.visualViewport,c=!gm()&&r,u=(n.left+(c&&s?s.offsetLeft:0))/i,f=(n.top+(c&&s?s.offsetTop:0))/a,d=n.width/i,y=n.height/a;return{width:d,height:y,top:f,right:u+d,bottom:f+y,left:u,x:u,y:f}}function cc(e){var t=fn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ym(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sc(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wr(e){return Kt(e).getComputedStyle(e)}function ZC(e){return["table","td","th"].indexOf(yr(e))>=0}function $r(e){return((Hr(e)?e.ownerDocument:e.document)||window.document).documentElement}function ui(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(sc(e)?e.host:null)||$r(e)}function vm(e){return!ir(e)||wr(e).position==="fixed"?null:e.offsetParent}function e1(e){var t=/firefox/i.test(lc()),r=/Trident/i.test(lc());if(r&&ir(e)){var n=wr(e);if(n.position==="fixed")return null}var i=ui(e);for(sc(i)&&(i=i.host);ir(i)&&["html","body"].indexOf(yr(i))<0;){var a=wr(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function eo(e){for(var t=Kt(e),r=vm(e);r&&ZC(r)&&wr(r).position==="static";)r=vm(r);return r&&(yr(r)==="html"||yr(r)==="body"&&wr(r).position==="static")?t:r||e1(e)||t}function uc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function to(e,t,r){return Gr(e,ci(t,r))}function t1(e,t,r){var n=to(e,t,r);return n>r?r:n}function bm(){return{top:0,right:0,bottom:0,left:0}}function xm(e){return Object.assign({},bm(),e)}function Om(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var r1=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,xm(typeof t!="number"?t:Om(t,Jn))};function n1(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,s=vr(r.placement),c=uc(s),u=[Vt,or].indexOf(s)>=0,f=u?"height":"width";if(!(!a||!l)){var d=r1(i.padding,r),y=cc(a),m=c==="y"?zt:Vt,b=c==="y"?nr:or,h=r.rects.reference[f]+r.rects.reference[c]-l[c]-r.rects.popper[f],v=l[c]-r.rects.reference[c],C=eo(a),E=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,S=h/2-v/2,T=d[m],w=E-y[f]-d[b],A=E/2-y[f]/2+S,M=to(T,A,w),O=c;r.modifiersData[n]=(t={},t[O]=M,t.centerOffset=M-A,t)}}function o1(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||ym(t.elements.popper,i)&&(t.elements.arrow=i))}const i1={name:"arrow",enabled:!0,phase:"main",fn:n1,effect:o1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dn(e){return e.split("-")[1]}var a1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s1(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:pn(r*i)/i||0,y:pn(n*i)/i||0}}function Em(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,l=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,d=e.isFixed,y=l.x,m=y===void 0?0:y,b=l.y,h=b===void 0?0:b,v=typeof f=="function"?f({x:m,y:h}):{x:m,y:h};m=v.x,h=v.y;var C=l.hasOwnProperty("x"),E=l.hasOwnProperty("y"),S=Vt,T=zt,w=window;if(u){var A=eo(r),M="clientHeight",O="clientWidth";if(A===Kt(r)&&(A=$r(r),wr(A).position!=="static"&&s==="absolute"&&(M="scrollHeight",O="scrollWidth")),A=A,i===zt||(i===Vt||i===or)&&a===Qn){T=nr;var g=d&&A===w&&w.visualViewport?w.visualViewport.height:A[M];h-=g-n.height,h*=c?1:-1}if(i===Vt||(i===zt||i===nr)&&a===Qn){S=or;var p=d&&A===w&&w.visualViewport?w.visualViewport.width:A[O];m-=p-n.width,m*=c?1:-1}}var x=Object.assign({position:s},u&&a1),R=f===!0?s1({x:m,y:h},Kt(r)):{x:m,y:h};if(m=R.x,h=R.y,c){var P;return Object.assign({},x,(P={},P[T]=E?"0":"",P[S]=C?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",P))}return Object.assign({},x,(t={},t[T]=E?h+"px":"",t[S]=C?m+"px":"",t.transform="",t))}function l1(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,s=r.roundOffsets,c=s===void 0?!0:s,u={placement:vr(t.placement),variation:dn(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,Em(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Em(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const c1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:l1,data:{}};var pi={passive:!0};function u1(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,l=n.resize,s=l===void 0?!0:l,c=Kt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(f){f.addEventListener("scroll",r.update,pi)}),s&&c.addEventListener("resize",r.update,pi),function(){a&&u.forEach(function(f){f.removeEventListener("scroll",r.update,pi)}),s&&c.removeEventListener("resize",r.update,pi)}}const p1={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:u1,data:{}};var f1={left:"right",right:"left",bottom:"top",top:"bottom"};function fi(e){return e.replace(/left|right|bottom|top/g,function(t){return f1[t]})}var d1={start:"end",end:"start"};function Cm(e){return e.replace(/start|end/g,function(t){return d1[t]})}function pc(e){var t=Kt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function fc(e){return fn($r(e)).left+pc(e).scrollLeft}function h1(e,t){var r=Kt(e),n=$r(e),i=r.visualViewport,a=n.clientWidth,l=n.clientHeight,s=0,c=0;if(i){a=i.width,l=i.height;var u=gm();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:l,x:s+fc(e),y:c}}function m1(e){var t,r=$r(e),n=pc(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Gr(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Gr(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+fc(e),c=-n.scrollTop;return wr(i||r).direction==="rtl"&&(s+=Gr(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:l,x:s,y:c}}function dc(e){var t=wr(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Sm(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:ir(e)&&dc(e)?e:Sm(ui(e))}function ro(e,t){var r;t===void 0&&(t=[]);var n=Sm(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Kt(n),l=i?[a].concat(a.visualViewport||[],dc(n)?n:[]):n,s=t.concat(l);return i?s:s.concat(ro(ui(l)))}function hc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function g1(e,t){var r=fn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Tm(e,t,r){return t===dm?hc(h1(e,r)):Hr(t)?g1(t,r):hc(m1($r(e)))}function y1(e){var t=ro(ui(e)),r=["absolute","fixed"].indexOf(wr(e).position)>=0,n=r&&ir(e)?eo(e):e;return Hr(n)?t.filter(function(i){return Hr(i)&&ym(i,n)&&yr(i)!=="body"}):[]}function v1(e,t,r,n){var i=t==="clippingParents"?y1(e):[].concat(t),a=[].concat(i,[r]),l=a[0],s=a.reduce(function(c,u){var f=Tm(e,u,n);return c.top=Gr(f.top,c.top),c.right=ci(f.right,c.right),c.bottom=ci(f.bottom,c.bottom),c.left=Gr(f.left,c.left),c},Tm(e,l,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function wm(e){var t=e.reference,r=e.element,n=e.placement,i=n?vr(n):null,a=n?dn(n):null,l=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(i){case zt:c={x:l,y:t.y-r.height};break;case nr:c={x:l,y:t.y+t.height};break;case or:c={x:t.x+t.width,y:s};break;case Vt:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?uc(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case un:c[u]=c[u]-(t[f]/2-r[f]/2);break;case Qn:c[u]=c[u]+(t[f]/2-r[f]/2);break}}return c}function no(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,l=a===void 0?e.strategy:a,s=r.boundary,c=s===void 0?LC:s,u=r.rootBoundary,f=u===void 0?dm:u,d=r.elementContext,y=d===void 0?Zn:d,m=r.altBoundary,b=m===void 0?!1:m,h=r.padding,v=h===void 0?0:h,C=xm(typeof v!="number"?v:Om(v,Jn)),E=y===Zn?FC:Zn,S=e.rects.popper,T=e.elements[b?E:y],w=v1(Hr(T)?T:T.contextElement||$r(e.elements.popper),c,f,l),A=fn(e.elements.reference),M=wm({reference:A,element:S,strategy:"absolute",placement:i}),O=hc(Object.assign({},S,M)),g=y===Zn?O:A,p={top:w.top-g.top+C.top,bottom:g.bottom-w.bottom+C.bottom,left:w.left-g.left+C.left,right:g.right-w.right+C.right},x=e.modifiersData.offset;if(y===Zn&&x){var R=x[i];Object.keys(p).forEach(function(P){var _=[or,nr].indexOf(P)>=0?1:-1,k=[zt,nr].indexOf(P)>=0?"y":"x";p[P]+=R[k]*_})}return p}function b1(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,l=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?mm:c,f=dn(n),d=f?s?hm:hm.filter(function(b){return dn(b)===f}):Jn,y=d.filter(function(b){return u.indexOf(b)>=0});y.length===0&&(y=d);var m=y.reduce(function(b,h){return b[h]=no(e,{placement:h,boundary:i,rootBoundary:a,padding:l})[vr(h)],b},{});return Object.keys(m).sort(function(b,h){return m[b]-m[h]})}function x1(e){if(vr(e)===ac)return[];var t=fi(e);return[Cm(e),t,Cm(t)]}function O1(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,l=r.altAxis,s=l===void 0?!0:l,c=r.fallbackPlacements,u=r.padding,f=r.boundary,d=r.rootBoundary,y=r.altBoundary,m=r.flipVariations,b=m===void 0?!0:m,h=r.allowedAutoPlacements,v=t.options.placement,C=vr(v),E=C===v,S=c||(E||!b?[fi(v)]:x1(v)),T=[v].concat(S).reduce(function(ne,ue){return ne.concat(vr(ue)===ac?b1(t,{placement:ue,boundary:f,rootBoundary:d,padding:u,flipVariations:b,allowedAutoPlacements:h}):ue)},[]),w=t.rects.reference,A=t.rects.popper,M=new Map,O=!0,g=T[0],p=0;p<T.length;p++){var x=T[p],R=vr(x),P=dn(x)===un,_=[zt,nr].indexOf(R)>=0,k=_?"width":"height",D=no(t,{placement:x,boundary:f,rootBoundary:d,altBoundary:y,padding:u}),W=_?P?or:Vt:P?nr:zt;w[k]>A[k]&&(W=fi(W));var Z=fi(W),G=[];if(a&&G.push(D[R]<=0),s&&G.push(D[W]<=0,D[Z]<=0),G.every(function(ne){return ne})){g=x,O=!1;break}M.set(x,G)}if(O)for(var B=b?3:1,Y=function(ue){var ce=T.find(function(ye){var se=M.get(ye);if(se)return se.slice(0,ue).every(function(le){return le})});if(ce)return g=ce,"break"},ae=B;ae>0;ae--){var oe=Y(ae);if(oe==="break")break}t.placement!==g&&(t.modifiersData[n]._skip=!0,t.placement=g,t.reset=!0)}}const E1={name:"flip",enabled:!0,phase:"main",fn:O1,requiresIfExists:["offset"],data:{_skip:!1}};function Rm(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Pm(e){return[zt,or,nr,Vt].some(function(t){return e[t]>=0})}function C1(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,l=no(t,{elementContext:"reference"}),s=no(t,{altBoundary:!0}),c=Rm(l,n),u=Rm(s,i,a),f=Pm(c),d=Pm(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const S1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:C1};function T1(e,t,r){var n=vr(e),i=[Vt,zt].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],s=a[1];return l=l||0,s=(s||0)*i,[Vt,or].indexOf(n)>=0?{x:s,y:l}:{x:l,y:s}}function w1(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,l=mm.reduce(function(f,d){return f[d]=T1(d,t.rects,a),f},{}),s=l[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=l}const R1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:w1};function P1(e){var t=e.state,r=e.name;t.modifiersData[r]=wm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const _1={name:"popperOffsets",enabled:!0,phase:"read",fn:P1,data:{}};function I1(e){return e==="x"?"y":"x"}function k1(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,l=r.altAxis,s=l===void 0?!1:l,c=r.boundary,u=r.rootBoundary,f=r.altBoundary,d=r.padding,y=r.tether,m=y===void 0?!0:y,b=r.tetherOffset,h=b===void 0?0:b,v=no(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:f}),C=vr(t.placement),E=dn(t.placement),S=!E,T=uc(C),w=I1(T),A=t.modifiersData.popperOffsets,M=t.rects.reference,O=t.rects.popper,g=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,p=typeof g=="number"?{mainAxis:g,altAxis:g}:Object.assign({mainAxis:0,altAxis:0},g),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(A){if(a){var P,_=T==="y"?zt:Vt,k=T==="y"?nr:or,D=T==="y"?"height":"width",W=A[T],Z=W+v[_],G=W-v[k],B=m?-O[D]/2:0,Y=E===un?M[D]:O[D],ae=E===un?-O[D]:-M[D],oe=t.elements.arrow,ne=m&&oe?cc(oe):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bm(),ce=ue[_],ye=ue[k],se=to(0,M[D],ne[D]),le=S?M[D]/2-B-se-ce-p.mainAxis:Y-se-ce-p.mainAxis,te=S?-M[D]/2+B+se+ye+p.mainAxis:ae+se+ye+p.mainAxis,ve=t.elements.arrow&&eo(t.elements.arrow),X=ve?T==="y"?ve.clientTop||0:ve.clientLeft||0:0,Re=(P=x==null?void 0:x[T])!=null?P:0,z=W+le-Re-X,pe=W+te-Re,de=to(m?ci(Z,z):Z,W,m?Gr(G,pe):G);A[T]=de,R[T]=de-W}if(s){var Ce,Te=T==="x"?zt:Vt,$e=T==="x"?nr:or,He=A[w],Ne=w==="y"?"height":"width",be=He+v[Te],Fe=He-v[$e],Ye=[zt,Vt].indexOf(C)!==-1,ht=(Ce=x==null?void 0:x[w])!=null?Ce:0,Ct=Ye?be:He-M[Ne]-O[Ne]-ht+p.altAxis,pt=Ye?He+M[Ne]+O[Ne]-ht-p.altAxis:Fe,Ue=m&&Ye?t1(Ct,He,pt):to(m?Ct:be,He,m?pt:Fe);A[w]=Ue,R[w]=Ue-He}t.modifiersData[n]=R}}const j1={name:"preventOverflow",enabled:!0,phase:"main",fn:k1,requiresIfExists:["offset"]};function A1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function N1(e){return e===Kt(e)||!ir(e)?pc(e):A1(e)}function $1(e){var t=e.getBoundingClientRect(),r=pn(t.width)/e.offsetWidth||1,n=pn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function M1(e,t,r){r===void 0&&(r=!1);var n=ir(t),i=ir(t)&&$1(t),a=$r(t),l=fn(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((yr(t)!=="body"||dc(a))&&(s=N1(t)),ir(t)?(c=fn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=fc(a))),{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function D1(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&i(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function L1(e){var t=D1(e);return YC.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function F1(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function B1(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var _m={placement:"bottom",modifiers:[],strategy:"absolute"};function Im(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function q1(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?_m:i;return function(s,c,u){u===void 0&&(u=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},_m,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],y=!1,m={state:f,setOptions:function(C){var E=typeof C=="function"?C(f.options):C;h(),f.options=Object.assign({},a,f.options,E),f.scrollParents={reference:Hr(s)?ro(s):s.contextElement?ro(s.contextElement):[],popper:ro(c)};var S=L1(B1([].concat(n,f.options.modifiers)));return f.orderedModifiers=S.filter(function(T){return T.enabled}),b(),m.update()},forceUpdate:function(){if(!y){var C=f.elements,E=C.reference,S=C.popper;if(Im(E,S)){f.rects={reference:M1(E,eo(S),f.options.strategy==="fixed"),popper:cc(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(p){return f.modifiersData[p.name]=Object.assign({},p.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var w=f.orderedModifiers[T],A=w.fn,M=w.options,O=M===void 0?{}:M,g=w.name;typeof A=="function"&&(f=A({state:f,options:O,name:g,instance:m})||f)}}}},update:F1(function(){return new Promise(function(v){m.forceUpdate(),v(f)})}),destroy:function(){h(),y=!0}};if(!Im(s,c))return m;m.setOptions(u).then(function(v){!y&&u.onFirstUpdate&&u.onFirstUpdate(v)});function b(){f.orderedModifiers.forEach(function(v){var C=v.name,E=v.options,S=E===void 0?{}:E,T=v.effect;if(typeof T=="function"){var w=T({state:f,name:C,instance:m,options:S}),A=function(){};d.push(w||A)}})}function h(){d.forEach(function(v){return v()}),d=[]}return m}}var z1=[p1,_1,c1,QC,R1,E1,j1,i1,S1],V1=q1({defaultModifiers:z1});function U1(e){return We("MuiPopper",e)}qe("MuiPopper",["root"]);function W1(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 di(e){return typeof e=="function"?e():e}function hi(e){return e.nodeType!==void 0}function H1(e){return!hi(e)}const G1=e=>{const{classes:t}=e;return Ge({root:["root"]},U1,t)},K1={},Y1=j.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:a,disablePortal:l,modifiers:s,open:c,placement:u,popperOptions:f,popperRef:d,slotProps:y={},slots:m={},TransitionProps:b,ownerState:h,...v}=t,C=j.useRef(null),E=Ot(C,r),S=j.useRef(null),T=Ot(S,d),w=j.useRef(T);cr(()=>{w.current=T},[T]),j.useImperativeHandle(d,()=>S.current,[]);const A=W1(u,a),[M,O]=j.useState(A),[g,p]=j.useState(di(n));j.useEffect(()=>{S.current&&S.current.forceUpdate()}),j.useEffect(()=>{n&&p(di(n))},[n]),cr(()=>{if(!g||!c)return;const k=Z=>{O(Z.placement)};if(process.env.NODE_ENV!=="production"&&g&&hi(g)&&g.nodeType===1){const Z=g.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Z.top===0&&Z.left===0&&Z.right===0&&Z.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(`
|
|
223
|
-
`))
|
|
224
|
-
`))}
|
|
225
|
-
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Er,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.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:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.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:o.oneOf(["absolute","fixed"])}),popperRef:Dt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const X1=xe(km,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mc=j.forwardRef(function(t,r){const n=$d(),i=Je({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:s,componentsProps:c,container:u,disablePortal:f,keepMounted:d,modifiers:y,open:m,placement:b,popperOptions:h,popperRef:v,transition:C,slots:E,slotProps:S,...T}=i,w=(E==null?void 0:E.root)??(s==null?void 0:s.Root),A={anchorEl:a,container:u,disablePortal:f,keepMounted:d,modifiers:y,open:m,placement:b,popperOptions:h,popperRef:v,transition:C,...T};return N.jsx(X1,{as:l,direction:n?"rtl":"ltr",slots:{root:w},slotProps:S??c,...A,ref:r})});process.env.NODE_ENV!=="production"&&(mc.propTypes={anchorEl:o.oneOfType([Er,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Er,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.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:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.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:o.oneOf(["absolute","fixed"])}),popperRef:Dt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function J1(e){return We("MuiListSubheader",e)}qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Q1=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,l={root:["root",r!=="default"&&`color${he(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return Ge(l,J1,t)},Z1=xe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${he(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Ke(({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}}]}))),mi=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:l="li",disableGutters:s=!1,disableSticky:c=!1,inset:u=!1,...f}=n,d={...n,color:a,component:l,disableGutters:s,disableSticky:c,inset:u},y=Q1(d);return N.jsx(Z1,{as:l,className:Pe(y.root,i),ref:r,ownerState:d,...f})});mi&&(mi.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(mi.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOf(["default","inherit","primary"]),component:o.elementType,disableGutters:o.bool,disableSticky:o.bool,inset:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const eS=_t(N.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 tS(e){return We("MuiAutocomplete",e)}const Le=qe("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 jm,Am;const rS=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:a,hasClearIcon:l,hasPopupIcon:s,inputFocused:c,popupOpen:u,size:f}=e,d={root:["root",n&&"expanded",i&&"focused",a&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${he(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ge(d,tS,t)},nS=xe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,size:s}=r;return[{[`& .${Le.tag}`]:t.tag},{[`& .${Le.tag}`]:t[`tagSize${he(s)}`]},{[`& .${Le.inputRoot}`]:t.inputRoot},{[`& .${Le.input}`]:t.input},{[`& .${Le.input}`]:l&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Le.focused} .${Le.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Le.clearIndicator}`]:{visibility:"visible"}},[`& .${Le.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Le.inputRoot}`]:{[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:30},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:56},[`& .${Le.input}`]:{width:0,minWidth:30}},[`& .${Ar.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ar.root}.${Ht.sizeSmall}`]:{[`& .${Ar.input}`]:{padding:"2px 4px 3px 0"}},[`& .${tr.root}`]:{padding:9,[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:39},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:65},[`& .${Le.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Le.endAdornment}`]:{right:9}},[`& .${tr.root}.${Ht.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Le.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Gt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:39},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:65},[`& .${Gt.input}`]:{padding:"7px 4px"},[`& .${Le.endAdornment}`]:{right:9}},[`& .${Gt.root}.${Ht.sizeSmall}`]:{paddingBottom:1,[`& .${Gt.input}`]:{padding:"2.5px 4px"}},[`& .${Ht.hiddenLabel}`]:{paddingTop:8},[`& .${Gt.root}.${Ht.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Le.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Gt.root}.${Ht.hiddenLabel}.${Ht.sizeSmall}`]:{[`& .${Le.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Le.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Le.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Le.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Le.inputRoot}`]:{flexWrap:"wrap"}}}]}),oS=xe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),iS=xe(ai,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),aS=xe(ai,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),sS=xe(mc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Le.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),lS=xe(Vn,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Ke(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),cS=xe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),uS=xe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),pS=xe("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Ke(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Le.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"},[`&.${Le.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"},[`&.${Le.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})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Le.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Le.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),fS=xe(mi,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Ke(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),dS=xe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Le.option}`]:{paddingLeft:24}}),Nm=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:s=!1,ChipProps:c,className:u,clearIcon:f=jm||(jm=N.jsx(eS,{fontSize:"small"})),clearOnBlur:d=!n.freeSolo,clearOnEscape:y=!1,clearText:m="Clear",closeText:b="Close",componentsProps:h,defaultValue:v=n.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:E=!1,disabled:S=!1,disabledItemsFocusable:T=!1,disableListWrap:w=!1,disablePortal:A=!1,filterOptions:M,filterSelectedOptions:O=!1,forcePopupIcon:g="auto",freeSolo:p=!1,fullWidth:x=!1,getLimitTagsText:R=Xe=>`+${Xe}`,getOptionDisabled:P,getOptionKey:_,getOptionLabel:k,isOptionEqualToValue:D,groupBy:W,handleHomeEndKeys:Z=!n.freeSolo,id:G,includeInputInList:B=!1,inputValue:Y,limitTags:ae=-1,ListboxComponent:oe,ListboxProps:ne,loading:ue=!1,loadingText:ce="Loading…",multiple:ye=!1,noOptionsText:se="No options",onChange:le,onClose:te,onHighlightChange:ve,onInputChange:X,onOpen:Re,open:z,openOnFocus:pe=!1,openText:de="Open",options:Ce,PaperComponent:Te,PopperComponent:$e,popupIcon:He=Am||(Am=N.jsx(Nh,{})),readOnly:Ne=!1,renderGroup:be,renderInput:Fe,renderOption:Ye,renderTags:ht,selectOnFocus:Ct=!n.freeSolo,size:pt="medium",slots:Ue={},slotProps:Be={},value:st,...De}=n,{getRootProps:Ze,getInputProps:mt,getInputLabelProps:ft,getPopupIndicatorProps:Ee,getClearProps:Ae,getTagProps:at,getListboxProps:wt,getOptionProps:St,value:Bt,dirty:Rt,expanded:Yt,id:Xt,popupOpen:U,focused:$,focusedTag:K,anchorEl:V,setAnchorEl:Se,inputValue:ke,groupedOptions:je}=DC({...n,componentName:"Autocomplete"}),ee=!C&&!S&&Rt&&!Ne,L=(!p||g===!0)&&g!==!1,{onMouseDown:H}=mt(),{ref:ie,...Oe}=wt(),lt=k||(Xe=>Xe.label??Xe),I={...n,disablePortal:A,expanded:Yt,focused:$,fullWidth:x,getOptionLabel:lt,hasClearIcon:ee,hasPopupIcon:L,inputFocused:K===-1,popupOpen:U,size:pt},J=rS(I),fe={slots:{paper:Te,popper:$e,...Ue},slotProps:{chip:c,listbox:ne,...h,...Be}},[F,q]=Lt("listbox",{elementType:pS,externalForwardedProps:fe,ownerState:I,className:J.listbox,additionalProps:Oe,ref:ie}),[re,me]=Lt("paper",{elementType:Vn,externalForwardedProps:fe,ownerState:I,className:J.paper}),[ge,Ie]=Lt("popper",{elementType:mc,externalForwardedProps:fe,ownerState:I,className:J.popper,additionalProps:{disablePortal:A,style:{width:V?V.clientWidth:null},role:"presentation",anchorEl:V,open:U}});let _e;if(ye&&Bt.length>0){const Xe=br=>({className:J.tag,disabled:S,...at(br)});ht?_e=ht(Bt,Xe,I):_e=Bt.map((br,Dr)=>{const{key:oo,...OS}=Xe({index:Dr});return N.jsx(Yl,{label:lt(br),size:pt,...OS,...fe.slotProps.chip},oo)})}if(ae>-1&&Array.isArray(_e)){const Xe=_e.length-ae;!$&&Xe>0&&(_e=_e.splice(0,ae),_e.push(N.jsx("span",{className:J.tag,children:R(Xe)},_e.length)))}const Et=be||(Xe=>N.jsxs("li",{children:[N.jsx(fS,{className:J.groupLabel,ownerState:I,component:"div",children:Xe.group}),N.jsx(dS,{className:J.groupUl,ownerState:I,children:Xe.children})]},Xe.key)),vt=Ye||((Xe,br)=>{const{key:Dr,...oo}=Xe;return N.jsx("li",{...oo,children:lt(br)},Dr)}),Pt=(Xe,br)=>{const Dr=St({option:Xe,index:br});return vt({...Dr,className:J.option},Xe,{selected:Dr["aria-selected"],index:br,inputValue:ke},I)},It=fe.slotProps.clearIndicator,Mr=fe.slotProps.popupIndicator,Kr=Xe=>N.jsx(sS,{as:ge,...Ie,children:N.jsx(lS,{as:re,...me,children:Xe})});let yi=null;return je.length>0?yi=Kr(N.jsx(F,{as:oe,...q,children:je.map((Xe,br)=>W?Et({key:Xe.key,group:Xe.group,children:Xe.options.map((Dr,oo)=>Pt(Dr,Xe.index+oo))}):Pt(Xe,br))})):ue&&je.length===0?yi=Kr(N.jsx(cS,{className:J.loading,ownerState:I,children:ce})):je.length===0&&!p&&!ue&&(yi=Kr(N.jsx(uS,{className:J.noOptions,ownerState:I,role:"presentation",onMouseDown:Xe=>{Xe.preventDefault()},children:se}))),N.jsxs(j.Fragment,{children:[N.jsx(nS,{ref:r,className:Pe(J.root,u),ownerState:I,...Ze(De),children:Fe({id:Xt,disabled:S,fullWidth:!0,size:pt==="small"?"small":void 0,InputLabelProps:ft(),InputProps:{ref:Se,className:J.inputRoot,startAdornment:_e,onMouseDown:Xe=>{Xe.target===Xe.currentTarget&&H(Xe)},...(ee||L)&&{endAdornment:N.jsxs(oS,{className:J.endAdornment,ownerState:I,children:[ee?N.jsx(iS,{...Ae(),"aria-label":m,title:m,ownerState:I,...It,className:Pe(J.clearIndicator,It==null?void 0:It.className),children:f}):null,L?N.jsx(aS,{...Ee(),disabled:S,"aria-label":U?b:de,title:U?b:de,ownerState:I,...Mr,className:Pe(J.popupIndicator,Mr==null?void 0:Mr.className),children:He}):null]})}},inputProps:{className:J.input,disabled:S,readOnly:Ne,...mt()}})}),V?yi:null]})});process.env.NODE_ENV!=="production"&&(Nm.propTypes={autoComplete:o.bool,autoHighlight:o.bool,autoSelect:o.bool,blurOnSelect:o.oneOfType([o.oneOf(["mouse","touch"]),o.bool]),ChipProps:o.object,classes:o.object,className:o.string,clearIcon:o.node,clearOnBlur:o.bool,clearOnEscape:o.bool,clearText:o.string,closeText:o.string,componentsProps:o.shape({clearIndicator:o.object,paper:o.object,popper:o.object,popupIndicator:o.object}),defaultValue:ur(o.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(`
|
|
226
|
-
`)):null),disableClearable:o.bool,disableCloseOnSelect:o.bool,disabled:o.bool,disabledItemsFocusable:o.bool,disableListWrap:o.bool,disablePortal:o.bool,filterOptions:o.func,filterSelectedOptions:o.bool,forcePopupIcon:o.oneOfType([o.oneOf(["auto"]),o.bool]),freeSolo:o.bool,fullWidth:o.bool,getLimitTagsText:o.func,getOptionDisabled:o.func,getOptionKey:o.func,getOptionLabel:o.func,groupBy:o.func,handleHomeEndKeys:o.bool,id:o.string,includeInputInList:o.bool,inputValue:o.string,isOptionEqualToValue:o.func,limitTags:Tl,ListboxComponent:o.elementType,ListboxProps:o.object,loading:o.bool,loadingText:o.node,multiple:o.bool,noOptionsText:o.node,onChange:o.func,onClose:o.func,onHighlightChange:o.func,onInputChange:o.func,onKeyDown:o.func,onOpen:o.func,open:o.bool,openOnFocus:o.bool,openText:o.string,options:o.array.isRequired,PaperComponent:o.elementType,PopperComponent:o.elementType,popupIcon:o.node,readOnly:o.bool,renderGroup:o.func,renderInput:o.func.isRequired,renderOption:o.func,renderTags:o.func,selectOnFocus:o.bool,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({chip:o.oneOfType([o.func,o.object]),clearIndicator:o.oneOfType([o.func,o.object]),listbox:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),popupIndicator:o.oneOfType([o.func,o.object])}),slots:o.shape({listbox:o.elementType,paper:o.elementType,popper:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:ur(o.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(`
|
|
227
|
-
`)):null)});var gi={exports:{}},hS=gi.exports,$m;function mS(){return $m||($m=1,function(e){(function(t,r){e.exports=r()})(hS,function(){var t=Object.prototype.toString;function r(d,y){return d==null?!1:Object.prototype.hasOwnProperty.call(d,y)}function n(d){if(!d||l(d)&&d.length===0)return!0;if(typeof d!="string"){for(var y in d)if(r(d,y))return!1;return!0}return!1}function i(d){return t.call(d)}function a(d){return typeof d=="object"&&i(d)==="[object Object]"}var l=Array.isArray||function(d){return t.call(d)==="[object Array]"};function s(d){return typeof d=="boolean"||i(d)==="[object Boolean]"}function c(d){var y=parseInt(d);return y.toString()===d?y:d}function u(d){d=d||{};var y=function(C){return Object.keys(y).reduce(function(E,S){return S==="create"||typeof y[S]=="function"&&(E[S]=y[S].bind(y,C)),E},{})},m;d.includeInheritedProps?m=function(){return!0}:m=function(C,E){return typeof E=="number"&&Array.isArray(C)||r(C,E)};function b(C,E){if(m(C,E))return C[E]}var h;d.includeInheritedProps?h=function(C,E){typeof E!="string"&&typeof E!="number"&&(E=String(E));var S=b(C,E);if(E==="__proto__"||E==="prototype"||E==="constructor"&&typeof S=="function")throw new Error("For security reasons, object's magic properties cannot be set");return S}:h=function(C,E){return b(C,E)};function v(C,E,S,T){if(typeof E=="number"&&(E=[E]),!E||E.length===0)return C;if(typeof E=="string")return v(C,E.split(".").map(c),S,T);var w=E[0],A=h(C,w);return E.length===1?((A===void 0||!T)&&(C[w]=S),A):(A===void 0&&(typeof E[1]=="number"?C[w]=[]:C[w]={}),v(C[w],E.slice(1),S,T))}return y.has=function(C,E){if(typeof E=="number"?E=[E]:typeof E=="string"&&(E=E.split(".")),!E||E.length===0)return!!C;for(var S=0;S<E.length;S++){var T=c(E[S]);if(typeof T=="number"&&l(C)&&T<C.length||(d.includeInheritedProps?T in Object(C):r(C,T)))C=C[T];else return!1}return!0},y.ensureExists=function(C,E,S){return v(C,E,S,!0)},y.set=function(C,E,S,T){return v(C,E,S,T)},y.insert=function(C,E,S,T){var w=y.get(C,E);T=~~T,l(w)||(w=[],y.set(C,E,w)),w.splice(T,0,S)},y.empty=function(C,E){if(!n(E)&&C!=null){var S,T;if(S=y.get(C,E)){if(typeof S=="string")return y.set(C,E,"");if(s(S))return y.set(C,E,!1);if(typeof S=="number")return y.set(C,E,0);if(l(S))S.length=0;else if(a(S))for(T in S)m(S,T)&&delete S[T];else return y.set(C,E,null)}}},y.push=function(C,E){var S=y.get(C,E);l(S)||(S=[],y.set(C,E,S)),S.push.apply(S,Array.prototype.slice.call(arguments,2))},y.coalesce=function(C,E,S){for(var T,w=0,A=E.length;w<A;w++)if((T=y.get(C,E[w]))!==void 0)return T;return S},y.get=function(C,E,S){if(typeof E=="number"&&(E=[E]),!E||E.length===0)return C;if(C==null)return S;if(typeof E=="string")return y.get(C,E.split("."),S);var T=c(E[0]),w=h(C,T);return w===void 0?S:E.length===1?w:y.get(C[T],E.slice(1),S)},y.del=function(E,S){if(typeof S=="number"&&(S=[S]),E==null||n(S))return E;if(typeof S=="string")return y.del(E,S.split("."));var T=c(S[0]);if(h(E,T),!m(E,T))return E;if(S.length===1)l(E)?E.splice(T,1):delete E[T];else return y.del(E[T],S.slice(1));return E},y}var f=u();return f.create=u,f.withInheritedProps=u({includeInheritedProps:!0}),f})}(gi)),gi.exports}var gS=mS();const yS=Jt(gS);String.prototype.format=function(){for(var e=this,t=0;t<arguments.length;t++){var r=new RegExp("\\{"+t+"\\}","gi");e=e.replace(r,arguments[t])}return e};function vS(e){const{value:t,error:r,onChangeValidate:n,form:{schema:{type:i},action:a,title:l,required:s,multiple:c,disabled:u,options:f},model:d}=e,y=i==="array"?[]:"",[m,b]=we.useState(t||y),[h,v]=we.useState([]),{url:C,params:E}=a||{},S=E&&E.some(g=>g!=null)?E.map(g=>yS.get(d,g)):[];we.useEffect(()=>{const g=E?S.length>0?C.format(...S):"":C;g&&w(g)},S),we.useEffect(()=>{i==="array"?n(m):m!==null&&n({target:{value:m}})},[m]);const T=(g,p)=>{if(i!=="array")if(c){const x=p.map(R=>R.id).join(",");b(x)}else b(p.id);else b(c?p.map(x=>x.id):[p.id])},w=g=>{if(g.includes("=undefined")||g.includes("=&")||g.endsWith("="))return;const p=new um,x={"Content-Type":"application/json"};p.get("csrf")&&Object.assign(x,{"X-CSRF-TOKEN":p.get("csrf")}),fetch(g,{headers:x,credentials:"include"}).then(R=>R.ok?R.json():R.text().then(P=>{throw new Error(P)})).then(R=>{v(R)}).catch(R=>{console.error(R)})};let A="";r&&(A=N.jsx("div",{style:{color:"red"},children:r}));let M;const O=f&&f.length>0?f:h;return c?Array.isArray(t)?M=t?O.filter(g=>t.includes(g.id)):[]:M=t?O.filter(g=>t.split(",").includes(g.id)):[]:Array.isArray(t)?M=t.length===1?O.find(g=>g.id===t[0]):null:M=t?O.find(g=>g.id===t):null,N.jsxs("div",{children:[N.jsx(Nm,{multiple:c,disabled:u,getOptionLabel:g=>g.label||"",value:M||(c?[]:""),onChange:T,options:O,renderInput:g=>N.jsx(ti,{...g,label:s?l+" *":l})}),A]})}const bS=jt(vS),xS=e=>{let t=e&&typeof e=="object"&&e.toISOString().slice(0,10)||e;return t||(t=""),t.length>0&&(t=new Date(t).toISOString().slice(0,10)),t};class Mm extends we.Component{constructor(r){super(r);Tt(this,"mapper",{number:wO,text:Hn,password:Hn,textarea:RO,markdown:PO,textsuggest:IO,select:ZO,taxonomy:jC,radios:NE,date:$E,timestamp:DE,checkbox:KE,help:YE,array:rm,tBoolean:mC,fieldset:am,tuple:am,multiselect:lE,dynaselect:bS});Tt(this,"setDefault",(r,n,i,a)=>{const{onModelChange:l}=this.props,s=Mt.selectOrSet(r,n);_p(s)&&!_p(a)&&l(r,a,i.type,i)});Tt(this,"getLocalization",()=>{const{localization:r}=this.props;return{getLocalizedString:r&&r.getLocalizedString?r.getLocalizedString:n=>n,getLocalizedNumber:r&&r.getLocalizedNumber?r.getLocalizedNumber:n=>n,getLocalizedDate:r&&r.getLocalizedDate?r.getLocalizedDate:xS}});this.builder=this.builder.bind(this)}builder(r,n,i,a,l,s){const{errors:c,showErrors:u,evalContext:f}=this.props,d=this.mapper[r.type];if(!d||r.condition)return null;const y=r.key&&r.key.join(".")||i,m=c&&y in c?c[y]:null;return N.jsx(d,{model:n,form:r,onChange:l,setDefault:this.setDefault,mapper:a,builder:s,errorText:m,localization:this.getLocalization(),showErrors:u},y)}render(){const{schema:r,form:n,ignore:i,option:a,model:l,className:s,onModelChange:c,mapper:u}=this.props,f=Mt.merge(r,n,i,a);let d=this.mapper;u&&(d=qg(this.mapper,u));const y=f.map((m,b)=>this.builder(m,l,b,d,c,this.builder));return N.jsx("div",{className:s,children:y})}}Mm.defaultProps={localization:void 0,showErrors:!1},bt.Array=rm,bt.ComposedComponent=jt,bt.SchemaForm=Mm,bt.utils=Mt,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})});
|
|
240
|
+
*/var Nv;function lN(){if(Nv)return oa;Nv=1,oa.parse=l,oa.serialize=u;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(b,y){if(typeof b!="string")throw new TypeError("argument str must be a string");var m={},g=b.length;if(g<2)return m;var w=y&&y.decode||d,x=0,O=0,T=0;do{if(O=b.indexOf("=",x),O===-1)break;if(T=b.indexOf(";",x),T===-1)T=g;else if(O>T){x=b.lastIndexOf(";",O-1)+1;continue}var R=a(b,x,O),A=c(b,O,R),N=b.slice(R,A);if(!t.call(m,N)){var S=a(b,O+1,T),v=c(b,T,S);b.charCodeAt(S)===34&&b.charCodeAt(v-1)===34&&(S++,v--);var f=b.slice(S,v);m[N]=h(f,w)}x=T+1}while(x<g);return m}function a(b,y,m){do{var g=b.charCodeAt(y);if(g!==32&&g!==9)return y}while(++y<m);return m}function c(b,y,m){for(;y>m;){var g=b.charCodeAt(--y);if(g!==32&&g!==9)return y+1}return m}function u(b,y,m){var g=m&&m.encode||encodeURIComponent;if(typeof g!="function")throw new TypeError("option encode is invalid");if(!n.test(b))throw new TypeError("argument name is invalid");var w=g(y);if(!o.test(w))throw new TypeError("argument val is invalid");var x=b+"="+w;if(!m)return x;if(m.maxAge!=null){var O=Math.floor(m.maxAge);if(!isFinite(O))throw new TypeError("option maxAge is invalid");x+="; Max-Age="+O}if(m.domain){if(!i.test(m.domain))throw new TypeError("option domain is invalid");x+="; Domain="+m.domain}if(m.path){if(!s.test(m.path))throw new TypeError("option path is invalid");x+="; Path="+m.path}if(m.expires){var T=m.expires;if(!p(T)||isNaN(T.valueOf()))throw new TypeError("option expires is invalid");x+="; Expires="+T.toUTCString()}if(m.httpOnly&&(x+="; HttpOnly"),m.secure&&(x+="; Secure"),m.partitioned&&(x+="; Partitioned"),m.priority){var R=typeof m.priority=="string"?m.priority.toLowerCase():m.priority;switch(R){case"low":x+="; Priority=Low";break;case"medium":x+="; Priority=Medium";break;case"high":x+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(m.sameSite){var A=typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.sameSite;switch(A){case!0:x+="; SameSite=Strict";break;case"lax":x+="; SameSite=Lax";break;case"strict":x+="; SameSite=Strict";break;case"none":x+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return x}function d(b){return b.indexOf("%")!==-1?decodeURIComponent(b):b}function p(b){return e.call(b)==="[object Date]"}function h(b,y){try{return y(b)}catch{return b}}return oa}var ia=lN();function cN(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function uN(e){return typeof e=="string"?ia.parse(e):typeof e=="object"&&e!==null?e:{}}function Ed(e,t={}){const n=dN(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function dN(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class _v{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=ia.parse(document.cookie),this._checkChanges(i)};const o=typeof document>"u"?"":document.cookie;this.cookies=uN(t||o),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=cN()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(o=>{t[o]!==this.cookies[o]&&this._emitChange({name:o,value:Ed(this.cookies[o])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Ed(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let o in this.cookies)n[o]=Ed(this.cookies[o],t);return n}set(t,n,o){o?o=Object.assign(Object.assign({},this.defaultSetOptions),o):o=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ia.serialize(t,i,o)),this._emitChange({name:t,value:n,options:o})}remove(t,n){const o=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=ia.serialize(t,"",o)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function pN(e){const{model:t,form:n,value:o,error:i,setDefault:s,onChangeValidate:l}=e,{key:a,title:c,action:u}=n;s(a,t,n,o);const[d,p]=_e.useState(o||[]),[h,b]=_e.useState([]),[y,m]=_e.useState([]);_e.useEffect(()=>{l(d)},[d]);const g=x=>{const O=new _v,T={"Content-Type":"application/json"};O.get("csrf")&&Object.assign(T,{"X-CSRF-TOKEN":O.get("csrf")}),fetch(x,{headers:T,credentials:"include"}).then(R=>R.ok?R.json():R.text().then(A=>{throw new Error(A)})).then(R=>{m(R)}).catch(R=>{console.error(R)})};_e.useEffect(()=>{const{url:x}=u;g(x)},[]);const w={check:k.jsx(eN,{className:"rct-icon rct-icon-check"}),uncheck:k.jsx(tN,{className:"rct-icon rct-icon-uncheck"}),halfCheck:k.jsx(Av,{className:"rct-icon rct-icon-half-check"}),expandClose:k.jsx(nN,{className:"rct-icon rct-icon-expand-close"}),expandOpen:k.jsx(rN,{className:"rct-icon rct-icon-expand-open"}),expandAll:k.jsx(oN,{className:"rct-icon rct-icon-expand-all"}),collapseAll:k.jsx(Av,{className:"rct-icon rct-icon-collapse-all"}),parentClose:k.jsx(iN,{className:"rct-icon rct-icon-parent-close"}),parentOpen:k.jsx(sN,{className:"rct-icon rct-icon-parent-open"}),leaf:k.jsx(aN,{className:"rct-icon rct-icon-leaf-close"})};return k.jsxs(_e.Fragment,{children:[k.jsx(ur,{required:n.required,children:c}),k.jsx(JA,{nodes:y,checked:d,expanded:h,onCheck:x=>p(x),onExpand:x=>b(x),icons:w,noCascade:!0}),i?k.jsx(Kr,{error:!0,children:i}):null]})}const fN=Ht(pN);function $v(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function hN(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:o,matchFrom:i="any",stringify:s,trim:l=!1}=e;return(a,{inputValue:c,getOptionLabel:u})=>{let d=l?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=$v(d));const p=d?a.filter(h=>{let b=(s||u)(h);return n&&(b=b.toLowerCase()),t&&(b=$v(b)),i==="start"?b.startsWith(d):b.includes(d)}):a;return typeof o=="number"?p.slice(0,o):p}}const mN=hN(),Fv=5,bN=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},gN=[];function yN(e){const{unstable_isActiveElementInListbox:t=bN,unstable_classNamePrefix:n="Mui",autoComplete:o=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:l=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?gN:null,disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:b,disabledItemsFocusable:y=!1,disableListWrap:m=!1,filterOptions:g=mN,filterSelectedOptions:w=!1,freeSolo:x=!1,getOptionDisabled:O,getOptionKey:T,getOptionLabel:R=ae=>ae.label??ae,groupBy:A,handleHomeEndKeys:N=!e.freeSolo,id:S,includeInputInList:v=!1,inputValue:f,isOptionEqualToValue:C=(ae,ce)=>ae===ce,multiple:P=!1,onChange:M,onClose:D,onHighlightChange:I,onInputChange:j,onOpen:$,open:F,openOnFocus:L=!1,options:_,readOnly:B=!1,selectOnFocus:oe=!e.freeSolo,value:X}=e,ee=wo(S);let Y=R;Y=ae=>{const ce=R(ae);if(typeof ce!="string"){if(process.env.NODE_ENV!=="production"){const Ce=ce===void 0?"undefined":`${typeof ce} (${ce})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${Ce} instead of a string for ${JSON.stringify(ae)}.`)}return String(ce)}return ce};const J=E.useRef(!1),se=E.useRef(!0),z=E.useRef(null),H=E.useRef(null),[G,ue]=E.useState(null),[U,Q]=E.useState(-1),q=i?0:-1,ne=E.useRef(q),[Z,te]=xr({controlled:X,default:d,name:u}),[le,fe]=xr({controlled:f,default:"",name:u,state:"inputValue"}),[xe,Ee]=E.useState(!1),Te=E.useCallback((ae,ce,Ce)=>{if(!(P?Z.length<ce.length:ce!==null)&&!a)return;let Me;if(P)Me="";else if(ce==null)Me="";else{const Be=Y(ce);Me=typeof Be=="string"?Be:""}le!==Me&&(fe(Me),j&&j(ae,Me,Ce))},[Y,le,P,j,fe,a,Z]),[$e,Ze]=xr({controlled:F,default:!1,name:u,state:"open"}),[We,it]=E.useState(!0),st=!P&&Z!=null&&le===Y(Z),Ge=$e&&!B,Ke=Ge?g(_.filter(ae=>!(w&&(P?Z:[Z]).some(ce=>ce!==null&&C(ae,ce)))),{inputValue:st&&We?"":le,getOptionLabel:Y}):[],ut=Uw({filteredOptions:Ke,value:Z,inputValue:le});E.useEffect(()=>{const ae=Z!==ut.value;xe&&!ae||x&&!ae||Te(null,Z,"reset")},[Z,Te,xe,ut.value,x]);const ze=$e&&Ke.length>0&&!B,ct=pn(ae=>{ae===-1?z.current.focus():G.querySelector(`[data-tag-index="${ae}"]`).focus()});E.useEffect(()=>{P&&U>Z.length-1&&(Q(-1),ct(-1))},[Z,P,U,ct]);function Tt(ae,ce){if(!H.current||ae<0||ae>=Ke.length)return-1;let Ce=ae;for(;;){const ke=H.current.querySelector(`[data-option-index="${Ce}"]`),Me=y?!1:!ke||ke.disabled||ke.getAttribute("aria-disabled")==="true";if(ke&&ke.hasAttribute("tabindex")&&!Me)return Ce;if(ce==="next"?Ce=(Ce+1)%Ke.length:Ce=(Ce-1+Ke.length)%Ke.length,Ce===ae)return-1}}const dt=pn(({event:ae,index:ce,reason:Ce="auto"})=>{if(ne.current=ce,ce===-1?z.current.removeAttribute("aria-activedescendant"):z.current.setAttribute("aria-activedescendant",`${ee}-option-${ce}`),I&&I(ae,ce===-1?null:Ke[ce],Ce),!H.current)return;const ke=H.current.querySelector(`[role="option"].${n}-focused`);ke&&(ke.classList.remove(`${n}-focused`),ke.classList.remove(`${n}-focusVisible`));let Me=H.current;if(H.current.getAttribute("role")!=="listbox"&&(Me=H.current.parentElement.querySelector('[role="listbox"]')),!Me)return;if(ce===-1){Me.scrollTop=0;return}const Be=H.current.querySelector(`[data-option-index="${ce}"]`);if(Be&&(Be.classList.add(`${n}-focused`),Ce==="keyboard"&&Be.classList.add(`${n}-focusVisible`),Me.scrollHeight>Me.clientHeight&&Ce!=="mouse"&&Ce!=="touch")){const Ve=Be,rt=Me.clientHeight+Me.scrollTop,Ft=Ve.offsetTop+Ve.offsetHeight;Ft>rt?Me.scrollTop=Ft-Me.clientHeight:Ve.offsetTop-Ve.offsetHeight*(A?1.3:0)<Me.scrollTop&&(Me.scrollTop=Ve.offsetTop-Ve.offsetHeight*(A?1.3:0))}}),ge=pn(({event:ae,diff:ce,direction:Ce="next",reason:ke="auto"})=>{if(!Ge)return;const Be=Tt((()=>{const Ve=Ke.length-1;if(ce==="reset")return q;if(ce==="start")return 0;if(ce==="end")return Ve;const rt=ne.current+ce;return rt<0?rt===-1&&v?-1:m&&ne.current!==-1||Math.abs(ce)>1?0:Ve:rt>Ve?rt===Ve+1&&v?-1:m||Math.abs(ce)>1?Ve:0:rt})(),Ce);if(dt({index:Be,reason:ke,event:ae}),o&&ce!=="reset")if(Be===-1)z.current.value=le;else{const Ve=Y(Ke[Be]);z.current.value=Ve,Ve.toLowerCase().indexOf(le.toLowerCase())===0&&le.length>0&&z.current.setSelectionRange(le.length,Ve.length)}}),Se=()=>{const ae=(ce,Ce)=>{const ke=ce?Y(ce):"",Me=Ce?Y(Ce):"";return ke===Me};if(ne.current!==-1&&ut.filteredOptions&&ut.filteredOptions.length!==Ke.length&&ut.inputValue===le&&(P?Z.length===ut.value.length&&ut.value.every((ce,Ce)=>Y(Z[Ce])===Y(ce)):ae(ut.value,Z))){const ce=ut.filteredOptions[ne.current];if(ce)return Ke.findIndex(Ce=>Y(Ce)===Y(ce))}return-1},Ae=E.useCallback(()=>{if(!Ge)return;const ae=Se();if(ae!==-1){ne.current=ae;return}const ce=P?Z[0]:Z;if(Ke.length===0||ce==null){ge({diff:"reset"});return}if(H.current){if(ce!=null){const Ce=Ke[ne.current];if(P&&Ce&&Z.findIndex(Me=>C(Ce,Me))!==-1)return;const ke=Ke.findIndex(Me=>C(Me,ce));ke===-1?ge({diff:"reset"}):dt({index:ke});return}if(ne.current>=Ke.length-1){dt({index:Ke.length-1});return}dt({index:ne.current})}},[Ke.length,P?!1:Z,w,ge,dt,Ge,le,P]),Fe=pn(ae=>{ls(H,ae),ae&&Ae()});process.env.NODE_ENV!=="production"&&E.useEffect(()=>{(!z.current||z.current.nodeName!=="INPUT")&&(z.current&&z.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
241
|
+
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${z.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="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(`
|
|
242
|
+
`)))},[u]),E.useEffect(()=>{Ae()},[Ae]);const De=ae=>{$e||(Ze(!0),it(!0),$&&$(ae))},at=(ae,ce)=>{$e&&(Ze(!1),D&&D(ae,ce))},pt=(ae,ce,Ce,ke)=>{if(P){if(Z.length===ce.length&&Z.every((Me,Be)=>Me===ce[Be]))return}else if(Z===ce)return;M&&M(ae,ce,Ce,ke),te(ce)},Rt=E.useRef(!1),Jt=(ae,ce,Ce="selectOption",ke="options")=>{let Me=Ce,Be=ce;if(P){if(Be=Array.isArray(Z)?Z.slice():[],process.env.NODE_ENV!=="production"){const rt=Be.filter(Ft=>C(ce,Ft));rt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${rt.length} matches.`].join(`
|
|
243
|
+
`))}const Ve=Be.findIndex(rt=>C(ce,rt));Ve===-1?Be.push(ce):ke!=="freeSolo"&&(Be.splice(Ve,1),Me="removeOption")}Te(ae,Be,Me),pt(ae,Be,Me,{option:ce}),!h&&(!ae||!ae.ctrlKey&&!ae.metaKey)&&at(ae,Me),(l===!0||l==="touch"&&Rt.current||l==="mouse"&&!Rt.current)&&z.current.blur()};function de(ae,ce){if(ae===-1)return-1;let Ce=ae;for(;;){if(ce==="next"&&Ce===Z.length||ce==="previous"&&Ce===-1)return-1;const ke=G.querySelector(`[data-tag-index="${Ce}"]`);if(!ke||!ke.hasAttribute("tabindex")||ke.disabled||ke.getAttribute("aria-disabled")==="true")Ce+=ce==="next"?1:-1;else return Ce}}const K=(ae,ce)=>{if(!P)return;le===""&&at(ae,"toggleInput");let Ce=U;U===-1?le===""&&ce==="previous"&&(Ce=Z.length-1):(Ce+=ce==="next"?1:-1,Ce<0&&(Ce=0),Ce===Z.length&&(Ce=-1)),Ce=de(Ce,ce),Q(Ce),ct(Ce)},me=ae=>{J.current=!0,fe(""),j&&j(ae,"","clear"),pt(ae,P?[]:null,"clear")},pe=ae=>ce=>{if(ae.onKeyDown&&ae.onKeyDown(ce),!ce.defaultMuiPrevented&&(U!==-1&&!["ArrowLeft","ArrowRight"].includes(ce.key)&&(Q(-1),ct(-1)),ce.which!==229))switch(ce.key){case"Home":Ge&&N&&(ce.preventDefault(),ge({diff:"start",direction:"next",reason:"keyboard",event:ce}));break;case"End":Ge&&N&&(ce.preventDefault(),ge({diff:"end",direction:"previous",reason:"keyboard",event:ce}));break;case"PageUp":ce.preventDefault(),ge({diff:-Fv,direction:"previous",reason:"keyboard",event:ce}),De(ce);break;case"PageDown":ce.preventDefault(),ge({diff:Fv,direction:"next",reason:"keyboard",event:ce}),De(ce);break;case"ArrowDown":ce.preventDefault(),ge({diff:1,direction:"next",reason:"keyboard",event:ce}),De(ce);break;case"ArrowUp":ce.preventDefault(),ge({diff:-1,direction:"previous",reason:"keyboard",event:ce}),De(ce);break;case"ArrowLeft":K(ce,"previous");break;case"ArrowRight":K(ce,"next");break;case"Enter":if(ne.current!==-1&&Ge){const Ce=Ke[ne.current],ke=O?O(Ce):!1;if(ce.preventDefault(),ke)return;Jt(ce,Ce,"selectOption"),o&&z.current.setSelectionRange(z.current.value.length,z.current.value.length)}else x&&le!==""&&st===!1&&(P&&ce.preventDefault(),Jt(ce,le,"createOption","freeSolo"));break;case"Escape":Ge?(ce.preventDefault(),ce.stopPropagation(),at(ce,"escape")):c&&(le!==""||P&&Z.length>0)&&(ce.preventDefault(),ce.stopPropagation(),me(ce));break;case"Backspace":if(P&&!B&&le===""&&Z.length>0){const Ce=U===-1?Z.length-1:U,ke=Z.slice();ke.splice(Ce,1),pt(ce,ke,"removeOption",{option:Z[Ce]})}break;case"Delete":if(P&&!B&&le===""&&Z.length>0&&U!==-1){const Ce=U,ke=Z.slice();ke.splice(Ce,1),pt(ce,ke,"removeOption",{option:Z[Ce]})}break}},Ne=ae=>{Ee(!0),L&&!J.current&&De(ae)},Ue=ae=>{if(t(H)){z.current.focus();return}Ee(!1),se.current=!0,J.current=!1,s&&ne.current!==-1&&Ge?Jt(ae,Ke[ne.current],"blur"):s&&x&&le!==""?Jt(ae,le,"blur","freeSolo"):a&&Te(ae,Z,"blur"),at(ae,"blur")},He=ae=>{const ce=ae.target.value;le!==ce&&(fe(ce),it(!1),j&&j(ae,ce,"input")),ce===""?!p&&!P&&pt(ae,null,"clear"):De(ae)},ve=ae=>{const ce=Number(ae.currentTarget.getAttribute("data-option-index"));ne.current!==ce&&dt({event:ae,index:ce,reason:"mouse"})},ie=ae=>{dt({event:ae,index:Number(ae.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Rt.current=!0},he=ae=>{const ce=Number(ae.currentTarget.getAttribute("data-option-index"));Jt(ae,Ke[ce],"selectOption"),Rt.current=!1},Oe=ae=>ce=>{const Ce=Z.slice();Ce.splice(ae,1),pt(ce,Ce,"removeOption",{option:Z[ae]})},Ie=ae=>{$e?at(ae,"toggleInput"):De(ae)},Je=ae=>{ae.currentTarget.contains(ae.target)&&ae.target.getAttribute("id")!==ee&&ae.preventDefault()},Pt=ae=>{ae.currentTarget.contains(ae.target)&&(z.current.focus(),oe&&se.current&&z.current.selectionEnd-z.current.selectionStart===0&&z.current.select(),se.current=!1)},V=ae=>{!b&&(le===""||!$e)&&Ie(ae)};let be=x&&le.length>0;be=be||(P?Z.length>0:Z!==null);let Pe=Ke;if(A){const ae=new Map;let ce=!1;Pe=Ke.reduce((Ce,ke,Me)=>{const Be=A(ke);return Ce.length>0&&Ce[Ce.length-1].group===Be?Ce[Ce.length-1].options.push(ke):(process.env.NODE_ENV!=="production"&&(ae.get(Be)&&!ce&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),ce=!0),ae.set(Be,!0)),Ce.push({key:Me,index:Me,group:Be,options:[ke]})),Ce},[])}return b&&xe&&Ue(),{getRootProps:(ae={})=>({"aria-owns":ze?`${ee}-listbox`:null,...ae,onKeyDown:pe(ae),onMouseDown:Je,onClick:Pt}),getInputLabelProps:()=>({id:`${ee}-label`,htmlFor:ee}),getInputProps:()=>({id:ee,value:le,onBlur:Ue,onFocus:Ne,onChange:He,onMouseDown:V,"aria-activedescendant":Ge?"":null,"aria-autocomplete":o?"both":"list","aria-controls":ze?`${ee}-listbox`:void 0,"aria-expanded":ze,autoComplete:"off",ref:z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:b}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:me}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ie}),getTagProps:({index:ae})=>({key:ae,"data-tag-index":ae,tabIndex:-1,...!B&&{onDelete:Oe(ae)}}),getListboxProps:()=>({role:"listbox",id:`${ee}-listbox`,"aria-labelledby":`${ee}-label`,ref:Fe,onMouseDown:ae=>{ae.preventDefault()}}),getOptionProps:({index:ae,option:ce})=>{const Ce=(P?Z:[Z]).some(Me=>Me!=null&&C(ce,Me)),ke=O?O(ce):!1;return{key:(T==null?void 0:T(ce))??Y(ce),tabIndex:-1,role:"option",id:`${ee}-option-${ae}`,onMouseMove:ve,onClick:he,onTouchStart:ie,"data-option-index":ae,"aria-disabled":ke,"aria-selected":Ce}},id:ee,inputValue:le,value:Z,dirty:be,expanded:Ge&&G,popupOpen:Ge,focused:xe||U!==-1,anchorEl:G,setAnchorEl:ue,focusedTag:U,groupedOptions:Pe}}function vN(e){return Ye("MuiListSubheader",e)}qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const xN=e=>{const{classes:t,color:n,disableGutters:o,inset:i,disableSticky:s}=e,l={root:["root",n!=="default"&&`color${Re(n)}`,!o&&"gutters",i&&"inset",!s&&"sticky"]};return Xe(l,vN,t)},CN=re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Re(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Qe(({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}}]}))),sa=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiListSubheader"}),{className:i,color:s="default",component:l="li",disableGutters:a=!1,disableSticky:c=!1,inset:u=!1,...d}=o,p={...o,color:s,component:l,disableGutters:a,disableSticky:c,inset:u},h=xN(p);return k.jsx(CN,{as:l,className:we(h.root,i),ref:n,ownerState:p,...d})});sa&&(sa.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(sa.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOf(["default","inherit","primary"]),component:r.elementType,disableGutters:r.bool,disableSticky:r.bool,inset:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const SN=Et(k.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 wN(e){return Ye("MuiAutocomplete",e)}const nt=qe("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 Vv,Lv;const ON=e=>{const{classes:t,disablePortal:n,expanded:o,focused:i,fullWidth:s,hasClearIcon:l,hasPopupIcon:a,inputFocused:c,popupOpen:u,size:d}=e,p={root:["root",o&&"expanded",i&&"focused",s&&"fullWidth",l&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${Re(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Xe(p,wN,t)},TN=re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:o,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,size:a}=n;return[{[`& .${nt.tag}`]:t.tag},{[`& .${nt.tag}`]:t[`tagSize${Re(a)}`]},{[`& .${nt.inputRoot}`]:t.inputRoot},{[`& .${nt.input}`]:t.input},{[`& .${nt.input}`]:l&&t.inputFocused},t.root,o&&t.fullWidth,s&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${nt.focused} .${nt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nt.clearIndicator}`]:{visibility:"visible"}},[`& .${nt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${nt.inputRoot}`]:{[`.${nt.hasPopupIcon}&, .${nt.hasClearIcon}&`]:{paddingRight:30},[`.${nt.hasPopupIcon}.${nt.hasClearIcon}&`]:{paddingRight:56},[`& .${nt.input}`]:{width:0,minWidth:30}},[`& .${cr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${cr.root}.${fn.sizeSmall}`]:{[`& .${cr.input}`]:{padding:"2px 4px 3px 0"}},[`& .${xn.root}`]:{padding:9,[`.${nt.hasPopupIcon}&, .${nt.hasClearIcon}&`]:{paddingRight:39},[`.${nt.hasPopupIcon}.${nt.hasClearIcon}&`]:{paddingRight:65},[`& .${nt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nt.endAdornment}`]:{right:9}},[`& .${xn.root}.${fn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${hn.root}`]:{paddingTop:19,paddingLeft:8,[`.${nt.hasPopupIcon}&, .${nt.hasClearIcon}&`]:{paddingRight:39},[`.${nt.hasPopupIcon}.${nt.hasClearIcon}&`]:{paddingRight:65},[`& .${hn.input}`]:{padding:"7px 4px"},[`& .${nt.endAdornment}`]:{right:9}},[`& .${hn.root}.${fn.sizeSmall}`]:{paddingBottom:1,[`& .${hn.input}`]:{padding:"2.5px 4px"}},[`& .${fn.hiddenLabel}`]:{paddingTop:8},[`& .${hn.root}.${fn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${hn.root}.${fn.hiddenLabel}.${fn.sizeSmall}`]:{[`& .${nt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${nt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${nt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${nt.inputRoot}`]:{flexWrap:"wrap"}}}]}),EN=re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),RN=re(zn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),PN=re(zn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),kN=re(Xs,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),MN=re(pr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Qe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),IN=re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),DN=re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),jN=re("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Qe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nt.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"},[`&.${nt.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"},[`&.${nt.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})`:et(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:et(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:et(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),AN=re(sa,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Qe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),NN=re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nt.option}`]:{paddingLeft:24}}),Bv=E.forwardRef(function(t,n){const o=tt({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:s=!1,autoSelect:l=!1,blurOnSelect:a=!1,ChipProps:c,className:u,clearIcon:d=Vv||(Vv=k.jsx(SN,{fontSize:"small"})),clearOnBlur:p=!o.freeSolo,clearOnEscape:h=!1,clearText:b="Clear",closeText:y="Close",componentsProps:m,defaultValue:g=o.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:x=!1,disabled:O=!1,disabledItemsFocusable:T=!1,disableListWrap:R=!1,disablePortal:A=!1,filterOptions:N,filterSelectedOptions:S=!1,forcePopupIcon:v="auto",freeSolo:f=!1,fullWidth:C=!1,getLimitTagsText:P=ft=>`+${ft}`,getOptionDisabled:M,getOptionKey:D,getOptionLabel:I,isOptionEqualToValue:j,groupBy:$,handleHomeEndKeys:F=!o.freeSolo,id:L,includeInputInList:_=!1,inputValue:B,limitTags:oe=-1,ListboxComponent:X,ListboxProps:ee,loading:Y=!1,loadingText:J="Loading…",multiple:se=!1,noOptionsText:z="No options",onChange:H,onClose:G,onHighlightChange:ue,onInputChange:U,onOpen:Q,open:q,openOnFocus:ne=!1,openText:Z="Open",options:te,PaperComponent:le,PopperComponent:fe,popupIcon:xe=Lv||(Lv=k.jsx(Bb,{})),readOnly:Ee=!1,renderGroup:Te,renderInput:$e,renderOption:Ze,renderTags:We,selectOnFocus:it=!o.freeSolo,size:st="medium",slots:Ge={},slotProps:Ke={},value:ut,...ze}=o,{getRootProps:ct,getInputProps:Tt,getInputLabelProps:dt,getPopupIndicatorProps:ge,getClearProps:Se,getTagProps:Ae,getListboxProps:Fe,getOptionProps:De,value:at,dirty:pt,expanded:Rt,id:Jt,popupOpen:de,focused:K,focusedTag:me,anchorEl:pe,setAnchorEl:Ne,inputValue:Ue,groupedOptions:He}=yN({...o,componentName:"Autocomplete"}),ve=!w&&!O&&pt&&!Ee,ie=(!f||v===!0)&&v!==!1,{onMouseDown:he}=Tt(),{ref:Oe,...Ie}=Fe(),Pt=I||(ft=>ft.label??ft),V={...o,disablePortal:A,expanded:Rt,focused:K,fullWidth:C,getOptionLabel:Pt,hasClearIcon:ve,hasPopupIcon:ie,inputFocused:me===-1,popupOpen:de,size:st},be=ON(V),Pe={slots:{paper:le,popper:fe,...Ge},slotProps:{chip:c,listbox:ee,...m,...Ke}},[ae,ce]=tn("listbox",{elementType:jN,externalForwardedProps:Pe,ownerState:V,className:be.listbox,additionalProps:Ie,ref:Oe}),[Ce,ke]=tn("paper",{elementType:pr,externalForwardedProps:Pe,ownerState:V,className:be.paper}),[Me,Be]=tn("popper",{elementType:Xs,externalForwardedProps:Pe,ownerState:V,className:be.popper,additionalProps:{disablePortal:A,style:{width:pe?pe.clientWidth:null},role:"presentation",anchorEl:pe,open:de}});let Ve;if(se&&at.length>0){const ft=Yn=>({className:be.tag,disabled:O,...Ae(Yn)});We?Ve=We(at,ft,V):Ve=at.map((Yn,br)=>{const{key:Pi,...zN}=ft({index:br});return k.jsx(Es,{label:Pt(Yn),size:st,...zN,...Pe.slotProps.chip},Pi)})}if(oe>-1&&Array.isArray(Ve)){const ft=Ve.length-oe;!K&&ft>0&&(Ve=Ve.splice(0,oe),Ve.push(k.jsx("span",{className:be.tag,children:P(ft)},Ve.length)))}const Ft=Te||(ft=>k.jsxs("li",{children:[k.jsx(AN,{className:be.groupLabel,ownerState:V,component:"div",children:ft.group}),k.jsx(NN,{className:be.groupUl,ownerState:V,children:ft.children})]},ft.key)),Nt=Ze||((ft,Yn)=>{const{key:br,...Pi}=ft;return k.jsx("li",{...Pi,children:Pt(Yn)},br)}),Bt=(ft,Yn)=>{const br=De({option:ft,index:Yn});return Nt({...br,className:be.option},ft,{selected:br["aria-selected"],index:Yn,inputValue:Ue},V)},zt=Pe.slotProps.clearIndicator,mr=Pe.slotProps.popupIndicator,$r=ft=>k.jsx(kN,{as:Me,...Be,children:k.jsx(MN,{as:Ce,...ke,children:ft})});let la=null;return He.length>0?la=$r(k.jsx(ae,{as:X,...ce,children:He.map((ft,Yn)=>$?Ft({key:ft.key,group:ft.group,children:ft.options.map((br,Pi)=>Bt(br,ft.index+Pi))}):Bt(ft,Yn))})):Y&&He.length===0?la=$r(k.jsx(IN,{className:be.loading,ownerState:V,children:J})):He.length===0&&!f&&!Y&&(la=$r(k.jsx(DN,{className:be.noOptions,ownerState:V,role:"presentation",onMouseDown:ft=>{ft.preventDefault()},children:z}))),k.jsxs(E.Fragment,{children:[k.jsx(TN,{ref:n,className:we(be.root,u),ownerState:V,...ct(ze),children:$e({id:Jt,disabled:O,fullWidth:!0,size:st==="small"?"small":void 0,InputLabelProps:dt(),InputProps:{ref:Ne,className:be.inputRoot,startAdornment:Ve,onMouseDown:ft=>{ft.target===ft.currentTarget&&he(ft)},...(ve||ie)&&{endAdornment:k.jsxs(EN,{className:be.endAdornment,ownerState:V,children:[ve?k.jsx(RN,{...Se(),"aria-label":b,title:b,ownerState:V,...zt,className:we(be.clearIndicator,zt==null?void 0:zt.className),children:d}):null,ie?k.jsx(PN,{...ge(),disabled:O,"aria-label":de?y:Z,title:de?y:Z,ownerState:V,...mr,className:we(be.popupIndicator,mr==null?void 0:mr.className),children:xe}):null]})}},inputProps:{className:be.input,disabled:O,readOnly:Ee,...Tt()}})}),pe?la:null]})});process.env.NODE_ENV!=="production"&&(Bv.propTypes={autoComplete:r.bool,autoHighlight:r.bool,autoSelect:r.bool,blurOnSelect:r.oneOfType([r.oneOf(["mouse","touch"]),r.bool]),ChipProps:r.object,classes:r.object,className:r.string,clearIcon:r.node,clearOnBlur:r.bool,clearOnEscape:r.bool,clearText:r.string,closeText:r.string,componentsProps:r.shape({clearIndicator:r.object,paper:r.object,popper:r.object,popupIndicator:r.object}),defaultValue:Mn(r.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(`
|
|
244
|
+
`)):null),disableClearable:r.bool,disableCloseOnSelect:r.bool,disabled:r.bool,disabledItemsFocusable:r.bool,disableListWrap:r.bool,disablePortal:r.bool,filterOptions:r.func,filterSelectedOptions:r.bool,forcePopupIcon:r.oneOfType([r.oneOf(["auto"]),r.bool]),freeSolo:r.bool,fullWidth:r.bool,getLimitTagsText:r.func,getOptionDisabled:r.func,getOptionKey:r.func,getOptionLabel:r.func,groupBy:r.func,handleHomeEndKeys:r.bool,id:r.string,includeInputInList:r.bool,inputValue:r.string,isOptionEqualToValue:r.func,limitTags:fu,ListboxComponent:r.elementType,ListboxProps:r.object,loading:r.bool,loadingText:r.node,multiple:r.bool,noOptionsText:r.node,onChange:r.func,onClose:r.func,onHighlightChange:r.func,onInputChange:r.func,onKeyDown:r.func,onOpen:r.func,open:r.bool,openOnFocus:r.bool,openText:r.string,options:r.array.isRequired,PaperComponent:r.elementType,PopperComponent:r.elementType,popupIcon:r.node,readOnly:r.bool,renderGroup:r.func,renderInput:r.func.isRequired,renderOption:r.func,renderTags:r.func,selectOnFocus:r.bool,size:r.oneOfType([r.oneOf(["small","medium"]),r.string]),slotProps:r.shape({chip:r.oneOfType([r.func,r.object]),clearIndicator:r.oneOfType([r.func,r.object]),listbox:r.oneOfType([r.func,r.object]),paper:r.oneOfType([r.func,r.object]),popper:r.oneOfType([r.func,r.object]),popupIndicator:r.oneOfType([r.func,r.object])}),slots:r.shape({listbox:r.elementType,paper:r.elementType,popper:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:Mn(r.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(`
|
|
245
|
+
`)):null)});var aa={exports:{}},_N=aa.exports,qv;function $N(){return qv||(qv=1,function(e){(function(t,n){e.exports=n()})(_N,function(){var t=Object.prototype.toString;function n(p,h){return p==null?!1:Object.prototype.hasOwnProperty.call(p,h)}function o(p){if(!p||l(p)&&p.length===0)return!0;if(typeof p!="string"){for(var h in p)if(n(p,h))return!1;return!0}return!1}function i(p){return t.call(p)}function s(p){return typeof p=="object"&&i(p)==="[object Object]"}var l=Array.isArray||function(p){return t.call(p)==="[object Array]"};function a(p){return typeof p=="boolean"||i(p)==="[object Boolean]"}function c(p){var h=parseInt(p);return h.toString()===p?h:p}function u(p){p=p||{};var h=function(w){return Object.keys(h).reduce(function(x,O){return O==="create"||typeof h[O]=="function"&&(x[O]=h[O].bind(h,w)),x},{})},b;p.includeInheritedProps?b=function(){return!0}:b=function(w,x){return typeof x=="number"&&Array.isArray(w)||n(w,x)};function y(w,x){if(b(w,x))return w[x]}var m;p.includeInheritedProps?m=function(w,x){typeof x!="string"&&typeof x!="number"&&(x=String(x));var O=y(w,x);if(x==="__proto__"||x==="prototype"||x==="constructor"&&typeof O=="function")throw new Error("For security reasons, object's magic properties cannot be set");return O}:m=function(w,x){return y(w,x)};function g(w,x,O,T){if(typeof x=="number"&&(x=[x]),!x||x.length===0)return w;if(typeof x=="string")return g(w,x.split(".").map(c),O,T);var R=x[0],A=m(w,R);return x.length===1?((A===void 0||!T)&&(w[R]=O),A):(A===void 0&&(typeof x[1]=="number"?w[R]=[]:w[R]={}),g(w[R],x.slice(1),O,T))}return h.has=function(w,x){if(typeof x=="number"?x=[x]:typeof x=="string"&&(x=x.split(".")),!x||x.length===0)return!!w;for(var O=0;O<x.length;O++){var T=c(x[O]);if(typeof T=="number"&&l(w)&&T<w.length||(p.includeInheritedProps?T in Object(w):n(w,T)))w=w[T];else return!1}return!0},h.ensureExists=function(w,x,O){return g(w,x,O,!0)},h.set=function(w,x,O,T){return g(w,x,O,T)},h.insert=function(w,x,O,T){var R=h.get(w,x);T=~~T,l(R)||(R=[],h.set(w,x,R)),R.splice(T,0,O)},h.empty=function(w,x){if(!o(x)&&w!=null){var O,T;if(O=h.get(w,x)){if(typeof O=="string")return h.set(w,x,"");if(a(O))return h.set(w,x,!1);if(typeof O=="number")return h.set(w,x,0);if(l(O))O.length=0;else if(s(O))for(T in O)b(O,T)&&delete O[T];else return h.set(w,x,null)}}},h.push=function(w,x){var O=h.get(w,x);l(O)||(O=[],h.set(w,x,O)),O.push.apply(O,Array.prototype.slice.call(arguments,2))},h.coalesce=function(w,x,O){for(var T,R=0,A=x.length;R<A;R++)if((T=h.get(w,x[R]))!==void 0)return T;return O},h.get=function(w,x,O){if(typeof x=="number"&&(x=[x]),!x||x.length===0)return w;if(w==null)return O;if(typeof x=="string")return h.get(w,x.split("."),O);var T=c(x[0]),R=m(w,T);return R===void 0?O:x.length===1?R:h.get(w[T],x.slice(1),O)},h.del=function(x,O){if(typeof O=="number"&&(O=[O]),x==null||o(O))return x;if(typeof O=="string")return h.del(x,O.split("."));var T=c(O[0]);if(m(x,T),!b(x,T))return x;if(O.length===1)l(x)?x.splice(T,1):delete x[T];else return h.del(x[T],O.slice(1));return x},h}var d=u();return d.create=u,d.withInheritedProps=u({includeInheritedProps:!0}),d})}(aa)),aa.exports}var FN=$N();const VN=qt(FN);String.prototype.format=function(){for(var e=this,t=0;t<arguments.length;t++){var n=new RegExp("\\{"+t+"\\}","gi");e=e.replace(n,arguments[t])}return e};function LN(e){const{value:t,error:n,onChangeValidate:o,form:{schema:{type:i},action:s,title:l,required:a,multiple:c,disabled:u,options:d},model:p}=e,h=i==="array"?[]:"",[b,y]=_e.useState(t||h),[m,g]=_e.useState([]),{url:w,params:x}=s||{},O=x&&x.some(v=>v!=null)?x.map(v=>VN.get(p,v)):[];_e.useEffect(()=>{const v=x?O.length>0?w.format(...O):"":w;v&&R(v)},O),_e.useEffect(()=>{i==="array"?o(b):b!==null&&o({target:{value:b}})},[b]);const T=(v,f)=>{if(i!=="array")if(c){const C=f.map(P=>P.id).join(",");y(C)}else y(f.id);else y(c?f.map(C=>C.id):[f.id])},R=v=>{if(v.includes("=undefined")||v.includes("=&")||v.endsWith("="))return;const f=new _v,C={"Content-Type":"application/json"};f.get("csrf")&&Object.assign(C,{"X-CSRF-TOKEN":f.get("csrf")}),fetch(v,{headers:C,credentials:"include"}).then(P=>P.ok?P.json():P.text().then(M=>{throw new Error(M)})).then(P=>{g(P)}).catch(P=>{console.error(P)})};let A="";n&&(A=k.jsx("div",{style:{color:"red"},children:n}));let N;const S=d&&d.length>0?d:m;return c?Array.isArray(t)?N=t?S.filter(v=>t.includes(v.id)):[]:N=t?S.filter(v=>t.split(",").includes(v.id)):[]:Array.isArray(t)?N=t.length===1?S.find(v=>v.id===t[0]):null:N=t?S.find(v=>v.id===t):null,k.jsxs("div",{children:[k.jsx(Bv,{multiple:c,disabled:u,getOptionLabel:v=>v.label||"",value:N||(c?[]:""),onChange:T,options:S,renderInput:v=>k.jsx(Os,{...v,label:a?l+" *":l})}),A]})}const BN=Ht(LN),qN=e=>{let t=e&&typeof e=="object"&&e.toISOString().slice(0,10)||e;return t||(t=""),t.length>0&&(t=new Date(t).toISOString().slice(0,10)),t};class zv extends _e.Component{constructor(n){super(n);Vt(this,"mapper",{number:BT,text:ti,password:ti,textarea:qT,markdown:zT,textsuggest:WT,select:y1,taxonomy:fN,radios:J1,date:eE,timestamp:RA,checkbox:FA,help:VA,array:Pv,tBoolean:XA,fieldset:Dv,tuple:Dv,multiselect:R1,dynaselect:BN});Vt(this,"setDefault",(n,o,i,s)=>{const{onModelChange:l}=this.props,a=Wt.selectOrSet(n,o);Bf(a)&&!Bf(s)&&l(n,s,i.type,i)});Vt(this,"getLocalization",()=>{const{localization:n}=this.props;return{getLocalizedString:n&&n.getLocalizedString?n.getLocalizedString:o=>o,getLocalizedNumber:n&&n.getLocalizedNumber?n.getLocalizedNumber:o=>o,getLocalizedDate:n&&n.getLocalizedDate?n.getLocalizedDate:qN}});this.builder=this.builder.bind(this)}builder(n,o,i,s,l,a){const{errors:c,showErrors:u,evalContext:d}=this.props,p=this.mapper[n.type];if(!p||n.condition&&!Wt.safeEval(n.condition,{model:o,form:n,...d}))return null;const h=n.key&&n.key.join(".")||i,b=c&&h in c?c[h]:null;return k.jsx(p,{model:o,form:n,onChange:l,setDefault:this.setDefault,mapper:s,builder:a,errorText:b,localization:this.getLocalization(),showErrors:u},h)}render(){const{schema:n,form:o,ignore:i,option:s,model:l,className:a,onModelChange:c,mapper:u}=this.props,d=Wt.merge(n,o,i,s);let p=this.mapper;u&&(p=Kx(this.mapper,u));const h=d.map((b,y)=>this.builder(b,l,y,p,c,this.builder));return k.jsx("div",{className:a,children:h})}}zv.defaultProps={localization:void 0,showErrors:!1},_t.Array=Pv,_t.ComposedComponent=Ht,_t.SchemaForm=zv,_t.utils=Wt,Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"})});
|
|
228
246
|
//# sourceMappingURL=react-schema-form.umd.cjs.map
|