@chimera-pe/react-saas 0.0.1 → 0.0.2
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-saas.es.js +29053 -0
- package/dist/react-saas.umd.js +336 -0
- package/package.json +7 -4
- package/.eslintrc.cjs +0 -20
- package/vite.config.js +0 -27
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
(function(Ut,pe){typeof exports=="object"&&typeof module<"u"?pe(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],pe):(Ut=typeof globalThis<"u"?globalThis:Ut||self,pe(Ut["react-saas"]={},Ut.React,Ut.ReactDOM))})(this,function(Ut,pe,vn){"use strict";function Cc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const b=Cc(pe),Pc=Cc(vn);function Rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vg(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var ns={exports:{}},uo={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Nc;function Ug(){if(Nc)return uo;Nc=1;var e=pe,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(u,c,l){var d,f={},p=null,y=null;l!==void 0&&(p=""+l),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(y=c.ref);for(d in c)n.call(c,d)&&!i.hasOwnProperty(d)&&(f[d]=c[d]);if(u&&u.defaultProps)for(d in c=u.defaultProps,c)f[d]===void 0&&(f[d]=c[d]);return{$$typeof:t,type:u,key:p,ref:y,props:f,_owner:o.current}}return uo.Fragment=r,uo.jsx=a,uo.jsxs=a,uo}var lo={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var _c;function Wg(){return _c||(_c=1,process.env.NODE_ENV!=="production"&&function(){var e=pe,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.iterator,h="@@iterator";function m(C){if(C===null||typeof C!="object")return null;var Q=v&&C[v]||C[h];return typeof Q=="function"?Q:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(C){{for(var Q=arguments.length,ne=new Array(Q>1?Q-1:0),we=1;we<Q;we++)ne[we-1]=arguments[we];E("error",C,ne)}}function E(C,Q,ne){{var we=g.ReactDebugCurrentFrame,je=we.getStackAddendum();je!==""&&(Q+="%s",ne=ne.concat([je]));var Le=ne.map(function(Oe){return String(Oe)});Le.unshift("Warning: "+Q),Function.prototype.apply.call(console[C],console,Le)}}var x=!1,w=!1,P=!1,_=!1,k=!1,A;A=Symbol.for("react.module.reference");function L(C){return!!(typeof C=="string"||typeof C=="function"||C===n||C===i||k||C===o||C===l||C===d||_||C===y||x||w||P||typeof C=="object"&&C!==null&&(C.$$typeof===p||C.$$typeof===f||C.$$typeof===a||C.$$typeof===u||C.$$typeof===c||C.$$typeof===A||C.getModuleId!==void 0))}function Y(C,Q,ne){var we=C.displayName;if(we)return we;var je=Q.displayName||Q.name||"";return je!==""?ne+"("+je+")":ne}function te(C){return C.displayName||"Context"}function ee(C){if(C==null)return null;if(typeof C.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case d:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case u:var Q=C;return te(Q)+".Consumer";case a:var ne=C;return te(ne._context)+".Provider";case c:return Y(C,C.render,"ForwardRef");case f:var we=C.displayName||null;return we!==null?we:ee(C.type)||"Memo";case p:{var je=C,Le=je._payload,Oe=je._init;try{return ee(Oe(Le))}catch{return null}}}return null}var F=Object.assign,B=0,q,Z,fe,ve,j,U,O;function $(){}$.__reactDisabledLog=!0;function D(){{if(B===0){q=console.log,Z=console.info,fe=console.warn,ve=console.error,j=console.group,U=console.groupCollapsed,O=console.groupEnd;var C={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}B++}}function I(){{if(B--,B===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},C,{value:q}),info:F({},C,{value:Z}),warn:F({},C,{value:fe}),error:F({},C,{value:ve}),group:F({},C,{value:j}),groupCollapsed:F({},C,{value:U}),groupEnd:F({},C,{value:O})})}B<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=g.ReactCurrentDispatcher,X;function K(C,Q,ne){{if(X===void 0)try{throw Error()}catch(je){var we=je.stack.trim().match(/\n( *(at )?)/);X=we&&we[1]||""}return`
|
|
18
|
+
`+X+C}}var H=!1,J;{var re=typeof WeakMap=="function"?WeakMap:Map;J=new re}function W(C,Q){if(!C||H)return"";{var ne=J.get(C);if(ne!==void 0)return ne}var we;H=!0;var je=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Le;Le=z.current,z.current=null,D();try{if(Q){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(_r){we=_r}Reflect.construct(C,[],Oe)}else{try{Oe.call()}catch(_r){we=_r}C.call(Oe.prototype)}}else{try{throw Error()}catch(_r){we=_r}C()}}catch(_r){if(_r&&we&&typeof _r.stack=="string"){for(var Re=_r.stack.split(`
|
|
19
|
+
`),Nt=we.stack.split(`
|
|
20
|
+
`),Et=Re.length-1,St=Nt.length-1;Et>=1&&St>=0&&Re[Et]!==Nt[St];)St--;for(;Et>=1&&St>=0;Et--,St--)if(Re[Et]!==Nt[St]){if(Et!==1||St!==1)do if(Et--,St--,St<0||Re[Et]!==Nt[St]){var Jt=`
|
|
21
|
+
`+Re[Et].replace(" at new "," at ");return C.displayName&&Jt.includes("<anonymous>")&&(Jt=Jt.replace("<anonymous>",C.displayName)),typeof C=="function"&&J.set(C,Jt),Jt}while(Et>=1&&St>=0);break}}}finally{H=!1,z.current=Le,I(),Error.prepareStackTrace=je}var so=C?C.displayName||C.name:"",Bg=so?K(so):"";return typeof C=="function"&&J.set(C,Bg),Bg}function ce(C,Q,ne){return W(C,!1)}function R(C){var Q=C.prototype;return!!(Q&&Q.isReactComponent)}function se(C,Q,ne){if(C==null)return"";if(typeof C=="function")return W(C,R(C));if(typeof C=="string")return K(C);switch(C){case l:return K("Suspense");case d:return K("SuspenseList")}if(typeof C=="object")switch(C.$$typeof){case c:return ce(C.render);case f:return se(C.type,Q,ne);case p:{var we=C,je=we._payload,Le=we._init;try{return se(Le(je),Q,ne)}catch{}}}return""}var ye=Object.prototype.hasOwnProperty,Ee={},Ot=g.ReactDebugCurrentFrame;function Rt(C){if(C){var Q=C._owner,ne=se(C.type,C._source,Q?Q.type:null);Ot.setExtraStackFrame(ne)}else Ot.setExtraStackFrame(null)}function rt(C,Q,ne,we,je){{var Le=Function.call.bind(ye);for(var Oe in C)if(Le(C,Oe)){var Re=void 0;try{if(typeof C[Oe]!="function"){var Nt=Error((we||"React class")+": "+ne+" type `"+Oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[Oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Nt.name="Invariant Violation",Nt}Re=C[Oe](Q,Oe,we,ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Et){Re=Et}Re&&!(Re instanceof Error)&&(Rt(je),S("%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).",we||"React class",ne,Oe,typeof Re),Rt(null)),Re instanceof Error&&!(Re.message in Ee)&&(Ee[Re.message]=!0,Rt(je),S("Failed %s type: %s",ne,Re.message),Rt(null))}}}var Fe=Array.isArray;function it(C){return Fe(C)}function nt(C){{var Q=typeof Symbol=="function"&&Symbol.toStringTag,ne=Q&&C[Symbol.toStringTag]||C.constructor.name||"Object";return ne}}function yt(C){try{return ft(C),!1}catch{return!0}}function ft(C){return""+C}function at(C){if(yt(C))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nt(C)),ft(C)}var st=g.ReactCurrentOwner,ke={key:!0,ref:!0,__self:!0,__source:!0},ge,It,me;me={};function xe(C){if(ye.call(C,"ref")){var Q=Object.getOwnPropertyDescriptor(C,"ref").get;if(Q&&Q.isReactWarning)return!1}return C.ref!==void 0}function M(C){if(ye.call(C,"key")){var Q=Object.getOwnPropertyDescriptor(C,"key").get;if(Q&&Q.isReactWarning)return!1}return C.key!==void 0}function V(C,Q){if(typeof C.ref=="string"&&st.current&&Q&&st.current.stateNode!==Q){var ne=ee(st.current.type);me[ne]||(S('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',ee(st.current.type),C.ref),me[ne]=!0)}}function De(C,Q){{var ne=function(){ge||(ge=!0,S("%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)",Q))};ne.isReactWarning=!0,Object.defineProperty(C,"key",{get:ne,configurable:!0})}}function ot(C,Q){{var ne=function(){It||(It=!0,S("%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)",Q))};ne.isReactWarning=!0,Object.defineProperty(C,"ref",{get:ne,configurable:!0})}}var pt=function(C,Q,ne,we,je,Le,Oe){var Re={$$typeof:t,type:C,key:Q,ref:ne,props:Oe,_owner:Le};return Re._store={},Object.defineProperty(Re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:we}),Object.defineProperty(Re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:je}),Object.freeze&&(Object.freeze(Re.props),Object.freeze(Re)),Re};function Te(C,Q,ne,we,je){{var Le,Oe={},Re=null,Nt=null;ne!==void 0&&(at(ne),Re=""+ne),M(Q)&&(at(Q.key),Re=""+Q.key),xe(Q)&&(Nt=Q.ref,V(Q,je));for(Le in Q)ye.call(Q,Le)&&!ke.hasOwnProperty(Le)&&(Oe[Le]=Q[Le]);if(C&&C.defaultProps){var Et=C.defaultProps;for(Le in Et)Oe[Le]===void 0&&(Oe[Le]=Et[Le])}if(Re||Nt){var St=typeof C=="function"?C.displayName||C.name||"Unknown":C;Re&&De(Oe,St),Nt&&ot(Oe,St)}return pt(C,Re,Nt,je,we,st.current,Oe)}}var Kt=g.ReactCurrentOwner,mr=g.ReactDebugCurrentFrame;function xt(C){if(C){var Q=C._owner,ne=se(C.type,C._source,Q?Q.type:null);mr.setExtraStackFrame(ne)}else mr.setExtraStackFrame(null)}var Xt;Xt=!1;function hn(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function Nr(){{if(Kt.current){var C=ee(Kt.current.type);if(C)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+C+"`."}return""}}function Vt(C){{if(C!==void 0){var Q=C.fileName.replace(/^.*[\\\/]/,""),ne=C.lineNumber;return`
|
|
24
|
+
|
|
25
|
+
Check your code at `+Q+":"+ne+"."}return""}}var ni={};function es(C){{var Q=Nr();if(!Q){var ne=typeof C=="string"?C:C.displayName||C.name;ne&&(Q=`
|
|
26
|
+
|
|
27
|
+
Check the top-level render call using <`+ne+">.")}return Q}}function oi(C,Q){{if(!C._store||C._store.validated||C.key!=null)return;C._store.validated=!0;var ne=es(Q);if(ni[ne])return;ni[ne]=!0;var we="";C&&C._owner&&C._owner!==Kt.current&&(we=" It was passed a child from "+ee(C._owner.type)+"."),xt(C),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ne,we),xt(null)}}function Yr(C,Q){{if(typeof C!="object")return;if(it(C))for(var ne=0;ne<C.length;ne++){var we=C[ne];hn(we)&&oi(we,Q)}else if(hn(C))C._store&&(C._store.validated=!0);else if(C){var je=m(C);if(typeof je=="function"&&je!==C.entries)for(var Le=je.call(C),Oe;!(Oe=Le.next()).done;)hn(Oe.value)&&oi(Oe.value,Q)}}}function ii(C){{var Q=C.type;if(Q==null||typeof Q=="string")return;var ne;if(typeof Q=="function")ne=Q.propTypes;else if(typeof Q=="object"&&(Q.$$typeof===c||Q.$$typeof===f))ne=Q.propTypes;else return;if(ne){var we=ee(Q);rt(ne,C.props,"prop",we,C)}else if(Q.PropTypes!==void 0&&!Xt){Xt=!0;var je=ee(Q);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",je||"Unknown")}typeof Q.getDefaultProps=="function"&&!Q.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function io(C){{for(var Q=Object.keys(C.props),ne=0;ne<Q.length;ne++){var we=Q[ne];if(we!=="children"&&we!=="key"){xt(C),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",we),xt(null);break}}C.ref!==null&&(xt(C),S("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}function ao(C,Q,ne,we,je,Le){{var Oe=L(C);if(!Oe){var Re="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(Re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Nt=Vt(je);Nt?Re+=Nt:Re+=Nr();var Et;C===null?Et="null":it(C)?Et="array":C!==void 0&&C.$$typeof===t?(Et="<"+(ee(C.type)||"Unknown")+" />",Re=" Did you accidentally export a JSX literal instead of a component?"):Et=typeof C,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Et,Re)}var St=Te(C,Q,ne,je,Le);if(St==null)return St;if(Oe){var Jt=Q.children;if(Jt!==void 0)if(we)if(it(Jt)){for(var so=0;so<Jt.length;so++)Yr(Jt[so],C);Object.freeze&&Object.freeze(Jt)}else S("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 Yr(Jt,C)}return C===n?io(St):ii(St),St}}function ai(C,Q,ne){return ao(C,Q,ne,!0)}function ts(C,Q,ne){return ao(C,Q,ne,!1)}var rs=ts,si=ai;lo.Fragment=n,lo.jsx=rs,lo.jsxs=si}()),lo}process.env.NODE_ENV==="production"?ns.exports=Ug():ns.exports=Wg();var N=ns.exports;const co={black:"#000",white:"#fff"},yn={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"},gn={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"},bn={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"},En={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"},wn={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"},fo={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"},os={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function $r(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T.apply(this,arguments)}function Gr(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function $c(e){if(!Gr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=$c(e[r])}),t}function Wt(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return Gr(e)&&Gr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Gr(t[o])&&o in e&&Gr(e[o])?n[o]=Wt(e[o],t[o],r):r.clone?n[o]=Gr(t[o])?$c(t[o]):t[o]:n[o]=t[o])}),n}var is={exports:{}},ui={exports:{}},He={};/** @license React v16.13.1
|
|
28
|
+
* react-is.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Mc;function zg(){if(Mc)return He;Mc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case t:switch(w=w.type,w){case c:case l:case n:case i:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case u:case d:case v:case y:case a:return w;default:return P}}case r:return P}}}function x(w){return E(w)===l}return He.AsyncMode=c,He.ConcurrentMode=l,He.ContextConsumer=u,He.ContextProvider=a,He.Element=t,He.ForwardRef=d,He.Fragment=n,He.Lazy=v,He.Memo=y,He.Portal=r,He.Profiler=i,He.StrictMode=o,He.Suspense=f,He.isAsyncMode=function(w){return x(w)||E(w)===c},He.isConcurrentMode=x,He.isContextConsumer=function(w){return E(w)===u},He.isContextProvider=function(w){return E(w)===a},He.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},He.isForwardRef=function(w){return E(w)===d},He.isFragment=function(w){return E(w)===n},He.isLazy=function(w){return E(w)===v},He.isMemo=function(w){return E(w)===y},He.isPortal=function(w){return E(w)===r},He.isProfiler=function(w){return E(w)===i},He.isStrictMode=function(w){return E(w)===o},He.isSuspense=function(w){return E(w)===f},He.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===l||w===i||w===o||w===f||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===y||w.$$typeof===a||w.$$typeof===u||w.$$typeof===d||w.$$typeof===m||w.$$typeof===g||w.$$typeof===S||w.$$typeof===h)},He.typeOf=E,He}var Ye={};/** @license React v16.13.1
|
|
35
|
+
* react-is.development.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var kc;function qg(){return kc||(kc=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(W){return typeof W=="string"||typeof W=="function"||W===n||W===l||W===i||W===o||W===f||W===p||typeof W=="object"&&W!==null&&(W.$$typeof===v||W.$$typeof===y||W.$$typeof===a||W.$$typeof===u||W.$$typeof===d||W.$$typeof===m||W.$$typeof===g||W.$$typeof===S||W.$$typeof===h)}function x(W){if(typeof W=="object"&&W!==null){var ce=W.$$typeof;switch(ce){case t:var R=W.type;switch(R){case c:case l:case n:case i:case o:case f:return R;default:var se=R&&R.$$typeof;switch(se){case u:case d:case v:case y:case a:return se;default:return ce}}case r:return ce}}}var w=c,P=l,_=u,k=a,A=t,L=d,Y=n,te=v,ee=y,F=r,B=i,q=o,Z=f,fe=!1;function ve(W){return fe||(fe=!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.")),j(W)||x(W)===c}function j(W){return x(W)===l}function U(W){return x(W)===u}function O(W){return x(W)===a}function $(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function D(W){return x(W)===d}function I(W){return x(W)===n}function z(W){return x(W)===v}function X(W){return x(W)===y}function K(W){return x(W)===r}function H(W){return x(W)===i}function J(W){return x(W)===o}function re(W){return x(W)===f}Ye.AsyncMode=w,Ye.ConcurrentMode=P,Ye.ContextConsumer=_,Ye.ContextProvider=k,Ye.Element=A,Ye.ForwardRef=L,Ye.Fragment=Y,Ye.Lazy=te,Ye.Memo=ee,Ye.Portal=F,Ye.Profiler=B,Ye.StrictMode=q,Ye.Suspense=Z,Ye.isAsyncMode=ve,Ye.isConcurrentMode=j,Ye.isContextConsumer=U,Ye.isContextProvider=O,Ye.isElement=$,Ye.isForwardRef=D,Ye.isFragment=I,Ye.isLazy=z,Ye.isMemo=X,Ye.isPortal=K,Ye.isProfiler=H,Ye.isStrictMode=J,Ye.isSuspense=re,Ye.isValidElementType=E,Ye.typeOf=x}()),Ye}var Dc;function as(){return Dc||(Dc=1,process.env.NODE_ENV==="production"?ui.exports=zg():ui.exports=qg()),ui.exports}/*
|
|
42
|
+
object-assign
|
|
43
|
+
(c) Sindre Sorhus
|
|
44
|
+
@license MIT
|
|
45
|
+
*/var ss,Ac;function Hg(){if(Ac)return ss;Ac=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(d){l[d]=d}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ss=o()?Object.assign:function(i,a){for(var u,c=n(i),l,d=1;d<arguments.length;d++){u=Object(arguments[d]);for(var f in u)t.call(u,f)&&(c[f]=u[f]);if(e){l=e(u);for(var p=0;p<l.length;p++)r.call(u,l[p])&&(c[l[p]]=u[l[p]])}}return c},ss}var us,Ic;function ls(){if(Ic)return us;Ic=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return us=e,us}var cs,jc;function Fc(){return jc||(jc=1,cs=Function.call.bind(Object.prototype.hasOwnProperty)),cs}var ds,Lc;function Yg(){if(Lc)return ds;Lc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ls(),r={},n=Fc();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,u,c,l){if(process.env.NODE_ENV!=="production"){for(var d in i)if(n(i,d)){var f;try{if(typeof i[d]!="function"){var p=Error((c||"React class")+": "+u+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=i[d](a,d,c,u,null,t)}catch(v){f=v}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var y=l?l():"";e("Failed "+u+" type: "+f.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ds=o,ds}var fs,Bc;function Gg(){if(Bc)return fs;Bc=1;var e=as(),t=Hg(),r=ls(),n=Fc(),o=Yg(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return fs=function(u,c){var l=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(j){var U=j&&(l&&j[l]||j[d]);if(typeof U=="function")return U}var p="<<anonymous>>",y={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:S(),arrayOf:E,element:x(),elementType:w(),instanceOf:P,node:L(),objectOf:k,oneOf:_,oneOfType:A,shape:te,exact:ee};function v(j,U){return j===U?j!==0||1/j===1/U:j!==j&&U!==U}function h(j,U){this.message=j,this.data=U&&typeof U=="object"?U:{},this.stack=""}h.prototype=Error.prototype;function m(j){if(process.env.NODE_ENV!=="production")var U={},O=0;function $(I,z,X,K,H,J,re){if(K=K||p,J=J||X,re!==r){if(c){var W=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 W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=K+":"+X;!U[ce]&&O<3&&(i("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+K+"`. 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."),U[ce]=!0,O++)}}return z[X]==null?I?z[X]===null?new h("The "+H+" `"+J+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new h("The "+H+" `"+J+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:j(z,X,K,H,J)}var D=$.bind(null,!1);return D.isRequired=$.bind(null,!0),D}function g(j){function U(O,$,D,I,z,X){var K=O[$],H=q(K);if(H!==j){var J=Z(K);return new h("Invalid "+I+" `"+z+"` of type "+("`"+J+"` supplied to `"+D+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return m(U)}function S(){return m(a)}function E(j){function U(O,$,D,I,z){if(typeof j!="function")return new h("Property `"+z+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var X=O[$];if(!Array.isArray(X)){var K=q(X);return new h("Invalid "+I+" `"+z+"` of type "+("`"+K+"` supplied to `"+D+"`, expected an array."))}for(var H=0;H<X.length;H++){var J=j(X,H,D,I,z+"["+H+"]",r);if(J instanceof Error)return J}return null}return m(U)}function x(){function j(U,O,$,D,I){var z=U[O];if(!u(z)){var X=q(z);return new h("Invalid "+D+" `"+I+"` of type "+("`"+X+"` supplied to `"+$+"`, expected a single ReactElement."))}return null}return m(j)}function w(){function j(U,O,$,D,I){var z=U[O];if(!e.isValidElementType(z)){var X=q(z);return new h("Invalid "+D+" `"+I+"` of type "+("`"+X+"` supplied to `"+$+"`, expected a single ReactElement type."))}return null}return m(j)}function P(j){function U(O,$,D,I,z){if(!(O[$]instanceof j)){var X=j.name||p,K=ve(O[$]);return new h("Invalid "+I+" `"+z+"` of type "+("`"+K+"` supplied to `"+D+"`, expected ")+("instance of `"+X+"`."))}return null}return m(U)}function _(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function U(O,$,D,I,z){for(var X=O[$],K=0;K<j.length;K++)if(v(X,j[K]))return null;var H=JSON.stringify(j,function(re,W){var ce=Z(W);return ce==="symbol"?String(W):W});return new h("Invalid "+I+" `"+z+"` of value `"+String(X)+"` "+("supplied to `"+D+"`, expected one of "+H+"."))}return m(U)}function k(j){function U(O,$,D,I,z){if(typeof j!="function")return new h("Property `"+z+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var X=O[$],K=q(X);if(K!=="object")return new h("Invalid "+I+" `"+z+"` of type "+("`"+K+"` supplied to `"+D+"`, expected an object."));for(var H in X)if(n(X,H)){var J=j(X,H,D,I,z+"."+H,r);if(J instanceof Error)return J}return null}return m(U)}function A(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var U=0;U<j.length;U++){var O=j[U];if(typeof O!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+fe(O)+" at index "+U+"."),a}function $(D,I,z,X,K){for(var H=[],J=0;J<j.length;J++){var re=j[J],W=re(D,I,z,X,K,r);if(W==null)return null;W.data&&n(W.data,"expectedType")&&H.push(W.data.expectedType)}var ce=H.length>0?", expected one of type ["+H.join(", ")+"]":"";return new h("Invalid "+X+" `"+K+"` supplied to "+("`"+z+"`"+ce+"."))}return m($)}function L(){function j(U,O,$,D,I){return F(U[O])?null:new h("Invalid "+D+" `"+I+"` supplied to "+("`"+$+"`, expected a ReactNode."))}return m(j)}function Y(j,U,O,$,D){return new h((j||"React class")+": "+U+" type `"+O+"."+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function te(j){function U(O,$,D,I,z){var X=O[$],K=q(X);if(K!=="object")return new h("Invalid "+I+" `"+z+"` of type `"+K+"` "+("supplied to `"+D+"`, expected `object`."));for(var H in j){var J=j[H];if(typeof J!="function")return Y(D,I,z,H,Z(J));var re=J(X,H,D,I,z+"."+H,r);if(re)return re}return null}return m(U)}function ee(j){function U(O,$,D,I,z){var X=O[$],K=q(X);if(K!=="object")return new h("Invalid "+I+" `"+z+"` of type `"+K+"` "+("supplied to `"+D+"`, expected `object`."));var H=t({},O[$],j);for(var J in H){var re=j[J];if(n(j,J)&&typeof re!="function")return Y(D,I,z,J,Z(re));if(!re)return new h("Invalid "+I+" `"+z+"` key `"+J+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(O[$],null," ")+`
|
|
46
|
+
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var W=re(X,J,D,I,z+"."+J,r);if(W)return W}return null}return m(U)}function F(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(F);if(j===null||u(j))return!0;var U=f(j);if(U){var O=U.call(j),$;if(U!==j.entries){for(;!($=O.next()).done;)if(!F($.value))return!1}else for(;!($=O.next()).done;){var D=$.value;if(D&&!F(D[1]))return!1}}else return!1;return!0;default:return!1}}function B(j,U){return j==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function q(j){var U=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":B(U,j)?"symbol":U}function Z(j){if(typeof j>"u"||j===null)return""+j;var U=q(j);if(U==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return U}function fe(j){var U=Z(j);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function ve(j){return!j.constructor||!j.constructor.name?p:j.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},fs}var ps,Vc;function Kg(){if(Vc)return ps;Vc=1;var e=ls();function t(){}function r(){}return r.resetWarningCache=t,ps=function(){function n(a,u,c,l,d,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},ps}if(process.env.NODE_ENV!=="production"){var Xg=as(),Jg=!0;is.exports=Gg()(Xg.isElement,Jg)}else is.exports=Kg()();var Uc=is.exports;const s=Rc(Uc);function Qg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Wc(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let u;const c=i.type;return typeof c=="function"&&!Qg(c)&&(u="Did you accidentally use a plain function component for an element instead?"),u!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const zc=$r(s.element,Wc);zc.isRequired=$r(s.element.isRequired,Wc);const xn=zc;function Zg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eb(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let u;return typeof i=="function"&&!Zg(i)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const li=$r(s.elementType,eb),tb="exact-prop: ";function po(e){return process.env.NODE_ENV==="production"?e:T({},e,{[tb]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function Mr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var ms={exports:{}},Ge={};/**
|
|
47
|
+
* @license React
|
|
48
|
+
* react-is.production.min.js
|
|
49
|
+
*
|
|
50
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the MIT license found in the
|
|
53
|
+
* LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/var qc;function rb(){if(qc)return Ge;qc=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function h(m){if(typeof m=="object"&&m!==null){var g=m.$$typeof;switch(g){case e:switch(m=m.type,m){case r:case o:case n:case l:case d:return m;default:switch(m=m&&m.$$typeof,m){case u:case a:case c:case p:case f:case i:return m;default:return g}}case t:return g}}}return Ge.ContextConsumer=a,Ge.ContextProvider=i,Ge.Element=e,Ge.ForwardRef=c,Ge.Fragment=r,Ge.Lazy=p,Ge.Memo=f,Ge.Portal=t,Ge.Profiler=o,Ge.StrictMode=n,Ge.Suspense=l,Ge.SuspenseList=d,Ge.isAsyncMode=function(){return!1},Ge.isConcurrentMode=function(){return!1},Ge.isContextConsumer=function(m){return h(m)===a},Ge.isContextProvider=function(m){return h(m)===i},Ge.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Ge.isForwardRef=function(m){return h(m)===c},Ge.isFragment=function(m){return h(m)===r},Ge.isLazy=function(m){return h(m)===p},Ge.isMemo=function(m){return h(m)===f},Ge.isPortal=function(m){return h(m)===t},Ge.isProfiler=function(m){return h(m)===o},Ge.isStrictMode=function(m){return h(m)===n},Ge.isSuspense=function(m){return h(m)===l},Ge.isSuspenseList=function(m){return h(m)===d},Ge.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===o||m===n||m===l||m===d||m===y||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===i||m.$$typeof===a||m.$$typeof===c||m.$$typeof===v||m.getModuleId!==void 0)},Ge.typeOf=h,Ge}var Ke={};/**
|
|
55
|
+
* @license React
|
|
56
|
+
* react-is.development.js
|
|
57
|
+
*
|
|
58
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the MIT license found in the
|
|
61
|
+
* LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/var Hc;function nb(){return Hc||(Hc=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=!1,h=!1,m=!1,g=!1,S=!1,E;E=Symbol.for("react.module.reference");function x(R){return!!(typeof R=="string"||typeof R=="function"||R===r||R===o||S||R===n||R===l||R===d||g||R===y||v||h||m||typeof R=="object"&&R!==null&&(R.$$typeof===p||R.$$typeof===f||R.$$typeof===i||R.$$typeof===a||R.$$typeof===c||R.$$typeof===E||R.getModuleId!==void 0))}function w(R){if(typeof R=="object"&&R!==null){var se=R.$$typeof;switch(se){case e:var ye=R.type;switch(ye){case r:case o:case n:case l:case d:return ye;default:var Ee=ye&&ye.$$typeof;switch(Ee){case u:case a:case c:case p:case f:case i:return Ee;default:return se}}case t:return se}}}var P=a,_=i,k=e,A=c,L=r,Y=p,te=f,ee=t,F=o,B=n,q=l,Z=d,fe=!1,ve=!1;function j(R){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(R){return ve||(ve=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function O(R){return w(R)===a}function $(R){return w(R)===i}function D(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function I(R){return w(R)===c}function z(R){return w(R)===r}function X(R){return w(R)===p}function K(R){return w(R)===f}function H(R){return w(R)===t}function J(R){return w(R)===o}function re(R){return w(R)===n}function W(R){return w(R)===l}function ce(R){return w(R)===d}Ke.ContextConsumer=P,Ke.ContextProvider=_,Ke.Element=k,Ke.ForwardRef=A,Ke.Fragment=L,Ke.Lazy=Y,Ke.Memo=te,Ke.Portal=ee,Ke.Profiler=F,Ke.StrictMode=B,Ke.Suspense=q,Ke.SuspenseList=Z,Ke.isAsyncMode=j,Ke.isConcurrentMode=U,Ke.isContextConsumer=O,Ke.isContextProvider=$,Ke.isElement=D,Ke.isForwardRef=I,Ke.isFragment=z,Ke.isLazy=X,Ke.isMemo=K,Ke.isPortal=H,Ke.isProfiler=J,Ke.isStrictMode=re,Ke.isSuspense=W,Ke.isSuspenseList=ce,Ke.isValidElementType=x,Ke.typeOf=w}()),Ke}process.env.NODE_ENV==="production"?ms.exports=rb():ms.exports=nb();var Yc=ms.exports;const ob=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ib(e){const t=`${e}`.match(ob);return t&&t[1]||""}function Gc(e,t=""){return e.displayName||e.name||ib(e)||t}function Kc(e,t,r){const n=Gc(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function ab(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Gc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Yc.ForwardRef:return Kc(e,e.render,"ForwardRef");case Yc.Memo:return Kc(e,e.type,"memo");default:return}}}function Sn(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}const hr=s.oneOfType([s.func,s.object]);function he(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Xc(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Jc(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function hs(e,t){return b.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Mt(e){return e&&e.ownerDocument||document}function Kr(e){return Mt(e).defaultView||window}function sb(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?T({},t.propTypes):null;return o=>(i,a,u,c,l,...d)=>{const f=l||a,p=r==null?void 0:r[f];if(p){const y=p(i,a,u,c,l,...d);if(y)return y}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function vs(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Xr=typeof window<"u"?b.useLayoutEffect:b.useEffect;let Qc=0;function ub(e){const[t,r]=b.useState(e),n=e||t;return b.useEffect(()=>{t==null&&(Qc+=1,r(`mui-${Qc}`))},[t]),n}const Zc=b["useId".toString()];function lb(e){if(Zc!==void 0){const t=Zc();return e??t}return ub(e)}function ed({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=b.useRef(e!==void 0),[i,a]=b.useState(t),u=o?e:i;if(process.env.NODE_ENV!=="production"){b.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
63
|
+
`))},[n,r,e]);const{current:l}=b.useRef(t);b.useEffect(()=>{!o&&l!==t&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
64
|
+
`))},[JSON.stringify(t)])}const c=b.useCallback(l=>{o||a(l)},[]);return[u,c]}function vr(e){const t=b.useRef(e);return Xr(()=>{t.current=e}),b.useCallback((...r)=>(0,t.current)(...r),[])}function kt(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{vs(r,t)})},e)}let ci=!0,ys=!1,td;const cb={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function db(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&cb[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function fb(e){e.metaKey||e.altKey||e.ctrlKey||(ci=!0)}function gs(){ci=!1}function pb(){this.visibilityState==="hidden"&&ys&&(ci=!0)}function mb(e){e.addEventListener("keydown",fb,!0),e.addEventListener("mousedown",gs,!0),e.addEventListener("pointerdown",gs,!0),e.addEventListener("touchstart",gs,!0),e.addEventListener("visibilitychange",pb,!0)}function hb(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ci||db(t)}function rd(){const e=b.useCallback(o=>{o!=null&&mb(o.ownerDocument)},[]),t=b.useRef(!1);function r(){return t.current?(ys=!0,window.clearTimeout(td),td=window.setTimeout(()=>{ys=!1},100),t.current=!1,!0):!1}function n(o){return hb(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function nd(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function vb(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 yb(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const gb=Number.isInteger||yb;function od(e,t,r,n){const o=e[t];if(o==null||!gb(o)){const i=vb(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function id(e,t,...r){return e[t]===void 0?null:od(e,t,...r)}function bs(){return null}id.isRequired=od,bs.isRequired=bs;const ad=process.env.NODE_ENV==="production"?bs:id;function Es(e,t){const r=T({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=T({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=T({},i),Object.keys(o).forEach(a=>{r[n][a]=Es(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function _e(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,a)=>{if(a){const u=t(a);u!==""&&i.push(u),r&&r[a]&&i.push(r[a])}return i},[]).join(" ")}),n}const sd=e=>e,ud=(()=>{let e=sd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sd}}})(),bb={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ce(e,t,r="Mui"){const n=bb[t];return n?`${r}-${n}`:`${ud.generate(e)}-${t}`}function $e(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ce(e,o,r)}),n}const Jr="$$material";function de(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function ld(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Eb=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wb=ld(function(e){return Eb.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function xb(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Sb(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Tb=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Sb(this));var o=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var i=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
65
|
+
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var a=xb(o);try{a.insertRule(n,a.cssRules.length)}catch(u){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',u)}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Dt="-ms-",di="-moz-",We="-webkit-",ws="comm",xs="rule",Ss="decl",Ob="@import",cd="@keyframes",Cb="@layer",Pb=Math.abs,fi=String.fromCharCode,Rb=Object.assign;function Nb(e,t){return _t(e,0)^45?(((t<<2^_t(e,0))<<2^_t(e,1))<<2^_t(e,2))<<2^_t(e,3):0}function dd(e){return e.trim()}function _b(e,t){return(e=t.exec(e))?e[0]:e}function ze(e,t,r){return e.replace(t,r)}function Ts(e,t){return e.indexOf(t)}function _t(e,t){return e.charCodeAt(t)|0}function mo(e,t,r){return e.slice(t,r)}function er(e){return e.length}function Os(e){return e.length}function pi(e,t){return t.push(e),e}function $b(e,t){return e.map(t).join("")}var mi=1,Tn=1,fd=0,jt=0,wt=0,On="";function hi(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:mi,column:Tn,length:a,return:""}}function ho(e,t){return Rb(hi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Mb(){return wt}function kb(){return wt=jt>0?_t(On,--jt):0,Tn--,wt===10&&(Tn=1,mi--),wt}function Ft(){return wt=jt<fd?_t(On,jt++):0,Tn++,wt===10&&(Tn=1,mi++),wt}function tr(){return _t(On,jt)}function yi(){return jt}function vo(e,t){return mo(On,e,t)}function yo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pd(e){return mi=Tn=1,fd=er(On=e),jt=0,[]}function md(e){return On="",e}function gi(e){return dd(vo(jt-1,Cs(e===91?e+2:e===40?e+1:e)))}function Db(e){for(;(wt=tr())&&wt<33;)Ft();return yo(e)>2||yo(wt)>3?"":" "}function Ab(e,t){for(;--t&&Ft()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return vo(e,yi()+(t<6&&tr()==32&&Ft()==32))}function Cs(e){for(;Ft();)switch(wt){case e:return jt;case 34:case 39:e!==34&&e!==39&&Cs(wt);break;case 40:e===41&&Cs(e);break;case 92:Ft();break}return jt}function Ib(e,t){for(;Ft()&&e+wt!==47+10;)if(e+wt===42+42&&tr()===47)break;return"/*"+vo(t,jt-1)+"*"+fi(e===47?e:Ft())}function jb(e){for(;!yo(tr());)Ft();return vo(e,jt)}function Fb(e){return md(bi("",null,null,null,[""],e=pd(e),0,[0],e))}function bi(e,t,r,n,o,i,a,u,c){for(var l=0,d=0,f=a,p=0,y=0,v=0,h=1,m=1,g=1,S=0,E="",x=o,w=i,P=n,_=E;m;)switch(v=S,S=Ft()){case 40:if(v!=108&&_t(_,f-1)==58){Ts(_+=ze(gi(S),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:_+=gi(S);break;case 9:case 10:case 13:case 32:_+=Db(v);break;case 92:_+=Ab(yi()-1,7);continue;case 47:switch(tr()){case 42:case 47:pi(Lb(Ib(Ft(),yi()),t,r),c);break;default:_+="/"}break;case 123*h:u[l++]=er(_)*g;case 125*h:case 59:case 0:switch(S){case 0:case 125:m=0;case 59+d:g==-1&&(_=ze(_,/\f/g,"")),y>0&&er(_)-f&&pi(y>32?vd(_+";",n,r,f-1):vd(ze(_," ","")+";",n,r,f-2),c);break;case 59:_+=";";default:if(pi(P=hd(_,t,r,l,d,o,u,E,x=[],w=[],f),i),S===123)if(d===0)bi(_,t,P,P,x,i,f,u,w);else switch(p===99&&_t(_,3)===110?100:p){case 100:case 108:case 109:case 115:bi(e,P,P,n&&pi(hd(e,P,P,0,0,o,u,E,o,x=[],f),w),o,w,f,u,n?x:w);break;default:bi(_,P,P,P,[""],w,0,u,w)}}l=d=y=0,h=g=1,E=_="",f=a;break;case 58:f=1+er(_),y=v;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&kb()==125)continue}switch(_+=fi(S),S*h){case 38:g=d>0?1:(_+="\f",-1);break;case 44:u[l++]=(er(_)-1)*g,g=1;break;case 64:tr()===45&&(_+=gi(Ft())),p=tr(),d=f=er(E=_+=jb(yi())),S++;break;case 45:v===45&&er(_)==2&&(h=0)}}return i}function hd(e,t,r,n,o,i,a,u,c,l,d){for(var f=o-1,p=o===0?i:[""],y=Os(p),v=0,h=0,m=0;v<n;++v)for(var g=0,S=mo(e,f+1,f=Pb(h=a[v])),E=e;g<y;++g)(E=dd(h>0?p[g]+" "+S:ze(S,/&\f/g,p[g])))&&(c[m++]=E);return hi(e,t,r,o===0?xs:u,c,l,d)}function Lb(e,t,r){return hi(e,t,r,ws,fi(Mb()),mo(e,2,-2),0)}function vd(e,t,r,n){return hi(e,t,r,Ss,mo(e,0,n),mo(e,n+1,-1),n)}function Cn(e,t){for(var r="",n=Os(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Bb(e,t,r,n){switch(e.type){case Cb:if(e.children.length)break;case Ob:case Ss:return e.return=e.return||e.value;case ws:return"";case cd:return e.return=e.value+"{"+Cn(e.children,n)+"}";case xs:e.value=e.props.join(",")}return er(r=Cn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Vb(e){var t=Os(e);return function(r,n,o,i){for(var a="",u=0;u<t;u++)a+=e[u](r,n,o,i)||"";return a}}function Ub(e){return function(t){t.root||(t=t.return)&&e(t)}}var Wb=function(t,r,n){for(var o=0,i=0;o=i,i=tr(),o===38&&i===12&&(r[n]=1),!yo(i);)Ft();return vo(t,jt)},zb=function(t,r){var n=-1,o=44;do switch(yo(o)){case 0:o===38&&tr()===12&&(r[n]=1),t[n]+=Wb(jt-1,r,n);break;case 2:t[n]+=gi(o);break;case 4:if(o===44){t[++n]=tr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=fi(o)}while(o=Ft());return t},qb=function(t,r){return md(zb(pd(t),r))},yd=new WeakMap,Hb=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!yd.get(n))&&!o){yd.set(t,!0);for(var i=[],a=qb(r,i),u=n.props,c=0,l=0;c<a.length;c++)for(var d=0;d<u.length;d++,l++)t.props[l]=i[c]?a[c].replace(/&\f/g,u[d]):u[d]+" "+a[c]}}},Yb=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},Gb="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Kb=function(t){return t.type==="comm"&&t.children.indexOf(Gb)>-1},Xb=function(t){return function(r,n,o){if(!(r.type!=="rule"||t.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var a=!!r.parent,u=a?r.parent.children:o,c=u.length-1;c>=0;c--){var l=u[c];if(l.line<r.line)break;if(l.column<r.column){if(Kb(l))return;break}}i.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},gd=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Jb=function(t,r){for(var n=t-1;n>=0;n--)if(!gd(r[n]))return!0;return!1},bd=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Qb=function(t,r,n){gd(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),bd(t)):Jb(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),bd(t)))};function Ed(e,t){switch(Nb(e,t)){case 5103:return We+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+di+e+Dt+e+e;case 6828:case 4268:return We+e+Dt+e+e;case 6165:return We+e+Dt+"flex-"+e+e;case 5187:return We+e+ze(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+Dt+"flex-$1$2")+e;case 5443:return We+e+Dt+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return We+e+Dt+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+Dt+ze(e,"shrink","negative")+e;case 5292:return We+e+Dt+ze(e,"basis","preferred-size")+e;case 6060:return We+"box-"+ze(e,"-grow","")+We+e+Dt+ze(e,"grow","positive")+e;case 4554:return We+ze(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+Dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,We+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(er(e)-1-t>6)switch(_t(e,t+1)){case 109:if(_t(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+di+(_t(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ts(e,"stretch")?Ed(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_t(e,t+1)!==115)break;case 6444:switch(_t(e,er(e)-3-(~Ts(e,"!important")&&10))){case 107:return ze(e,":",":"+We)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(_t(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+Dt+"$2box$3")+e}break;case 5936:switch(_t(e,t+11)){case 114:return We+e+Dt+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+Dt+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+Dt+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+Dt+e+e}return e}var Zb=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ss:t.return=Ed(t.value,t.length);break;case cd:return Cn([ho(t,{value:ze(t.value,"@","@"+We)})],o);case xs:if(t.length)return $b(t.props,function(i){switch(_b(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cn([ho(t,{props:[ze(i,/:(read-\w+)/,":"+di+"$1")]})],o);case"::placeholder":return Cn([ho(t,{props:[ze(i,/:(plac\w+)/,":"+We+"input-$1")]}),ho(t,{props:[ze(i,/:(plac\w+)/,":"+di+"$1")]}),ho(t,{props:[ze(i,/:(plac\w+)/,Dt+"input-$1")]})],o)}return""})}},e0=[Zb],t0=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
66
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var m=h.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||e0;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var i={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var m=h.getAttribute("data-emotion").split(" "),g=1;g<m.length;g++)i[m[g]]=!0;u.push(h)});var c,l=[Hb,Yb];process.env.NODE_ENV!=="production"&&l.push(Xb({get compat(){return v.compat}}),Qb);{var d,f=[Bb,process.env.NODE_ENV!=="production"?function(h){h.root||(h.return?d.insert(h.return):h.value&&h.type!==ws&&d.insert(h.value+"{}"))}:Ub(function(h){d.insert(h)})],p=Vb(l.concat(o,f)),y=function(m){return Cn(Fb(m),p)};c=function(m,g,S,E){d=S,process.env.NODE_ENV!=="production"&&g.map!==void 0&&(d={insert:function(w){S.insert(w+g.map)}}),y(m?m+"{"+g.styles+"}":g.styles),E&&(v.inserted[g.name]=!0)}}var v={key:r,sheet:new Tb({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return v.sheet.hydrate(u),v},Ps=as(),r0={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n0={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Rs={};Rs[Ps.ForwardRef]=o0,Rs[Ps.Memo]=wd;function xd(e){return Ps.isMemo(e)?wd:Rs[e.$$typeof]||r0}var i0=Object.defineProperty,a0=Object.getOwnPropertyNames,Sd=Object.getOwnPropertySymbols,s0=Object.getOwnPropertyDescriptor,u0=Object.getPrototypeOf,Td=Object.prototype;function Od(e,t,r){if(typeof t!="string"){if(Td){var n=u0(t);n&&n!==Td&&Od(e,n,r)}var o=a0(t);Sd&&(o=o.concat(Sd(t)));for(var i=xd(e),a=xd(t),u=0;u<o.length;++u){var c=o[u];if(!n0[c]&&!(r&&r[c])&&!(a&&a[c])&&!(i&&i[c])){var l=s0(t,c);try{i0(e,c,l)}catch{}}}}return e}var l0=Od,c0=!0;function Ns(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var Ei=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||c0===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},wi=function(t,r,n){Ei(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function d0(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 f0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Cd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
67
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
68
|
+
You can read more about this here:
|
|
69
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,p0="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",m0=/[A-Z]|^ms/g,Pd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_s=function(t){return t.charCodeAt(1)===45},Rd=function(t){return t!=null&&typeof t!="boolean"},$s=ld(function(e){return _s(e)?e:e.replace(m0,"-$&").toLowerCase()}),xi=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Pd,function(n,o,i){return Qt={name:o,styles:i,next:Qt},o})}return f0[t]!==1&&!_s(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var h0=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,v0=["normal","none","initial","inherit","unset"],y0=xi,g0=/^-ms-/,b0=/-(.)/g,Nd={};xi=function(t,r){if(t==="content"&&(typeof r!="string"||v0.indexOf(r)===-1&&!h0.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=y0(t,r);return n!==""&&!_s(t)&&t.indexOf("-")!==-1&&Nd[t]===void 0&&(Nd[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(g0,"ms-").replace(b0,function(o,i){return i.toUpperCase()})+"?")),n}}var _d="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function go(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(_d);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Qt={name:r.name,styles:r.styles,next:Qt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Qt={name:n.name,styles:n.styles,next:Qt},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return E0(e,t,r)}case"function":{if(e!==void 0){var i=Qt,a=r(e);return Qt=i,go(e,t,a)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var u=[],c=r.replace(Pd,function(d,f,p){var y="animation"+u.length;return u.push("const "+y+" = keyframes`"+p.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+y+"}"});u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join(`
|
|
70
|
+
`)+`
|
|
71
|
+
|
|
72
|
+
You should wrap it with \`css\` like this:
|
|
73
|
+
|
|
74
|
+
`+("css`"+c+"`"))}break}if(t==null)return r;var l=t[r];return l!==void 0?l:r}function E0(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=go(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object")t!=null&&t[a]!==void 0?n+=i+"{"+t[a]+"}":Rd(a)&&(n+=$s(i)+":"+xi(i,a)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(_d);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)Rd(a[u])&&(n+=$s(i)+":"+xi(i,a[u])+";");else{var c=go(e,t,a);switch(i){case"animation":case"animationName":{n+=$s(i)+":"+c+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(p0),n+=i+"{"+c+"}"}}}}return n}var $d=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Md;process.env.NODE_ENV!=="production"&&(Md=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Qt,Pn=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Qt=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=go(n,r,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(Cd),i+=a[0]);for(var u=1;u<t.length;u++)i+=go(n,r,t[u]),o&&(process.env.NODE_ENV!=="production"&&a[u]===void 0&&console.error(Cd),i+=a[u]);var c;process.env.NODE_ENV!=="production"&&(i=i.replace(Md,function(p){return c=p,""})),$d.lastIndex=0;for(var l="",d;(d=$d.exec(i))!==null;)l+="-"+d[1];var f=d0(i)+l;return process.env.NODE_ENV!=="production"?{name:f,styles:i,map:c,next:Qt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:f,styles:i,next:Qt}},w0=function(t){return t()},kd=b["useInsertionEffect"]?b["useInsertionEffect"]:!1,Ms=kd||w0,Dd=kd||b.useLayoutEffect,x0={}.hasOwnProperty,ks=b.createContext(typeof HTMLElement<"u"?t0({key:"css"}):null);process.env.NODE_ENV!=="production"&&(ks.displayName="EmotionCacheContext"),ks.Provider;var Si=function(t){return pe.forwardRef(function(r,n){var o=pe.useContext(ks);return t(r,o,n)})},Qr=b.createContext({});process.env.NODE_ENV!=="production"&&(Qr.displayName="EmotionThemeContext");var Ad="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Id="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",S0=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Ei(r,n,o),Ms(function(){return wi(r,n,o)}),null},T0=Si(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Ad],i=[n],a="";typeof e.className=="string"?a=Ns(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var u=Pn(i,void 0,b.useContext(Qr));if(process.env.NODE_ENV!=="production"&&u.name.indexOf("-")===-1){var c=e[Id];c&&(u=Pn([u,"label:"+c+";"]))}a+=t.key+"-"+u.name;var l={};for(var d in e)x0.call(e,d)&&d!=="css"&&d!==Ad&&(process.env.NODE_ENV==="production"||d!==Id)&&(l[d]=e[d]);return l.ref=r,l.className=a,b.createElement(b.Fragment,null,b.createElement(S0,{cache:t,serialized:u,isStringTag:typeof o=="string"}),b.createElement(o,l))});process.env.NODE_ENV!=="production"&&(T0.displayName="EmotionCssPropInternal");var O0={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},jd=!1,Fd=Si(function(e,t){process.env.NODE_ENV!=="production"&&!jd&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),jd=!0);var r=e.styles,n=Pn([r],void 0,b.useContext(Qr)),o=b.useRef();return Dd(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),o.current=[a,u],function(){a.flush()}},[t]),Dd(function(){var i=o.current,a=i[0],u=i[1];if(u){i[1]=!1;return}if(n.next!==void 0&&wi(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});process.env.NODE_ENV!=="production"&&(Fd.displayName="EmotionGlobal");function Ds(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Pn(t)}var bo=function(){var t=Ds.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},C0=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(i!=null){var a=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))a=e(i);else{process.env.NODE_ENV!=="production"&&i.styles!==void 0&&i.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var u in i)i[u]&&u&&(a&&(a+=" "),a+=u)}break}default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function P0(e,t,r){var n=[],o=Ns(e,n,r);return n.length<2?r:o+t(n)}var R0=function(t){var r=t.cache,n=t.serializedArr;return Ms(function(){for(var o=0;o<n.length;o++)wi(r,n[o],!1)}),null},N0=Si(function(e,t){var r=!1,n=[],o=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var p=Pn(d,t.registered);return n.push(p),Ei(t,p,!1),t.key+"-"+p.name},i=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return P0(t.registered,o,C0(d))},a={css:o,cx:i,theme:b.useContext(Qr)},u=e.children(a);return r=!0,b.createElement(b.Fragment,null,b.createElement(R0,{cache:t,serializedArr:n}),u)});if(process.env.NODE_ENV!=="production"&&(N0.displayName="EmotionClassNames"),process.env.NODE_ENV!=="production"){var Ld=!0,_0=typeof jest<"u"||typeof vi<"u";if(Ld&&!_0){var Bd=typeof globalThis<"u"?globalThis:Ld?window:global,Vd="__EMOTION_REACT_"+O0.version.split(".")[0]+"__";Bd[Vd]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Bd[Vd]=!0}}var $0=wb,M0=function(t){return t!=="theme"},Ud=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?$0:M0},Wd=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},zd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
75
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
76
|
+
You can read more about this here:
|
|
77
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,k0=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Ei(r,n,o),Ms(function(){return wi(r,n,o)}),null},D0=function e(t,r){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
78
|
+
You may have forgotten to import it.`);var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var u=Wd(t,r,n),c=u||Ud(o),l=!c("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{process.env.NODE_ENV!=="production"&&d[0][0]===void 0&&console.error(zd),f.push(d[0][0]);for(var p=d.length,y=1;y<p;y++)process.env.NODE_ENV!=="production"&&d[0][y]===void 0&&console.error(zd),f.push(d[y],d[0][y])}var v=Si(function(h,m,g){var S=l&&h.as||o,E="",x=[],w=h;if(h.theme==null){w={};for(var P in h)w[P]=h[P];w.theme=b.useContext(Qr)}typeof h.className=="string"?E=Ns(m.registered,x,h.className):h.className!=null&&(E=h.className+" ");var _=Pn(f.concat(x),m.registered,w);E+=m.key+"-"+_.name,a!==void 0&&(E+=" "+a);var k=l&&u===void 0?Ud(S):c,A={};for(var L in h)l&&L==="as"||k(L)&&(A[L]=h[L]);return A.className=E,A.ref=g,b.createElement(b.Fragment,null,b.createElement(k0,{cache:m,serialized:_,isStringTag:typeof S=="string"}),b.createElement(S,A))});return v.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=f,v.__emotion_forwardProp=u,Object.defineProperty(v,"toString",{value:function(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+a}}),v.withComponent=function(h,m){return e(h,T({},r,m,{shouldForwardProp:Wd(v,m,!0)})).apply(void 0,f)},v}},A0=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],As=D0.bind();A0.forEach(function(e){As[e]=As(e)});function I0(e){return e==null||Object.keys(e).length===0}function qd(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(I0(o)?r:o):t;return N.jsx(Fd,{styles:n})}process.env.NODE_ENV!=="production"&&(qd.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
|
|
79
|
+
* @mui/styled-engine v5.13.2
|
|
80
|
+
*
|
|
81
|
+
* @license MIT
|
|
82
|
+
* This source code is licensed under the MIT license found in the
|
|
83
|
+
* LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/function Hd(e,t){const r=As(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
85
|
+
`)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const j0=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},F0=["values","unit","step"],L0=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>T({},r,{[n.key]:n.val}),{})};function B0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=de(e,F0),i=L0(t),a=Object.keys(i);function u(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,y){const v=a.indexOf(y);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:y)-n/100}${r})`}function d(p){return a.indexOf(p)+1<a.length?l(p,a[a.indexOf(p)+1]):u(p)}function f(p){const y=a.indexOf(p);return y===0?u(a[1]):y===a.length-1?c(a[y]):l(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return T({keys:a,values:i,up:u,down:c,between:l,only:d,not:f,unit:r},o)}const V0={borderRadius:4},kr=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Eo(e,t){return t?Wt(e,t,{clone:!1}):e}const Is={xs:0,sm:600,md:900,lg:1200,xl:1536},Yd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Is[e]}px)`};function zt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Yd;return t.reduce((a,u,c)=>(a[i.up(i.keys[c])]=r(t[c]),a),{})}if(typeof t=="object"){const i=n.breakpoints||Yd;return Object.keys(t).reduce((a,u)=>{if(Object.keys(i.values||Is).indexOf(u)!==-1){const c=i.up(u);a[c]=r(t[u],u)}else{const c=u;a[c]=t[c]}return a},{})}return r(t)}function U0(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function W0(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function z0(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Ti({values:e,breakpoints:t,base:r}){const n=r||z0(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,u,c)=>(Array.isArray(e)?(a[u]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(a[u]=e[u]!=null?e[u]:e[i],i=u):a[u]=e,a),{})}function Rn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Oi(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Rn(e,r)||n,t&&(o=t(o,n,e)),o}function Xe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const u=a[t],c=a.theme,l=Rn(c,n)||{};return zt(a,u,f=>{let p=Oi(l,o,f);return f===p&&typeof f=="string"&&(p=Oi(l,o,`${t}${f==="default"?"":he(f)}`,f)),r===!1?p:{[r]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:kr}:{},i.filterProps=[t],i}function q0(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const H0={m:"margin",p:"padding"},Y0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},G0=q0(e=>{if(e.length>2)if(Gd[e])e=Gd[e];else return[e];const[t,r]=e.split(""),n=H0[t],o=Y0[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Ci=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],K0=[...Ci,...Pi];function wo(e,t,r,n){var o;const i=(o=Rn(e,t,!1))!=null?o:r;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
86
|
+
`)):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(`
|
|
87
|
+
`))),i[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(`
|
|
88
|
+
`)),()=>{})}function Kd(e){return wo(e,"spacing",8,"spacing")}function xo(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function X0(e,t){return r=>e.reduce((n,o)=>(n[o]=xo(t,r),n),{})}function J0(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=G0(r),i=X0(o,n),a=e[r];return zt(e,a,i)}function Xd(e,t){const r=Kd(e.theme);return Object.keys(e).map(n=>J0(e,t,n,r)).reduce(Eo,{})}function mt(e){return Xd(e,Ci)}mt.propTypes=process.env.NODE_ENV!=="production"?Ci.reduce((e,t)=>(e[t]=kr,e),{}):{},mt.filterProps=Ci;function ht(e){return Xd(e,Pi)}ht.propTypes=process.env.NODE_ENV!=="production"?Pi.reduce((e,t)=>(e[t]=kr,e),{}):{},ht.filterProps=Pi,process.env.NODE_ENV!=="production"&&K0.reduce((e,t)=>(e[t]=kr,e),{});function Q0(e=8){if(e.mui)return e;const t=Kd({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function Ri(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Eo(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function rr(e){return typeof e!="number"?e:`${e}px solid`}const Z0=Xe({prop:"border",themeKey:"borders",transform:rr}),eE=Xe({prop:"borderTop",themeKey:"borders",transform:rr}),tE=Xe({prop:"borderRight",themeKey:"borders",transform:rr}),rE=Xe({prop:"borderBottom",themeKey:"borders",transform:rr}),nE=Xe({prop:"borderLeft",themeKey:"borders",transform:rr}),oE=Xe({prop:"borderColor",themeKey:"palette"}),iE=Xe({prop:"borderTopColor",themeKey:"palette"}),aE=Xe({prop:"borderRightColor",themeKey:"palette"}),sE=Xe({prop:"borderBottomColor",themeKey:"palette"}),uE=Xe({prop:"borderLeftColor",themeKey:"palette"}),Ni=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=wo(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:xo(t,n)});return zt(e,e.borderRadius,r)}return null};Ni.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:kr}:{},Ni.filterProps=["borderRadius"],Ri(Z0,eE,tE,rE,nE,oE,iE,aE,sE,uE,Ni);const _i=e=>{if(e.gap!==void 0&&e.gap!==null){const t=wo(e.theme,"spacing",8,"gap"),r=n=>({gap:xo(t,n)});return zt(e,e.gap,r)}return null};_i.propTypes=process.env.NODE_ENV!=="production"?{gap:kr}:{},_i.filterProps=["gap"];const $i=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=wo(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:xo(t,n)});return zt(e,e.columnGap,r)}return null};$i.propTypes=process.env.NODE_ENV!=="production"?{columnGap:kr}:{},$i.filterProps=["columnGap"];const Mi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=wo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:xo(t,n)});return zt(e,e.rowGap,r)}return null};Mi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:kr}:{},Mi.filterProps=["rowGap"];const lE=Xe({prop:"gridColumn"}),cE=Xe({prop:"gridRow"}),dE=Xe({prop:"gridAutoFlow"}),fE=Xe({prop:"gridAutoColumns"}),pE=Xe({prop:"gridAutoRows"}),mE=Xe({prop:"gridTemplateColumns"}),hE=Xe({prop:"gridTemplateRows"}),vE=Xe({prop:"gridTemplateAreas"}),yE=Xe({prop:"gridArea"});Ri(_i,$i,Mi,lE,cE,dE,fE,pE,mE,hE,vE,yE);function Nn(e,t){return t==="grey"?t:e}const gE=Xe({prop:"color",themeKey:"palette",transform:Nn}),bE=Xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nn}),EE=Xe({prop:"backgroundColor",themeKey:"palette",transform:Nn});Ri(gE,bE,EE);function Lt(e){return e<=1&&e!==0?`${e*100}%`:e}const wE=Xe({prop:"width",transform:Lt}),js=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n;return{maxWidth:((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Is[r]||Lt(r)}};return zt(e,e.maxWidth,t)}return null};js.filterProps=["maxWidth"];const xE=Xe({prop:"minWidth",transform:Lt}),SE=Xe({prop:"height",transform:Lt}),TE=Xe({prop:"maxHeight",transform:Lt}),OE=Xe({prop:"minHeight",transform:Lt});Xe({prop:"size",cssProperty:"width",transform:Lt}),Xe({prop:"size",cssProperty:"height",transform:Lt});const CE=Xe({prop:"boxSizing"});Ri(wE,js,xE,SE,TE,OE,CE);const ki={border:{themeKey:"borders",transform:rr},borderTop:{themeKey:"borders",transform:rr},borderRight:{themeKey:"borders",transform:rr},borderBottom:{themeKey:"borders",transform:rr},borderLeft:{themeKey:"borders",transform:rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ni},color:{themeKey:"palette",transform:Nn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nn},backgroundColor:{themeKey:"palette",transform:Nn},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:mt},mt:{style:mt},mr:{style:mt},mb:{style:mt},ml:{style:mt},mx:{style:mt},my:{style:mt},margin:{style:mt},marginTop:{style:mt},marginRight:{style:mt},marginBottom:{style:mt},marginLeft:{style:mt},marginX:{style:mt},marginY:{style:mt},marginInline:{style:mt},marginInlineStart:{style:mt},marginInlineEnd:{style:mt},marginBlock:{style:mt},marginBlockStart:{style:mt},marginBlockEnd:{style:mt},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:_i},rowGap:{style:Mi},columnGap:{style:$i},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Lt},maxWidth:{style:js},minWidth:{transform:Lt},height:{transform:Lt},maxHeight:{transform:Lt},minHeight:{transform:Lt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function PE(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function RE(e,t){return typeof e=="function"?e(t):e}function NE(){function e(r,n,o,i){const a={[r]:n,theme:o},u=i[r];if(!u)return{[r]:n};const{cssProperty:c=r,themeKey:l,transform:d,style:f}=u;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Rn(o,l)||{};return f?f(a):zt(a,n,v=>{let h=Oi(p,d,v);return v===h&&typeof v=="string"&&(h=Oi(p,d,`${r}${v==="default"?"":he(v)}`,v)),c===!1?h:{[c]:h}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:ki;function u(c){let l=c;if(typeof c=="function")l=c(i);else if(typeof c!="object")return c;if(!l)return null;const d=U0(i.breakpoints),f=Object.keys(d);let p=d;return Object.keys(l).forEach(y=>{const v=RE(l[y],i);if(v!=null)if(typeof v=="object")if(a[y])p=Eo(p,e(y,v,i,a));else{const h=zt({theme:i},v,m=>({[y]:m}));PE(h,v)?p[y]=t({sx:v,theme:i}):p=Eo(p,h)}else p=Eo(p,e(y,v,i,a))}),W0(f,p)}return Array.isArray(o)?o.map(u):u(o)}return t}const Jd=NE();Jd.filterProps=["sx"];const Di=Jd,_E=["breakpoints","palette","spacing","shape"];function Ai(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=de(e,_E),u=B0(r),c=Q0(o);let l=Wt({breakpoints:u,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:c,shape:T({},V0,i)},a);return l=t.reduce((d,f)=>Wt(d,f),l),l.unstable_sxConfig=T({},ki,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return Di({sx:f,theme:this})},l}function $E(e){return Object.keys(e).length===0}function Fs(e=null){const t=b.useContext(Qr);return!t||$E(t)?e:t}const ME=Ai();function Ii(e=ME){return Fs(e)}function Qd({styles:e,themeId:t,defaultTheme:r={}}){const n=Ii(r),o=typeof e=="function"?e(t&&n[t]||n):e;return N.jsx(qd,{styles:o})}process.env.NODE_ENV!=="production"&&(Qd.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const kE=["sx"],DE=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ki;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Ls(e){const{sx:t}=e,r=de(e,kE),{systemProps:n,otherProps:o}=DE(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const u=t(...a);return Gr(u)?T({},n,u):n}:i=T({},n,t),T({},o,{sx:i})}function Zd(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Zd(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function be(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Zd(e))&&(n&&(n+=" "),n+=t);return n}const AE=["className","component"];function IE(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Hd("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(Di);return b.forwardRef(function(c,l){const d=Ii(r),f=Ls(c),{className:p,component:y="div"}=f,v=de(f,AE);return N.jsx(i,T({as:y,ref:l,className:be(p,o?o(n):n),theme:t&&d[t]||d},v))})}const jE=["variant"];function ef(e){return e.length===0}function tf(e){const{variant:t}=e,r=de(e,jE);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=ef(n)?e[o]:he(e[o]):n+=`${ef(n)?o:he(o)}${he(e[o].toString())}`}),n}const FE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function LE(e){return Object.keys(e).length===0}function BE(e){return typeof e=="string"&&e.charCodeAt(0)>96}const VE=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,UE=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(o=>{const i=tf(o.props);n[i]=o.style}),n},WE=(e,t,r,n)=>{var o;const{ownerState:i={}}=e,a=[],u=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return u&&u.forEach(c=>{let l=!0;Object.keys(c.props).forEach(d=>{i[d]!==c.props[d]&&e[d]!==c.props[d]&&(l=!1)}),l&&a.push(t[tf(c.props)])}),a};function So(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zE=Ai(),qE=e=>e.charAt(0).toLowerCase()+e.slice(1);function To({defaultTheme:e,theme:t,themeId:r}){return LE(t)?e:t[r]||t}function rf(e={}){const{themeId:t,defaultTheme:r=zE,rootShouldForwardProp:n=So,slotShouldForwardProp:o=So}=e,i=a=>Di(T({},a,{theme:To(T({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{j0(a,x=>x.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:d,skipSx:f,overridesResolver:p}=u,y=de(u,FE),v=d!==void 0?d:l&&l!=="Root"||!1,h=f||!1;let m;process.env.NODE_ENV!=="production"&&c&&(m=`${c}-${qE(l||"Root")}`);let g=So;l==="Root"?g=n:l?g=o:BE(a)&&(g=void 0);const S=Hd(a,T({shouldForwardProp:g,label:m},y)),E=(x,...w)=>{const P=w?w.map(L=>typeof L=="function"&&L.__emotion_real!==L?Y=>L(T({},Y,{theme:To(T({},Y,{defaultTheme:r,themeId:t}))})):L):[];let _=x;c&&p&&P.push(L=>{const Y=To(T({},L,{defaultTheme:r,themeId:t})),te=VE(c,Y);if(te){const ee={};return Object.entries(te).forEach(([F,B])=>{ee[F]=typeof B=="function"?B(T({},L,{theme:Y})):B}),p(L,ee)}return null}),c&&!v&&P.push(L=>{const Y=To(T({},L,{defaultTheme:r,themeId:t}));return WE(L,UE(c,Y),Y,c)}),h||P.push(i);const k=P.length-w.length;if(Array.isArray(x)&&k>0){const L=new Array(k).fill("");_=[...x,...L],_.raw=[...x.raw,...L]}else typeof x=="function"&&x.__emotion_real!==x&&(_=L=>x(T({},L,{theme:To(T({},L,{defaultTheme:r,themeId:t}))})));const A=S(_,...P);if(process.env.NODE_ENV!=="production"){let L;c&&(L=`${c}${l||""}`),L===void 0&&(L=`Styled(${ab(a)})`),A.displayName=L}return a.muiName&&(A.muiName=a.muiName),A};return S.withConfig&&(E.withConfig=S.withConfig),E}}const HE=rf();function nf(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Es(t.components[r].defaultProps,n)}function of({props:e,name:t,defaultTheme:r,themeId:n}){let o=Ii(r);return n&&(o=o[n]||o),nf({theme:o,name:t,props:e})}function Bs(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Math.min(Math.max(t,e),r)}function YE(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Zr(e){if(e.type)return e;if(e.charAt(0)==="#")return Zr(YE(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
89
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Mr(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
90
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Mr(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function ji(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function GE(e){e=Zr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(l,d=(l+r/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let u="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),ji({type:u,values:c})}function Vs(e){e=Zr(e);let t=e.type==="hsl"||e.type==="hsla"?Zr(GE(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function af(e,t){const r=Vs(e),n=Vs(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function yr(e,t){return e=Zr(e),t=Bs(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ji(e)}function Fi(e,t){if(e=Zr(e),t=Bs(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ji(e)}function Li(e,t){if(e=Zr(e),t=Bs(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ji(e)}function KE(e,t=.15){return Vs(e)>.5?Fi(e,t):Li(e,t)}const sf=b.createContext(null);process.env.NODE_ENV!=="production"&&(sf.displayName="ThemeContext");const uf=sf;function lf(){const e=b.useContext(uf);return process.env.NODE_ENV!=="production"&&b.useDebugValue(e),e}const XE=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function JE(e,t){if(typeof t=="function"){const r=t(e);return process.env.NODE_ENV!=="production"&&(r||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
91
|
+
`))),r}return T({},e,t)}function Bi(e){const{children:t,theme:r}=e,n=lf();process.env.NODE_ENV!=="production"&&n===null&&typeof r=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
92
|
+
`));const o=b.useMemo(()=>{const i=n===null?r:JE(n,r);return i!=null&&(i[XE]=n!==null),i},[r,n]);return N.jsx(uf.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(Bi.propTypes={children:s.node,theme:s.oneOfType([s.object,s.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Bi.propTypes=po(Bi.propTypes));const cf={};function df(e,t,r,n=!1){return b.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const i=r(o),a=e?T({},t,{[e]:i}):i;return n?()=>a:a}return e?T({},t,{[e]:r}):T({},t,r)},[e,t,r,n])}function Vi(e){const{children:t,theme:r,themeId:n}=e,o=Fs(cf),i=lf()||cf;process.env.NODE_ENV!=="production"&&(o===null&&typeof r=="function"||n&&o&&!o[n]&&typeof r=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
93
|
+
`));const a=df(n,o,r),u=df(n,i,r,!0);return N.jsx(Bi,{theme:u,children:N.jsx(Qr.Provider,{value:a,children:t})})}process.env.NODE_ENV!=="production"&&(Vi.propTypes={children:s.node,theme:s.oneOfType([s.func,s.object]).isRequired,themeId:s.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Vi.propTypes=po(Vi.propTypes));const QE=["className","component","disableGutters","fixed","maxWidth","classes"],ZE=Ai(),ew=HE("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${he(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),tw=e=>of({props:e,name:"MuiContainer",defaultTheme:ZE}),rw=(e,t)=>{const r=c=>Ce(t,c),{classes:n,fixed:o,disableGutters:i,maxWidth:a}=e,u={root:["root",a&&`maxWidth${he(String(a))}`,o&&"fixed",i&&"disableGutters"]};return _e(u,r,n)};function nw(e={}){const{createStyledComponent:t=ew,useThemeProps:r=tw,componentName:n="MuiContainer"}=e,o=t(({theme:a,ownerState:u})=>T({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!u.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:u})=>u.fixed&&Object.keys(a.breakpoints.values).reduce((c,l)=>{const d=l,f=a.breakpoints.values[d];return f!==0&&(c[a.breakpoints.up(d)]={maxWidth:`${f}${a.breakpoints.unit}`}),c},{}),({theme:a,ownerState:u})=>T({},u.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},u.maxWidth&&u.maxWidth!=="xs"&&{[a.breakpoints.up(u.maxWidth)]:{maxWidth:`${a.breakpoints.values[u.maxWidth]}${a.breakpoints.unit}`}})),i=b.forwardRef(function(u,c){const l=r(u),{className:d,component:f="div",disableGutters:p=!1,fixed:y=!1,maxWidth:v="lg"}=l,h=de(l,QE),m=T({},l,{component:f,disableGutters:p,fixed:y,maxWidth:v}),g=rw(m,n);return N.jsx(o,T({as:f,ownerState:m,className:be(g.root,d),ref:c},h))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disableGutters:s.bool,fixed:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),i}function ow(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const iw=["mode","contrastThreshold","tonalOffset"],ff={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:co.white,default:co.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}},Us={text:{primary:co.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:co.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}};function pf(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Li(e.main,o):t==="dark"&&(e.dark=Fi(e.main,i)))}function aw(e="light"){return e==="dark"?{main:bn[200],light:bn[50],dark:bn[400]}:{main:bn[700],light:bn[400],dark:bn[800]}}function sw(e="light"){return e==="dark"?{main:gn[200],light:gn[50],dark:gn[400]}:{main:gn[500],light:gn[300],dark:gn[700]}}function uw(e="light"){return e==="dark"?{main:yn[500],light:yn[300],dark:yn[700]}:{main:yn[700],light:yn[400],dark:yn[800]}}function lw(e="light"){return e==="dark"?{main:En[400],light:En[300],dark:En[700]}:{main:En[700],light:En[500],dark:En[900]}}function cw(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:wn[800],light:wn[500],dark:wn[900]}}function dw(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:"#ed6c02",light:fo[500],dark:fo[900]}}function fw(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=de(e,iw),i=e.primary||aw(t),a=e.secondary||sw(t),u=e.error||uw(t),c=e.info||lw(t),l=e.success||cw(t),d=e.warning||dw(t);function f(h){const m=af(h,Us.text.primary)>=r?Us.text.primary:ff.text.primary;if(process.env.NODE_ENV!=="production"){const g=af(h,m);g<3&&console.error([`MUI: The contrast ratio of ${g}:1 for ${m} 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(`
|
|
94
|
+
`))}return m}const p=({color:h,name:m,mainShade:g=500,lightShade:S=300,darkShade:E=700})=>{if(h=T({},h),!h.main&&h[g]&&(h.main=h[g]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
|
|
95
|
+
The color object needs to have a \`main\` property or a \`${g}\` property.`:Mr(11,m?` (${m})`:"",g));if(typeof h.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
|
|
96
|
+
\`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
|
|
97
|
+
|
|
98
|
+
Did you intend to use one of the following approaches?
|
|
99
|
+
|
|
100
|
+
import { green } from "@mui/material/colors";
|
|
101
|
+
|
|
102
|
+
const theme1 = createTheme({ palette: {
|
|
103
|
+
primary: green,
|
|
104
|
+
} });
|
|
105
|
+
|
|
106
|
+
const theme2 = createTheme({ palette: {
|
|
107
|
+
primary: { main: green[500] },
|
|
108
|
+
} });`:Mr(12,m?` (${m})`:"",JSON.stringify(h.main)));return pf(h,"light",S,n),pf(h,"dark",E,n),h.contrastText||(h.contrastText=f(h.main)),h},y={dark:Us,light:ff};return process.env.NODE_ENV!=="production"&&(y[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Wt(T({common:T({},co),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:u,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:l,name:"success"}),grey:os,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},y[t]),o)}const pw=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function mw(e){return Math.round(e*1e5)/1e5}const mf={textTransform:"uppercase"},hf='"Roboto", "Helvetica", "Arial", sans-serif';function hw(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=hf,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:d,pxToRem:f}=r,p=de(r,pw);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=o/14,v=f||(g=>`${g/l*y}rem`),h=(g,S,E,x,w)=>T({fontFamily:n,fontWeight:g,fontSize:v(S),lineHeight:E},n===hf?{letterSpacing:`${mw(x/S)}em`}:{},w,d),m={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(u,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(u,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(u,14,1.75,.4,mf),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,mf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wt(T({htmlFontSize:l,pxToRem:v,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c},m),p,{clone:!1})}const vw=.2,yw=.14,gw=.12;function ut(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${vw})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${yw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${gw})`].join(",")}const bw=["none",ut(0,2,1,-1,0,1,1,0,0,1,3,0),ut(0,3,1,-2,0,2,2,0,0,1,5,0),ut(0,3,3,-2,0,3,4,0,0,1,8,0),ut(0,2,4,-1,0,4,5,0,0,1,10,0),ut(0,3,5,-1,0,5,8,0,0,1,14,0),ut(0,3,5,-1,0,6,10,0,0,1,18,0),ut(0,4,5,-2,0,7,10,1,0,2,16,1),ut(0,5,5,-3,0,8,10,1,0,3,14,2),ut(0,5,6,-3,0,9,12,1,0,3,16,2),ut(0,6,6,-3,0,10,14,1,0,4,18,3),ut(0,6,7,-4,0,11,15,1,0,4,20,3),ut(0,7,8,-4,0,12,17,2,0,5,22,4),ut(0,7,8,-4,0,13,19,2,0,5,24,4),ut(0,7,9,-4,0,14,21,2,0,5,26,4),ut(0,8,9,-5,0,15,22,2,0,6,28,5),ut(0,8,10,-5,0,16,24,2,0,6,30,5),ut(0,8,11,-5,0,17,26,2,0,6,32,5),ut(0,9,11,-5,0,18,28,2,0,7,34,6),ut(0,9,12,-6,0,19,29,2,0,7,36,6),ut(0,10,13,-6,0,20,31,3,0,8,38,7),ut(0,10,13,-6,0,21,33,3,0,8,40,7),ut(0,10,14,-6,0,22,35,3,0,8,42,7),ut(0,11,14,-7,0,23,36,3,0,9,44,8),ut(0,11,15,-7,0,24,38,3,0,9,46,8)],Ew=["duration","easing","delay"],ww={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)"},xw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vf(e){return`${Math.round(e)}ms`}function Sw(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Tw(e){const t=T({},ww,e.easing),r=T({},xw,e.duration);return T({getAutoHeightDuration:Sw,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:u=t.easeInOut,delay:c=0}=i,l=de(i,Ew);if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!isNaN(parseFloat(p));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(u)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="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(`
|
|
109
|
+
`)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof a=="string"?a:vf(a)} ${u} ${typeof c=="string"?c:vf(c)}`).join(",")}},e,{easing:t,duration:r})}const Ow={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Cw=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ws(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=de(e,Cw);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.":Mr(18));const u=fw(n),c=Ai(e);let l=Wt(c,{mixins:ow(c.breakpoints,r),palette:u,shadows:bw.slice(),typography:hw(u,i),transitions:Tw(o),zIndex:T({},Ow)});if(l=Wt(l,a),l=t.reduce((d,f)=>Wt(d,f),l),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(p,y)=>{let v;for(v in p){const h=p[v];if(d.indexOf(v)!==-1&&Object.keys(h).length>0){if(process.env.NODE_ENV!=="production"){const m=Ce("",v);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${m}' syntax:`,JSON.stringify({root:{[`&.${m}`]:h}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
110
|
+
`))}p[v]={}}}};Object.keys(l.components).forEach(p=>{const y=l.components[p].styleOverrides;y&&p.indexOf("Mui")===0&&f(y,p)})}return l.unstable_sxConfig=T({},ki,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return Di({sx:f,theme:this})},l}const Ui=Ws();function _n(){const e=Ii(Ui);return process.env.NODE_ENV!=="production"&&b.useDebugValue(e),e[Jr]||e}function Pe({props:e,name:t}){return of({props:e,name:t,defaultTheme:Ui,themeId:Jr})}const gr=e=>So(e)&&e!=="classes",Pw=So,ue=rf({themeId:Jr,defaultTheme:Ui,rootShouldForwardProp:gr}),Rw=["theme"];function yf(e){let{theme:t}=e,r=de(e,Rw);const n=t[Jr];return N.jsx(Vi,T({},r,{themeId:n?Jr:void 0,theme:n||t}))}process.env.NODE_ENV!=="production"&&(yf.propTypes={children:s.node,theme:s.oneOfType([s.object,s.func]).isRequired});const gf=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Oo(e){return typeof e=="string"}function Nw(e,t,r){return e===void 0||Oo(e)?t:T({},t,{ownerState:T({},t.ownerState,r)})}const _w={disableDefaultClasses:!1},$w=b.createContext(_w);function Mw(e){const{disableDefaultClasses:t}=b.useContext($w);return r=>t?"":e(r)}function bf(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 zs(e,t,r){return typeof e=="function"?e(t,r):e}function Ef(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 kw(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const y=be(o==null?void 0:o.className,n==null?void 0:n.className,i,r==null?void 0:r.className),v=T({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),h=T({},r,o,n);return y.length>0&&(h.className=y),Object.keys(v).length>0&&(h.style=v),{props:h,internalRef:void 0}}const a=bf(T({},o,n)),u=Ef(n),c=Ef(o),l=t(a),d=be(l==null?void 0:l.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),f=T({},l==null?void 0:l.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=T({},l,r,c,u);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}const Dw=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Co(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=de(e,Dw),u=i?{}:zs(n,o),{props:c,internalRef:l}=kw(T({},a,{externalSlotProps:u})),d=kt(l,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return Nw(r,T({},c,{ref:d}),o)}function wf(e){return e.substring(2).toLowerCase()}function Aw(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Wi(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=b.useRef(!1),u=b.useRef(null),c=b.useRef(!1),l=b.useRef(!1);b.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=kt(t.ref,u),f=vr(v=>{const h=l.current;l.current=!1;const m=Mt(u.current);if(!c.current||!u.current||"clientX"in v&&Aw(v,m))return;if(a.current){a.current=!1;return}let g;v.composedPath?g=v.composedPath().indexOf(u.current)>-1:g=!m.documentElement.contains(v.target)||u.current.contains(v.target),!g&&(r||!h)&&o(v)}),p=v=>h=>{l.current=!0;const m=t.props[v];m&&m(h)},y={ref:d};return i!==!1&&(y[i]=p(i)),b.useEffect(()=>{if(i!==!1){const v=wf(i),h=Mt(u.current),m=()=>{a.current=!0};return h.addEventListener(v,f),h.addEventListener("touchmove",m),()=>{h.removeEventListener(v,f),h.removeEventListener("touchmove",m)}}},[f,i]),n!==!1&&(y[n]=p(n)),b.useEffect(()=>{if(n!==!1){const v=wf(n),h=Mt(u.current);return h.addEventListener(v,f),()=>{h.removeEventListener(v,f)}}},[f,n]),N.jsx(b.Fragment,{children:b.cloneElement(t,y)})}process.env.NODE_ENV!=="production"&&(Wi.propTypes={children:xn.isRequired,disableReactTree:s.bool,mouseEvent:s.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:s.func.isRequired,touchEvent:s.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(Wi["propTypes"]=po(Wi.propTypes));const Iw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jw(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 Fw(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 Lw(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Fw(e))}function Bw(e){const t=[],r=[];return Array.from(e.querySelectorAll(Iw)).forEach((n,o)=>{const i=jw(n);i===-1||!Lw(n)||(i===0?t.push(n):r.push({documentOrder:o,tabIndex:i,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function Vw(){return!0}function zi(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Bw,isEnabled:a=Vw,open:u}=e,c=b.useRef(!1),l=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=b.useRef(null),y=b.useRef(!1),v=b.useRef(null),h=kt(t.ref,v),m=b.useRef(null);b.useEffect(()=>{!u||!v.current||(y.current=!r)},[r,u]),b.useEffect(()=>{if(!u||!v.current)return;const E=Mt(v.current);return v.current.contains(E.activeElement)||(v.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(`
|
|
111
|
+
`)),v.current.setAttribute("tabIndex","-1")),y.current&&v.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[u]),b.useEffect(()=>{if(!u||!v.current)return;const E=Mt(v.current),x=_=>{const{current:k}=v;if(k!==null){if(!E.hasFocus()||n||!a()||c.current){c.current=!1;return}if(!k.contains(E.activeElement)){if(_&&p.current!==_.target||E.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!y.current)return;let Y=[];if((E.activeElement===l.current||E.activeElement===d.current)&&(Y=i(v.current)),Y.length>0){var A,L;const te=!!((A=m.current)!=null&&A.shiftKey&&((L=m.current)==null?void 0:L.key)==="Tab"),ee=Y[0],F=Y[Y.length-1];typeof ee!="string"&&typeof F!="string"&&(te?F.focus():ee.focus())}else k.focus()}}},w=_=>{m.current=_,!(n||!a()||_.key!=="Tab")&&E.activeElement===v.current&&_.shiftKey&&(c.current=!0,d.current&&d.current.focus())};E.addEventListener("focusin",x),E.addEventListener("keydown",w,!0);const P=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&x(null)},50);return()=>{clearInterval(P),E.removeEventListener("focusin",x),E.removeEventListener("keydown",w,!0)}},[r,n,o,a,u,i]);const g=E=>{f.current===null&&(f.current=E.relatedTarget),y.current=!0,p.current=E.target;const x=t.props.onFocus;x&&x(E)},S=E=>{f.current===null&&(f.current=E.relatedTarget),y.current=!0};return N.jsxs(b.Fragment,{children:[N.jsx("div",{tabIndex:u?0:-1,onFocus:S,ref:l,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:h,onFocus:g}),N.jsx("div",{tabIndex:u?0:-1,onFocus:S,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(zi.propTypes={children:xn,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired}),process.env.NODE_ENV!=="production"&&(zi["propTypes"]=po(zi.propTypes));function Uw(e){return typeof e=="function"?e():e}const qi=b.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[a,u]=b.useState(null),c=kt(b.isValidElement(n)?n.ref:null,r);if(Xr(()=>{i||u(Uw(o)||document.body)},[o,i]),Xr(()=>{if(a&&!i)return vs(r,a),()=>{vs(r,null)}},[r,a,i]),i){if(b.isValidElement(n)){const l={ref:c};return b.cloneElement(n,l)}return N.jsx(b.Fragment,{children:n})}return N.jsx(b.Fragment,{children:a&&Pc.createPortal(n,a)})});process.env.NODE_ENV!=="production"&&(qi.propTypes={children:s.node,container:s.oneOfType([Sn,s.func]),disablePortal:s.bool}),process.env.NODE_ENV!=="production"&&(qi["propTypes"]=po(qi.propTypes));const Ww=qi;function zw(e){const t=Mt(e);return t.body===e?Kr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Po(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xf(e){return parseInt(Kr(e).getComputedStyle(e).paddingRight,10)||0}function qw(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function Sf(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,a=>{const u=i.indexOf(a)===-1,c=!qw(a);u&&c&&Po(a,o)})}function qs(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function Hw(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(zw(n)){const a=nd(Mt(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${xf(n)+a}px`;const u=Mt(n).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${xf(c)+a}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=Mt(n).body;else{const a=n.parentElement,u=Kr(n);i=(a==null?void 0:a.nodeName)==="HTML"&&u.getComputedStyle(a).overflowY==="scroll"?a:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:a,property:u})=>{i?a.style.setProperty(u,i):a.style.removeProperty(u)})}}function Yw(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Gw{constructor(){this.containers=void 0,this.modals=void 0,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&&Po(t.modalRef,!1);const o=Yw(r);Sf(r,t.mount,t.modalRef,o,!0);const i=qs(this.containers,a=>a.container===r);return i!==-1?(this.containers[i].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=qs(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=Hw(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=qs(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Po(t.modalRef,r),Sf(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Po(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Kw(e){return Ce("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const Xw=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],Jw=e=>{const{open:t,exited:r}=e;return _e({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Mw(Kw))};function Qw(e){return typeof e=="function"?e():e}function Zw(e){return e?e.props.hasOwnProperty("in"):!1}const ex=new Gw,Tf=b.forwardRef(function(t,r){var n,o;const{children:i,closeAfterTransition:a=!1,container:u,disableAutoFocus:c=!1,disableEnforceFocus:l=!1,disableEscapeKeyDown:d=!1,disablePortal:f=!1,disableRestoreFocus:p=!1,disableScrollLock:y=!1,hideBackdrop:v=!1,keepMounted:h=!1,manager:m=ex,onBackdropClick:g,onClose:S,onKeyDown:E,open:x,onTransitionEnter:w,onTransitionExited:P,slotProps:_={},slots:k={}}=t,A=de(t,Xw),L=m,[Y,te]=b.useState(!x),ee=b.useRef({}),F=b.useRef(null),B=b.useRef(null),q=kt(B,r),Z=Zw(i),fe=(n=t["aria-hidden"])!=null?n:!0,ve=()=>Mt(F.current),j=()=>(ee.current.modalRef=B.current,ee.current.mountNode=F.current,ee.current),U=()=>{L.mount(j(),{disableScrollLock:y}),B.current&&(B.current.scrollTop=0)},O=vr(()=>{const Ee=Qw(u)||ve().body;L.add(j(),Ee),B.current&&U()}),$=b.useCallback(()=>L.isTopModal(j()),[L]),D=vr(Ee=>{F.current=Ee,!(!Ee||!B.current)&&(x&&$()?U():Po(B.current,fe))}),I=b.useCallback(()=>{L.remove(j(),fe)},[L,fe]);b.useEffect(()=>()=>{I()},[I]),b.useEffect(()=>{x?O():(!Z||!a)&&I()},[x,I,Z,a,O]);const z=T({},t,{closeAfterTransition:a,disableAutoFocus:c,disableEnforceFocus:l,disableEscapeKeyDown:d,disablePortal:f,disableRestoreFocus:p,disableScrollLock:y,exited:Y,hideBackdrop:v,keepMounted:h}),X=Jw(z),K=()=>{te(!1),w&&w()},H=()=>{te(!0),P&&P(),a&&I()},J=Ee=>{Ee.target===Ee.currentTarget&&(g&&g(Ee),S&&S(Ee,"backdropClick"))},re=Ee=>{E&&E(Ee),!(Ee.key!=="Escape"||!$())&&(d||(Ee.stopPropagation(),S&&S(Ee,"escapeKeyDown")))},W={};i.props.tabIndex===void 0&&(W.tabIndex="-1"),Z&&(W.onEnter=Xc(K,i.props.onEnter),W.onExited=Xc(H,i.props.onExited));const ce=(o=k.root)!=null?o:"div",R=Co({elementType:ce,externalSlotProps:_.root,externalForwardedProps:A,additionalProps:{ref:q,role:"presentation",onKeyDown:re},className:X.root,ownerState:z}),se=k.backdrop,ye=Co({elementType:se,externalSlotProps:_.backdrop,additionalProps:{"aria-hidden":!0,onClick:J,open:x},className:X.backdrop,ownerState:z});return!h&&!x&&(!Z||Y)?null:N.jsx(Ww,{ref:D,container:u,disablePortal:f,children:N.jsxs(ce,T({},R,{children:[!v&&se?N.jsx(se,T({},ye)):null,N.jsx(zi,{disableEnforceFocus:l,disableAutoFocus:c,disableRestoreFocus:p,isEnabled:$,open:x,children:b.cloneElement(i,W)})]}))})});process.env.NODE_ENV!=="production"&&(Tf.propTypes={children:xn.isRequired,closeAfterTransition:s.bool,container:s.oneOfType([Sn,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType})});const tx=Tf;function rx(e){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:i}=e,a=b.useRef();b.useEffect(()=>{if(!o)return;function g(S){S.defaultPrevented||(S.key==="Escape"||S.key==="Esc")&&(n==null||n(S,"escapeKeyDown"))}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[o,n]);const u=vr((g,S)=>{n==null||n(g,S)}),c=vr(g=>{!n||g==null||(clearTimeout(a.current),a.current=setTimeout(()=>{u(null,"timeout")},g))});b.useEffect(()=>(o&&c(t),()=>{clearTimeout(a.current)}),[o,t,c]);const l=g=>{n==null||n(g,"clickaway")},d=()=>{clearTimeout(a.current)},f=b.useCallback(()=>{t!=null&&c(i??t*.5)},[t,i,c]),p=g=>S=>{const E=g.onBlur;E==null||E(S),f()},y=g=>S=>{const E=g.onFocus;E==null||E(S),d()},v=g=>S=>{const E=g.onMouseEnter;E==null||E(S),d()},h=g=>S=>{const E=g.onMouseLeave;E==null||E(S),f()};return b.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",f),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",d)}},[r,f,o]),{getRootProps:(g={})=>{const S=bf(e),E=T({},S,g);return T({role:"presentation"},E,{onBlur:p(E),onFocus:y(E),onMouseEnter:v(E),onMouseLeave:h(E)})},onClickAway:l}}const nx=["onChange","maxRows","minRows","style","value"];function Hi(e){return parseInt(e,10)||0}const ox={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Of(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Cf=b.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:u}=t,c=de(t,nx),{current:l}=b.useRef(u!=null),d=b.useRef(null),f=kt(r,d),p=b.useRef(null),y=b.useRef(0),[v,h]=b.useState({outerHeightStyle:0}),m=b.useCallback(()=>{const w=d.current,_=Kr(w).getComputedStyle(w);if(_.width==="0px")return{outerHeightStyle:0};const k=p.current;k.style.width=_.width,k.value=w.value||t.placeholder||"x",k.value.slice(-1)===`
|
|
112
|
+
`&&(k.value+=" ");const A=_.boxSizing,L=Hi(_.paddingBottom)+Hi(_.paddingTop),Y=Hi(_.borderBottomWidth)+Hi(_.borderTopWidth),te=k.scrollHeight;k.value="x";const ee=k.scrollHeight;let F=te;i&&(F=Math.max(Number(i)*ee,F)),o&&(F=Math.min(Number(o)*ee,F)),F=Math.max(F,ee);const B=F+(A==="border-box"?L+Y:0),q=Math.abs(F-te)<=1;return{outerHeightStyle:B,overflow:q}},[o,i,t.placeholder]),g=(w,P)=>{const{outerHeightStyle:_,overflow:k}=P;return y.current<20&&(_>0&&Math.abs((w.outerHeightStyle||0)-_)>1||w.overflow!==k)?(y.current+=1,{overflow:k,outerHeightStyle:_}):(process.env.NODE_ENV!=="production"&&y.current===20&&console.error(["MUI: Too many re-renders. The layout is unstable.","TextareaAutosize limits the number of renders to prevent an infinite loop."].join(`
|
|
113
|
+
`)),w)},S=b.useCallback(()=>{const w=m();Of(w)||h(P=>g(P,w))},[m]),E=()=>{const w=m();Of(w)||Pc.flushSync(()=>{h(P=>g(P,w))})};b.useEffect(()=>{const w=Jc(()=>{y.current=0,d.current&&E()});let P;const _=d.current,k=Kr(_);return k.addEventListener("resize",w),typeof ResizeObserver<"u"&&(P=new ResizeObserver(w),P.observe(_)),()=>{w.clear(),k.removeEventListener("resize",w),P&&P.disconnect()}}),Xr(()=>{S()}),b.useEffect(()=>{y.current=0},[u]);const x=w=>{y.current=0,l||S(),n&&n(w)};return N.jsxs(b.Fragment,{children:[N.jsx("textarea",T({value:u,onChange:x,ref:f,rows:i,style:T({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},a)},c)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},ox.shadow,a,{paddingTop:0,paddingBottom:0})})]})});process.env.NODE_ENV!=="production"&&(Cf.propTypes={className:s.string,maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),onChange:s.func,placeholder:s.string,style:s.object,value:s.oneOfType([s.arrayOf(s.string),s.number,s.string])});const ix=Cf;function ax(e){return Ce("MuiSvgIcon",e)}$e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const sx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ux=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${he(t)}`,`fontSize${he(r)}`]};return _e(o,ax,n)},lx=ue("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)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,u,c,l,d,f,p,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((l=e.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),Hs=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:u="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,y=de(n,sx),v=b.isValidElement(o)&&o.type==="svg",h=T({},n,{color:a,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:v}),m={};d||(m.viewBox=p);const g=ux(h);return N.jsxs(lx,T({as:u,className:be(g.root,i),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},m,y,v&&o.props,{ownerState:h,children:[v?o.props.children:o,f?N.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(Hs.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string}),Hs.muiName="SvgIcon";const Pf=Hs;function Dr(e,t){function r(n,o){return N.jsx(Pf,T({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Pf.muiName,b.memo(b.forwardRef(r))}var Ys={exports:{}},Je={};/**
|
|
114
|
+
* @license React
|
|
115
|
+
* react-is.production.min.js
|
|
116
|
+
*
|
|
117
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the MIT license found in the
|
|
120
|
+
* LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/var Rf;function cx(){if(Rf)return Je;Rf=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function h(m){if(typeof m=="object"&&m!==null){var g=m.$$typeof;switch(g){case e:switch(m=m.type,m){case r:case o:case n:case l:case d:return m;default:switch(m=m&&m.$$typeof,m){case u:case a:case c:case p:case f:case i:return m;default:return g}}case t:return g}}}return Je.ContextConsumer=a,Je.ContextProvider=i,Je.Element=e,Je.ForwardRef=c,Je.Fragment=r,Je.Lazy=p,Je.Memo=f,Je.Portal=t,Je.Profiler=o,Je.StrictMode=n,Je.Suspense=l,Je.SuspenseList=d,Je.isAsyncMode=function(){return!1},Je.isConcurrentMode=function(){return!1},Je.isContextConsumer=function(m){return h(m)===a},Je.isContextProvider=function(m){return h(m)===i},Je.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Je.isForwardRef=function(m){return h(m)===c},Je.isFragment=function(m){return h(m)===r},Je.isLazy=function(m){return h(m)===p},Je.isMemo=function(m){return h(m)===f},Je.isPortal=function(m){return h(m)===t},Je.isProfiler=function(m){return h(m)===o},Je.isStrictMode=function(m){return h(m)===n},Je.isSuspense=function(m){return h(m)===l},Je.isSuspenseList=function(m){return h(m)===d},Je.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===o||m===n||m===l||m===d||m===y||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===i||m.$$typeof===a||m.$$typeof===c||m.$$typeof===v||m.getModuleId!==void 0)},Je.typeOf=h,Je}var Qe={};/**
|
|
122
|
+
* @license React
|
|
123
|
+
* react-is.development.js
|
|
124
|
+
*
|
|
125
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the MIT license found in the
|
|
128
|
+
* LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/var Nf;function dx(){return Nf||(Nf=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=!1,h=!1,m=!1,g=!1,S=!1,E;E=Symbol.for("react.module.reference");function x(R){return!!(typeof R=="string"||typeof R=="function"||R===r||R===o||S||R===n||R===l||R===d||g||R===y||v||h||m||typeof R=="object"&&R!==null&&(R.$$typeof===p||R.$$typeof===f||R.$$typeof===i||R.$$typeof===a||R.$$typeof===c||R.$$typeof===E||R.getModuleId!==void 0))}function w(R){if(typeof R=="object"&&R!==null){var se=R.$$typeof;switch(se){case e:var ye=R.type;switch(ye){case r:case o:case n:case l:case d:return ye;default:var Ee=ye&&ye.$$typeof;switch(Ee){case u:case a:case c:case p:case f:case i:return Ee;default:return se}}case t:return se}}}var P=a,_=i,k=e,A=c,L=r,Y=p,te=f,ee=t,F=o,B=n,q=l,Z=d,fe=!1,ve=!1;function j(R){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(R){return ve||(ve=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function O(R){return w(R)===a}function $(R){return w(R)===i}function D(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function I(R){return w(R)===c}function z(R){return w(R)===r}function X(R){return w(R)===p}function K(R){return w(R)===f}function H(R){return w(R)===t}function J(R){return w(R)===o}function re(R){return w(R)===n}function W(R){return w(R)===l}function ce(R){return w(R)===d}Qe.ContextConsumer=P,Qe.ContextProvider=_,Qe.Element=k,Qe.ForwardRef=A,Qe.Fragment=L,Qe.Lazy=Y,Qe.Memo=te,Qe.Portal=ee,Qe.Profiler=F,Qe.StrictMode=B,Qe.Suspense=q,Qe.SuspenseList=Z,Qe.isAsyncMode=j,Qe.isConcurrentMode=U,Qe.isContextConsumer=O,Qe.isContextProvider=$,Qe.isElement=D,Qe.isForwardRef=I,Qe.isFragment=z,Qe.isLazy=X,Qe.isMemo=K,Qe.isPortal=H,Qe.isProfiler=J,Qe.isStrictMode=re,Qe.isSuspense=W,Qe.isSuspenseList=ce,Qe.isValidElementType=x,Qe.typeOf=w}()),Qe}process.env.NODE_ENV==="production"?Ys.exports=cx():Ys.exports=dx();var Gs=Ys.exports;function Yi(e,t){return Yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Yi(e,t)}function _f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yi(e,t)}const $f={disabled:!1};var fx=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]);const Gi=pe.createContext(null);var px=function(t){return t.scrollTop},Ro="unmounted",en="exited",tn="entering",$n="entered",Ks="exiting",br=function(e){_f(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,u=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?u?(c=en,i.appearStatus=tn):c=$n:n.unmountOnExit||n.mountOnEnter?c=Ro:c=en,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ro?{status:en}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==tn&&a!==$n&&(i=tn):(a===tn||a===$n)&&(i=Ks)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,u;return i=a=u=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,u=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:u}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===tn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:vn.findDOMNode(this);a&&px(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===en&&this.setState({status:Ro})},r.performEnter=function(o){var i=this,a=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[vn.findDOMNode(this),u],l=c[0],d=c[1],f=this.getTimeouts(),p=u?f.appear:f.enter;if(!o&&!a||$f.disabled){this.safeSetState({status:$n},function(){i.props.onEntered(l)});return}this.props.onEnter(l,d),this.safeSetState({status:tn},function(){i.props.onEntering(l,d),i.onTransitionEnd(p,function(){i.safeSetState({status:$n},function(){i.props.onEntered(l,d)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:vn.findDOMNode(this);if(!i||$f.disabled){this.safeSetState({status:en},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Ks},function(){o.props.onExiting(u),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:en},function(){o.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:vn.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],d=c[1];this.props.addEndListener(l,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Ro)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var u=de(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pe.createElement(Gi.Provider,{value:null},typeof a=="function"?a(o,u):pe.cloneElement(pe.Children.only(a),u))},t}(pe.Component);br.contextType=Gi,br.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,r,n,o,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var r=fx;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Mn(){}br.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Mn,onEntering:Mn,onEntered:Mn,onExit:Mn,onExiting:Mn,onExited:Mn},br.UNMOUNTED=Ro,br.EXITED=en,br.ENTERING=tn,br.ENTERED=$n,br.EXITING=Ks;const Mf=br;function le(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xs(e,t){var r=function(i){return t&&pe.isValidElement(i)?t(i):i},n=Object.create(null);return e&&pe.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function mx(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,u={};for(var c in t){if(n[c])for(a=0;a<n[c].length;a++){var l=n[c][a];u[n[c][a]]=r(l)}u[c]=r(c)}for(a=0;a<o.length;a++)u[o[a]]=r(o[a]);return u}function rn(e,t,r){return r[t]!=null?r[t]:e.props[t]}function hx(e,t){return Xs(e.children,function(r){return pe.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:rn(r,"appear",e),enter:rn(r,"enter",e),exit:rn(r,"exit",e)})})}function vx(e,t,r){var n=Xs(e.children),o=mx(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(pe.isValidElement(a)){var u=i in t,c=i in n,l=t[i],d=pe.isValidElement(l)&&!l.props.in;c&&(!u||d)?o[i]=pe.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:rn(a,"exit",e),enter:rn(a,"enter",e)}):!c&&u&&!d?o[i]=pe.cloneElement(a,{in:!1}):c&&u&&pe.isValidElement(l)&&(o[i]=pe.cloneElement(a,{onExited:r.bind(null,a),in:l.props.in,exit:rn(a,"exit",e),enter:rn(a,"enter",e)}))}}),o}var yx=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gx={component:"div",childFactory:function(t){return t}},Js=function(e){_f(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(le(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}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(o,i){var a=i.children,u=i.handleExited,c=i.firstRender;return{children:c?hx(o,u):vx(o,a,u),firstRender:!1}},r.handleExited=function(o,i){var a=Xs(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(u){var c=T({},u.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,u=de(o,["component","childFactory"]),c=this.state.contextValue,l=yx(this.state.children).map(a);return delete u.appear,delete u.enter,delete u.exit,i===null?pe.createElement(Gi.Provider,{value:c},l):pe.createElement(Gi.Provider,{value:c},pe.createElement(i,u,l))},t}(pe.Component);Js.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{},Js.defaultProps=gx;const bx=Js,kf=e=>e.scrollTop;function Ki(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:(r=a.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function Ex(e){return Ce("MuiPaper",e)}$e("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 wx=["className","component","elevation","square","variant"],xx=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return _e(i,Ex,o)},Sx=ue("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}`]]}})(({theme:e,ownerState:t})=>{var r;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${yr("#fff",gf(t.elevation))}, ${yr("#fff",gf(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Df=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:u=!1,variant:c="elevation"}=n,l=de(n,wx),d=T({},n,{component:i,elevation:a,square:u,variant:c}),f=xx(d);return process.env.NODE_ENV!=="production"&&_n().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(`
|
|
130
|
+
`)),N.jsx(Sx,T({as:i,ownerState:d,className:be(f.root,o),ref:r},l))});process.env.NODE_ENV!=="production"&&(Df.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:$r(ad,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});const No=Df;function Af(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:u,onExited:c,timeout:l}=e,[d,f]=b.useState(!1),p=be(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=be(r.child,d&&r.childLeaving,n&&r.childPulsate);return!u&&!d&&f(!0),b.useEffect(()=>{if(!u&&c!=null){const h=setTimeout(c,l);return()=>{clearTimeout(h)}}},[c,u,l]),N.jsx("span",{className:p,style:y,children:N.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(Af.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const qt=$e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Tx=["center","classes","className"];let Xi=e=>e,If,jf,Ff,Lf;const Qs=550,Ox=80,Cx=bo(If||(If=Xi`
|
|
131
|
+
0% {
|
|
132
|
+
transform: scale(0);
|
|
133
|
+
opacity: 0.1;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
100% {
|
|
137
|
+
transform: scale(1);
|
|
138
|
+
opacity: 0.3;
|
|
139
|
+
}
|
|
140
|
+
`)),Px=bo(jf||(jf=Xi`
|
|
141
|
+
0% {
|
|
142
|
+
opacity: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
100% {
|
|
146
|
+
opacity: 0;
|
|
147
|
+
}
|
|
148
|
+
`)),Rx=bo(Ff||(Ff=Xi`
|
|
149
|
+
0% {
|
|
150
|
+
transform: scale(1);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
50% {
|
|
154
|
+
transform: scale(0.92);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
100% {
|
|
158
|
+
transform: scale(1);
|
|
159
|
+
}
|
|
160
|
+
`)),Nx=ue("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_x=ue(Af,{name:"MuiTouchRipple",slot:"Ripple"})(Lf||(Lf=Xi`
|
|
161
|
+
opacity: 0;
|
|
162
|
+
position: absolute;
|
|
163
|
+
|
|
164
|
+
&.${0} {
|
|
165
|
+
opacity: 0.3;
|
|
166
|
+
transform: scale(1);
|
|
167
|
+
animation-name: ${0};
|
|
168
|
+
animation-duration: ${0}ms;
|
|
169
|
+
animation-timing-function: ${0};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&.${0} {
|
|
173
|
+
animation-duration: ${0}ms;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
& .${0} {
|
|
177
|
+
opacity: 1;
|
|
178
|
+
display: block;
|
|
179
|
+
width: 100%;
|
|
180
|
+
height: 100%;
|
|
181
|
+
border-radius: 50%;
|
|
182
|
+
background-color: currentColor;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
& .${0} {
|
|
186
|
+
opacity: 0;
|
|
187
|
+
animation-name: ${0};
|
|
188
|
+
animation-duration: ${0}ms;
|
|
189
|
+
animation-timing-function: ${0};
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
& .${0} {
|
|
193
|
+
position: absolute;
|
|
194
|
+
/* @noflip */
|
|
195
|
+
left: 0px;
|
|
196
|
+
top: 0;
|
|
197
|
+
animation-name: ${0};
|
|
198
|
+
animation-duration: 2500ms;
|
|
199
|
+
animation-timing-function: ${0};
|
|
200
|
+
animation-iteration-count: infinite;
|
|
201
|
+
animation-delay: 200ms;
|
|
202
|
+
}
|
|
203
|
+
`),qt.rippleVisible,Cx,Qs,({theme:e})=>e.transitions.easing.easeInOut,qt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qt.child,qt.childLeaving,Px,Qs,({theme:e})=>e.transitions.easing.easeInOut,qt.childPulsate,Rx,({theme:e})=>e.transitions.easing.easeInOut),Bf=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,u=de(n,Tx),[c,l]=b.useState([]),d=b.useRef(0),f=b.useRef(null);b.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=b.useRef(!1),y=b.useRef(0),v=b.useRef(null),h=b.useRef(null);b.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);const m=b.useCallback(x=>{const{pulsate:w,rippleX:P,rippleY:_,rippleSize:k,cb:A}=x;l(L=>[...L,N.jsx(_x,{classes:{ripple:be(i.ripple,qt.ripple),rippleVisible:be(i.rippleVisible,qt.rippleVisible),ripplePulsate:be(i.ripplePulsate,qt.ripplePulsate),child:be(i.child,qt.child),childLeaving:be(i.childLeaving,qt.childLeaving),childPulsate:be(i.childPulsate,qt.childPulsate)},timeout:Qs,pulsate:w,rippleX:P,rippleY:_,rippleSize:k},d.current)]),d.current+=1,f.current=A},[i]),g=b.useCallback((x={},w={},P=()=>{})=>{const{pulsate:_=!1,center:k=o||w.pulsate,fakeElement:A=!1}=w;if((x==null?void 0:x.type)==="mousedown"&&p.current){p.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(p.current=!0);const L=A?null:h.current,Y=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let te,ee,F;if(k||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)te=Math.round(Y.width/2),ee=Math.round(Y.height/2);else{const{clientX:B,clientY:q}=x.touches&&x.touches.length>0?x.touches[0]:x;te=Math.round(B-Y.left),ee=Math.round(q-Y.top)}if(k)F=Math.sqrt((2*Y.width**2+Y.height**2)/3),F%2===0&&(F+=1);else{const B=Math.max(Math.abs((L?L.clientWidth:0)-te),te)*2+2,q=Math.max(Math.abs((L?L.clientHeight:0)-ee),ee)*2+2;F=Math.sqrt(B**2+q**2)}x!=null&&x.touches?v.current===null&&(v.current=()=>{m({pulsate:_,rippleX:te,rippleY:ee,rippleSize:F,cb:P})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},Ox)):m({pulsate:_,rippleX:te,rippleY:ee,rippleSize:F,cb:P})},[o,m]),S=b.useCallback(()=>{g({},{pulsate:!0})},[g]),E=b.useCallback((x,w)=>{if(clearTimeout(y.current),(x==null?void 0:x.type)==="touchend"&&v.current){v.current(),v.current=null,y.current=setTimeout(()=>{E(x,w)});return}v.current=null,l(P=>P.length>0?P.slice(1):P),f.current=w},[]);return b.useImperativeHandle(r,()=>({pulsate:S,start:g,stop:E}),[S,g,E]),N.jsx(Nx,T({className:be(qt.root,i.root,a),ref:h},u,{children:N.jsx(bx,{component:null,exit:!0,children:c})}))});process.env.NODE_ENV!=="production"&&(Bf.propTypes={center:s.bool,classes:s.object,className:s.string});const $x=Bf;function Mx(e){return Ce("MuiButtonBase",e)}const kx=$e("MuiButtonBase",["root","disabled","focusVisible"]),Dx=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ax=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=_e({root:["root",t&&"disabled",r&&"focusVisible"]},Mx,o);return r&&n&&(a.root+=` ${n}`),a},Ix=ue("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"},[`&.${kx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vf=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:u,component:c="button",disabled:l=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:v,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:S,onFocusVisible:E,onKeyDown:x,onKeyUp:w,onMouseDown:P,onMouseLeave:_,onMouseUp:k,onTouchEnd:A,onTouchMove:L,onTouchStart:Y,tabIndex:te=0,TouchRippleProps:ee,touchRippleRef:F,type:B}=n,q=de(n,Dx),Z=b.useRef(null),fe=b.useRef(null),ve=kt(fe,F),{isFocusVisibleRef:j,onFocus:U,onBlur:O,ref:$}=rd(),[D,I]=b.useState(!1);l&&D&&I(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{I(!0),Z.current.focus()}}),[]);const[z,X]=b.useState(!1);b.useEffect(()=>{X(!0)},[]);const K=z&&!d&&!l;b.useEffect(()=>{D&&p&&!d&&z&&fe.current.pulsate()},[d,p,D,z]);function H(ge,It,me=f){return vr(xe=>(It&&It(xe),!me&&fe.current&&fe.current[ge](xe),!0))}const J=H("start",P),re=H("stop",m),W=H("stop",g),ce=H("stop",k),R=H("stop",ge=>{D&&ge.preventDefault(),_&&_(ge)}),se=H("start",Y),ye=H("stop",A),Ee=H("stop",L),Ot=H("stop",ge=>{O(ge),j.current===!1&&I(!1),v&&v(ge)},!1),Rt=vr(ge=>{Z.current||(Z.current=ge.currentTarget),U(ge),j.current===!0&&(I(!0),E&&E(ge)),S&&S(ge)}),rt=()=>{const ge=Z.current;return c&&c!=="button"&&!(ge.tagName==="A"&&ge.href)},Fe=b.useRef(!1),it=vr(ge=>{p&&!Fe.current&&D&&fe.current&&ge.key===" "&&(Fe.current=!0,fe.current.stop(ge,()=>{fe.current.start(ge)})),ge.target===ge.currentTarget&&rt()&&ge.key===" "&&ge.preventDefault(),x&&x(ge),ge.target===ge.currentTarget&&rt()&&ge.key==="Enter"&&!l&&(ge.preventDefault(),h&&h(ge))}),nt=vr(ge=>{p&&ge.key===" "&&fe.current&&D&&!ge.defaultPrevented&&(Fe.current=!1,fe.current.stop(ge,()=>{fe.current.pulsate(ge)})),w&&w(ge),h&&ge.target===ge.currentTarget&&rt()&&ge.key===" "&&!ge.defaultPrevented&&h(ge)});let yt=c;yt==="button"&&(q.href||q.to)&&(yt=y);const ft={};yt==="button"?(ft.type=B===void 0?"button":B,ft.disabled=l):(!q.href&&!q.to&&(ft.role="button"),l&&(ft["aria-disabled"]=l));const at=kt(r,$,Z);process.env.NODE_ENV!=="production"&&b.useEffect(()=>{K&&!fe.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
|
|
204
|
+
`))},[K]);const st=T({},n,{centerRipple:i,component:c,disabled:l,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:te,focusVisible:D}),ke=Ax(st);return N.jsxs(Ix,T({as:yt,className:be(ke.root,u),ownerState:st,onBlur:Ot,onClick:h,onContextMenu:re,onFocus:Rt,onKeyDown:it,onKeyUp:nt,onMouseDown:J,onMouseLeave:R,onMouseUp:ce,onDragLeave:W,onTouchEnd:ye,onTouchMove:Ee,onTouchStart:se,ref:at,tabIndex:l?-1:te,type:B},ft,q,{children:[a,K?N.jsx($x,T({ref:ve,center:i},ee)):null]}))});process.env.NODE_ENV!=="production"&&(Vf.propTypes={action:hr,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:li,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});const Uf=Vf;function jx(e){return Ce("MuiAlert",e)}const Wf=$e("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Fx(e){return Ce("MuiIconButton",e)}const Lx=$e("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Bx=["edge","children","className","color","disabled","disableFocusRipple","size"],Vx=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${he(n)}`,o&&`edge${he(o)}`,`size${he(i)}`]};return _e(a,Fx,t)},Ux=ue(Uf,{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)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":T({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Lx.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),zf=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:u="default",disabled:c=!1,disableFocusRipple:l=!1,size:d="medium"}=n,f=de(n,Bx),p=T({},n,{edge:o,color:u,disabled:c,disableFocusRipple:l,size:d}),y=Vx(p);return N.jsx(Ux,T({className:be(y.root,a),centerRipple:!0,focusRipple:!l,disabled:c,ref:r,ownerState:p},f,{children:i}))});process.env.NODE_ENV!=="production"&&(zf.propTypes={children:$r(s.node,e=>b.Children.toArray(e.children).some(r=>b.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(`
|
|
205
|
+
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Wx=zf,zx=Dr(N.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),qx=Dr(N.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Hx=Dr(N.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),Yx=Dr(N.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Gx=Dr(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"),Kx=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Xx=e=>{const{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`${t}${he(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return _e(i,jx,o)},Jx=ue(No,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${he(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?Fi:Li,n=e.palette.mode==="light"?Li:Fi,o=t.color||t.severity;return T({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${Wf.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:r(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Wf.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&T({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),Qx=ue("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Zx=ue("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),qf=ue("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Hf={success:N.jsx(zx,{fontSize:"inherit"}),warning:N.jsx(qx,{fontSize:"inherit"}),error:N.jsx(Hx,{fontSize:"inherit"}),info:N.jsx(Yx,{fontSize:"inherit"})},Yf=b.forwardRef(function(t,r){var n,o,i,a,u,c;const l=Pe({props:t,name:"MuiAlert"}),{action:d,children:f,className:p,closeText:y="Close",color:v,components:h={},componentsProps:m={},icon:g,iconMapping:S=Hf,onClose:E,role:x="alert",severity:w="success",slotProps:P={},slots:_={},variant:k="standard"}=l,A=de(l,Kx),L=T({},l,{color:v,severity:w,variant:k}),Y=Xx(L),te=(n=(o=_.closeButton)!=null?o:h.CloseButton)!=null?n:Wx,ee=(i=(a=_.closeIcon)!=null?a:h.CloseIcon)!=null?i:Gx,F=(u=P.closeButton)!=null?u:m.closeButton,B=(c=P.closeIcon)!=null?c:m.closeIcon;return N.jsxs(Jx,T({role:x,elevation:0,ownerState:L,className:be(Y.root,p),ref:r},A,{children:[g!==!1?N.jsx(Qx,{ownerState:L,className:Y.icon,children:g||S[w]||Hf[w]}):null,N.jsx(Zx,{ownerState:L,className:Y.message,children:f}),d!=null?N.jsx(qf,{ownerState:L,className:Y.action,children:d}):null,d==null&&E?N.jsx(qf,{ownerState:L,className:Y.action,children:N.jsx(te,T({size:"small","aria-label":y,title:y,color:"inherit",onClick:E},F,{children:N.jsx(ee,T({fontSize:"small"},B))}))}):null]}))});process.env.NODE_ENV!=="production"&&(Yf.propTypes={action:s.node,children:s.node,classes:s.object,className:s.string,closeText:s.string,color:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),components:s.shape({CloseButton:s.elementType,CloseIcon:s.elementType}),componentsProps:s.shape({closeButton:s.object,closeIcon:s.object}),icon:s.node,iconMapping:s.shape({error:s.node,info:s.node,success:s.node,warning:s.node}),onClose:s.func,role:s.string,severity:s.oneOf(["error","info","success","warning"]),slotProps:s.shape({closeButton:s.object,closeIcon:s.object}),slots:s.shape({closeButton:s.elementType,closeIcon:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});const Gf=Yf;function eS(e){return Ce("MuiTypography",e)}$e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],rS=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${he(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return _e(u,eS,a)},nS=ue("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]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Kf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},oS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},iS=e=>oS[e]||e,Xf=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiTypography"}),o=iS(n.color),i=Ls(T({},n,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:l=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:y=Kf}=i,v=de(i,tS),h=T({},i,{align:a,color:o,className:u,component:c,gutterBottom:l,noWrap:d,paragraph:f,variant:p,variantMapping:y}),m=c||(f?"p":y[p]||Kf[p])||"span",g=rS(h);return N.jsx(nS,T({as:m,ref:r,ownerState:h,className:be(g.root,u)},v))});process.env.NODE_ENV!=="production"&&(Xf.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});const nr=Xf;function aS(e){return Ce("MuiAlertTitle",e)}$e("MuiAlertTitle",["root"]);const sS=["className"],uS=e=>{const{classes:t}=e;return _e({root:["root"]},aS,t)},lS=ue(nr,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),Jf=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiAlertTitle"}),{className:o}=n,i=de(n,sS),a=n,u=uS(a);return N.jsx(lS,T({gutterBottom:!0,component:"div",ownerState:a,ref:r,className:be(u.root,o)},i))});process.env.NODE_ENV!=="production"&&(Jf.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const cS=Jf;function dS(e){return Ce("MuiAppBar",e)}$e("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const fS=["className","color","enableColorOnDark","position"],pS=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${he(t)}`,`position${he(r)}`]};return _e(o,dS,n)},Ji=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,mS=ue(No,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${he(r.position)}`],t[`color${he(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Ji(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Ji(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Ji(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Ji(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Qf=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:u="fixed"}=n,c=de(n,fS),l=T({},n,{color:i,position:u,enableColorOnDark:a}),d=pS(l);return N.jsx(mS,T({square:!0,component:"header",ownerState:l,elevation:4,className:be(d.root,o,u==="fixed"&&"mui-fixed"),ref:r},c))});process.env.NODE_ENV!=="production"&&(Qf.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","inherit","primary","secondary","transparent"]),s.string]),enableColorOnDark:s.bool,position:s.oneOf(["absolute","fixed","relative","static","sticky"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const hS=Qf;function kn({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const Zf=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(Zf.displayName="FormControlContext");const Qi=Zf;function nn(){return b.useContext(Qi)}function Zs(e){return N.jsx(Qd,T({},e,{defaultTheme:Ui,themeId:Jr}))}process.env.NODE_ENV!=="production"&&(Zs.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function ep(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Zi(e,t=!1){return e&&(ep(e.value)&&e.value!==""||t&&ep(e.defaultValue)&&e.defaultValue!=="")}function vS(e){return e.startAdornment}function yS(e){return Ce("MuiInputBase",e)}const Dn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),gS=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ea=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${he(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ta=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},bS=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:u,fullWidth:c,hiddenLabel:l,multiline:d,readOnly:f,size:p,startAdornment:y,type:v}=e,h={root:["root",`color${he(r)}`,n&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",p==="small"&&"sizeSmall",d&&"multiline",y&&"adornedStart",i&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",v==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return _e(h,yS,t)},ra=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ea})(({theme:e,ownerState:t})=>T({},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",[`&.${Dn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),na=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ta})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.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:r?.42:.5};return T({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Dn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Dn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),ES=N.jsx(Zs,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),tp=b.forwardRef(function(t,r){var n;const o=Pe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:u,className:c,components:l={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:y,endAdornment:v,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:S={},inputRef:E,maxRows:x,minRows:w,multiline:P=!1,name:_,onBlur:k,onChange:A,onClick:L,onFocus:Y,onKeyDown:te,onKeyUp:ee,placeholder:F,readOnly:B,renderSuffix:q,rows:Z,slotProps:fe={},slots:ve={},startAdornment:j,type:U="text",value:O}=o,$=de(o,gS),D=S.value!=null?S.value:O,{current:I}=b.useRef(D!=null),z=b.useRef(),X=b.useCallback(ke=>{process.env.NODE_ENV!=="production"&&ke&&ke.nodeName!=="INPUT"&&!ke.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(`
|
|
206
|
+
`))},[]),K=kt(z,E,S.ref,X),[H,J]=b.useState(!1),re=nn();process.env.NODE_ENV!=="production"&&b.useEffect(()=>{if(re)return re.registerEffect()},[re]);const W=kn({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});W.focused=re?re.focused:H,b.useEffect(()=>{!re&&p&&H&&(J(!1),k&&k())},[re,p,H,k]);const ce=re&&re.onFilled,R=re&&re.onEmpty,se=b.useCallback(ke=>{Zi(ke)?ce&&ce():R&&R()},[ce,R]);Xr(()=>{I&&se({value:D})},[D,se,I]);const ye=ke=>{if(W.disabled){ke.stopPropagation();return}Y&&Y(ke),S.onFocus&&S.onFocus(ke),re&&re.onFocus?re.onFocus(ke):J(!0)},Ee=ke=>{k&&k(ke),S.onBlur&&S.onBlur(ke),re&&re.onBlur?re.onBlur(ke):J(!1)},Ot=(ke,...ge)=>{if(!I){const It=ke.target||z.current;if(It==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.":Mr(1));se({value:It.value})}S.onChange&&S.onChange(ke,...ge),A&&A(ke,...ge)};b.useEffect(()=>{se(z.current)},[]);const Rt=ke=>{z.current&&ke.currentTarget===ke.target&&z.current.focus(),L&&!W.disabled&&L(ke)};let rt=g,Fe=S;P&&rt==="input"&&(Z?(process.env.NODE_ENV!=="production"&&(w||x)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Fe=T({type:void 0,minRows:Z,maxRows:Z},Fe)):Fe=T({type:void 0,maxRows:x,minRows:w},Fe),rt=ix);const it=ke=>{se(ke.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};b.useEffect(()=>{re&&re.setAdornedStart(!!j)},[re,j]);const nt=T({},o,{color:W.color||"primary",disabled:W.disabled,endAdornment:v,error:W.error,focused:W.focused,formControl:re,fullWidth:h,hiddenLabel:W.hiddenLabel,multiline:P,size:W.size,startAdornment:j,type:U}),yt=bS(nt),ft=ve.root||l.Root||ra,at=fe.root||d.root||{},st=ve.input||l.Input||na;return Fe=T({},Fe,(n=fe.input)!=null?n:d.input),N.jsxs(b.Fragment,{children:[!y&&ES,N.jsxs(ft,T({},at,!Oo(ft)&&{ownerState:T({},nt,at.ownerState)},{ref:r,onClick:Rt},$,{className:be(yt.root,at.className,c,B&&"MuiInputBase-readOnly"),children:[j,N.jsx(Qi.Provider,{value:null,children:N.jsx(st,T({ownerState:nt,"aria-invalid":W.error,"aria-describedby":i,autoComplete:a,autoFocus:u,defaultValue:f,disabled:W.disabled,id:m,onAnimationStart:it,name:_,placeholder:F,readOnly:B,required:W.required,rows:Z,value:D,onKeyDown:te,onKeyUp:ee,type:U},Fe,!Oo(st)&&{as:rt,ownerState:T({},nt,Fe.ownerState)},{ref:K,className:be(yt.input,Fe.className,B&&"MuiInputBase-readOnly"),onBlur:Ee,onChange:Ot,onFocus:ye}))}),v,q?q(T({},W,{startAdornment:j})):null]}))]})});process.env.NODE_ENV!=="production"&&(tp.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:li,inputProps:s.object,inputRef:hr,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});const eu=tp;function wS(e){return Ce("MuiInput",e)}const _o=T({},Dn,$e("MuiInput",["root","underline","input"]));function xS(e){return Ce("MuiOutlinedInput",e)}const Ar=T({},Dn,$e("MuiOutlinedInput",["root","notchedOutline","input"]));function SS(e){return Ce("MuiFilledInput",e)}const on=T({},Dn,$e("MuiFilledInput",["root","underline","input"])),TS=Dr(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),OS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],CS={entering:{opacity:1},entered:{opacity:1}},rp=b.forwardRef(function(t,r){const n=_n(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:u,easing:c,in:l,onEnter:d,onEntered:f,onEntering:p,onExit:y,onExited:v,onExiting:h,style:m,timeout:g=o,TransitionComponent:S=Mf}=t,E=de(t,OS),x=b.useRef(null),w=kt(x,u.ref,r),P=F=>B=>{if(F){const q=x.current;B===void 0?F(q):F(q,B)}},_=P(p),k=P((F,B)=>{kf(F);const q=Ki({style:m,timeout:g,easing:c},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",q),F.style.transition=n.transitions.create("opacity",q),d&&d(F,B)}),A=P(f),L=P(h),Y=P(F=>{const B=Ki({style:m,timeout:g,easing:c},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",B),F.style.transition=n.transitions.create("opacity",B),y&&y(F)}),te=P(v),ee=F=>{i&&i(x.current,F)};return N.jsx(S,T({appear:a,in:l,nodeRef:x,onEnter:k,onEntered:A,onEntering:_,onExit:Y,onExited:te,onExiting:L,addEndListener:ee,timeout:g},E,{children:(F,B)=>b.cloneElement(u,T({style:T({opacity:0,visibility:F==="exited"&&!l?"hidden":void 0},CS[F],m,u.props.style),ref:w},B))}))});process.env.NODE_ENV!=="production"&&(rp.propTypes={addEndListener:s.func,appear:s.bool,children:xn.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const PS=rp;function RS(e){return Ce("MuiBackdrop",e)}$e("MuiBackdrop",["root","invisible"]);const NS=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_S=e=>{const{classes:t,invisible:r}=e;return _e({root:["root",r&&"invisible"]},RS,t)},$S=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>T({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"},e.invisible&&{backgroundColor:"transparent"})),np=b.forwardRef(function(t,r){var n,o,i;const a=Pe({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:l="div",components:d={},componentsProps:f={},invisible:p=!1,open:y,slotProps:v={},slots:h={},TransitionComponent:m=PS,transitionDuration:g}=a,S=de(a,NS),E=T({},a,{component:l,invisible:p}),x=_S(E),w=(n=v.root)!=null?n:f.root;return N.jsx(m,T({in:y,timeout:g},S,{children:N.jsx($S,T({"aria-hidden":!0},w,{as:(o=(i=h.root)!=null?i:d.Root)!=null?o:l,className:be(x.root,c,w==null?void 0:w.className),ownerState:T({},E,w==null?void 0:w.ownerState),classes:x,ref:r,children:u}))}))});process.env.NODE_ENV!=="production"&&(np.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const MS=np,kS=Ws(),op=IE({themeId:Jr,defaultTheme:kS,defaultClassName:"MuiBox-root",generateClassName:ud.generate});process.env.NODE_ENV!=="production"&&(op.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const $o=op;function DS(e){return Ce("MuiButton",e)}const oa=$e("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),ip=b.createContext({});process.env.NODE_ENV!=="production"&&(ip.displayName="ButtonGroupContext");const AS=ip,IS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],jS=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${he(t)}`,`size${he(o)}`,`${i}Size${he(o)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${he(o)}`],endIcon:["endIcon",`iconSize${he(o)}`]},c=_e(u,DS,a);return T({},a,c)},ap=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),FS=ue(Uf,{shouldForwardProp:e=>gr(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]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${oa.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${oa.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${yr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${oa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${oa.disabled}`]:{boxShadow:"none"}}),LS=ue("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${he(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},ap(e))),BS=ue("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${he(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},ap(e))),sp=b.forwardRef(function(t,r){const n=b.useContext(AS),o=Es(n,t),i=Pe({props:o,name:"MuiButton"}),{children:a,color:u="primary",component:c="button",className:l,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:y,focusVisibleClassName:v,fullWidth:h=!1,size:m="medium",startIcon:g,type:S,variant:E="text"}=i,x=de(i,IS),w=T({},i,{color:u,component:c,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:h,size:m,type:S,variant:E}),P=jS(w),_=g&&N.jsx(LS,{className:P.startIcon,ownerState:w,children:g}),k=y&&N.jsx(BS,{className:P.endIcon,ownerState:w,children:y});return N.jsxs(FS,T({ownerState:w,className:be(n.className,P.root,l),component:c,disabled:d,focusRipple:!p,focusVisibleClassName:be(P.focusVisible,v),ref:r,type:S},x,{classes:P,children:[_,a,k]}))});process.env.NODE_ENV!=="production"&&(sp.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});const VS=sp;function US(e){return Ce("MuiCard",e)}$e("MuiCard",["root"]);const WS=["className","raised"],zS=e=>{const{classes:t}=e;return _e({root:["root"]},US,t)},qS=ue(No,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),up=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=n,a=de(n,WS),u=T({},n,{raised:i}),c=zS(u);return N.jsx(qS,T({className:be(c.root,o),elevation:i?8:void 0,ref:r,ownerState:u},a))});process.env.NODE_ENV!=="production"&&(up.propTypes={children:s.node,classes:s.object,className:s.string,raised:$r(s.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const HS=up;function YS(e){return Ce("MuiCardContent",e)}$e("MuiCardContent",["root"]);const GS=["className","component"],KS=e=>{const{classes:t}=e;return _e({root:["root"]},YS,t)},XS=ue("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),lp=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=n,a=de(n,GS),u=T({},n,{component:i}),c=KS(u);return N.jsx(XS,T({as:i,className:be(c.root,o),ownerState:u,ref:r},a))});process.env.NODE_ENV!=="production"&&(lp.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const JS=lp;function QS(e){return Ce("MuiCardHeader",e)}const cp=$e("MuiCardHeader",["root","avatar","action","content","title","subheader"]),ZS=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],eT=e=>{const{classes:t}=e;return _e({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},QS,t)},tT=ue("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${cp.title}`]:t.title,[`& .${cp.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),rT=ue("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),nT=ue("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),oT=ue("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),dp=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,className:a,component:u="div",disableTypography:c=!1,subheader:l,subheaderTypographyProps:d,title:f,titleTypographyProps:p}=n,y=de(n,ZS),v=T({},n,{component:u,disableTypography:c}),h=eT(v);let m=f;m!=null&&m.type!==nr&&!c&&(m=N.jsx(nr,T({variant:i?"body2":"h5",className:h.title,component:"span",display:"block"},p,{children:m})));let g=l;return g!=null&&g.type!==nr&&!c&&(g=N.jsx(nr,T({variant:i?"body2":"body1",className:h.subheader,color:"text.secondary",component:"span",display:"block"},d,{children:g}))),N.jsxs(tT,T({className:be(h.root,a),as:u,ref:r,ownerState:v},y,{children:[i&&N.jsx(rT,{className:h.avatar,ownerState:v,children:i}),N.jsxs(oT,{className:h.content,ownerState:v,children:[m,g]}),o&&N.jsx(nT,{className:h.action,ownerState:v,children:o})]}))});process.env.NODE_ENV!=="production"&&(dp.propTypes={action:s.node,avatar:s.node,children:s.node,classes:s.object,className:s.string,component:s.elementType,disableTypography:s.bool,subheader:s.node,subheaderTypographyProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,titleTypographyProps:s.object});const iT=dp;function aT(e){return Ce("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const sT=["className","color","disableShrink","size","style","thickness","value","variant"];let ia=e=>e,fp,pp,mp,hp;const Ir=44,uT=bo(fp||(fp=ia`
|
|
207
|
+
0% {
|
|
208
|
+
transform: rotate(0deg);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
100% {
|
|
212
|
+
transform: rotate(360deg);
|
|
213
|
+
}
|
|
214
|
+
`)),lT=bo(pp||(pp=ia`
|
|
215
|
+
0% {
|
|
216
|
+
stroke-dasharray: 1px, 200px;
|
|
217
|
+
stroke-dashoffset: 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
50% {
|
|
221
|
+
stroke-dasharray: 100px, 200px;
|
|
222
|
+
stroke-dashoffset: -15px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
100% {
|
|
226
|
+
stroke-dasharray: 100px, 200px;
|
|
227
|
+
stroke-dashoffset: -125px;
|
|
228
|
+
}
|
|
229
|
+
`)),cT=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${he(n)}`],svg:["svg"],circle:["circle",`circle${he(r)}`,o&&"circleDisableShrink"]};return _e(i,aT,t)},dT=ue("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${he(r.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Ds(mp||(mp=ia`
|
|
230
|
+
animation: ${0} 1.4s linear infinite;
|
|
231
|
+
`),uT)),fT=ue("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),pT=ue("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${he(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Ds(hp||(hp=ia`
|
|
232
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
233
|
+
`),lT)),vp=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:u=40,style:c,thickness:l=3.6,value:d=0,variant:f="indeterminate"}=n,p=de(n,sT),y=T({},n,{color:i,disableShrink:a,size:u,thickness:l,value:d,variant:f}),v=cT(y),h={},m={},g={};if(f==="determinate"){const S=2*Math.PI*((Ir-l)/2);h.strokeDasharray=S.toFixed(3),g["aria-valuenow"]=Math.round(d),h.strokeDashoffset=`${((100-d)/100*S).toFixed(3)}px`,m.transform="rotate(-90deg)"}return N.jsx(dT,T({className:be(v.root,o),style:T({width:u,height:u},m,c),ownerState:y,ref:r,role:"progressbar"},g,p,{children:N.jsx(fT,{className:v.svg,ownerState:y,viewBox:`${Ir/2} ${Ir/2} ${Ir} ${Ir}`,children:N.jsx(pT,{className:v.circle,style:h,ownerState:y,cx:Ir,cy:Ir,r:(Ir-l)/2,fill:"none",strokeWidth:l})})}))});process.env.NODE_ENV!=="production"&&(vp.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:$r(s.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),thickness:s.number,value:s.number,variant:s.oneOf(["determinate","indeterminate"])});const yp=vp,gp=nw({createStyledComponent:ue("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${he(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Pe({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(gp.propTypes={children:s.node,classes:s.object,component:s.elementType,disableGutters:s.bool,fixed:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const mT=gp,hT=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),vT=e=>T({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),yT=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,u])=>{var c;n[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(c=u.palette)==null?void 0:c.mode}});let o=T({html:hT(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},vT(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const i=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return i&&(o=[o,i]),o};function bp(e){const t=Pe({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return N.jsxs(b.Fragment,{children:[N.jsx(Zs,{styles:o=>yT(o,n)}),r]})}process.env.NODE_ENV!=="production"&&(bp.propTypes={children:s.node,enableColorScheme:s.bool});const gT=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],bT=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ET=ue(MS,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ep=b.forwardRef(function(t,r){var n,o,i,a,u,c;const l=Pe({name:"MuiModal",props:t}),{BackdropComponent:d=ET,BackdropProps:f,classes:p,className:y,closeAfterTransition:v=!1,children:h,container:m,component:g,components:S={},componentsProps:E={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:P=!1,disablePortal:_=!1,disableRestoreFocus:k=!1,disableScrollLock:A=!1,hideBackdrop:L=!1,keepMounted:Y=!1,onBackdropClick:te,onClose:ee,open:F,slotProps:B,slots:q,theme:Z}=l,fe=de(l,gT),[ve,j]=b.useState(!0),U={container:m,closeAfterTransition:v,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:P,disablePortal:_,disableRestoreFocus:k,disableScrollLock:A,hideBackdrop:L,keepMounted:Y,onBackdropClick:te,onClose:ee,open:F},O=T({},l,U,{exited:ve}),$=(n=(o=q==null?void 0:q.root)!=null?o:S.Root)!=null?n:bT,D=(i=(a=q==null?void 0:q.backdrop)!=null?a:S.Backdrop)!=null?i:d,I=(u=B==null?void 0:B.root)!=null?u:E.root,z=(c=B==null?void 0:B.backdrop)!=null?c:E.backdrop;return N.jsx(tx,T({slots:{root:$,backdrop:D},slotProps:{root:()=>T({},zs(I,O),!Oo($)&&{as:g,theme:Z},{className:be(y,I==null?void 0:I.className,p==null?void 0:p.root,!O.open&&O.exited&&(p==null?void 0:p.hidden))}),backdrop:()=>T({},f,zs(z,O),{className:be(z==null?void 0:z.className,f==null?void 0:f.className,p==null?void 0:p.backdrop)})},onTransitionEnter:()=>j(!1),onTransitionExited:()=>j(!0),ref:r},fe,U,{children:h}))});process.env.NODE_ENV!=="production"&&(Ep.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:xn.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Sn,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const wT=Ep,xT=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ST=e=>{const{classes:t,disableUnderline:r}=e,o=_e({root:["root",!r&&"underline"],input:["input"]},SS,t);return T({},t,o)},TT=ue(ra,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ea(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${on.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${on.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:u}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,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"},[`&.${on.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${on.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${on.disabled}, .${on.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${on.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),OT=ue(na,{name:"MuiFilledInput",slot:"Input",overridesResolver:ta})(({theme:e,ownerState:t})=>T({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),tu=b.forwardRef(function(t,r){var n,o,i,a;const u=Pe({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:l,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:y,slots:v={},type:h="text"}=u,m=de(u,xT),g=T({},u,{fullWidth:d,inputComponent:f,multiline:p,type:h}),S=ST(u),E={root:{ownerState:g},input:{ownerState:g}},x=y??l?Wt(y??l,E):E,w=(n=(o=v.root)!=null?o:c.Root)!=null?n:TT,P=(i=(a=v.input)!=null?a:c.Input)!=null?i:OT;return N.jsx(eu,T({slots:{root:w,input:P},componentsProps:x,fullWidth:d,inputComponent:f,multiline:p,ref:r,type:h},m,{classes:S}))});process.env.NODE_ENV!=="production"&&(tu.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:hr,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any}),tu.muiName="Input";const wp=tu;function CT(e){return Ce("MuiFormControl",e)}$e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const PT=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],RT=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${he(r)}`,n&&"fullWidth"]};return _e(o,CT,t)},NT=ue("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${he(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),xp=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:u="div",disabled:c=!1,error:l=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:y="none",required:v=!1,size:h="medium",variant:m="outlined"}=n,g=de(n,PT),S=T({},n,{color:a,component:u,disabled:c,error:l,fullWidth:f,hiddenLabel:p,margin:y,required:v,size:h,variant:m}),E=RT(S),[x,w]=b.useState(()=>{let ee=!1;return o&&b.Children.forEach(o,F=>{if(!hs(F,["Input","Select"]))return;const B=hs(F,["Select"])?F.props.input:F;B&&vS(B.props)&&(ee=!0)}),ee}),[P,_]=b.useState(()=>{let ee=!1;return o&&b.Children.forEach(o,F=>{hs(F,["Input","Select"])&&(Zi(F.props,!0)||Zi(F.props.inputProps,!0))&&(ee=!0)}),ee}),[k,A]=b.useState(!1);c&&k&&A(!1);const L=d!==void 0&&!c?d:k;let Y;if(process.env.NODE_ENV!=="production"){const ee=b.useRef(!1);Y=()=>(ee.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
234
|
+
`)),ee.current=!0,()=>{ee.current=!1})}const te=b.useMemo(()=>({adornedStart:x,setAdornedStart:w,color:a,disabled:c,error:l,filled:P,focused:L,fullWidth:f,hiddenLabel:p,size:h,onBlur:()=>{A(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{A(!0)},registerEffect:Y,required:v,variant:m}),[x,a,c,l,P,L,f,p,Y,v,h,m]);return N.jsx(Qi.Provider,{value:te,children:N.jsx(NT,T({as:u,ownerState:S,className:be(E.root,i),ref:r},g,{children:o}))})});process.env.NODE_ENV!=="production"&&(xp.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,focused:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,margin:s.oneOf(["dense","none","normal"]),required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const _T=xp;function $T(e){return Ce("MuiFormHelperText",e)}const Sp=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Tp;const MT=["children","className","component","disabled","error","filled","focused","margin","required","variant"],kT=e=>{const{classes:t,contained:r,size:n,disabled:o,error:i,filled:a,focused:u,required:c}=e,l={root:["root",o&&"disabled",i&&"error",n&&`size${he(n)}`,r&&"contained",u&&"focused",a&&"filled",c&&"required"]};return _e(l,$T,t)},DT=ue("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${he(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Sp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sp.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Op=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=n,u=de(n,MT),c=nn(),l=kn({props:n,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),d=T({},n,{component:a,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=kT(d);return N.jsx(DT,T({as:a,ownerState:d,className:be(f.root,i),ref:r},u,{children:o===" "?Tp||(Tp=N.jsx("span",{className:"notranslate",children:""})):o}))});process.env.NODE_ENV!=="production"&&(Op.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});const AT=Op;function IT(e){return Ce("MuiFormLabel",e)}const Mo=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),jT=["children","className","color","component","disabled","error","filled","focused","required"],FT=e=>{const{classes:t,color:r,focused:n,disabled:o,error:i,filled:a,required:u}=e,c={root:["root",`color${he(r)}`,o&&"disabled",i&&"error",a&&"filled",n&&"focused",u&&"required"],asterisk:["asterisk",i&&"error"]};return _e(c,IT,t)},LT=ue("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Mo.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Mo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mo.error}`]:{color:(e.vars||e).palette.error.main}})),BT=ue("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Mo.error}`]:{color:(e.vars||e).palette.error.main}})),Cp=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=n,u=de(n,jT),c=nn(),l=kn({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),d=T({},n,{color:l.color||"primary",component:a,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=FT(d);return N.jsxs(LT,T({as:a,ownerState:d,className:be(f.root,i),ref:r},u,{children:[o,l.required&&N.jsxs(BT,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))});process.env.NODE_ENV!=="production"&&(Cp.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const VT=Cp,Pp=b.createContext();process.env.NODE_ENV!=="production"&&(Pp.displayName="GridContext");const Rp=Pp;function UT(e){return Ce("MuiGrid",e)}const WT=[0,1,2,3,4,5,6,7,8,9,10],zT=["column-reverse","column","row-reverse","row"],qT=["nowrap","wrap-reverse","wrap"],ko=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Do=$e("MuiGrid",["root","container","item","zeroMinWidth",...WT.map(e=>`spacing-xs-${e}`),...zT.map(e=>`direction-xs-${e}`),...qT.map(e=>`wrap-xs-${e}`),...ko.map(e=>`grid-xs-${e}`),...ko.map(e=>`grid-sm-${e}`),...ko.map(e=>`grid-md-${e}`),...ko.map(e=>`grid-lg-${e}`),...ko.map(e=>`grid-xl-${e}`)]),HT=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function An(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function YT({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,o)=>{let i={};if(t[o]&&(r=t[o]),!r)return n;if(r===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(r==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Ti({values:t.columns,breakpoints:e.breakpoints.values}),u=typeof a=="object"?a[o]:a;if(u==null)return n;const c=`${Math.round(r/u*1e8)/1e6}%`;let l={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const f=`calc(${c} + ${An(d)})`;l={flexBasis:f,maxWidth:f}}}i=T({flexBasis:c,flexGrow:0,maxWidth:c},l)}return e.breakpoints.values[o]===0?Object.assign(n,i):n[e.breakpoints.up(o)]=i,n},{})}function GT({theme:e,ownerState:t}){const r=Ti({values:t.direction,breakpoints:e.breakpoints.values});return zt({theme:e},r,n=>{const o={flexDirection:n};return n.indexOf("column")===0&&(o[`& > .${Do.item}`]={maxWidth:"none"}),o})}function Np({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(o=>{r===""&&t[o]!==0&&(r=o)});const n=Object.keys(e).sort((o,i)=>e[o]-e[i]);return n.slice(0,n.indexOf(r))}function KT({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&n!==0){const i=Ti({values:n,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=Np({breakpoints:e.breakpoints.values,values:i})),o=zt({theme:e},i,(u,c)=>{var l;const d=e.spacing(u);return d!=="0px"?{marginTop:`-${An(d)}`,[`& > .${Do.item}`]:{paddingTop:An(d)}}:(l=a)!=null&&l.includes(c)?{}:{marginTop:0,[`& > .${Do.item}`]:{paddingTop:0}}})}return o}function XT({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&n!==0){const i=Ti({values:n,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=Np({breakpoints:e.breakpoints.values,values:i})),o=zt({theme:e},i,(u,c)=>{var l;const d=e.spacing(u);return d!=="0px"?{width:`calc(100% + ${An(d)})`,marginLeft:`-${An(d)}`,[`& > .${Do.item}`]:{paddingLeft:An(d)}}:(l=a)!=null&&l.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Do.item}`]:{paddingLeft:0}}})}return o}function JT(e,t,r={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&n.push(r[`spacing-${o}-${String(i)}`])}),n}const QT=ue("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:i,spacing:a,wrap:u,zeroMinWidth:c,breakpoints:l}=r;let d=[];n&&(d=JT(a,l,t));const f=[];return l.forEach(p=>{const y=r[p];y&&f.push(t[`grid-${p}-${String(y)}`])}),[t.root,n&&t.container,i&&t.item,c&&t.zeroMinWidth,...d,o!=="row"&&t[`direction-xs-${String(o)}`],u!=="wrap"&&t[`wrap-xs-${String(u)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),GT,KT,XT,YT);function ZT(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const r=[];return t.forEach(n=>{const o=e[n];if(Number(o)>0){const i=`spacing-${n}-${String(o)}`;r.push(i)}}),r}const eO=e=>{const{classes:t,container:r,direction:n,item:o,spacing:i,wrap:a,zeroMinWidth:u,breakpoints:c}=e;let l=[];r&&(l=ZT(i,c));const d=[];c.forEach(p=>{const y=e[p];y&&d.push(`grid-${p}-${String(y)}`)});const f={root:["root",r&&"container",o&&"item",u&&"zeroMinWidth",...l,n!=="row"&&`direction-xs-${String(n)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...d]};return _e(f,UT,t)},Ao=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiGrid"}),{breakpoints:o}=_n(),i=Ls(n),{className:a,columns:u,columnSpacing:c,component:l="div",container:d=!1,direction:f="row",item:p=!1,rowSpacing:y,spacing:v=0,wrap:h="wrap",zeroMinWidth:m=!1}=i,g=de(i,HT),S=y||v,E=c||v,x=b.useContext(Rp),w=d?u||12:x,P={},_=T({},g);o.keys.forEach(L=>{g[L]!=null&&(P[L]=g[L],delete _[L])});const k=T({},i,{columns:w,container:d,direction:f,item:p,rowSpacing:S,columnSpacing:E,wrap:h,zeroMinWidth:m,spacing:v},P,{breakpoints:o.keys}),A=eO(k);return N.jsx(Rp.Provider,{value:w,children:N.jsx(QT,T({ownerState:k,className:be(A.root,a),as:l,ref:r},_))})});if(process.env.NODE_ENV!=="production"&&(Ao.propTypes={children:s.node,classes:s.object,className:s.string,columns:s.oneOfType([s.arrayOf(s.number),s.number,s.object]),columnSpacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),component:s.elementType,container:s.bool,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),item:s.bool,lg:s.oneOfType([s.oneOf(["auto"]),s.number,s.bool]),md:s.oneOfType([s.oneOf(["auto"]),s.number,s.bool]),rowSpacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sm:s.oneOfType([s.oneOf(["auto"]),s.number,s.bool]),spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),wrap:s.oneOf(["nowrap","wrap-reverse","wrap"]),xl:s.oneOfType([s.oneOf(["auto"]),s.number,s.bool]),xs:s.oneOfType([s.oneOf(["auto"]),s.number,s.bool]),zeroMinWidth:s.bool}),process.env.NODE_ENV!=="production"){const e=sb("Grid",Ao);Ao["propTypes"]=T({},Ao.propTypes,{direction:e("container"),lg:e("item"),md:e("item"),sm:e("item"),spacing:e("container"),wrap:e("container"),xs:e("item"),zeroMinWidth:e("item")})}const In=Ao,tO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ru(e){return`scale(${e}, ${e**2})`}const rO={entering:{opacity:1,transform:ru(1)},entered:{opacity:1,transform:"none"}},nu=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ou=b.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:u,onEnter:c,onEntered:l,onEntering:d,onExit:f,onExited:p,onExiting:y,style:v,timeout:h="auto",TransitionComponent:m=Mf}=t,g=de(t,tO),S=b.useRef(),E=b.useRef(),x=_n(),w=b.useRef(null),P=kt(w,i.ref,r),_=B=>q=>{if(B){const Z=w.current;q===void 0?B(Z):B(Z,q)}},k=_(d),A=_((B,q)=>{kf(B);const{duration:Z,delay:fe,easing:ve}=Ki({style:v,timeout:h,easing:a},{mode:"enter"});let j;h==="auto"?(j=x.transitions.getAutoHeightDuration(B.clientHeight),E.current=j):j=Z,B.style.transition=[x.transitions.create("opacity",{duration:j,delay:fe}),x.transitions.create("transform",{duration:nu?j:j*.666,delay:fe,easing:ve})].join(","),c&&c(B,q)}),L=_(l),Y=_(y),te=_(B=>{const{duration:q,delay:Z,easing:fe}=Ki({style:v,timeout:h,easing:a},{mode:"exit"});let ve;h==="auto"?(ve=x.transitions.getAutoHeightDuration(B.clientHeight),E.current=ve):ve=q,B.style.transition=[x.transitions.create("opacity",{duration:ve,delay:Z}),x.transitions.create("transform",{duration:nu?ve:ve*.666,delay:nu?Z:Z||ve*.333,easing:fe})].join(","),B.style.opacity=0,B.style.transform=ru(.75),f&&f(B)}),ee=_(p),F=B=>{h==="auto"&&(S.current=setTimeout(B,E.current||0)),n&&n(w.current,B)};return b.useEffect(()=>()=>{clearTimeout(S.current)},[]),N.jsx(m,T({appear:o,in:u,nodeRef:w,onEnter:A,onEntered:L,onEntering:k,onExit:te,onExited:ee,onExiting:Y,addEndListener:F,timeout:h==="auto"?null:h},g,{children:(B,q)=>b.cloneElement(i,T({style:T({opacity:0,transform:ru(.75),visibility:B==="exited"&&!u?"hidden":void 0},rO[B],v,i.props.style),ref:P},q))}))});process.env.NODE_ENV!=="production"&&(ou.propTypes={addEndListener:s.func,appear:s.bool,children:xn.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])}),ou.muiSupportAuto=!0;const _p=ou;function nO(e,t,r,n,o){const[i,a]=b.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Xr(()=>{let u=!0;if(!r)return;const c=r(e),l=()=>{u&&a(c.matches)};return l(),c.addListener(l),()=>{u=!1,c.removeListener(l)}},[e,r]),i}const $p=b["useSyncExternalStore"];function oO(e,t,r,n,o){const i=b.useCallback(()=>t,[t]),a=b.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return i},[i,e,n,o,r]),[u,c]=b.useMemo(()=>{if(r===null)return[i,()=>()=>{}];const d=r(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[i,r,e]);return $p(c,u,a)}function iO(e,t={}){const r=Fs(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=n?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:u=!1}=nf({name:"MuiUseMediaQuery",props:t,theme:r});process.env.NODE_ENV!=="production"&&typeof e=="function"&&r===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(`
|
|
235
|
+
`));let c=typeof e=="function"?e(r):e;c=c.replace(/^@media( ?)/m,"");const d=($p!==void 0?oO:nO)(c,o,i,a,u);return process.env.NODE_ENV!=="production"&&b.useDebugValue({query:c,match:d}),d}const aO=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],sO=e=>{const{classes:t,disableUnderline:r}=e,o=_e({root:["root",!r&&"underline"],input:["input"]},wS,t);return T({},t,o)},uO=ue(ra,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ea(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{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})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${_o.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_o.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(.${_o.disabled}, .${_o.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${_o.disabled}:before`]:{borderBottomStyle:"dotted"}})}),lO=ue(na,{name:"MuiInput",slot:"Input",overridesResolver:ta})({}),iu=b.forwardRef(function(t,r){var n,o,i,a;const u=Pe({props:t,name:"MuiInput"}),{disableUnderline:c,components:l={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:y=!1,slotProps:v,slots:h={},type:m="text"}=u,g=de(u,aO),S=sO(u),x={root:{ownerState:{disableUnderline:c}}},w=v??d?Wt(v??d,x):x,P=(n=(o=h.root)!=null?o:l.Root)!=null?n:uO,_=(i=(a=h.input)!=null?a:l.Input)!=null?i:lO;return N.jsx(eu,T({slots:{root:P,input:_},slotProps:w,fullWidth:f,inputComponent:p,multiline:y,ref:r,type:m},g,{classes:S}))});process.env.NODE_ENV!=="production"&&(iu.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:hr,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any}),iu.muiName="Input";const Mp=iu;function cO(e){return Ce("MuiInputAdornment",e)}const kp=$e("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Dp;const dO=["children","className","component","disablePointerEvents","disableTypography","position","variant"],fO=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${he(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},pO=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e,u={root:["root",r&&"disablePointerEvents",o&&`position${he(o)}`,a,n&&"hiddenLabel",i&&`size${he(i)}`]};return _e(u,cO,t)},mO=ue("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:fO})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${kp.positionStart}&:not(.${kp.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Ap=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:u=!1,disableTypography:c=!1,position:l,variant:d}=n,f=de(n,dO),p=nn()||{};let y=d;d&&p.variant&&process.env.NODE_ENV!=="production"&&d===p.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),p&&!y&&(y=p.variant);const v=T({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:u,position:l,variant:y}),h=pO(v);return N.jsx(Qi.Provider,{value:null,children:N.jsx(mO,T({as:a,ownerState:v,className:be(h.root,i),ref:r},f,{children:typeof o=="string"&&!c?N.jsx(nr,{color:"text.secondary",children:o}):N.jsxs(b.Fragment,{children:[l==="start"?Dp||(Dp=N.jsx("span",{className:"notranslate",children:""})):null,o]})}))})});process.env.NODE_ENV!=="production"&&(Ap.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disablePointerEvents:s.bool,disableTypography:s.bool,position:s.oneOf(["end","start"]).isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const Ip=Ap;function hO(e){return Ce("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const vO=["disableAnimation","margin","shrink","variant","className"],yO=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:i,variant:a,required:u}=e,l=_e({root:["root",r&&"formControl",!i&&"animated",o&&"shrink",n==="small"&&"sizeSmall",a],asterisk:[u&&"asterisk"]},hO,t);return T({},t,l)},gO=ue(VT,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Mo.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),jp=b.forwardRef(function(t,r){const n=Pe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=n,u=de(n,vO),c=nn();let l=i;typeof l>"u"&&c&&(l=c.filled||c.focused||c.adornedStart);const d=kn({props:n,muiFormControl:c,states:["size","variant","required"]}),f=T({},n,{disableAnimation:o,formControl:c,shrink:l,size:d.size,variant:d.variant,required:d.required}),p=yO(f);return N.jsx(gO,T({"data-shrink":l,ownerState:f,ref:r,className:be(p.root,a)},u,{classes:p}))});process.env.NODE_ENV!=="production"&&(jp.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["normal","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const bO=jp;function EO(e){return Ce("MuiLink",e)}const wO=$e("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Fp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xO=e=>Fp[e]||e,SO=({theme:e,ownerState:t})=>{const r=xO(t.color),n=Rn(e,`palette.${r}`,!1)||t.color,o=Rn(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:yr(n,.4)},TO=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],OO=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,i={root:["root",`underline${he(o)}`,r==="button"&&"button",n&&"focusVisible"]};return _e(i,EO,t)},CO=ue(nr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${he(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:SO({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${wO.focusVisible}`]:{outline:"auto"}})),Lp=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:u,onFocus:c,TypographyClasses:l,underline:d="always",variant:f="inherit",sx:p}=n,y=de(n,TO),{isFocusVisibleRef:v,onBlur:h,onFocus:m,ref:g}=rd(),[S,E]=b.useState(!1),x=kt(r,g),w=A=>{h(A),v.current===!1&&E(!1),u&&u(A)},P=A=>{m(A),v.current===!0&&E(!0),c&&c(A)},_=T({},n,{color:i,component:a,focusVisible:S,underline:d,variant:f}),k=OO(_);return N.jsx(CO,T({color:i,className:be(k.root,o),classes:l,component:a,onBlur:w,onFocus:P,ref:x,ownerState:_,variant:f,sx:[...Object.keys(Fp).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},y))});process.env.NODE_ENV!=="production"&&(Lp.propTypes={children:s.node,classes:s.object,className:s.string,color:s.any,component:li,onBlur:s.func,onFocus:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TypographyClasses:s.object,underline:s.oneOf(["always","hover","none"]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string])});const PO=Lp,Bp=b.createContext({});process.env.NODE_ENV!=="production"&&(Bp.displayName="ListContext");const RO=Bp;function NO(e){return Ce("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const _O=["children","className","component","dense","disablePadding","subheader"],$O=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return _e({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},NO,t)},MO=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Vp=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:u=!1,disablePadding:c=!1,subheader:l}=n,d=de(n,_O),f=b.useMemo(()=>({dense:u}),[u]),p=T({},n,{component:a,dense:u,disablePadding:c}),y=$O(p);return N.jsx(RO.Provider,{value:f,children:N.jsxs(MO,T({as:a,className:be(y.root,i),ref:r,ownerState:p},d,{children:[l,o]}))})});process.env.NODE_ENV!=="production"&&(Vp.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const kO=Vp,DO=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function au(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Up(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Wp(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Io(e,t,r,n,o,i){let a=!1,u=o(e,t,t?r:!1);for(;u;){if(u===e.firstChild){if(a)return!1;a=!0}const c=n?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!Wp(u,i)||c)u=o(e,u,r);else return u.focus(),!0}return!1}const zp=b.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:u,disabledItemsFocusable:c=!1,disableListWrap:l=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=de(t,DO),y=b.useRef(null),v=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xr(()=>{o&&y.current.focus()},[o]),b.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(E,x)=>{const w=!y.current.style.width;if(E.clientHeight<y.current.clientHeight&&w){const P=`${nd(Mt(E))}px`;y.current.style[x.direction==="rtl"?"paddingLeft":"paddingRight"]=P,y.current.style.width=`calc(100% + ${P})`}return y.current}}),[]);const h=E=>{const x=y.current,w=E.key,P=Mt(x).activeElement;if(w==="ArrowDown")E.preventDefault(),Io(x,P,l,c,au);else if(w==="ArrowUp")E.preventDefault(),Io(x,P,l,c,Up);else if(w==="Home")E.preventDefault(),Io(x,null,l,c,au);else if(w==="End")E.preventDefault(),Io(x,null,l,c,Up);else if(w.length===1){const _=v.current,k=w.toLowerCase(),A=performance.now();_.keys.length>0&&(A-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&k!==_.keys[0]&&(_.repeating=!1)),_.lastTime=A,_.keys.push(k);const L=P&&!_.repeating&&Wp(P,_);_.previousKeyMatched&&(L||Io(x,P,!1,c,au,_))?E.preventDefault():_.previousKeyMatched=!1}d&&d(E)},m=kt(y,r);let g=-1;b.Children.forEach(a,(E,x)=>{if(!b.isValidElement(E)){g===x&&(g+=1,g>=a.length&&(g=-1));return}process.env.NODE_ENV!=="production"&&Gs.isFragment(E)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
236
|
+
`)),E.props.disabled||(f==="selectedMenu"&&E.props.selected||g===-1)&&(g=x),g===x&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});const S=b.Children.map(a,(E,x)=>{if(x===g){const w={};return i&&(w.autoFocus=!0),E.props.tabIndex===void 0&&f==="selectedMenu"&&(w.tabIndex=0),b.cloneElement(E,w)}return E});return N.jsx(kO,T({role:"menu",ref:m,className:u,onKeyDown:h,tabIndex:o?0:-1},p,{children:S}))});process.env.NODE_ENV!=="production"&&(zp.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});const AO=zp;function IO(e){return Ce("MuiPopover",e)}$e("MuiPopover",["root","paper"]);const jO=["onEntering"],FO=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],LO=["slotProps"];function qp(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Hp(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Yp(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function aa(e){return typeof e=="function"?e():e}const BO=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},IO,t)},VO=ue(wT,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gp=ue(No,{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}),Kp=b.forwardRef(function(t,r){var n,o,i;const a=Pe({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:y,container:v,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:S={},slots:E,slotProps:x,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:P=_p,transitionDuration:_="auto",TransitionProps:{onEntering:k}={}}=a,A=de(a.TransitionProps,jO),L=de(a,FO),Y=(n=x==null?void 0:x.paper)!=null?n:S,te=b.useRef(),ee=kt(te,Y.ref),F=T({},a,{anchorOrigin:l,anchorReference:f,elevation:h,marginThreshold:m,externalPaperSlotProps:Y,transformOrigin:w,TransitionComponent:P,transitionDuration:_,TransitionProps:A}),B=BO(F),q=b.useCallback(()=>{if(f==="anchorPosition")return process.env.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),d;const W=aa(c),ce=W&&W.nodeType===1?W:Mt(te.current).body,R=ce.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const se=ce.getBoundingClientRect();process.env.NODE_ENV!=="test"&&se.top===0&&se.left===0&&se.right===0&&se.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(`
|
|
237
|
+
`))}return{top:R.top+qp(R,l.vertical),left:R.left+Hp(R,l.horizontal)}},[c,l.horizontal,l.vertical,d,f]),Z=b.useCallback(W=>({vertical:qp(W,w.vertical),horizontal:Hp(W,w.horizontal)}),[w.horizontal,w.vertical]),fe=b.useCallback(W=>{const ce={width:W.offsetWidth,height:W.offsetHeight},R=Z(ce);if(f==="none")return{top:null,left:null,transformOrigin:Yp(R)};const se=q();let ye=se.top-R.vertical,Ee=se.left-R.horizontal;const Ot=ye+ce.height,Rt=Ee+ce.width,rt=Kr(aa(c)),Fe=rt.innerHeight-m,it=rt.innerWidth-m;if(ye<m){const nt=ye-m;ye-=nt,R.vertical+=nt}else if(Ot>Fe){const nt=Ot-Fe;ye-=nt,R.vertical+=nt}if(process.env.NODE_ENV!=="production"&&ce.height>Fe&&ce.height&&Fe&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ce.height-Fe}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
238
|
+
`)),Ee<m){const nt=Ee-m;Ee-=nt,R.horizontal+=nt}else if(Rt>it){const nt=Rt-it;Ee-=nt,R.horizontal+=nt}return{top:`${Math.round(ye)}px`,left:`${Math.round(Ee)}px`,transformOrigin:Yp(R)}},[c,f,q,Z,m]),[ve,j]=b.useState(g),U=b.useCallback(()=>{const W=te.current;if(!W)return;const ce=fe(W);ce.top!==null&&(W.style.top=ce.top),ce.left!==null&&(W.style.left=ce.left),W.style.transformOrigin=ce.transformOrigin,j(!0)},[fe]),O=(W,ce)=>{k&&k(W,ce),U()},$=()=>{j(!1)};b.useEffect(()=>{g&&U()}),b.useImperativeHandle(u,()=>g?{updatePosition:()=>{U()}}:null,[g,U]),b.useEffect(()=>{if(!g)return;const W=Jc(()=>{U()}),ce=Kr(c);return ce.addEventListener("resize",W),()=>{W.clear(),ce.removeEventListener("resize",W)}},[c,g,U]);let D=_;_==="auto"&&!P.muiSupportAuto&&(D=void 0);const I=v||(c?Mt(aa(c)).body:void 0),z=(o=E==null?void 0:E.root)!=null?o:VO,X=(i=E==null?void 0:E.paper)!=null?i:Gp,K=Co({elementType:X,externalSlotProps:T({},Y,{style:ve?Y.style:T({},Y.style,{opacity:0})}),additionalProps:{elevation:h,ref:ee},ownerState:F,className:be(B.paper,Y==null?void 0:Y.className)}),H=Co({elementType:z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:I,open:g},ownerState:F,className:be(B.root,y)}),{slotProps:J}=H,re=de(H,LO);return N.jsx(z,T({},re,!Oo(z)&&{slotProps:J},{children:N.jsx(P,T({appear:!0,in:g,onEntering:O,onExited:$,timeout:D},A,{children:N.jsx(X,T({},K,{children:p}))}))}))});process.env.NODE_ENV!=="production"&&(Kp.propTypes={action:hr,anchorEl:$r(s.oneOfType([Sn,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=aa(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.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(`
|
|
239
|
+
`))}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(`
|
|
240
|
+
`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),children:s.node,classes:s.object,className:s.string,container:s.oneOfType([Sn,s.func]),elevation:ad,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:li}),slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});const UO=Kp;function WO(e){return Ce("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const zO=["onEntering"],qO=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],HO={vertical:"top",horizontal:"right"},YO={vertical:"top",horizontal:"left"},GO=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"],list:["list"]},WO,t)},KO=ue(UO,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),XO=ue(Gp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),JO=ue(AO,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Xp=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:a=!1,MenuListProps:u={},onClose:c,open:l,PaperProps:d={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:y}={},variant:v="selectedMenu"}=n,h=de(n.TransitionProps,zO),m=de(n,qO),g=_n(),S=g.direction==="rtl",E=T({},n,{autoFocus:o,disableAutoFocusItem:a,MenuListProps:u,onEntering:y,PaperProps:d,transitionDuration:p,TransitionProps:h,variant:v}),x=GO(E),w=o&&!a&&l,P=b.useRef(null),_=(L,Y)=>{P.current&&P.current.adjustStyleForScrollbar(L,g),y&&y(L,Y)},k=L=>{L.key==="Tab"&&(L.preventDefault(),c&&c(L,"tabKeyDown"))};let A=-1;return b.Children.map(i,(L,Y)=>{b.isValidElement(L)&&(process.env.NODE_ENV!=="production"&&Gs.isFragment(L)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
241
|
+
`)),L.props.disabled||(v==="selectedMenu"&&L.props.selected||A===-1)&&(A=Y))}),N.jsx(KO,T({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?HO:YO,slots:{paper:XO},slotProps:{paper:T({},d,{classes:T({},d.classes,{root:x.paper})})},className:x.root,open:l,ref:r,transitionDuration:p,TransitionProps:T({onEntering:_},h),ownerState:E},m,{classes:f,children:N.jsx(JO,T({onKeyDown:k,actions:P,autoFocus:o&&(A===-1||a),autoFocusItem:w,variant:v},u,{className:be(x.list,u.className),children:i}))}))});process.env.NODE_ENV!=="production"&&(Xp.propTypes={anchorEl:s.oneOfType([Sn,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});const QO=Xp;function ZO(e){return Ce("MuiNativeSelect",e)}const su=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),e1=["className","disabled","error","IconComponent","inputRef","variant"],t1=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e,u={select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${he(r)}`,i&&"iconOpen",n&&"disabled"]};return _e(u,ZO,t)},Jp=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${su.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),r1=ue("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:gr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${su.multiple}`]:t.multiple}]}})(Jp),Qp=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${su.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),n1=ue("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${he(r.variant)}`],r.open&&t.iconOpen]}})(Qp),Zp=b.forwardRef(function(t,r){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:u,variant:c="standard"}=t,l=de(t,e1),d=T({},t,{disabled:o,variant:c,error:i}),f=t1(d);return N.jsxs(b.Fragment,{children:[N.jsx(r1,T({ownerState:d,className:be(f.select,n),disabled:o,ref:u||r},l)),t.multiple?null:N.jsx(n1,{as:a,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Zp.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:hr,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const o1=Zp;var em;const i1=["children","classes","className","label","notched"],a1=ue("fieldset")({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%"}),s1=ue("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function tm(e){const{className:t,label:r,notched:n}=e,o=de(e,i1),i=r!=null&&r!=="",a=T({},e,{notched:n,withLabel:i});return N.jsx(a1,T({"aria-hidden":!0,className:t,ownerState:a},o,{children:N.jsx(s1,{ownerState:a,children:i?N.jsx("span",{children:r}):em||(em=N.jsx("span",{className:"notranslate",children:""}))})}))}process.env.NODE_ENV!=="production"&&(tm.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const u1=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],l1=e=>{const{classes:t}=e,n=_e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},xS,t);return T({},t,n)},c1=ue(ra,{shouldForwardProp:e=>gr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ea})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ar.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Ar.focused} .${Ar.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ar.error} .${Ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ar.disabled} .${Ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),d1=ue(tm,{name:"MuiOutlinedInput",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{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),f1=ue(na,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ta})(({theme:e,ownerState:t})=>T({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),uu=b.forwardRef(function(t,r){var n,o,i,a,u;const c=Pe({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:y=!1,notched:v,slots:h={},type:m="text"}=c,g=de(c,u1),S=l1(c),E=nn(),x=kn({props:c,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=T({},c,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:E,fullWidth:d,hiddenLabel:x.hiddenLabel,multiline:y,size:x.size,type:m}),P=(n=(o=h.root)!=null?o:l.Root)!=null?n:c1,_=(i=(a=h.input)!=null?a:l.Input)!=null?i:f1;return N.jsx(eu,T({slots:{root:P,input:_},renderSuffix:k=>N.jsx(d1,{ownerState:w,className:S.notchedOutline,label:p!=null&&p!==""&&x.required?u||(u=N.jsxs(b.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:d,inputComponent:f,multiline:y,ref:r,type:m},g,{classes:T({},S,{notchedOutline:null})}))});process.env.NODE_ENV!=="production"&&(uu.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:hr,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any}),uu.muiName="Input";const rm=uu;function p1(e){return Ce("MuiSelect",e)}const jo=$e("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var nm;const m1=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],h1=ue("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${jo.select}`]:t.select},{[`&.${jo.select}`]:t[r.variant]},{[`&.${jo.error}`]:t.error},{[`&.${jo.multiple}`]:t.multiple}]}})(Jp,{[`&.${jo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),v1=ue("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${he(r.variant)}`],r.open&&t.iconOpen]}})(Qp),y1=ue("input",{shouldForwardProp:e=>Pw(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 om(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function g1(e){return e==null||typeof e=="string"&&!e.trim()}const b1=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e,u={select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${he(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return _e(u,p1,t)},im=b.forwardRef(function(t,r){const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:u,className:c,defaultOpen:l,defaultValue:d,disabled:f,displayEmpty:p,error:y=!1,IconComponent:v,inputRef:h,labelId:m,MenuProps:g={},multiple:S,name:E,onBlur:x,onChange:w,onClose:P,onFocus:_,onOpen:k,open:A,readOnly:L,renderValue:Y,SelectDisplayProps:te={},tabIndex:ee,value:F,variant:B="standard"}=t,q=de(t,m1),[Z,fe]=ed({controlled:F,default:d,name:"Select"}),[ve,j]=ed({controlled:A,default:l,name:"Select"}),U=b.useRef(null),O=b.useRef(null),[$,D]=b.useState(null),{current:I}=b.useRef(A!=null),[z,X]=b.useState(),K=kt(r,h),H=b.useCallback(me=>{O.current=me,me&&D(me)},[]),J=$==null?void 0:$.parentNode;b.useImperativeHandle(K,()=>({focus:()=>{O.current.focus()},node:U.current,value:Z}),[Z]),b.useEffect(()=>{l&&ve&&$&&!I&&(X(a?null:J.clientWidth),O.current.focus())},[$,a]),b.useEffect(()=>{i&&O.current.focus()},[i]),b.useEffect(()=>{if(!m)return;const me=Mt(O.current).getElementById(m);if(me){const xe=()=>{getSelection().isCollapsed&&O.current.focus()};return me.addEventListener("click",xe),()=>{me.removeEventListener("click",xe)}}},[m]);const re=(me,xe)=>{me?k&&k(xe):P&&P(xe),I||(X(a?null:J.clientWidth),j(me))},W=me=>{me.button===0&&(me.preventDefault(),O.current.focus(),re(!0,me))},ce=me=>{re(!1,me)},R=b.Children.toArray(u),se=me=>{const xe=R.find(M=>M.props.value===me.target.value);xe!==void 0&&(fe(xe.props.value),w&&w(me,xe))},ye=me=>xe=>{let M;if(xe.currentTarget.hasAttribute("tabindex")){if(S){M=Array.isArray(Z)?Z.slice():[];const V=Z.indexOf(me.props.value);V===-1?M.push(me.props.value):M.splice(V,1)}else M=me.props.value;if(me.props.onClick&&me.props.onClick(xe),Z!==M&&(fe(M),w)){const V=xe.nativeEvent||xe,De=new V.constructor(V.type,V);Object.defineProperty(De,"target",{writable:!0,value:{value:M,name:E}}),w(De,me)}S||re(!1,xe)}},Ee=me=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(me.key)!==-1&&(me.preventDefault(),re(!0,me))},Ot=$!==null&&ve,Rt=me=>{!Ot&&x&&(Object.defineProperty(me,"target",{writable:!0,value:{value:Z,name:E}}),x(me))};delete q["aria-invalid"];let rt,Fe;const it=[];let nt=!1,yt=!1;(Zi({value:Z})||p)&&(Y?rt=Y(Z):nt=!0);const ft=R.map(me=>{if(!b.isValidElement(me))return null;process.env.NODE_ENV!=="production"&&Gs.isFragment(me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
242
|
+
`));let xe;if(S){if(!Array.isArray(Z))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Mr(2));xe=Z.some(M=>om(M,me.props.value)),xe&&nt&&it.push(me.props.children)}else xe=om(Z,me.props.value),xe&&nt&&(Fe=me.props.children);return xe&&(yt=!0),b.cloneElement(me,{"aria-selected":xe?"true":"false",onClick:ye(me),onKeyUp:M=>{M.key===" "&&M.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(M)},role:"option",selected:xe,value:void 0,"data-value":me.props.value})});process.env.NODE_ENV!=="production"&&b.useEffect(()=>{if(!yt&&!S&&Z!==""){const me=R.map(xe=>xe.props.value);console.warn([`MUI: You have provided an out-of-range value \`${Z}\` for the select ${E?`(name="${E}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${me.filter(xe=>xe!=null).map(xe=>`\`${xe}\``).join(", ")||'""'}.`].join(`
|
|
243
|
+
`))}},[yt,R,S,E,Z]),nt&&(S?it.length===0?rt=null:rt=it.reduce((me,xe,M)=>(me.push(xe),M<it.length-1&&me.push(", "),me),[]):rt=Fe);let at=z;!a&&I&&$&&(at=J.clientWidth);let st;typeof ee<"u"?st=ee:st=f?null:0;const ke=te.id||(E?`mui-component-select-${E}`:void 0),ge=T({},t,{variant:B,value:Z,open:Ot,error:y}),It=b1(ge);return N.jsxs(b.Fragment,{children:[N.jsx(h1,T({ref:H,tabIndex:st,role:"button","aria-disabled":f?"true":void 0,"aria-expanded":Ot?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[m,ke].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:Ee,onMouseDown:f||L?null:W,onBlur:Rt,onFocus:_},te,{ownerState:ge,className:be(te.className,It.select,c),id:ke,children:g1(rt)?nm||(nm=N.jsx("span",{className:"notranslate",children:""})):rt})),N.jsx(y1,T({"aria-invalid":y,value:Array.isArray(Z)?Z.join(","):Z,name:E,ref:U,"aria-hidden":!0,onChange:se,tabIndex:-1,disabled:f,className:It.nativeInput,autoFocus:i,ownerState:ge},q)),N.jsx(v1,{as:v,className:It.icon,ownerState:ge}),N.jsx(QO,T({id:`menu-${E||""}`,anchorEl:J,open:Ot,onClose:ce,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:T({"aria-labelledby":m,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:T({},g.PaperProps,{style:T({minWidth:at},g.PaperProps!=null?g.PaperProps.style:null)}),children:ft}))]})});process.env.NODE_ENV!=="production"&&(im.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:hr,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const E1=im,w1=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],x1=e=>{const{classes:t}=e;return t},lu={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>gr(e)&&e!=="variant",slot:"Root"},S1=ue(Mp,lu)(""),T1=ue(rm,lu)(""),O1=ue(wp,lu)(""),cu=b.forwardRef(function(t,r){const n=Pe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:u,defaultOpen:c=!1,displayEmpty:l=!1,IconComponent:d=TS,id:f,input:p,inputProps:y,label:v,labelId:h,MenuProps:m,multiple:g=!1,native:S=!1,onClose:E,onOpen:x,open:w,renderValue:P,SelectDisplayProps:_,variant:k="outlined"}=n,A=de(n,w1),L=S?o1:E1,Y=nn(),te=kn({props:n,muiFormControl:Y,states:["variant","error"]}),ee=te.variant||k,F=T({},n,{variant:ee,classes:a}),B=x1(F),q=p||{standard:N.jsx(S1,{ownerState:F}),outlined:N.jsx(T1,{label:v,ownerState:F}),filled:N.jsx(O1,{ownerState:F})}[ee],Z=kt(r,q.ref);return N.jsx(b.Fragment,{children:b.cloneElement(q,T({inputComponent:L,inputProps:T({children:i,error:te.error,IconComponent:d,variant:ee,type:void 0,multiple:g},S?{id:f}:{autoWidth:o,defaultOpen:c,displayEmpty:l,labelId:h,MenuProps:m,onClose:E,onOpen:x,open:w,renderValue:P,SelectDisplayProps:T({id:f},_)},y,{classes:y?Wt(B,y.classes):B},p?p.props.inputProps:{})},g&&S&&ee==="outlined"?{notched:!0}:{},{ref:Z,className:be(q.props.className,u)},!p&&{variant:ee},A))})});process.env.NODE_ENV!=="production"&&(cu.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])}),cu.muiName="Select";const C1=cu;function P1(e){return Ce("MuiSnackbarContent",e)}$e("MuiSnackbarContent",["root","message","action"]);const R1=["action","className","message","role"],N1=e=>{const{classes:t}=e;return _e({root:["root"],action:["action"],message:["message"]},P1,t)},_1=ue(No,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=KE(e.palette.background.default,t);return T({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),$1=ue("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),M1=ue("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),am=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:u="alert"}=n,c=de(n,R1),l=n,d=N1(l);return N.jsxs(_1,T({role:u,square:!0,elevation:6,className:be(d.root,i),ownerState:l,ref:r},c,{children:[N.jsx($1,{className:d.message,ownerState:l,children:a}),o?N.jsx(M1,{className:d.action,ownerState:l,children:o}):null]}))});process.env.NODE_ENV!=="production"&&(am.propTypes={action:s.node,classes:s.object,className:s.string,message:s.node,role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const k1=am;function D1(e){return Ce("MuiSnackbar",e)}$e("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const A1=["onEnter","onExited"],I1=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],j1=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${he(r.vertical)}${he(r.horizontal)}`]};return _e(n,D1,t)},sm=ue("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${he(r.anchorOrigin.vertical)}${he(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return T({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:T({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),um=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiSnackbar"}),o=_n(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:u,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:d,className:f,ClickAwayListenerProps:p,ContentProps:y,disableWindowBlurListener:v=!1,message:h,open:m,TransitionComponent:g=_p,transitionDuration:S=i,TransitionProps:{onEnter:E,onExited:x}={}}=n,w=de(n.TransitionProps,A1),P=de(n,I1),_=T({},n,{anchorOrigin:{vertical:u,horizontal:c},autoHideDuration:l,disableWindowBlurListener:v,TransitionComponent:g,transitionDuration:S}),k=j1(_),{getRootProps:A,onClickAway:L}=rx(T({},_)),[Y,te]=b.useState(!0),ee=Co({elementType:sm,getSlotProps:A,externalForwardedProps:P,ownerState:_,additionalProps:{ref:r},className:[k.root,f]}),F=q=>{te(!0),x&&x(q)},B=(q,Z)=>{te(!1),E&&E(q,Z)};return!m&&Y?null:N.jsx(Wi,T({onClickAway:L},p,{children:N.jsx(sm,T({},ee,{children:N.jsx(g,T({appear:!0,in:m,timeout:S,direction:u==="top"?"down":"up",onEnter:B,onExited:F},w,{children:d||N.jsx(k1,T({message:h,action:a},y))}))}))}))});process.env.NODE_ENV!=="production"&&(um.propTypes={action:s.node,anchorOrigin:s.shape({horizontal:s.oneOf(["center","left","right"]).isRequired,vertical:s.oneOf(["bottom","top"]).isRequired}),autoHideDuration:s.number,children:s.element,classes:s.object,className:s.string,ClickAwayListenerProps:s.object,ContentProps:s.object,disableWindowBlurListener:s.bool,key:()=>null,message:s.node,onBlur:s.func,onClose:s.func,onFocus:s.func,onMouseEnter:s.func,onMouseLeave:s.func,open:s.bool,resumeHideDuration:s.number,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});const F1=um;function L1(e){return Ce("MuiToolbar",e)}$e("MuiToolbar",["root","gutters","regular","dense"]);const B1=["className","component","disableGutters","variant"],V1=e=>{const{classes:t,disableGutters:r,variant:n}=e;return _e({root:["root",!r&&"gutters",n]},L1,t)},U1=ue("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),lm=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:u="regular"}=n,c=de(n,B1),l=T({},n,{component:i,disableGutters:a,variant:u}),d=V1(l);return N.jsx(U1,T({as:i,className:be(d.root,o),ref:r,ownerState:l},c))});process.env.NODE_ENV!=="production"&&(lm.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disableGutters:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["dense","regular"]),s.string])});const W1=lm;function z1(e){return Ce("MuiTextField",e)}$e("MuiTextField",["root"]);const q1=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],H1={standard:Mp,filled:wp,outlined:rm},Y1=e=>{const{classes:t}=e;return _e({root:["root"]},z1,t)},G1=ue(_T,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cm=b.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:u,color:c="primary",defaultValue:l,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:y=!1,helperText:v,id:h,InputLabelProps:m,inputProps:g,InputProps:S,inputRef:E,label:x,maxRows:w,minRows:P,multiline:_=!1,name:k,onBlur:A,onChange:L,onClick:Y,onFocus:te,placeholder:ee,required:F=!1,rows:B,select:q=!1,SelectProps:Z,type:fe,value:ve,variant:j="outlined"}=n,U=de(n,q1),O=T({},n,{autoFocus:i,color:c,disabled:d,error:f,fullWidth:y,multiline:_,required:F,select:q,variant:j}),$=Y1(O);process.env.NODE_ENV!=="production"&&q&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const D={};j==="outlined"&&(m&&typeof m.shrink<"u"&&(D.notched=m.shrink),D.label=x),q&&((!Z||!Z.native)&&(D.id=void 0),D["aria-describedby"]=void 0);const I=lb(h),z=v&&I?`${I}-helper-text`:void 0,X=x&&I?`${I}-label`:void 0,K=H1[j],H=N.jsx(K,T({"aria-describedby":z,autoComplete:o,autoFocus:i,defaultValue:l,fullWidth:y,multiline:_,name:k,rows:B,maxRows:w,minRows:P,type:fe,value:ve,id:I,inputRef:E,onBlur:A,onChange:L,onFocus:te,onClick:Y,placeholder:ee,inputProps:g},D,S));return N.jsxs(G1,T({className:be($.root,u),disabled:d,error:f,fullWidth:y,ref:r,required:F,color:c,variant:j,ownerState:O},U,{children:[x!=null&&x!==""&&N.jsx(bO,T({htmlFor:I,id:X},m,{children:x})),q?N.jsx(C1,T({"aria-describedby":z,id:I,labelId:X,value:ve,input:H},Z,{children:a})):H,v&&N.jsx(AT,T({id:z},p,{children:v}))]}))});process.env.NODE_ENV!=="production"&&(cm.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:hr,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const K1=cm,dm=()=>N.jsx($o,{sx:{display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center",alignItems:"center"},children:N.jsx(yp,{})});var jn={},fm={},pm=Object.prototype.toString,mm=function(t){var r=pm.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&pm.call(t.callee)==="[object Function]"),n},du,hm;function X1(){if(hm)return du;hm=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=mm,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),a=o.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(p){var y=p.constructor;return y&&y.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{c(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!d)return c(p);try{return c(p)}catch{return!1}};e=function(y){var v=y!==null&&typeof y=="object",h=r.call(y)==="[object Function]",m=n(y),g=v&&r.call(y)==="[object String]",S=[];if(!v&&!h&&!m)throw new TypeError("Object.keys called on a non-object");var E=a&&h;if(g&&y.length>0&&!t.call(y,0))for(var x=0;x<y.length;++x)S.push(String(x));if(m&&y.length>0)for(var w=0;w<y.length;++w)S.push(String(w));else for(var P in y)!(E&&P==="prototype")&&t.call(y,P)&&S.push(String(P));if(i)for(var _=f(y),k=0;k<u.length;++k)!(_&&u[k]==="constructor")&&t.call(y,u[k])&&S.push(u[k]);return S}}return du=e,du}var J1=Array.prototype.slice,Q1=mm,vm=Object.keys,sa=vm?function(t){return vm(t)}:X1(),ym=Object.keys;sa.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return Q1(n)?ym(J1.call(n)):ym(n)})}else Object.keys=sa;return Object.keys||sa};var Z1=sa,gm=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0},bm=typeof Symbol<"u"&&Symbol,eC=gm,Em=function(){return typeof bm!="function"||typeof Symbol!="function"||typeof bm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:eC()},wm={foo:{}},tC=Object,rC=function(){return{__proto__:wm}.foo===wm.foo&&!({__proto__:null}instanceof tC)},nC="Function.prototype.bind called on incompatible ",fu=Array.prototype.slice,oC=Object.prototype.toString,iC="[object Function]",aC=function(t){var r=this;if(typeof r!="function"||oC.call(r)!==iC)throw new TypeError(nC+r);for(var n=fu.call(arguments,1),o,i=function(){if(this instanceof o){var d=r.apply(this,n.concat(fu.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(fu.call(arguments)))},a=Math.max(0,r.length-n.length),u=[],c=0;c<a;c++)u.push("$"+c);if(o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o},sC=aC,pu=Function.prototype.bind||sC,uC=pu,xm=uC.call(Function.call,Object.prototype.hasOwnProperty),Me,Fn=SyntaxError,Sm=Function,Ln=TypeError,mu=function(e){try{return Sm('"use strict"; return ('+e+").constructor;")()}catch{}},an=Object.getOwnPropertyDescriptor;if(an)try{an({},"")}catch{an=null}var hu=function(){throw new Ln},lC=an?function(){try{return arguments.callee,hu}catch{try{return an(arguments,"callee").get}catch{return hu}}}():hu,Bn=Em(),cC=rC(),Ct=Object.getPrototypeOf||(cC?function(e){return e.__proto__}:null),Vn={},dC=typeof Uint8Array>"u"||!Ct?Me:Ct(Uint8Array),sn={"%AggregateError%":typeof AggregateError>"u"?Me:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Me:ArrayBuffer,"%ArrayIteratorPrototype%":Bn&&Ct?Ct([][Symbol.iterator]()):Me,"%AsyncFromSyncIteratorPrototype%":Me,"%AsyncFunction%":Vn,"%AsyncGenerator%":Vn,"%AsyncGeneratorFunction%":Vn,"%AsyncIteratorPrototype%":Vn,"%Atomics%":typeof Atomics>"u"?Me:Atomics,"%BigInt%":typeof BigInt>"u"?Me:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Me:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Me:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Me:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Me:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Me:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Me:FinalizationRegistry,"%Function%":Sm,"%GeneratorFunction%":Vn,"%Int8Array%":typeof Int8Array>"u"?Me:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Me:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Me:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bn&&Ct?Ct(Ct([][Symbol.iterator]())):Me,"%JSON%":typeof JSON=="object"?JSON:Me,"%Map%":typeof Map>"u"?Me:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Bn||!Ct?Me:Ct(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Me:Promise,"%Proxy%":typeof Proxy>"u"?Me:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Me:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Me:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Bn||!Ct?Me:Ct(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Me:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bn&&Ct?Ct(""[Symbol.iterator]()):Me,"%Symbol%":Bn?Symbol:Me,"%SyntaxError%":Fn,"%ThrowTypeError%":lC,"%TypedArray%":dC,"%TypeError%":Ln,"%Uint8Array%":typeof Uint8Array>"u"?Me:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Me:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Me:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Me:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Me:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Me:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Me:WeakSet};if(Ct)try{null.error}catch(e){var fC=Ct(Ct(e));sn["%Error.prototype%"]=fC}var pC=function e(t){var r;if(t==="%AsyncFunction%")r=mu("async function () {}");else if(t==="%GeneratorFunction%")r=mu("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=mu("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Ct&&(r=Ct(o.prototype))}return sn[t]=r,r},Tm={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Fo=pu,ua=xm,mC=Fo.call(Function.call,Array.prototype.concat),hC=Fo.call(Function.apply,Array.prototype.splice),Om=Fo.call(Function.call,String.prototype.replace),la=Fo.call(Function.call,String.prototype.slice),vC=Fo.call(Function.call,RegExp.prototype.exec),yC=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gC=/\\(\\)?/g,bC=function(t){var r=la(t,0,1),n=la(t,-1);if(r==="%"&&n!=="%")throw new Fn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Fn("invalid intrinsic syntax, expected opening `%`");var o=[];return Om(t,yC,function(i,a,u,c){o[o.length]=u?Om(c,gC,"$1"):a||i}),o},EC=function(t,r){var n=t,o;if(ua(Tm,n)&&(o=Tm[n],n="%"+o[0]+"%"),ua(sn,n)){var i=sn[n];if(i===Vn&&(i=pC(n)),typeof i>"u"&&!r)throw new Ln("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Fn("intrinsic "+t+" does not exist!")},$t=function(t,r){if(typeof t!="string"||t.length===0)throw new Ln("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ln('"allowMissing" argument must be a boolean');if(vC(/^%?[^%]*%?$/,t)===null)throw new Fn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=bC(t),o=n.length>0?n[0]:"",i=EC("%"+o+"%",r),a=i.name,u=i.value,c=!1,l=i.alias;l&&(o=l[0],hC(n,mC([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],y=la(p,0,1),v=la(p,-1);if((y==='"'||y==="'"||y==="`"||v==='"'||v==="'"||v==="`")&&y!==v)throw new Fn("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(c=!0),o+="."+p,a="%"+o+"%",ua(sn,a))u=sn[a];else if(u!=null){if(!(p in u)){if(!r)throw new Ln("base intrinsic for "+t+" exists, but the property is not available.");return}if(an&&d+1>=n.length){var h=an(u,p);f=!!h,f&&"get"in h&&!("originalValue"in h.get)?u=h.get:u=u[p]}else f=ua(u,p),u=u[p];f&&!c&&(sn[a]=u)}}return u},wC=$t,vu=wC("%Object.defineProperty%",!0),yu=function(){if(vu)try{return vu({},"a",{value:1}),!0}catch{return!1}return!1};yu.hasArrayLengthDefineBug=function(){if(!yu())return null;try{return vu([],"length",{value:1}).length!==1}catch{return!0}};var xC=yu,SC=Z1,TC=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",OC=Object.prototype.toString,CC=Array.prototype.concat,Cm=Object.defineProperty,PC=function(e){return typeof e=="function"&&OC.call(e)==="[object Function]"},RC=xC(),Pm=Cm&&RC,NC=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!PC(n)||!n())return}Pm?Cm(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},Rm=function(e,t){var r=arguments.length>2?arguments[2]:{},n=SC(t);TC&&(n=CC.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)NC(e,n[o],t[n[o]],r[n[o]])};Rm.supportsDescriptors=!!Pm;var Un=Rm,Nm={exports:{}};(function(e){var t=pu,r=$t,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),a=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(f){var p=i(t,o,arguments);if(a&&u){var y=a(p,"length");y.configurable&&u(p,"length",{value:1+c(0,f.length-(arguments.length-1))})}return p};var l=function(){return i(t,n,arguments)};u?u(e.exports,"apply",{value:l}):e.exports.apply=l})(Nm);var ca=Nm.exports,_m=$t,$m=ca,_C=$m(_m("String.prototype.indexOf")),Er=function(t,r){var n=_m(t,!!r);return typeof n=="function"&&_C(t,".prototype.")>-1?$m(n):n},$C=$t,MC=$C("%TypeError%"),kC=function(t,r){if(t==null)throw new MC(r||"Cannot call method on "+t);return t},Lo=kC,gu,Mm;function DC(){if(Mm)return gu;Mm=1;var e=$t,t=e("%Array%"),r=!t.isArray&&Er("Object.prototype.toString");return gu=t.isArray||function(o){return r(o)==="[object Array]"},gu}var bu,km;function AC(){return km||(km=1,bu=DC()),bu}var Eu,Dm;function IC(){if(Dm)return Eu;Dm=1;var e=$t,t=Er,r=e("%TypeError%"),n=AC(),o=e("%Reflect.apply%",!0)||t("Function.prototype.apply");return Eu=function(a,u){var c=arguments.length>2?arguments[2]:[];if(!n(c))throw new r("Assertion failed: optional `argumentsList`, if provided, must be a List");return o(a,u,c)},Eu}const jC=Vg(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var wu,Am;function FC(){if(Am)return wu;Am=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&typeof i.get=="function"?i.get:null,u=o&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,l=c?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,f=d?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,y=p?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,S=String.prototype.slice,E=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,P=RegExp.prototype.test,_=Array.prototype.concat,k=Array.prototype.join,A=Array.prototype.slice,L=Math.floor,Y=typeof BigInt=="function"?BigInt.prototype.valueOf:null,te=Object.getOwnPropertySymbols,ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,F=typeof Symbol=="function"&&typeof Symbol.iterator=="object",B=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F||"symbol")?Symbol.toStringTag:null,q=Object.prototype.propertyIsEnumerable,Z=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(M){return M.__proto__}:null);function fe(M,V){if(M===1/0||M===-1/0||M!==M||M&&M>-1e3&&M<1e3||P.call(/e/,V))return V;var De=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof M=="number"){var ot=M<0?-L(-M):L(M);if(ot!==M){var pt=String(ot),Te=S.call(V,pt.length+1);return E.call(pt,De,"$&_")+"."+E.call(E.call(Te,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(V,De,"$&_")}var ve=jC,j=ve.custom,U=re(j)?j:null;wu=function M(V,De,ot,pt){var Te=De||{};if(R(Te,"quoteStyle")&&Te.quoteStyle!=="single"&&Te.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(R(Te,"maxStringLength")&&(typeof Te.maxStringLength=="number"?Te.maxStringLength<0&&Te.maxStringLength!==1/0:Te.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Kt=R(Te,"customInspect")?Te.customInspect:!0;if(typeof Kt!="boolean"&&Kt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(R(Te,"indent")&&Te.indent!==null&&Te.indent!==" "&&!(parseInt(Te.indent,10)===Te.indent&&Te.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(R(Te,"numericSeparator")&&typeof Te.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var mr=Te.numericSeparator;if(typeof V>"u")return"undefined";if(V===null)return"null";if(typeof V=="boolean")return V?"true":"false";if(typeof V=="string")return yt(V,Te);if(typeof V=="number"){if(V===0)return 1/0/V>0?"0":"-0";var xt=String(V);return mr?fe(V,xt):xt}if(typeof V=="bigint"){var Xt=String(V)+"n";return mr?fe(V,Xt):Xt}var hn=typeof Te.depth>"u"?5:Te.depth;if(typeof ot>"u"&&(ot=0),ot>=hn&&hn>0&&typeof V=="object")return D(V)?"[Array]":"[Object]";var Nr=It(Te,ot);if(typeof pt>"u")pt=[];else if(Ee(pt,V)>=0)return"[Circular]";function Vt(Le,Oe,Re){if(Oe&&(pt=A.call(pt),pt.push(Oe)),Re){var Nt={depth:Te.depth};return R(Te,"quoteStyle")&&(Nt.quoteStyle=Te.quoteStyle),M(Le,Nt,ot+1,pt)}return M(Le,Te,ot+1,pt)}if(typeof V=="function"&&!z(V)){var ni=ye(V),es=xe(V,Vt);return"[Function"+(ni?": "+ni:" (anonymous)")+"]"+(es.length>0?" { "+k.call(es,", ")+" }":"")}if(re(V)){var oi=F?E.call(String(V),/^(Symbol\(.*\))_[^)]*$/,"$1"):ee.call(V);return typeof V=="object"&&!F?at(oi):oi}if(nt(V)){for(var Yr="<"+w.call(String(V.nodeName)),ii=V.attributes||[],io=0;io<ii.length;io++)Yr+=" "+ii[io].name+"="+O($(ii[io].value),"double",Te);return Yr+=">",V.childNodes&&V.childNodes.length&&(Yr+="..."),Yr+="</"+w.call(String(V.nodeName))+">",Yr}if(D(V)){if(V.length===0)return"[]";var ao=xe(V,Vt);return Nr&&!ge(ao)?"["+me(ao,Nr)+"]":"[ "+k.call(ao,", ")+" ]"}if(X(V)){var ai=xe(V,Vt);return!("cause"in Error.prototype)&&"cause"in V&&!q.call(V,"cause")?"{ ["+String(V)+"] "+k.call(_.call("[cause]: "+Vt(V.cause),ai),", ")+" }":ai.length===0?"["+String(V)+"]":"{ ["+String(V)+"] "+k.call(ai,", ")+" }"}if(typeof V=="object"&&Kt){if(U&&typeof V[U]=="function"&&ve)return ve(V,{depth:hn-ot});if(Kt!=="symbol"&&typeof V.inspect=="function")return V.inspect()}if(Ot(V)){var ts=[];return n&&n.call(V,function(Le,Oe){ts.push(Vt(Oe,V,!0)+" => "+Vt(Le,V))}),ke("Map",r.call(V),ts,Nr)}if(Fe(V)){var rs=[];return u&&u.call(V,function(Le){rs.push(Vt(Le,V))}),ke("Set",a.call(V),rs,Nr)}if(Rt(V))return st("WeakMap");if(it(V))return st("WeakSet");if(rt(V))return st("WeakRef");if(H(V))return at(Vt(Number(V)));if(W(V))return at(Vt(Y.call(V)));if(J(V))return at(v.call(V));if(K(V))return at(Vt(String(V)));if(!I(V)&&!z(V)){var si=xe(V,Vt),C=Z?Z(V)===Object.prototype:V instanceof Object||V.constructor===Object,Q=V instanceof Object?"":"null prototype",ne=!C&&B&&Object(V)===V&&B in V?S.call(se(V),8,-1):Q?"Object":"",we=C||typeof V.constructor!="function"?"":V.constructor.name?V.constructor.name+" ":"",je=we+(ne||Q?"["+k.call(_.call([],ne||[],Q||[]),": ")+"] ":"");return si.length===0?je+"{}":Nr?je+"{"+me(si,Nr)+"}":je+"{ "+k.call(si,", ")+" }"}return String(V)};function O(M,V,De){var ot=(De.quoteStyle||V)==="double"?'"':"'";return ot+M+ot}function $(M){return E.call(String(M),/"/g,""")}function D(M){return se(M)==="[object Array]"&&(!B||!(typeof M=="object"&&B in M))}function I(M){return se(M)==="[object Date]"&&(!B||!(typeof M=="object"&&B in M))}function z(M){return se(M)==="[object RegExp]"&&(!B||!(typeof M=="object"&&B in M))}function X(M){return se(M)==="[object Error]"&&(!B||!(typeof M=="object"&&B in M))}function K(M){return se(M)==="[object String]"&&(!B||!(typeof M=="object"&&B in M))}function H(M){return se(M)==="[object Number]"&&(!B||!(typeof M=="object"&&B in M))}function J(M){return se(M)==="[object Boolean]"&&(!B||!(typeof M=="object"&&B in M))}function re(M){if(F)return M&&typeof M=="object"&&M instanceof Symbol;if(typeof M=="symbol")return!0;if(!M||typeof M!="object"||!ee)return!1;try{return ee.call(M),!0}catch{}return!1}function W(M){if(!M||typeof M!="object"||!Y)return!1;try{return Y.call(M),!0}catch{}return!1}var ce=Object.prototype.hasOwnProperty||function(M){return M in this};function R(M,V){return ce.call(M,V)}function se(M){return h.call(M)}function ye(M){if(M.name)return M.name;var V=g.call(m.call(M),/^function\s*([\w$]+)/);return V?V[1]:null}function Ee(M,V){if(M.indexOf)return M.indexOf(V);for(var De=0,ot=M.length;De<ot;De++)if(M[De]===V)return De;return-1}function Ot(M){if(!r||!M||typeof M!="object")return!1;try{r.call(M);try{a.call(M)}catch{return!0}return M instanceof Map}catch{}return!1}function Rt(M){if(!l||!M||typeof M!="object")return!1;try{l.call(M,l);try{f.call(M,f)}catch{return!0}return M instanceof WeakMap}catch{}return!1}function rt(M){if(!y||!M||typeof M!="object")return!1;try{return y.call(M),!0}catch{}return!1}function Fe(M){if(!a||!M||typeof M!="object")return!1;try{a.call(M);try{r.call(M)}catch{return!0}return M instanceof Set}catch{}return!1}function it(M){if(!f||!M||typeof M!="object")return!1;try{f.call(M,f);try{l.call(M,l)}catch{return!0}return M instanceof WeakSet}catch{}return!1}function nt(M){return!M||typeof M!="object"?!1:typeof HTMLElement<"u"&&M instanceof HTMLElement?!0:typeof M.nodeName=="string"&&typeof M.getAttribute=="function"}function yt(M,V){if(M.length>V.maxStringLength){var De=M.length-V.maxStringLength,ot="... "+De+" more character"+(De>1?"s":"");return yt(S.call(M,0,V.maxStringLength),V)+ot}var pt=E.call(E.call(M,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ft);return O(pt,"single",V)}function ft(M){var V=M.charCodeAt(0),De={8:"b",9:"t",10:"n",12:"f",13:"r"}[V];return De?"\\"+De:"\\x"+(V<16?"0":"")+x.call(V.toString(16))}function at(M){return"Object("+M+")"}function st(M){return M+" { ? }"}function ke(M,V,De,ot){var pt=ot?me(De,ot):k.call(De,", ");return M+" ("+V+") {"+pt+"}"}function ge(M){for(var V=0;V<M.length;V++)if(Ee(M[V],`
|
|
244
|
+
`)>=0)return!1;return!0}function It(M,V){var De;if(M.indent===" ")De=" ";else if(typeof M.indent=="number"&&M.indent>0)De=k.call(Array(M.indent+1)," ");else return null;return{base:De,prev:k.call(Array(V+1),De)}}function me(M,V){if(M.length===0)return"";var De=`
|
|
245
|
+
`+V.prev+V.base;return De+k.call(M,","+De)+`
|
|
246
|
+
`+V.prev}function xe(M,V){var De=D(M),ot=[];if(De){ot.length=M.length;for(var pt=0;pt<M.length;pt++)ot[pt]=R(M,pt)?V(M[pt],M):""}var Te=typeof te=="function"?te(M):[],Kt;if(F){Kt={};for(var mr=0;mr<Te.length;mr++)Kt["$"+Te[mr]]=Te[mr]}for(var xt in M)R(M,xt)&&(De&&String(Number(xt))===xt&&xt<M.length||F&&Kt["$"+xt]instanceof Symbol||(P.call(/[^\w$]/,xt)?ot.push(V(xt,M)+": "+V(M[xt],M)):ot.push(xt+": "+V(M[xt],M))));if(typeof te=="function")for(var Xt=0;Xt<Te.length;Xt++)q.call(M,Te[Xt])&&ot.push("["+V(Te[Xt])+"]: "+V(M[Te[Xt]],M));return ot}return wu}var xu,Im;function jm(){return Im||(Im=1,xu=function(t){return typeof t=="string"||typeof t=="symbol"}),xu}var Su,Fm;function LC(){return Fm||(Fm=1,Su=function(t){if(t===null)return"Null";if(typeof t>"u")return"Undefined";if(typeof t=="function"||typeof t=="object")return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"}),Su}var Tu,Lm;function Bo(){if(Lm)return Tu;Lm=1;var e=LC();return Tu=function(r){return typeof r=="symbol"?"Symbol":typeof r=="bigint"?"BigInt":e(r)},Tu}var Ou,Bm;function Vm(){if(Bm)return Ou;Bm=1;var e=$t,t=e("%TypeError%"),r=FC(),n=jm(),o=Bo();return Ou=function(a,u){if(o(a)!=="Object")throw new t("Assertion failed: Type(O) is not Object");if(!n(u))throw new t("Assertion failed: IsPropertyKey(P) is not true, got "+r(u));return a[u]},Ou}var Cu,Um;function BC(){if(Um)return Cu;Um=1;var e=$t,t=e("%TypeError%"),r=jm(),n=Bo();return Cu=function(i,a){if(n(i)!=="Object")throw new t("Assertion failed: `O` must be an Object");if(!r(a))throw new t("Assertion failed: `P` must be a Property Key");return a in i},Cu}var Pu,Wm;function zm(){if(Wm)return Pu;Wm=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(S){S!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(E){try{var x=e.call(E);return o.test(x)}catch{return!1}},a=function(E){try{return i(E)?!1:(e.call(E),!0)}catch{return!1}},u=Object.prototype.toString,c="[object Object]",l="[object Function]",d="[object GeneratorFunction]",f="[object HTMLAllCollection]",p="[object HTML document.all class]",y="[object HTMLCollection]",v=typeof Symbol=="function"&&!!Symbol.toStringTag,h=!(0 in[,]),m=function(){return!1};if(typeof document=="object"){var g=document.all;u.call(g)===u.call(document.all)&&(m=function(E){if((h||!E)&&(typeof E>"u"||typeof E=="object"))try{var x=u.call(E);return(x===f||x===p||x===y||x===c)&&E("")==null}catch{}return!1})}return Pu=t?function(E){if(m(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{t(E,null,r)}catch(x){if(x!==n)return!1}return!i(E)&&a(E)}:function(E){if(m(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(v)return a(E);if(i(E))return!1;var x=u.call(E);return x!==l&&x!==d&&!/^\[object HTML/.test(x)?!1:a(E)},Pu}var Ru,qm;function VC(){return qm||(qm=1,Ru=zm()),Ru}var Nu,Hm;function UC(){if(Hm)return Nu;Hm=1;var e=$t,t=e("%Math%"),r=e("%Number%");return Nu=r.MAX_SAFE_INTEGER||t.pow(2,53)-1,Nu}var _u,Ym;function WC(){if(Ym)return _u;Ym=1;var e=$t,t=e("%Math.abs%");return _u=function(n){return t(n)},_u}var $u,Gm;function zC(){if(Gm)return $u;Gm=1;var e=Bo(),t=Math.floor;return $u=function(n){return e(n)==="BigInt"?n:t(n)},$u}var Mu,Km;function qC(){return Km||(Km=1,Mu=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),Mu}var ku,Xm;function HC(){return Xm||(Xm=1,ku=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),ku}var Du,Jm;function Au(){if(Jm)return Du;Jm=1;var e=gm;return Du=function(){return e()&&!!Symbol.toStringTag},Du}var Iu,Qm;function YC(){if(Qm)return Iu;Qm=1;var e=Date.prototype.getDay,t=function(a){try{return e.call(a),!0}catch{return!1}},r=Object.prototype.toString,n="[object Date]",o=Au()();return Iu=function(a){return typeof a!="object"||a===null?!1:o?t(a):r.call(a)===n},Iu}var da={exports:{}},Zm;function GC(){if(Zm)return da.exports;Zm=1;var e=Object.prototype.toString,t=Em();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(a){return typeof a.valueOf()!="symbol"?!1:n.test(r.call(a))};da.exports=function(a){if(typeof a=="symbol")return!0;if(e.call(a)!=="[object Symbol]")return!1;try{return o(a)}catch{return!1}}}else da.exports=function(a){return!1};return da.exports}var ju,eh;function KC(){if(eh)return ju;eh=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=HC(),r=zm(),n=YC(),o=GC(),i=function(c,l){if(typeof c>"u"||c===null)throw new TypeError("Cannot call method on "+c);if(typeof l!="string"||l!=="number"&&l!=="string")throw new TypeError('hint must be "string" or "number"');var d=l==="string"?["toString","valueOf"]:["valueOf","toString"],f,p,y;for(y=0;y<d.length;++y)if(f=c[d[y]],r(f)&&(p=f.call(c),t(p)))return p;throw new TypeError("No default value")},a=function(c,l){var d=c[l];if(d!==null&&typeof d<"u"){if(!r(d))throw new TypeError(d+" returned for property "+l+" of object "+c+" is not a function");return d}};return ju=function(c){if(t(c))return c;var l="default";arguments.length>1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var d;if(e&&(Symbol.toPrimitive?d=a(c,Symbol.toPrimitive):o(c)&&(d=Symbol.prototype.valueOf)),typeof d<"u"){var f=d.call(c,l);if(t(f))return f;throw new TypeError("unable to convert exotic object to primitive")}return l==="default"&&(n(c)||o(c))&&(l="string"),i(c,l==="default"?"number":l)},ju}var Fu,th;function XC(){if(th)return Fu;th=1;var e=KC();return Fu=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},Fu}var Lu,rh;function JC(){if(rh)return Lu;rh=1;var e=Er,t=Au()(),r,n,o,i;if(t){r=e("Object.prototype.hasOwnProperty"),n=e("RegExp.prototype.exec"),o={};var a=function(){throw o};i={toString:a,valueOf:a},typeof Symbol.toPrimitive=="symbol"&&(i[Symbol.toPrimitive]=a)}var u=e("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor,l="[object RegExp]";return Lu=t?function(f){if(!f||typeof f!="object")return!1;var p=c(f,"lastIndex"),y=p&&r(p,"value");if(!y)return!1;try{n(f,i)}catch(v){return v===o}}:function(f){return!f||typeof f!="object"&&typeof f!="function"?!1:u(f)===l},Lu}var Bu,nh;function QC(){if(nh)return Bu;nh=1;var e=Er,t=$t,r=JC(),n=e("RegExp.prototype.exec"),o=t("%TypeError%");return Bu=function(a){if(!r(a))throw new o("`regex` must be a RegExp");return function(c){return n(a,c)!==null}},Bu}var oh=$t,ZC=oh("%String%"),eP=oh("%TypeError%"),ih=function(t){if(typeof t=="symbol")throw new eP("Cannot convert a Symbol value to a string");return ZC(t)},tP=Lo,rP=ih,nP=Er,ah=nP("String.prototype.replace"),sh=/^\s$/.test(""),oP=sh?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,iP=sh?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,uh=function(){var t=rP(tP(this));return ah(ah(t,oP,""),iP,"")},aP=uh,lh="",Wn="",ch=function(){return String.prototype.trim&&lh.trim()===lh&&Wn.trim()===Wn&&("_"+Wn).trim()==="_"+Wn&&(Wn+"_").trim()===Wn+"_"?String.prototype.trim:aP},sP=Un,uP=ch,lP=function(){var t=uP();return sP(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},cP=ca,dP=Un,fP=Lo,pP=uh,dh=ch,mP=lP,hP=cP(dh()),fh=function(t){return fP(t),hP(t)};dP(fh,{getPolyfill:dh,implementation:pP,shim:mP});var ph=fh,Vu,mh;function vP(){if(mh)return Vu;mh=1;var e=$t,t=e("%Number%"),r=e("%RegExp%"),n=e("%TypeError%"),o=e("%parseInt%"),i=Er,a=QC(),u=i("String.prototype.slice"),c=a(/^0b[01]+$/i),l=a(/^0o[0-7]+$/i),d=a(/^[-+]0x[0-9a-f]+$/i),f=["
","",""].join(""),p=new r("["+f+"]","g"),y=a(p),v=ph,h=Bo();return Vu=function m(g){if(h(g)!=="String")throw new n("Assertion failed: `argument` is not a String");if(c(g))return t(o(u(g,2),2));if(l(g))return t(o(u(g,2),8));if(y(g)||d(g))return NaN;var S=v(g);return S!==g?m(S):t(g)},Vu}var Uu,hh;function yP(){if(hh)return Uu;hh=1;var e=$t,t=e("%TypeError%"),r=e("%Number%"),n=qC(),o=XC(),i=vP();return Uu=function(u){var c=n(u)?u:o(u,r);if(typeof c=="symbol")throw new t("Cannot convert a Symbol value to a number");if(typeof c=="bigint")throw new t("Conversion from 'BigInt' to 'number' is not allowed.");return typeof c=="string"?i(c):r(c)},Uu}var Wu,vh;function yh(){return vh||(vh=1,Wu=Number.isNaN||function(t){return t!==t}),Wu}var zu,gh;function gP(){if(gh)return zu;gh=1;var e=yh();return zu=function(t){return(typeof t=="number"||typeof t=="bigint")&&!e(t)&&t!==1/0&&t!==-1/0},zu}var qu,bh;function bP(){return bh||(bh=1,qu=function(t){return t>=0?1:-1}),qu}var Hu,Eh;function EP(){if(Eh)return Hu;Eh=1;var e=WC(),t=zC(),r=yP(),n=yh(),o=gP(),i=bP();return Hu=function(u){var c=r(u);if(n(c)||c===0)return 0;if(!o(c))return c;var l=t(e(c));return l===0?0:i(c)*l},Hu}var Yu,wh;function wP(){if(wh)return Yu;wh=1;var e=UC(),t=EP();return Yu=function(n){var o=t(n);return o<=0?0:o>e?e:o},Yu}var Gu,xh;function xP(){if(xh)return Gu;xh=1;var e=$t,t=e("%TypeError%"),r=Vm(),n=wP(),o=Bo();return Gu=function(a){if(o(a)!=="Object")throw new t("Assertion failed: `obj` must be an Object");return n(r(a,"length"))},Gu}var Ku,Sh;function SP(){if(Sh)return Ku;Sh=1;var e=$t,t=e("%Object%"),r=Lo;return Ku=function(o){return r(o),t(o)},Ku}var Xu,Th;function TP(){if(Th)return Xu;Th=1;var e=String.prototype.valueOf,t=function(a){try{return e.call(a),!0}catch{return!1}},r=Object.prototype.toString,n="[object String]",o=Au()();return Xu=function(a){return typeof a=="string"?!0:typeof a!="object"?!1:o?t(a):r.call(a)===n},Xu}var OP=$t,CP=Er,PP=OP("%TypeError%"),RP=IC(),NP=Vm(),_P=BC(),$P=VC(),MP=xP(),kP=SP(),DP=ih,AP=TP(),IP=CP("String.prototype.split"),Oh=Object("a"),jP=Oh[0]!=="a"||!(0 in Oh),Ch=function(t){var r=kP(this),n=jP&&AP(this)?IP(this,""):r,o=MP(n);if(!$P(t))throw new PP("Array.prototype.forEach callback must be a function");var i;arguments.length>1&&(i=arguments[1]);for(var a=0;a<o;){var u=DP(a),c=_P(n,u);if(c){var l=NP(n,u);RP(t,i,[l,a,n])}a+=1}},FP=function(t){var r=!0,n=!0,o=!1;if(typeof t=="function"){try{t.call("f",function(i,a,u){typeof u!="object"&&(r=!1)}),t.call([null],function(){"use strict";n=typeof this=="string"},"x")}catch{o=!0}return!o&&r&&n}return!1},LP=FP,BP=Ch,Ph=function(){var t=Array.prototype.forEach;return LP(t)?t:BP},Ju,Rh;function VP(){if(Rh)return Ju;Rh=1;var e=Un,t=Ph;return Ju=function(){var n=t();return e(Array.prototype,{forEach:n},{forEach:function(){return Array.prototype.forEach!==n}}),n},Ju}var UP=Un,WP=ca,zP=Er,qP=Lo,HP=Ch,Nh=Ph,YP=Nh(),GP=VP(),KP=zP("Array.prototype.slice"),XP=WP.apply(YP),_h=function(t,r){return qP(t),XP(t,KP(arguments,1))};UP(_h,{getPolyfill:Nh,implementation:HP,shim:GP});var JP=_h,QP=Lo,$h=Er,ZP=$h("Object.prototype.propertyIsEnumerable"),eR=$h("Array.prototype.push"),Mh=function(t){var r=QP(t),n=[];for(var o in r)ZP(r,o)&&eR(n,[o,r[o]]);return n},tR=Mh,kh=function(){return typeof Object.entries=="function"?Object.entries:tR},rR=kh,nR=Un,oR=function(){var t=rR();return nR(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},iR=Un,aR=ca,sR=Mh,Dh=kh,uR=oR,Ah=aR(Dh(),Object);iR(Ah,{getPolyfill:Dh,implementation:sR,shim:uR});var lR=Ah,cR=process.env.NODE_ENV!=="production",Ih=function(){};if(cR){var dR=function(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var o=1;o<n;o++)r[o-1]=arguments[o];var i=0,a="Warning: "+t.replace(/%s/g,function(){return r[i++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};Ih=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var o=2;o<n;o++)r[o-2]=arguments[o];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||dR.apply(null,[t].concat(r))}}var fR=Ih,fa=JP,Qu=lR,pR=fR,jh=xm,mR=ph,hR=function(t){pR(!1,t)},Fh=String.prototype.replace,Lh=String.prototype.split,pa="||||",Zu=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},Bh={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:Zu,chinese:function(){return 0},croatian:Zu,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Zu,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function vR(e){var t={};return fa(Qu(e),function(r){var n=r[0],o=r[1];fa(o,function(i){t[i]=n})}),t}function yR(e,t){var r=vR(e.pluralTypeToLanguages);return r[t]||r[Lh.call(t,/-/,1)[0]]||r.en}function gR(e,t,r){return e.pluralTypes[t](r)}function bR(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=yR(t,r),n&&(e[r]=n)),n}}function Vh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ER(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===pa||r===pa)throw new RangeError('"'+pa+'" token is reserved for pluralization');return new RegExp(Vh(t)+"(.*?)"+Vh(r),"g")}var wR=bR(),xR=/%\{(.*?)\}/g;function el(e,t,r,n,o,i){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var a=e,u=n||xR,c=i||Fh,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var d=o||Bh,f=Lh.call(e,pa),p=r||"en",y=wR(d,p),v=gR(d,y,l.smart_count);a=mR(f[v]||f[0])}return a=c.call(a,u,function(h,m){return!jh(l,m)||l[m]==null?h:l[m]}),a}function wr(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?el:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||hR,this.replaceImplementation=t.replace||Fh,this.tokenRegex=ER(t.interpolation),this.pluralRules=t.pluralRules||Bh}wr.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},wr.prototype.extend=function(e,t){fa(Qu(e||{}),function(r){var n=r[0],o=r[1],i=t?t+"."+n:n;typeof o=="object"?this.extend(o,i):this.phrases[i]=o},this)},wr.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:fa(Qu(e||{}),function(r){var n=r[0],o=r[1],i=t?t+"."+n:n;typeof o=="object"?this.unset(o,i):delete this.phrases[i]},this)},wr.prototype.clear=function(){this.phrases={}},wr.prototype.replace=function(e){this.clear(),this.extend(e)},wr.prototype.t=function(e,t){var r,n,o=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof o._=="string")r=o._;else if(this.onMissingKey){var i=this.onMissingKey;n=i(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=el(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n},wr.prototype.has=function(e){return jh(this.phrases,e)},wr.transformPhrase=function(t,r,n){return el(t,r,n)};var SR=wr,ma={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(pe);function r(i){return i&&i.__esModule?i:{default:i}}var n=t.default.createContext(),o=n;e.default=o})(ma),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=i(pe),r=i(Uc),n=i(SR),o=i(ma);function i(u){return u&&u.__esModule?u:{default:u}}function a(u){var c=u.locale,l=u.messages,d=u.allowMissing,f=u.onMissingKey,p=u.interpolation,y=u.pluralRules,v=u.children,h=t.default.useMemo(function(){var m=new n.default({locale:c,phrases:l,allowMissing:d,onMissingKey:f,interpolation:p,pluralRules:y}),g=m.t.bind(m);return g._polyglot=m,g},[c,l,d,f,p,y]);return t.default.createElement(o.default.Provider,{value:h},t.default.Children.only(v))}a.propTypes={locale:r.default.string.isRequired,messages:r.default.object.isRequired,allowMissing:r.default.bool,onMissingKey:r.default.func,interpolation:r.default.shape({suffix:r.default.string,prefix:r.default.string}),pluralRules:r.default.shape({pluralTypes:r.default.object,pluralTypeToLanguages:r.default.object}),children:r.default.element.isRequired},a.defaultProps={allowMissing:!1,onMissingKey:void 0,interpolation:void 0,pluralRules:void 0}}(fm);var Uh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=o(pe),r=o(l0),n=o(ma);function o(u){return u&&u.__esModule?u:{default:u}}function i(){return i=Object.assign||function(u){for(var c=1;c<arguments.length;c++){var l=arguments[c];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(u[d]=l[d])}return u},i.apply(this,arguments)}function a(){return function(u){var c=function(d){return t.default.createElement(n.default.Consumer,null,function(f){return t.default.createElement(u,i({},d,{t:f}))})};return(0,r.default)(c,u)}}})(Uh);var Wh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=pe,r=n(ma);function n(i){return i&&i.__esModule?i:{default:i}}function o(){return(0,t.useContext)(r.default)}})(Wh),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"I18n",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"translate",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"useTranslate",{enumerable:!0,get:function(){return n.default}});var t=o(fm),r=o(Uh),n=o(Wh);function o(i){return i&&i.__esModule?i:{default:i}}}(jn);const tl=({titulo:e,texto:t,align:r="center",severity:n="error"})=>{const o=jn.useTranslate();return N.jsx($o,{sx:{display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center",alignItems:r},children:N.jsxs(Gf,{severity:n,children:[N.jsx(cS,{children:o(e)}),t&&o(t)]})})};tl.propTypes={titulo:s.string.isRequired,texto:s.string,align:s.string,severity:s.string};var rl={exports:{}},nl={};/**
|
|
247
|
+
* @license React
|
|
248
|
+
* use-sync-external-store-shim.production.min.js
|
|
249
|
+
*
|
|
250
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the MIT license found in the
|
|
253
|
+
* LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/var zh;function TR(){if(zh)return nl;zh=1;var e=pe;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function u(f,p){var y=p(),v=n({inst:{value:y,getSnapshot:p}}),h=v[0].inst,m=v[1];return i(function(){h.value=y,h.getSnapshot=p,c(h)&&m({inst:h})},[f,y,p]),o(function(){return c(h)&&m({inst:h}),f(function(){c(h)&&m({inst:h})})},[f]),a(y),y}function c(f){var p=f.getSnapshot;f=f.value;try{var y=p();return!r(f,y)}catch{return!0}}function l(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:u;return nl.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,nl}var ol={};/**
|
|
255
|
+
* @license React
|
|
256
|
+
* use-sync-external-store-shim.development.js
|
|
257
|
+
*
|
|
258
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
259
|
+
*
|
|
260
|
+
* This source code is licensed under the MIT license found in the
|
|
261
|
+
* LICENSE file in the root directory of this source tree.
|
|
262
|
+
*/var qh;function OR(){return qh||(qh=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=pe,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(E){{for(var x=arguments.length,w=new Array(x>1?x-1:0),P=1;P<x;P++)w[P-1]=arguments[P];n("error",E,w)}}function n(E,x,w){{var P=t.ReactDebugCurrentFrame,_=P.getStackAddendum();_!==""&&(x+="%s",w=w.concat([_]));var k=w.map(function(A){return String(A)});k.unshift("Warning: "+x),Function.prototype.apply.call(console[E],console,k)}}function o(E,x){return E===x&&(E!==0||1/E===1/x)||E!==E&&x!==x}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,u=e.useEffect,c=e.useLayoutEffect,l=e.useDebugValue,d=!1,f=!1;function p(E,x,w){d||e.startTransition!==void 0&&(d=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var P=x();if(!f){var _=x();i(P,_)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var k=a({inst:{value:P,getSnapshot:x}}),A=k[0].inst,L=k[1];return c(function(){A.value=P,A.getSnapshot=x,y(A)&&L({inst:A})},[E,P,x]),u(function(){y(A)&&L({inst:A});var Y=function(){y(A)&&L({inst:A})};return E(Y)},[E]),l(P),P}function y(E){var x=E.getSnapshot,w=E.value;try{var P=x();return!i(w,P)}catch{return!0}}function v(E,x,w){return x()}var h=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m=!h,g=m?v:p,S=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g;ol.useSyncExternalStore=S,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ol}process.env.NODE_ENV==="production"?rl.exports=TR():rl.exports=OR();var Hh=rl.exports,il={exports:{}},al={};/**
|
|
263
|
+
* @license React
|
|
264
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
265
|
+
*
|
|
266
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the MIT license found in the
|
|
269
|
+
* LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/var Yh;function CR(){if(Yh)return al;Yh=1;var e=pe,t=Hh;function r(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,u=e.useMemo,c=e.useDebugValue;return al.useSyncExternalStoreWithSelector=function(l,d,f,p,y){var v=i(null);if(v.current===null){var h={hasValue:!1,value:null};v.current=h}else h=v.current;v=u(function(){function g(P){if(!S){if(S=!0,E=P,P=p(P),y!==void 0&&h.hasValue){var _=h.value;if(y(_,P))return x=_}return x=P}if(_=x,n(E,P))return _;var k=p(P);return y!==void 0&&y(_,k)?_:(E=P,x=k)}var S=!1,E,x,w=f===void 0?null:f;return[function(){return g(d())},w===null?void 0:function(){return g(w())}]},[d,f,p,y]);var m=o(l,v[0],v[1]);return a(function(){h.hasValue=!0,h.value=m},[m]),c(m),m},al}var sl={};/**
|
|
271
|
+
* @license React
|
|
272
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
273
|
+
*
|
|
274
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
275
|
+
*
|
|
276
|
+
* This source code is licensed under the MIT license found in the
|
|
277
|
+
* LICENSE file in the root directory of this source tree.
|
|
278
|
+
*/var Gh;function PR(){return Gh||(Gh=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=pe,t=Hh;function r(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,u=e.useMemo,c=e.useDebugValue;function l(d,f,p,y,v){var h=i(null),m;h.current===null?(m={hasValue:!1,value:null},h.current=m):m=h.current;var g=u(function(){var w=!1,P,_,k=function(te){if(!w){w=!0,P=te;var ee=y(te);if(v!==void 0&&m.hasValue){var F=m.value;if(v(F,ee))return _=F,F}return _=ee,ee}var B=P,q=_;if(n(B,te))return q;var Z=y(te);return v!==void 0&&v(q,Z)?q:(P=te,_=Z,Z)},A=p===void 0?null:p,L=function(){return k(f())},Y=A===null?void 0:function(){return k(A())};return[L,Y]},[f,p,y,v]),S=g[0],E=g[1],x=o(d,S,E);return a(function(){m.hasValue=!0,m.value=x},[x]),c(x),x}sl.useSyncExternalStoreWithSelector=l,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),sl}process.env.NODE_ENV==="production"?il.exports=CR():il.exports=PR();var RR=il.exports;function NR(e){e()}let Kh=NR;const _R=e=>Kh=e,$R=()=>Kh,Xh=Symbol.for(`react-redux-context-${pe.version}`),Jh=globalThis;function MR(){let e=Jh[Xh];return e||(e=pe.createContext(null),process.env.NODE_ENV!=="production"&&(e.displayName="ReactRedux"),Jh[Xh]=e),e}const jr=new Proxy({},new Proxy({},{get(e,t){const r=MR();return(n,...o)=>Reflect[t](r,...o)}}));function ul(e=jr){return function(){const r=pe.useContext(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return r}}const Qh=ul();let Zh=()=>{throw new Error("uSES not initialized!")};const kR=e=>{Zh=e},DR=(e,t)=>e===t;function AR(e=jr){const t=e===jr?Qh:ul(e);return function(n,o={}){const{equalityFn:i=DR,stabilityCheck:a=void 0,noopCheck:u=void 0}=typeof o=="function"?{equalityFn:o}:o;if(process.env.NODE_ENV!=="production"){if(!n)throw new Error("You must pass a selector to useSelector");if(typeof n!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:c,subscription:l,getServerState:d,stabilityCheck:f,noopCheck:p}=t(),y=pe.useRef(!0),v=pe.useCallback({[n.name](m){const g=n(m);if(process.env.NODE_ENV!=="production"){const S=typeof a>"u"?f:a;if(S==="always"||S==="once"&&y.current){const x=n(m);i(g,x)||console.warn("Selector "+(n.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
279
|
+
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:m,selected:g,selected2:x})}const E=typeof u>"u"?p:u;(E==="always"||E==="once"&&y.current)&&g===m&&console.warn("Selector "+(n.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
280
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`),y.current&&(y.current=!1)}return g}}[n.name],[n,f,a]),h=Zh(l.addNestedSub,c.getState,d||c.getState,v,i);return pe.useDebugValue(h),h}}const or=AR();var Ze={};/**
|
|
281
|
+
* @license React
|
|
282
|
+
* react-is.production.min.js
|
|
283
|
+
*
|
|
284
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
285
|
+
*
|
|
286
|
+
* This source code is licensed under the MIT license found in the
|
|
287
|
+
* LICENSE file in the root directory of this source tree.
|
|
288
|
+
*/var ev;function IR(){if(ev)return Ze;ev=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function h(m){if(typeof m=="object"&&m!==null){var g=m.$$typeof;switch(g){case e:switch(m=m.type,m){case r:case o:case n:case l:case d:return m;default:switch(m=m&&m.$$typeof,m){case u:case a:case c:case p:case f:case i:return m;default:return g}}case t:return g}}}return Ze.ContextConsumer=a,Ze.ContextProvider=i,Ze.Element=e,Ze.ForwardRef=c,Ze.Fragment=r,Ze.Lazy=p,Ze.Memo=f,Ze.Portal=t,Ze.Profiler=o,Ze.StrictMode=n,Ze.Suspense=l,Ze.SuspenseList=d,Ze.isAsyncMode=function(){return!1},Ze.isConcurrentMode=function(){return!1},Ze.isContextConsumer=function(m){return h(m)===a},Ze.isContextProvider=function(m){return h(m)===i},Ze.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Ze.isForwardRef=function(m){return h(m)===c},Ze.isFragment=function(m){return h(m)===r},Ze.isLazy=function(m){return h(m)===p},Ze.isMemo=function(m){return h(m)===f},Ze.isPortal=function(m){return h(m)===t},Ze.isProfiler=function(m){return h(m)===o},Ze.isStrictMode=function(m){return h(m)===n},Ze.isSuspense=function(m){return h(m)===l},Ze.isSuspenseList=function(m){return h(m)===d},Ze.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===o||m===n||m===l||m===d||m===y||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===i||m.$$typeof===a||m.$$typeof===c||m.$$typeof===v||m.getModuleId!==void 0)},Ze.typeOf=h,Ze}var et={};/**
|
|
289
|
+
* @license React
|
|
290
|
+
* react-is.development.js
|
|
291
|
+
*
|
|
292
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the MIT license found in the
|
|
295
|
+
* LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/var tv;function jR(){return tv||(tv=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=!1,h=!1,m=!1,g=!1,S=!1,E;E=Symbol.for("react.module.reference");function x(R){return!!(typeof R=="string"||typeof R=="function"||R===r||R===o||S||R===n||R===l||R===d||g||R===y||v||h||m||typeof R=="object"&&R!==null&&(R.$$typeof===p||R.$$typeof===f||R.$$typeof===i||R.$$typeof===a||R.$$typeof===c||R.$$typeof===E||R.getModuleId!==void 0))}function w(R){if(typeof R=="object"&&R!==null){var se=R.$$typeof;switch(se){case e:var ye=R.type;switch(ye){case r:case o:case n:case l:case d:return ye;default:var Ee=ye&&ye.$$typeof;switch(Ee){case u:case a:case c:case p:case f:case i:return Ee;default:return se}}case t:return se}}}var P=a,_=i,k=e,A=c,L=r,Y=p,te=f,ee=t,F=o,B=n,q=l,Z=d,fe=!1,ve=!1;function j(R){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(R){return ve||(ve=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function O(R){return w(R)===a}function $(R){return w(R)===i}function D(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function I(R){return w(R)===c}function z(R){return w(R)===r}function X(R){return w(R)===p}function K(R){return w(R)===f}function H(R){return w(R)===t}function J(R){return w(R)===o}function re(R){return w(R)===n}function W(R){return w(R)===l}function ce(R){return w(R)===d}et.ContextConsumer=P,et.ContextProvider=_,et.Element=k,et.ForwardRef=A,et.Fragment=L,et.Lazy=Y,et.Memo=te,et.Portal=ee,et.Profiler=F,et.StrictMode=B,et.Suspense=q,et.SuspenseList=Z,et.isAsyncMode=j,et.isConcurrentMode=U,et.isContextConsumer=O,et.isContextProvider=$,et.isElement=D,et.isForwardRef=I,et.isFragment=z,et.isLazy=X,et.isMemo=K,et.isPortal=H,et.isProfiler=J,et.isStrictMode=re,et.isSuspense=W,et.isSuspenseList=ce,et.isValidElementType=x,et.typeOf=w}()),et}process.env.NODE_ENV==="production"?IR():jR();function FR(){const e=$R();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=t;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,i=r={callback:n,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const rv={notify(){},get:()=>[]};function LR(e,t){let r,n=rv;function o(f){return c(),n.subscribe(f)}function i(){n.notify()}function a(){d.onStateChange&&d.onStateChange()}function u(){return!!r}function c(){r||(r=t?t.addNestedSub(a):e.subscribe(a),n=FR())}function l(){r&&(r(),r=void 0,n.clear(),n=rv)}const d={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:a,isSubscribed:u,trySubscribe:c,tryUnsubscribe:l,getListeners:()=>n};return d}const BR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?pe.useLayoutEffect:pe.useEffect;function VR({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=pe.useMemo(()=>{const l=LR(e);return{store:e,subscription:l,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),u=pe.useMemo(()=>e.getState(),[e]);BR(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),u!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,u]);const c=t||jr;return pe.createElement(c.Provider,{value:a},r)}function nv(e=jr){const t=e===jr?Qh:ul(e);return function(){const{store:n}=t();return n}}const UR=nv();function WR(e=jr){const t=e===jr?UR:nv(e);return function(){return t().dispatch}}const un=WR();kR(RR.useSyncExternalStoreWithSelector),_R(vn.unstable_batchedUpdates);function Pt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=QR[e],i=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fr(e){return!!e&&!!e[lt]}function xr(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===ZR}(e)||Array.isArray(e)||!!e[pv]||!!(!((t=e.constructor)===null||t===void 0)&&t[pv])||ll(e)||cl(e))}function ln(e,t,r){r===void 0&&(r=!1),zn(e)===0?(r?Object.keys:Yn)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function zn(e){var t=e[lt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ll(e)?2:cl(e)?3:0}function qn(e,t){return zn(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function zR(e,t){return zn(e)===2?e.get(t):e[t]}function ov(e,t,r){var n=zn(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function iv(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ll(e){return XR&&e instanceof Map}function cl(e){return JR&&e instanceof Set}function Lr(e){return e.o||e.t}function dl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=mv(e);delete t[lt];for(var r=Yn(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function fl(e,t){return t===void 0&&(t=!1),pl(e)||Fr(e)||!xr(e)||(zn(e)>1&&(e.set=e.add=e.clear=e.delete=qR),Object.freeze(e),t&&ln(e,function(r,n){return fl(n,!0)},!0)),e}function qR(){Pt(2)}function pl(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ir(e){var t=xl[e];return t||Pt(18,e),t}function HR(e,t){xl[e]||(xl[e]=t)}function ml(){return process.env.NODE_ENV==="production"||Hn||Pt(0),Hn}function hl(e,t){t&&(ir("Patches"),e.u=[],e.s=[],e.v=t)}function ha(e){vl(e),e.p.forEach(YR),e.p=null}function vl(e){e===Hn&&(Hn=e.l)}function av(e){return Hn={p:[],l:Hn,h:e,m:!0,_:0}}function YR(e){var t=e[lt];t.i===0||t.i===1?t.j():t.g=!0}function yl(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ir("ES5").S(t,e,n),n?(r[lt].P&&(ha(t),Pt(4)),xr(e)&&(e=va(t,e),t.l||ya(t,e)),t.u&&ir("Patches").M(r[lt].t,e,t.u,t.s)):e=va(t,r,[]),ha(t),t.u&&t.v(t.u,t.s),e!==fv?e:void 0}function va(e,t,r){if(pl(t))return t;var n=t[lt];if(!n)return ln(t,function(u,c){return sv(e,n,t,u,c,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ya(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=dl(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),ln(i,function(u,c){return sv(e,n,o,u,c,r,a)}),ya(e,o,!1),r&&e.u&&ir("Patches").N(n,r,e.u,e.s)}return n.o}function sv(e,t,r,n,o,i,a){if(process.env.NODE_ENV!=="production"&&o===r&&Pt(5),Fr(o)){var u=va(e,o,i&&t&&t.i!==3&&!qn(t.R,n)?i.concat(n):void 0);if(ov(r,n,u),!Fr(u))return;e.m=!1}else a&&r.add(o);if(xr(o)&&!pl(o)){if(!e.h.D&&e._<1)return;va(e,o),t&&t.A.l||ya(e,o)}}function ya(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&fl(t,r)}function gl(e,t){var r=e[lt];return(r?Lr(r):e)[t]}function uv(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Br(e){e.P||(e.P=!0,e.l&&Br(e.l))}function bl(e){e.o||(e.o=dl(e.t))}function El(e,t,r){var n=ll(t)?ir("MapSet").F(t,r):cl(t)?ir("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:ml(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=u,l=Vo;a&&(c=[u],l=Uo);var d=Proxy.revocable(c,l),f=d.revoke,p=d.proxy;return u.k=p,u.j=f,p}(t,r):ir("ES5").J(t,r);return(r?r.A:ml()).p.push(n),n}function GR(e){return Fr(e)||Pt(22,e),function t(r){if(!xr(r))return r;var n,o=r[lt],i=zn(r);if(o){if(!o.P&&(o.i<4||!ir("ES5").K(o)))return o.t;o.I=!0,n=lv(r,i),o.I=!1}else n=lv(r,i);return ln(n,function(a,u){o&&zR(o.t,a)===u||ov(n,a,t(u))}),i===3?new Set(n):n}(e)}function lv(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return dl(e)}function KR(){function e(a,u){var c=i[a];return c?c.enumerable=u:i[a]=c={configurable:!0,enumerable:u,get:function(){var l=this[lt];return process.env.NODE_ENV!=="production"&&o(l),Vo.get(l,a)},set:function(l){var d=this[lt];process.env.NODE_ENV!=="production"&&o(d),Vo.set(d,a,l)}},c}function t(a){for(var u=a.length-1;u>=0;u--){var c=a[u][lt];if(!c.P)switch(c.i){case 5:n(c)&&Br(c);break;case 4:r(c)&&Br(c)}}}function r(a){for(var u=a.t,c=a.k,l=Yn(c),d=l.length-1;d>=0;d--){var f=l[d];if(f!==lt){var p=u[f];if(p===void 0&&!qn(u,f))return!0;var y=c[f],v=y&&y[lt];if(v?v.t!==p:!iv(y,p))return!0}}var h=!!u[lt];return l.length!==Yn(u).length+(h?0:1)}function n(a){var u=a.k;if(u.length!==a.t.length)return!0;var c=Object.getOwnPropertyDescriptor(u,u.length-1);if(c&&!c.get)return!0;for(var l=0;l<u.length;l++)if(!u.hasOwnProperty(l))return!0;return!1}function o(a){a.g&&Pt(3,JSON.stringify(Lr(a)))}var i={};HR("ES5",{J:function(a,u){var c=Array.isArray(a),l=function(f,p){if(f){for(var y=Array(p.length),v=0;v<p.length;v++)Object.defineProperty(y,""+v,e(v,!0));return y}var h=mv(p);delete h[lt];for(var m=Yn(h),g=0;g<m.length;g++){var S=m[g];h[S]=e(S,f||!!h[S].enumerable)}return Object.create(Object.getPrototypeOf(p),h)}(c,a),d={i:c?5:4,A:u?u.A:ml(),P:!1,I:!1,R:{},l:u,t:a,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,lt,{value:d,writable:!0}),l},S:function(a,u,c){c?Fr(u)&&u[lt].A===a&&t(a.p):(a.u&&function l(d){if(d&&typeof d=="object"){var f=d[lt];if(f){var p=f.t,y=f.k,v=f.R,h=f.i;if(h===4)ln(y,function(x){x!==lt&&(p[x]!==void 0||qn(p,x)?v[x]||l(y[x]):(v[x]=!0,Br(f)))}),ln(p,function(x){y[x]!==void 0||qn(y,x)||(v[x]=!1,Br(f))});else if(h===5){if(n(f)&&(Br(f),v.length=!0),y.length<p.length)for(var m=y.length;m<p.length;m++)v[m]=!1;else for(var g=p.length;g<y.length;g++)v[g]=!0;for(var S=Math.min(y.length,p.length),E=0;E<S;E++)y.hasOwnProperty(E)||(v[E]=!0),v[E]===void 0&&l(y[E])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var cv,Hn,wl=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",XR=typeof Map<"u",JR=typeof Set<"u",dv=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",fv=wl?Symbol.for("immer-nothing"):((cv={})["immer-nothing"]=!0,cv),pv=wl?Symbol.for("immer-draftable"):"__$immer_draftable",lt=wl?Symbol.for("immer-state"):"__$immer_state",QR={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},ZR=""+Object.prototype.constructor,Yn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,mv=Object.getOwnPropertyDescriptors||function(e){var t={};return Yn(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},xl={},Vo={get:function(e,t){if(t===lt)return e;var r=Lr(e);if(!qn(r,t))return function(o,i,a){var u,c=uv(i,a);return c?"value"in c?c.value:(u=c.get)===null||u===void 0?void 0:u.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!xr(n)?n:n===gl(e.t,t)?(bl(e),e.o[t]=El(e.A.h,n,e)):n},has:function(e,t){return t in Lr(e)},ownKeys:function(e){return Reflect.ownKeys(Lr(e))},set:function(e,t,r){var n=uv(Lr(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=gl(Lr(e),t),i=o==null?void 0:o[lt];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(iv(r,o)&&(r!==void 0||qn(e.t,t)))return!0;bl(e),Br(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return gl(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,bl(e),Br(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Lr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Pt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Pt(12)}},Uo={};ln(Vo,function(e,t){Uo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Uo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Pt(13),Uo.set.call(this,e,t,void 0)},Uo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Pt(14),Vo.set.call(this,e[0],t,r,e[0])};var eN=function(){function e(r){var n=this;this.O=dv,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var c=n;return function(h){var m=this;h===void 0&&(h=u);for(var g=arguments.length,S=Array(g>1?g-1:0),E=1;E<g;E++)S[E-1]=arguments[E];return c.produce(h,function(x){var w;return(w=i).call.apply(w,[m,x].concat(S))})}}var l;if(typeof i!="function"&&Pt(6),a!==void 0&&typeof a!="function"&&Pt(7),xr(o)){var d=av(n),f=El(n,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?ha(d):vl(d)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(h){return hl(d,a),yl(h,d)},function(h){throw ha(d),h}):(hl(d,a),yl(l,d))}if(!o||typeof o!="object"){if((l=i(o))===void 0&&(l=o),l===fv&&(l=void 0),n.D&&fl(l,!0),a){var y=[],v=[];ir("Patches").M(o,l,y,v),a(y,v)}return l}Pt(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(l){for(var d=arguments.length,f=Array(d>1?d-1:0),p=1;p<d;p++)f[p-1]=arguments[p];return n.produceWithPatches(l,function(y){return o.apply(void 0,[y].concat(f))})};var a,u,c=n.produce(o,i,function(l,d){a=l,u=d});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,a,u]}):[c,a,u]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){xr(r)||Pt(8),Fr(r)&&(r=GR(r));var n=av(this),o=El(this,r,void 0);return o[lt].C=!0,vl(n),o},t.finishDraft=function(r,n){var o=r&&r[lt];process.env.NODE_ENV!=="production"&&(o&&o.C||Pt(9),o.I&&Pt(10));var i=o.A;return hl(i,n),yl(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!dv&&Pt(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=ir("Patches").$;return Fr(r)?a(r,n):this.produce(r,function(u){return a(u,n)})},e}(),Bt=new eN,hv=Bt.produce;Bt.produceWithPatches.bind(Bt),Bt.setAutoFreeze.bind(Bt),Bt.setUseProxies.bind(Bt),Bt.applyPatches.bind(Bt),Bt.createDraft.bind(Bt),Bt.finishDraft.bind(Bt);function Sr(e){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function tN(e,t){if(Sr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vv(e){var t=tN(e,"string");return Sr(t)==="symbol"?t:String(t)}function ae(e,t,r){return t=vv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function gv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yv(Object(r),!0).forEach(function(n){ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function At(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var bv=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Sl=function(){return Math.random().toString(36).substring(7).split("").join(".")},cn={INIT:"@@redux/INIT"+Sl(),REPLACE:"@@redux/REPLACE"+Sl(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Sl()}};function Ev(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function rN(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(iN(e))return"date";if(oN(e))return"error";var r=nN(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function nN(e){return typeof e.constructor=="function"?e.constructor.name:null}function oN(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function iN(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function dn(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=rN(e)),t}function wv(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?At(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?At(1):"Expected the enhancer to be a function. Instead, received: '"+dn(r)+"'");return r(wv)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?At(2):"Expected the root reducer to be a function. Instead, received: '"+dn(e)+"'");var o=e,i=t,a=[],u=a,c=!1;function l(){u===a&&(u=a.slice())}function d(){if(c)throw new Error(process.env.NODE_ENV==="production"?At(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?At(4):"Expected the listener to be a function. Instead, received: '"+dn(h)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?At(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var m=!0;return l(),u.push(h),function(){if(m){if(c)throw new Error(process.env.NODE_ENV==="production"?At(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");m=!1,l();var S=u.indexOf(h);u.splice(S,1),a=null}}}function p(h){if(!Ev(h))throw new Error(process.env.NODE_ENV==="production"?At(7):"Actions must be plain objects. Instead, the actual type was: '"+dn(h)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof h.type>"u")throw new Error(process.env.NODE_ENV==="production"?At(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?At(9):"Reducers may not dispatch actions.");try{c=!0,i=o(i,h)}finally{c=!1}for(var m=a=u,g=0;g<m.length;g++){var S=m[g];S()}return h}function y(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?At(10):"Expected the nextReducer to be a function. Instead, received: '"+dn(h));o=h,p({type:cn.REPLACE})}function v(){var h,m=f;return h={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?At(11):"Expected the observer to be an object. Instead, received: '"+dn(S)+"'");function E(){S.next&&S.next(d())}E();var x=m(E);return{unsubscribe:x}}},h[bv]=function(){return this},h}return p({type:cn.INIT}),n={dispatch:p,subscribe:f,getState:d,replaceReducer:y},n[bv]=v,n}function xv(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function aN(e,t,r,n){var o=Object.keys(t),i=r&&r.type===cn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Ev(e))return"The "+i+' has unexpected type of "'+dn(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var a=Object.keys(e).filter(function(u){return!t.hasOwnProperty(u)&&!n[u]});if(a.forEach(function(u){n[u]=!0}),!(r&&r.type===cn.REPLACE)&&a.length>0)return"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function sN(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:cn.INIT});if(typeof n>"u")throw new Error(process.env.NODE_ENV==="production"?At(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:cn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?At(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+cn.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function uN(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];process.env.NODE_ENV!=="production"&&typeof e[o]>"u"&&xv('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(r[o]=e[o])}var i=Object.keys(r),a;process.env.NODE_ENV!=="production"&&(a={});var u;try{sN(r)}catch(c){u=c}return function(l,d){if(l===void 0&&(l={}),u)throw u;if(process.env.NODE_ENV!=="production"){var f=aN(l,r,d,a);f&&xv(f)}for(var p=!1,y={},v=0;v<i.length;v++){var h=i[v],m=r[h],g=l[h],S=m(g,d);if(typeof S>"u"){var E=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?At(14):"When called with an action of type "+(E?'"'+String(E)+'"':"(unknown type)")+', the slice reducer for key "'+h+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}y[h]=S,p=p||S!==g}return p=p||i.length!==Object.keys(l).length,p?y:l}}function ga(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,o){return function(){return n(o.apply(void 0,arguments))}})}function lN(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var o=n.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?At(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},u=t.map(function(c){return c(a)});return i=ga.apply(void 0,u)(o.dispatch),gv(gv({},o),{},{dispatch:i})}}}function Sv(e){var t=function(n){var o=n.dispatch,i=n.getState;return function(a){return function(u){return typeof u=="function"?u(o,i,e):a(u)}}};return t}var Tv=Sv();Tv.withExtraArgument=Sv;const Ov=Tv;var Cv=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),cN=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(l){return function(d){return c([l,d])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(d){l=[6,d],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Gn=globalThis&&globalThis.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},dN=Object.defineProperty,fN=Object.defineProperties,pN=Object.getOwnPropertyDescriptors,Pv=Object.getOwnPropertySymbols,mN=Object.prototype.hasOwnProperty,hN=Object.prototype.propertyIsEnumerable,Rv=function(e,t,r){return t in e?dN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Vr=function(e,t){for(var r in t||(t={}))mN.call(t,r)&&Rv(e,r,t[r]);if(Pv)for(var n=0,o=Pv(t);n<o.length;n++){var r=o[n];hN.call(t,r)&&Rv(e,r,t[r])}return e},Tl=function(e,t){return fN(e,pN(t))},vN=function(e,t,r){return new Promise(function(n,o){var i=function(c){try{u(r.next(c))}catch(l){o(l)}},a=function(c){try{u(r.throw(c))}catch(l){o(l)}},u=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(i,a)};u((r=r.apply(e,t)).next())})},yN=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ga:ga.apply(null,arguments)};function Nv(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function _v(e,t){var r=0;return{measureTime:function(n){var o=Date.now();try{return n()}finally{var i=Date.now();r+=i-o}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms.
|
|
297
|
+
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
298
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var gN=function(e){Cv(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Gn([void 0],r[0].concat(this)))):new(t.bind.apply(t,Gn([void 0],r.concat(this))))},t}(Array),bN=function(e){Cv(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Gn([void 0],r[0].concat(this)))):new(t.bind.apply(t,Gn([void 0],r.concat(this))))},t}(Array);function Ol(e){return xr(e)?hv(e,function(){}):e}var EN=process.env.NODE_ENV==="production",$v="Invariant failed";function Mv(e,t){if(!e)throw EN?new Error($v):new Error($v+": "+(t||""))}function wN(e,t,r,n){return JSON.stringify(e,xN(t,n),r)}function xN(e,t){var r=[],n=[];return t||(t=function(o,i){return r[0]===i?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(i)).join(".")+"]"}),function(o,i){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,o):n.push(o),~r.indexOf(i)&&(i=t.call(this,o,i))}else r.push(i);return e==null?i:e.call(this,o,i)}}function SN(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function TN(e,t,r){var n=kv(e,t,r);return{detectMutations:function(){return Dv(e,t,n,r)}}}function kv(e,t,r,n){t===void 0&&(t=[]),n===void 0&&(n="");var o={value:r};if(!e(r)){o.children={};for(var i in r){var a=n?n+"."+i:i;t.length&&t.indexOf(a)!==-1||(o.children[i]=kv(e,t,r[i],a))}}return o}function Dv(e,t,r,n,o,i){t===void 0&&(t=[]),o===void 0&&(o=!1),i===void 0&&(i="");var a=r?r.value:void 0,u=a===n;if(o&&!u&&!Number.isNaN(n))return{wasMutated:!0,path:i};if(e(a)||e(n))return{wasMutated:!1};var c={};for(var l in r.children)c[l]=!0;for(var l in n)c[l]=!0;var d=t.length>0,f=function(y){var v=i?i+"."+y:y;if(d){var h=t.some(function(g){return g instanceof RegExp?g.test(v):v===g});if(h)return"continue"}var m=Dv(e,t,r.children[y],n[y],u,v);if(m.wasMutated)return{value:m}};for(var l in c){var p=f(l);if(typeof p=="object")return p.value}return{wasMutated:!1}}function ON(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(c){return function(l){return c(l)}}};var t=e.isImmutable,r=t===void 0?SN:t,n=e.ignoredPaths,o=e.warnAfter,i=o===void 0?32:o,a=e.ignore;n=n||a;var u=TN.bind(null,r,n);return function(c){var l=c.getState,d=l(),f=u(d),p;return function(y){return function(v){var h=_v(i,"ImmutableStateInvariantMiddleware");h.measureTime(function(){d=l(),p=f.detectMutations(),f=u(d),Mv(!p.wasMutated,"A state mutation was detected between dispatches, in the path '"+(p.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var m=y(v);return h.measureTime(function(){d=l(),p=f.detectMutations(),f=u(d),p.wasMutated&&Mv(!p.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(p.path||"")+". Take a look at the reducer(s) handling the action "+wN(v)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),h.warnIfExceeded(),m}}}}function Av(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Nv(e)}function Cl(e,t,r,n,o,i){t===void 0&&(t=""),r===void 0&&(r=Av),o===void 0&&(o=[]);var a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||i!=null&&i.has(e))return!1;for(var u=n!=null?n(e):Object.entries(e),c=o.length>0,l=function(m,g){var S=t?t+"."+m:m;if(c){var E=o.some(function(x){return x instanceof RegExp?x.test(S):S===x});if(E)return"continue"}if(!r(g))return{value:{keyPath:S,value:g}};if(typeof g=="object"&&(a=Cl(g,S,r,n,o,i),a))return{value:a}},d=0,f=u;d<f.length;d++){var p=f[d],y=p[0],v=p[1],h=l(y,v);if(typeof h=="object")return h.value}return i&&Iv(e)&&i.add(e),!1}function Iv(e){if(!Object.isFrozen(e))return!1;for(var t=0,r=Object.values(e);t<r.length;t++){var n=r[t];if(!(typeof n!="object"||n===null)&&!Iv(n))return!1}return!0}function CN(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(E){return function(x){return E(x)}}};var t=e.isSerializable,r=t===void 0?Av:t,n=e.getEntries,o=e.ignoredActions,i=o===void 0?[]:o,a=e.ignoredActionPaths,u=a===void 0?["meta.arg","meta.baseQueryMeta"]:a,c=e.ignoredPaths,l=c===void 0?[]:c,d=e.warnAfter,f=d===void 0?32:d,p=e.ignoreState,y=p===void 0?!1:p,v=e.ignoreActions,h=v===void 0?!1:v,m=e.disableCache,g=m===void 0?!1:m,S=!g&&WeakSet?new WeakSet:void 0;return function(E){return function(x){return function(w){var P=x(w),_=_v(f,"SerializableStateInvariantMiddleware");return!h&&!(i.length&&i.indexOf(w.type)!==-1)&&_.measureTime(function(){var k=Cl(w,"",r,n,u,S);if(k){var A=k.keyPath,L=k.value;console.error("A non-serializable value was detected in an action, in the path: `"+A+"`. Value:",L,`
|
|
299
|
+
Take a look at the logic that dispatched this action: `,w,`
|
|
300
|
+
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
301
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),y||(_.measureTime(function(){var k=E.getState(),A=Cl(k,"",r,n,l,S);if(A){var L=A.keyPath,Y=A.value;console.error("A non-serializable value was detected in the state, in the path: `"+L+"`. Value:",Y,`
|
|
302
|
+
Take a look at the reducer(s) handling this action type: `+w.type+`.
|
|
303
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),_.warnIfExceeded()),P}}}}function Pl(e){return typeof e=="boolean"}function PN(){return function(t){return RN(t)}}function RN(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,o=n===void 0?!0:n,i=e.serializableCheck,a=i===void 0?!0:i,u=new gN;if(r&&(Pl(r)?u.push(Ov):u.push(Ov.withExtraArgument(r.extraArgument))),process.env.NODE_ENV!=="production"){if(o){var c={};Pl(o)||(c=o),u.unshift(ON(c))}if(a){var l={};Pl(a)||(l=a),u.push(CN(l))}}return u}var Rl=process.env.NODE_ENV==="production";function NN(e){var t=PN(),r=e||{},n=r.reducer,o=n===void 0?void 0:n,i=r.middleware,a=i===void 0?t():i,u=r.devTools,c=u===void 0?!0:u,l=r.preloadedState,d=l===void 0?void 0:l,f=r.enhancers,p=f===void 0?void 0:f,y;if(typeof o=="function")y=o;else if(Nv(o))y=uN(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=a;if(typeof v=="function"&&(v=v(t),!Rl&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Rl&&v.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var h=lN.apply(void 0,v),m=ga;c&&(m=yN(Vr({trace:!Rl},typeof c=="object"&&c)));var g=new bN(h),S=g;Array.isArray(p)?S=Gn([h],p):typeof p=="function"&&(S=p(g));var E=m.apply(void 0,S);return wv(y,d,E)}function Ur(e,t){function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Vr(Vr({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function jv(e){var t={},r=[],n,o={addCase:function(i,a){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var u=typeof i=="string"?i:i.type;if(u in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[u]=a,o},addMatcher:function(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:i,reducer:a}),o},addDefaultCase:function(i){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addDefaultCase` can only be called once");return n=i,o}};return e(o),[t,r,n]}function _N(e){return typeof e=="function"}var Fv=!1;function $N(e,t,r,n){r===void 0&&(r=[]),process.env.NODE_ENV!=="production"&&typeof t=="object"&&(Fv||(Fv=!0,console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer")));var o=typeof t=="function"?jv(t):[t,r,n],i=o[0],a=o[1],u=o[2],c;if(_N(e))c=function(){return Ol(e())};else{var l=Ol(e);c=function(){return l}}function d(f,p){f===void 0&&(f=c());var y=Gn([i[p.type]],a.filter(function(v){var h=v.matcher;return h(p)}).map(function(v){var h=v.reducer;return h}));return y.filter(function(v){return!!v}).length===0&&(y=[u]),y.reduce(function(v,h){if(h)if(Fr(v)){var m=v,g=h(m,p);return g===void 0?v:g}else{if(xr(v))return hv(v,function(S){return h(S,p)});var g=h(v,p);if(g===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}return v},f)}return d.getInitialState=c,d}var Lv=!1;function MN(e,t){return e+"/"+t}function ba(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&e.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var r=typeof e.initialState=="function"?e.initialState:Ol(e.initialState),n=e.reducers||{},o=Object.keys(n),i={},a={},u={};o.forEach(function(d){var f=n[d],p=MN(t,d),y,v;"reducer"in f?(y=f.reducer,v=f.prepare):y=f,i[d]=y,a[p]=y,u[d]=v?Ur(p,v):Ur(p)});function c(){process.env.NODE_ENV!=="production"&&typeof e.extraReducers=="object"&&(Lv||(Lv=!0,console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice")));var d=typeof e.extraReducers=="function"?jv(e.extraReducers):[e.extraReducers],f=d[0],p=f===void 0?{}:f,y=d[1],v=y===void 0?[]:y,h=d[2],m=h===void 0?void 0:h,g=Vr(Vr({},p),a);return $N(r,function(S){for(var E in g)S.addCase(E,g[E]);for(var x=0,w=v;x<w.length;x++){var P=w[x];S.addMatcher(P.matcher,P.reducer)}m&&S.addDefaultCase(m)})}var l;return{name:t,reducer:function(d,f){return l||(l=c()),l(d,f)},actions:u,caseReducers:i,getInitialState:function(){return l||(l=c()),l.getInitialState()}}}var kN="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",DN=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=kN[Math.random()*64|0];return t},AN=["name","message","stack","code"],Nl=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Bv=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),IN=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=AN;r<n.length;r++){var o=n[r];typeof e[o]=="string"&&(t[o]=e[o])}return t}return{message:String(e)}},_l=function(){function e(t,r,n){var o=Ur(t+"/fulfilled",function(d,f,p,y){return{payload:d,meta:Tl(Vr({},y||{}),{arg:p,requestId:f,requestStatus:"fulfilled"})}}),i=Ur(t+"/pending",function(d,f,p){return{payload:void 0,meta:Tl(Vr({},p||{}),{arg:f,requestId:d,requestStatus:"pending"})}}),a=Ur(t+"/rejected",function(d,f,p,y,v){return{payload:y,error:(n&&n.serializeError||IN)(d||"Rejected"),meta:Tl(Vr({},v||{}),{arg:p,requestId:f,rejectedWithValue:!!y,requestStatus:"rejected",aborted:(d==null?void 0:d.name)==="AbortError",condition:(d==null?void 0:d.name)==="ConditionError"})}}),u=!1,c=typeof AbortController<"u"?AbortController:function(){function d(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return d.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(u||(u=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},d}();function l(d){return function(f,p,y){var v=n!=null&&n.idGenerator?n.idGenerator(d):DN(),h=new c,m;function g(E){m=E,h.abort()}var S=function(){return vN(this,null,function(){var E,x,w,P,_,k,A;return cN(this,function(L){switch(L.label){case 0:return L.trys.push([0,4,,5]),P=(E=n==null?void 0:n.condition)==null?void 0:E.call(n,d,{getState:p,extra:y}),FN(P)?[4,P]:[3,2];case 1:P=L.sent(),L.label=2;case 2:if(P===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=new Promise(function(Y,te){return h.signal.addEventListener("abort",function(){return te({name:"AbortError",message:m||"Aborted"})})}),f(i(v,d,(x=n==null?void 0:n.getPendingMeta)==null?void 0:x.call(n,{requestId:v,arg:d},{getState:p,extra:y}))),[4,Promise.race([_,Promise.resolve(r(d,{dispatch:f,getState:p,extra:y,requestId:v,signal:h.signal,abort:g,rejectWithValue:function(Y,te){return new Nl(Y,te)},fulfillWithValue:function(Y,te){return new Bv(Y,te)}})).then(function(Y){if(Y instanceof Nl)throw Y;return Y instanceof Bv?o(Y.payload,v,d,Y.meta):o(Y,v,d)})])];case 3:return w=L.sent(),[3,5];case 4:return k=L.sent(),w=k instanceof Nl?a(null,v,d,k.payload,k.meta):a(k,v,d),[3,5];case 5:return A=n&&!n.dispatchConditionRejection&&a.match(w)&&w.meta.condition,A||f(w),[2,w]}})})}();return Object.assign(S,{abort:g,requestId:v,arg:d,unwrap:function(){return S.then(jN)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:o,typePrefix:t})}return e.withTypes=function(){return e},e}();function jN(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function FN(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var $l="listenerMiddleware";Ur($l+"/add"),Ur($l+"/removeAll"),Ur($l+"/remove");var Vv;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis),KR();const Uv=ba({name:"ui",initialState:{tema:"light",temaSeleccionado:!1,idioma:"es"},reducers:{cambiarTema:(e,t)=>{e.tema=t.payload,e.temaSeleccionado=!0,localStorage.setItem("tema",t.payload)},cambiarIdioma:(e,t)=>{e.idioma=t.payload}}}),{cambiarTema:LN,cambiarIdioma:BN}=Uv.actions,VN=Uv.reducer;function Wv(e,t){return function(){return e.apply(t,arguments)}}const{toString:UN}=Object.prototype,{getPrototypeOf:Ml}=Object,Ea=(e=>t=>{const r=UN.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ar=e=>(e=e.toLowerCase(),t=>Ea(t)===e),wa=e=>t=>typeof t===e,{isArray:Kn}=Array,Wo=wa("undefined");function WN(e){return e!==null&&!Wo(e)&&e.constructor!==null&&!Wo(e.constructor)&&Ht(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zv=ar("ArrayBuffer");function zN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zv(e.buffer),t}const qN=wa("string"),Ht=wa("function"),qv=wa("number"),xa=e=>e!==null&&typeof e=="object",HN=e=>e===!0||e===!1,Sa=e=>{if(Ea(e)!=="object")return!1;const t=Ml(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},YN=ar("Date"),GN=ar("File"),KN=ar("Blob"),XN=ar("FileList"),JN=e=>xa(e)&&Ht(e.pipe),QN=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ht(e.append)&&((t=Ea(e))==="formdata"||t==="object"&&Ht(e.toString)&&e.toString()==="[object FormData]"))},ZN=ar("URLSearchParams"),e_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Kn(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let u;for(n=0;n<a;n++)u=i[n],t.call(null,e[u],u,e)}}function Hv(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Yv=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Gv=e=>!Wo(e)&&e!==Yv;function kl(){const{caseless:e}=Gv(this)&&this||{},t={},r=(n,o)=>{const i=e&&Hv(t,o)||o;Sa(t[i])&&Sa(n)?t[i]=kl(t[i],n):Sa(n)?t[i]=kl({},n):Kn(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&zo(arguments[n],r);return t}const t_=(e,t,r,{allOwnKeys:n}={})=>(zo(t,(o,i)=>{r&&Ht(o)?e[i]=Wv(o,r):e[i]=o},{allOwnKeys:n}),e),r_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),n_=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},o_=(e,t,r,n)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=r!==!1&&Ml(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},i_=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},a_=e=>{if(!e)return null;if(Kn(e))return e;let t=e.length;if(!qv(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},s_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ml(Uint8Array)),u_=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},l_=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},c_=ar("HTMLFormElement"),d_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Kv=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),f_=ar("RegExp"),Xv=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};zo(r,(o,i)=>{t(o,i,e)!==!1&&(n[i]=o)}),Object.defineProperties(e,n)},p_=e=>{Xv(e,(t,r)=>{if(Ht(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ht(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},m_=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Kn(e)?n(e):n(String(e).split(t)),r},h_=()=>{},v_=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Dl="abcdefghijklmnopqrstuvwxyz",Jv="0123456789",Qv={DIGIT:Jv,ALPHA:Dl,ALPHA_DIGIT:Dl+Dl.toUpperCase()+Jv},y_=(e=16,t=Qv.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function g_(e){return!!(e&&Ht(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const b_=e=>{const t=new Array(10),r=(n,o)=>{if(xa(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Kn(n)?[]:{};return zo(n,(a,u)=>{const c=r(a,o+1);!Wo(c)&&(i[u]=c)}),t[o]=void 0,i}}return n};return r(e,0)},E_=ar("AsyncFunction"),G={isArray:Kn,isArrayBuffer:zv,isBuffer:WN,isFormData:QN,isArrayBufferView:zN,isString:qN,isNumber:qv,isBoolean:HN,isObject:xa,isPlainObject:Sa,isUndefined:Wo,isDate:YN,isFile:GN,isBlob:KN,isRegExp:f_,isFunction:Ht,isStream:JN,isURLSearchParams:ZN,isTypedArray:s_,isFileList:XN,forEach:zo,merge:kl,extend:t_,trim:e_,stripBOM:r_,inherits:n_,toFlatObject:o_,kindOf:Ea,kindOfTest:ar,endsWith:i_,toArray:a_,forEachEntry:u_,matchAll:l_,isHTMLForm:c_,hasOwnProperty:Kv,hasOwnProp:Kv,reduceDescriptors:Xv,freezeMethods:p_,toObjectSet:m_,toCamelCase:d_,noop:h_,toFiniteNumber:v_,findKey:Hv,global:Yv,isContextDefined:Gv,ALPHABET:Qv,generateString:y_,isSpecCompliantForm:g_,toJSONObject:b_,isAsyncFn:E_,isThenable:e=>e&&(xa(e)||Ht(e))&&Ht(e.then)&&Ht(e.catch)};function Be(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}G.inherits(Be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Zv=Be.prototype,ey={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ey[e]={value:e}}),Object.defineProperties(Be,ey),Object.defineProperty(Zv,"isAxiosError",{value:!0}),Be.from=(e,t,r,n,o,i)=>{const a=Object.create(Zv);return G.toFlatObject(e,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),Be.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const w_=null;function Al(e){return G.isPlainObject(e)||G.isArray(e)}function ty(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function ry(e,t,r){return e?e.concat(t).map(function(o,i){return o=ty(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function x_(e){return G.isArray(e)&&!e.some(Al)}const S_=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Ta(e,t,r){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,m){return!G.isUndefined(m[h])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(G.isDate(v))return v.toISOString();if(!c&&G.isBlob(v))throw new Be("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(v)||G.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,h,m){let g=v;if(v&&!m&&typeof v=="object"){if(G.endsWith(h,"{}"))h=n?h:h.slice(0,-2),v=JSON.stringify(v);else if(G.isArray(v)&&x_(v)||(G.isFileList(v)||G.endsWith(h,"[]"))&&(g=G.toArray(v)))return h=ty(h),g.forEach(function(E,x){!(G.isUndefined(E)||E===null)&&t.append(a===!0?ry([h],x,i):a===null?h:h+"[]",l(E))}),!1}return Al(v)?!0:(t.append(ry(m,h,i),l(v)),!1)}const f=[],p=Object.assign(S_,{defaultVisitor:d,convertValue:l,isVisitable:Al});function y(v,h){if(!G.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+h.join("."));f.push(v),G.forEach(v,function(g,S){(!(G.isUndefined(g)||g===null)&&o.call(t,g,G.isString(S)?S.trim():S,h,p))===!0&&y(g,h?h.concat(S):[S])}),f.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ny(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Il(e,t){this._pairs=[],e&&Ta(e,this,t)}const oy=Il.prototype;oy.append=function(t,r){this._pairs.push([t,r])},oy.toString=function(t){const r=t?function(n){return t.call(this,n,ny)}:ny;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function T_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function iy(e,t,r){if(!t)return e;const n=r&&r.encode||T_,o=r&&r.serialize;let i;if(o?i=o(t,r):i=G.isURLSearchParams(t)?t.toString():new Il(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class O_{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ay=O_,sy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},C_=typeof URLSearchParams<"u"?URLSearchParams:Il,P_=typeof FormData<"u"?FormData:null,R_=typeof Blob<"u"?Blob:null,N_=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),__=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),sr={isBrowser:!0,classes:{URLSearchParams:C_,FormData:P_,Blob:R_},isStandardBrowserEnv:N_,isStandardBrowserWebWorkerEnv:__,protocols:["http","https","file","blob","url","data"]};function $_(e,t){return Ta(e,new sr.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return sr.isNode&&G.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function M_(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function k_(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function uy(e){function t(r,n,o,i){let a=r[i++];const u=Number.isFinite(+a),c=i>=r.length;return a=!a&&G.isArray(o)?o.length:a,c?(G.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!G.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&G.isArray(o[a])&&(o[a]=k_(o[a])),!u)}if(G.isFormData(e)&&G.isFunction(e.entries)){const r={};return G.forEachEntry(e,(n,o)=>{t(M_(n),o,r,0)}),r}return null}const D_={"Content-Type":void 0};function A_(e,t,r){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Oa={transitional:sy,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=G.isObject(t);if(i&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return o&&o?JSON.stringify(uy(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return $_(t,this.formSerializer).toString();if((u=G.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ta(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),A_(t)):t}],transformResponse:[function(t){const r=this.transitional||Oa.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&G.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?Be.from(u,Be.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sr.classes.FormData,Blob:sr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};G.forEach(["delete","get","head"],function(t){Oa.headers[t]={}}),G.forEach(["post","put","patch"],function(t){Oa.headers[t]=G.merge(D_)});const jl=Oa,I_=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),j_=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
304
|
+
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&I_[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ly=Symbol("internals");function qo(e){return e&&String(e).trim().toLowerCase()}function Ca(e){return e===!1||e==null?e:G.isArray(e)?e.map(Ca):String(e)}function F_(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const L_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fl(e,t,r,n,o){if(G.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!G.isString(t)){if(G.isString(n))return t.indexOf(n)!==-1;if(G.isRegExp(n))return n.test(t)}}function B_(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function V_(e,t){const r=G.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}class Pa{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,c,l){const d=qo(c);if(!d)throw new Error("header name must be a non-empty string");const f=G.findKey(o,d);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=Ca(u))}const a=(u,c)=>G.forEach(u,(l,d)=>i(l,d,c));return G.isPlainObject(t)||t instanceof this.constructor?a(t,r):G.isString(t)&&(t=t.trim())&&!L_(t)?a(j_(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=qo(t),t){const n=G.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return F_(o);if(G.isFunction(r))return r.call(this,o,n);if(G.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=qo(t),t){const n=G.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Fl(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=qo(a),a){const u=G.findKey(n,a);u&&(!r||Fl(n,n[u],u,r))&&(delete n[u],o=!0)}}return G.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Fl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return G.forEach(this,(o,i)=>{const a=G.findKey(n,i);if(a){r[a]=Ca(o),delete r[i];return}const u=t?B_(i):String(i).trim();u!==i&&delete r[i],r[u]=Ca(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return G.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&G.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
305
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[ly]=this[ly]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=qo(a);n[u]||(V_(o,a),n[u]=!0)}return G.isArray(t)?t.forEach(i):i(t),this}}Pa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.freezeMethods(Pa.prototype),G.freezeMethods(Pa);const Tr=Pa;function Ll(e,t){const r=this||jl,n=t||r,o=Tr.from(n.headers);let i=n.data;return G.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function cy(e){return!!(e&&e.__CANCEL__)}function Ho(e,t,r){Be.call(this,e??"canceled",Be.ERR_CANCELED,t,r),this.name="CanceledError"}G.inherits(Ho,Be,{__CANCEL__:!0});function U_(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Be("Request failed with status code "+r.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const W_=sr.isStandardBrowserEnv?function(){return{write:function(r,n,o,i,a,u){const c=[];c.push(r+"="+encodeURIComponent(n)),G.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),G.isString(i)&&c.push("path="+i),G.isString(a)&&c.push("domain="+a),u===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function z_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function q_(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function dy(e,t){return e&&!z_(t)?q_(e,t):t}const H_=sr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(a){const u=G.isString(a)?o(a):a;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}();function Y_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function G_(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),d=n[i];a||(a=l),r[o]=c,n[o]=l;let f=i,p=0;for(;f!==o;)p+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const y=d&&l-d;return y?Math.round(p*1e3/y):void 0}}function fy(e,t){let r=0;const n=G_(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,u=i-r,c=n(u),l=i<=a;r=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&l?(a-i)/c:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const Ra={http:w_,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){let o=e.data;const i=Tr.from(e.headers).normalize(),a=e.responseType;let u;function c(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}G.isFormData(o)&&(sr.isStandardBrowserEnv||sr.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+v))}const d=dy(e.baseURL,e.url);l.open(e.method.toUpperCase(),iy(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const y=Tr.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),h={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:y,config:e,request:l};U_(function(g){r(g),c()},function(g){n(g),c()},h),l=null}if("onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(f)},l.onabort=function(){l&&(n(new Be("Request aborted",Be.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new Be("Network Error",Be.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||sy;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),n(new Be(v,h.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,e,l)),l=null},sr.isStandardBrowserEnv){const y=(e.withCredentials||H_(d))&&e.xsrfCookieName&&W_.read(e.xsrfCookieName);y&&i.set(e.xsrfHeaderName,y)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&G.forEach(i.toJSON(),function(v,h){l.setRequestHeader(h,v)}),G.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",fy(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",fy(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{l&&(n(!y||y.type?new Ho(null,e,l):y),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const p=Y_(d);if(p&&sr.protocols.indexOf(p)===-1){n(new Be("Unsupported protocol "+p+":",Be.ERR_BAD_REQUEST,e));return}l.send(o||null)})}};G.forEach(Ra,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const K_={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=G.isString(r)?Ra[r.toLowerCase()]:r));o++);if(!n)throw n===!1?new Be(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(G.hasOwnProp(Ra,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!G.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:Ra};function Bl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ho(null,e)}function py(e){return Bl(e),e.headers=Tr.from(e.headers),e.data=Ll.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),K_.getAdapter(e.adapter||jl.adapter)(e).then(function(n){return Bl(e),n.data=Ll.call(e,e.transformResponse,n),n.headers=Tr.from(n.headers),n},function(n){return cy(n)||(Bl(e),n&&n.response&&(n.response.data=Ll.call(e,e.transformResponse,n.response),n.response.headers=Tr.from(n.response.headers))),Promise.reject(n)})}const my=e=>e instanceof Tr?e.toJSON():e;function Xn(e,t){t=t||{};const r={};function n(l,d,f){return G.isPlainObject(l)&&G.isPlainObject(d)?G.merge.call({caseless:f},l,d):G.isPlainObject(d)?G.merge({},d):G.isArray(d)?d.slice():d}function o(l,d,f){if(G.isUndefined(d)){if(!G.isUndefined(l))return n(void 0,l,f)}else return n(l,d,f)}function i(l,d){if(!G.isUndefined(d))return n(void 0,d)}function a(l,d){if(G.isUndefined(d)){if(!G.isUndefined(l))return n(void 0,l)}else return n(void 0,d)}function u(l,d,f){if(f in t)return n(l,d);if(f in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(l,d)=>o(my(l),my(d),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=c[d]||o,p=f(e[d],t[d],d);G.isUndefined(p)&&f!==u||(r[d]=p)}),r}const hy="1.4.0",Vl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vl[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const vy={};Vl.transitional=function(t,r,n){function o(i,a){return"[Axios v"+hy+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new Be(o(a," has been removed"+(r?" in "+r:"")),Be.ERR_DEPRECATED);return r&&!vy[a]&&(vy[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,u):!0}};function X_(e,t,r){if(typeof e!="object")throw new Be("options must be an object",Be.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const u=e[i],c=u===void 0||a(u,i,e);if(c!==!0)throw new Be("option "+i+" must be "+c,Be.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Be("Unknown option "+i,Be.ERR_BAD_OPTION)}}const Ul={assertOptions:X_,validators:Vl},Wr=Ul.validators;class Na{constructor(t){this.defaults=t,this.interceptors={request:new ay,response:new ay}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Xn(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Ul.assertOptions(n,{silentJSONParsing:Wr.transitional(Wr.boolean),forcedJSONParsing:Wr.transitional(Wr.boolean),clarifyTimeoutError:Wr.transitional(Wr.boolean)},!1),o!=null&&(G.isFunction(o)?r.paramsSerializer={serialize:o}:Ul.assertOptions(o,{encode:Wr.function,serialize:Wr.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a;a=i&&G.merge(i.common,i[r.method]),a&&G.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),r.headers=Tr.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(c=c&&h.synchronous,u.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let d,f=0,p;if(!c){const v=[py.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,l),p=v.length,d=Promise.resolve(r);f<p;)d=d.then(v[f++],v[f++]);return d}p=u.length;let y=r;for(f=0;f<p;){const v=u[f++],h=u[f++];try{y=v(y)}catch(m){h.call(this,m);break}}try{d=py.call(this,y)}catch(v){return Promise.reject(v)}for(f=0,p=l.length;f<p;)d=d.then(l[f++],l[f++]);return d}getUri(t){t=Xn(this.defaults,t);const r=dy(t.baseURL,t.url);return iy(r,t.params,t.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(t){Na.prototype[t]=function(r,n){return this.request(Xn(n||{},{method:t,url:r,data:(n||{}).data}))}}),G.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(Xn(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Na.prototype[t]=r(),Na.prototype[t+"Form"]=r(!0)});const _a=Na;class Wl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new Ho(i,a,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Wl(function(o){t=o}),cancel:t}}}const J_=Wl;function Q_(e){return function(r){return e.apply(null,r)}}function Z_(e){return G.isObject(e)&&e.isAxiosError===!0}const zl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(zl).forEach(([e,t])=>{zl[t]=e});const e$=zl;function yy(e){const t=new _a(e),r=Wv(_a.prototype.request,t);return G.extend(r,_a.prototype,t,{allOwnKeys:!0}),G.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return yy(Xn(e,o))},r}const Tt=yy(jl);Tt.Axios=_a,Tt.CanceledError=Ho,Tt.CancelToken=J_,Tt.isCancel=cy,Tt.VERSION=hy,Tt.toFormData=Ta,Tt.AxiosError=Be,Tt.Cancel=Tt.CanceledError,Tt.all=function(t){return Promise.all(t)},Tt.spread=Q_,Tt.isAxiosError=Z_,Tt.mergeConfig=Xn,Tt.AxiosHeaders=Tr,Tt.formToJSON=e=>uy(G.isHTMLForm(e)?new FormData(e):e),Tt.HttpStatusCode=e$,Tt.default=Tt;const ql=Tt,t$="https://saas.chimera.com.pe/backend",r$="https://saas.chimera.com.pe/oauth",gy=(e=r$)=>({login:(t,r)=>ql({url:`${e}/oauth/token`,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:`Basic ${t}`},method:"post",data:{username:r.correo,password:r.password,grant_type:"password"}}),refreshToken:(t,r)=>ql({url:`${e}/oauth/token`,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:`Basic ${t}`},method:"post",data:{refresh_token:r,grant_type:"refresh_token"}})});function Hl(e){this.message=e}Hl.prototype=new Error,Hl.prototype.name="InvalidCharacterError";var by=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Hl("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,o=0,i=0,a="";n=t.charAt(i++);~n&&(r=o%4?64*r+n:n,o++%4)?a+=String.fromCharCode(255&r>>(-2*o&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function n$(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(by(r).replace(/(.)/g,function(n,o){var i=o.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i}))}(t)}catch{return by(t)}}function $a(e){this.message=e}function o$(e,t){if(typeof e!="string")throw new $a("Invalid token specified");var r=(t=t||{}).header===!0?0:1;try{return JSON.parse(n$(e.split(".")[r]))}catch(n){throw new $a("Invalid token specified: "+n.message)}}$a.prototype=new Error,$a.prototype.name="InvalidTokenError";const Ey=ba({name:"login",initialState:{cargando:!1,autenticado:!1,token:null,refreshToken:null,expiracion:null,usuario:null,perfiles:[],error:null},reducers:{logout:e=>{e.cargando=!1,e.autenticado=!1,e.token=null,e.refreshToken=null,e.expiracion=null,e.usuario=null,e.perfiles=[],e.error=null}},extraReducers(e){e.addCase(Ma.pending,t=>{t.cargando=!0,t.error=null}).addCase(Ma.fulfilled,(t,r)=>{const n=r.payload.access_token,o=o$(n),i=new Date;i.setSeconds(i.getSeconds()+r.payload.expires_in),t.cargando=!1,t.autenticado=!0,t.token=n,t.refreshToken=r.payload.refresh_token,t.expiracion=i.getTime(),t.usuario=o.name,t.perfiles=o.authorities}).addCase(Ma.rejected,(t,r)=>{var n;console.log(r),t.cargando=!1,t.autenticado=!1,t.token=null,t.refreshToken=null,t.expiracion=null,t.usuario=null,t.perfiles=[],t.error=(n=r.error)==null?void 0:n.message}).addCase(ka.pending,t=>{t.cargando=!0}).addCase(ka.fulfilled,(t,r)=>{const n=new Date;n.setSeconds(n.getSeconds()+r.payload.expires_in),t.token=r.payload.access_token,t.refreshToken=r.payload.refresh_token,t.expiracion=n.getTime()}).addCase(ka.rejected,(t,r)=>{var n;t.cargando=!1,t.autenticado=!1,t.token=null,t.refreshToken=null,t.expiracion=null,t.usuario=null,t.perfiles=[],t.error=(n=r.error)==null?void 0:n.message})}}),Ma=_l("login/requestToken",async e=>(await gy(e.devURL).login(e.clientCredentials,e.data)).data),ka=_l("login/refreshToken",async(e,t,r)=>(await gy(e).refreshToken(t,r)).data),{logout:wy}=Ey.actions,i$=Ey.reducer,xy=ba({name:"notificacion",initialState:[],reducers:{mostrarNotificacion:(e,t)=>{e.push(t.payload)},ocultarNotificacion:e=>{e.pop()}}}),{mostrarNotificacion:a$,ocultarNotificacion:s$}=xy.actions,u$=xy.reducer,l$=(e=t$,t)=>ql({url:`${e}/identidad/`,params:{codigoAplicacion:t}}),Yl={primary:"#1C6CCC",secondary:"#17A7FF",error:"#f44336",warning:"#ff9800",info:"#2196f3",success:"#4caf50"},c$=ba({name:"inicializar",initialState:{inicializando:!0,inicializado:!1,instancia:{color:Yl},error:null},extraReducers(e){e.addCase(Da.pending,t=>{t.inicializando=!0}).addCase(Da.fulfilled,(t,r)=>{t.inicializando=!1,t.inicializado=!0,t.instancia={...r.payload,abreviatura:r.payload.nombre.match(/\b([A-Z])/g).join(""),color:{...Yl,...r.payload.color}},t.error=null}).addCase(Da.rejected,(t,r)=>{t.inicializando=!1,t.inicializado=!1,t.instancia={color:Yl},t.error=r.payload})}}),Da=_l("inicializar",async e=>(await l$(e.devURL,e.aplicacion)).data),d$=c$.reducer,f$=e=>NN({reducer:{ui:VN,aplicacion:d$,login:i$,notificaciones:u$,...e}}),p$=()=>{const[e,t]=pe.useState(!1),r=un(),n=jn.useTranslate(),o=or(a=>a.notificaciones[0]);pe.useEffect(()=>{t(!!o)},[o]);const i=()=>{t(!1),r(s$())};return N.jsx(F1,{open:e,message:o&&o.mensaje&&o.tipo==="default"&&n(o.mensaje),autoHideDuration:5e3,onClose:i,children:o&&o.mensaje&&o.tipo!=="default"&&N.jsx(Gf,{severity:o.tipo,children:n(o.mensaje)})})};function Or(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}function ur(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var u=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[c]||e.values[u]}var l=e.argumentCallback?e.argumentCallback(t):t;return o[l]}}function lr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?h$(u,function(f){return f.test(a)}):m$(u,function(f){return f.test(a)}),l;l=e.valueCallback?e.valueCallback(c):c,l=r.valueCallback?r.valueCallback(l):l;var d=t.slice(a.length);return{value:l,rest:d}}}function m$(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function h$(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Sy(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;var u=t.slice(o.length);return{value:a,rest:u}}}function tt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function oe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function ie(e){oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Sr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Gl(e,t){oe(2,arguments);var r=ie(e),n=tt(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Aa(e,t){oe(2,arguments);var r=ie(e),n=tt(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var o=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function Ia(e,t){oe(2,arguments);var r=ie(e).getTime(),n=tt(t);return new Date(r+n)}var v$=36e5;function y$(e,t){oe(2,arguments);var r=tt(t);return Ia(e,r*v$)}var g$={};function zr(){return g$}function Kl(e,t){var r,n,o,i,a,u,c,l;oe(1,arguments);var d=zr(),f=tt((r=(n=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ie(e),y=p.getDay(),v=(y<f?7:0)+y-f;return p.setDate(p.getDate()-v),p.setHours(0,0,0,0),p}function ja(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Jn(e){oe(1,arguments);var t=ie(e);return t.setHours(0,0,0,0),t}var b$=864e5;function E$(e,t){oe(2,arguments);var r=Jn(e),n=Jn(t),o=r.getTime()-ja(r),i=n.getTime()-ja(n);return Math.round((o-i)/b$)}var w$=6e4;function x$(e,t){oe(2,arguments);var r=tt(t);return Ia(e,r*w$)}function S$(e,t){oe(2,arguments);var r=tt(t);return Ia(e,r*1e3)}function T$(e,t){oe(2,arguments);var r=tt(t),n=r*7;return Gl(e,n)}function Ty(e,t){oe(2,arguments);var r=tt(t);return Aa(e,r*12)}function Yo(e,t){oe(2,arguments);var r=ie(e),n=ie(t),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}var Fa=6e4,La=36e5,O$=1e3;function C$(e,t){oe(2,arguments);var r=Jn(e),n=Jn(t);return r.getTime()===n.getTime()}function P$(e){return oe(1,arguments),e instanceof Date||Sr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Oy(e){if(oe(1,arguments),!P$(e)&&typeof e!="number")return!1;var t=ie(e);return!isNaN(Number(t))}function R$(e,t){oe(2,arguments);var r=ie(e),n=ie(t),o=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return o*12+i}function N$(e,t){oe(2,arguments);var r=ie(e),n=ie(t);return r.getFullYear()-n.getFullYear()}function Cy(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function Py(e,t){oe(2,arguments);var r=ie(e),n=ie(t),o=Cy(r,n),i=Math.abs(E$(r,n));r.setDate(r.getDate()-o*i);var a=+(Cy(r,n)===-o),u=o*(i-a);return u===0?0:u}function Ba(e,t){return oe(2,arguments),ie(e).getTime()-ie(t).getTime()}var Ry={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},_$="trunc";function Go(e){return e?Ry[e]:Ry[_$]}function $$(e,t,r){oe(2,arguments);var n=Ba(e,t)/La;return Go(r==null?void 0:r.roundingMethod)(n)}function M$(e,t,r){oe(2,arguments);var n=Ba(e,t)/Fa;return Go(r==null?void 0:r.roundingMethod)(n)}function Xl(e){oe(1,arguments);var t=ie(e);return t.setHours(23,59,59,999),t}function Jl(e){oe(1,arguments);var t=ie(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function k$(e){oe(1,arguments);var t=ie(e);return Xl(t).getTime()===Jl(t).getTime()}function Ny(e,t){oe(2,arguments);var r=ie(e),n=ie(t),o=Yo(r,n),i=Math.abs(R$(r,n)),a;if(i<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*i);var u=Yo(r,n)===-o;k$(ie(e))&&i===1&&Yo(e,n)===1&&(u=!1),a=o*(i-Number(u))}return a===0?0:a}function D$(e,t,r){oe(2,arguments);var n=Ny(e,t)/3;return Go(r==null?void 0:r.roundingMethod)(n)}function A$(e,t,r){oe(2,arguments);var n=Ba(e,t)/1e3;return Go(r==null?void 0:r.roundingMethod)(n)}function I$(e,t,r){oe(2,arguments);var n=Py(e,t)/7;return Go(r==null?void 0:r.roundingMethod)(n)}function j$(e,t){oe(2,arguments);var r=ie(e),n=ie(t),o=Yo(r,n),i=Math.abs(N$(r,n));r.setFullYear(1584),n.setFullYear(1584);var a=Yo(r,n)===-o,u=o*(i-Number(a));return u===0?0:u}function F$(e,t){var r;oe(1,arguments);var n=e||{},o=ie(n.start),i=ie(n.end),a=i.getTime();if(!(o.getTime()<=a))throw new RangeError("Invalid interval");var u=[],c=o;c.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=a;)u.push(ie(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return u}function _y(e){oe(1,arguments);var t=ie(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ql(e){oe(1,arguments);var t=ie(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function Va(e){oe(1,arguments);var t=ie(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Zl(e,t){var r,n,o,i,a,u,c,l;oe(1,arguments);var d=zr(),f=tt((r=(n=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ie(e),y=p.getDay(),v=(y<f?-7:0)+6-(y-f);return p.setDate(p.getDate()+v),p.setHours(23,59,59,999),p}function $y(e,t){oe(2,arguments);var r=tt(t);return Ia(e,-r)}var L$=864e5;function B$(e){oe(1,arguments);var t=ie(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),o=r-n;return Math.floor(o/L$)+1}function Qn(e){oe(1,arguments);var t=1,r=ie(e),n=r.getUTCDay(),o=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-o),r.setUTCHours(0,0,0,0),r}function My(e){oe(1,arguments);var t=ie(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=Qn(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var a=Qn(i);return t.getTime()>=o.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function V$(e){oe(1,arguments);var t=My(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Qn(r);return n}var U$=6048e5;function ky(e){oe(1,arguments);var t=ie(e),r=Qn(t).getTime()-V$(t).getTime();return Math.round(r/U$)+1}function fn(e,t){var r,n,o,i,a,u,c,l;oe(1,arguments);var d=zr(),f=tt((r=(n=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ie(e),y=p.getUTCDay(),v=(y<f?7:0)+y-f;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}function ec(e,t){var r,n,o,i,a,u,c,l;oe(1,arguments);var d=ie(e),f=d.getUTCFullYear(),p=zr(),y=tt((r=(n=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:p.firstWeekContainsDate)!==null&&n!==void 0?n:(c=p.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(f+1,0,y),v.setUTCHours(0,0,0,0);var h=fn(v,t),m=new Date(0);m.setUTCFullYear(f,0,y),m.setUTCHours(0,0,0,0);var g=fn(m,t);return d.getTime()>=h.getTime()?f+1:d.getTime()>=g.getTime()?f:f-1}function W$(e,t){var r,n,o,i,a,u,c,l;oe(1,arguments);var d=zr(),f=tt((r=(n=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(u=a.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),p=ec(e,t),y=new Date(0);y.setUTCFullYear(p,0,f),y.setUTCHours(0,0,0,0);var v=fn(y,t);return v}var z$=6048e5;function Dy(e,t){oe(1,arguments);var r=ie(e),n=fn(r,t).getTime()-W$(r,t).getTime();return Math.round(n/z$)+1}function Ne(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var q$={y:function(t,r){var n=t.getUTCFullYear(),o=n>0?n:1-n;return Ne(r==="yy"?o%100:o,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Ne(n+1,2)},d:function(t,r){return Ne(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return Ne(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Ne(t.getUTCHours(),r.length)},m:function(t,r){return Ne(t.getUTCMinutes(),r.length)},s:function(t,r){return Ne(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,n-3));return Ne(i,r.length)}};const qr=q$;var Zn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},H$={G:function(t,r,n){var o=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return n.ordinalNumber(i,{unit:"year"})}return qr.y(t,r)},Y:function(t,r,n,o){var i=ec(t,o),a=i>0?i:1-i;if(r==="YY"){var u=a%100;return Ne(u,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):Ne(a,r.length)},R:function(t,r){var n=My(t);return Ne(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Ne(n,r.length)},Q:function(t,r,n){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(o);case"QQ":return Ne(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,r,n){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(o);case"qq":return Ne(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,r,n){var o=t.getUTCMonth();switch(r){case"M":case"MM":return qr.M(t,r);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(t,r,n){var o=t.getUTCMonth();switch(r){case"L":return String(o+1);case"LL":return Ne(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(t,r,n,o){var i=Dy(t,o);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):Ne(i,r.length)},I:function(t,r,n){var o=ky(t);return r==="Io"?n.ordinalNumber(o,{unit:"week"}):Ne(o,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):qr.d(t,r)},D:function(t,r,n){var o=B$(t);return r==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):Ne(o,r.length)},E:function(t,r,n){var o=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(t,r,n,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return Ne(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return Ne(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var o=t.getUTCDay(),i=o===0?7:o;switch(r){case"i":return String(i);case"ii":return Ne(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(t,r,n){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var o=t.getUTCHours(),i;switch(o===12?i=Zn.noon:o===0?i=Zn.midnight:i=o/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var o=t.getUTCHours(),i;switch(o>=17?i=Zn.evening:o>=12?i=Zn.afternoon:o>=4?i=Zn.morning:i=Zn.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return qr.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):qr.H(t,r)},K:function(t,r,n){var o=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(o,{unit:"hour"}):Ne(o,r.length)},k:function(t,r,n){var o=t.getUTCHours();return o===0&&(o=24),r==="ko"?n.ordinalNumber(o,{unit:"hour"}):Ne(o,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):qr.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):qr.s(t,r)},S:function(t,r){return qr.S(t,r)},X:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Iy(a);case"XXXX":case"XX":return pn(a);case"XXXXX":case"XXX":default:return pn(a,":")}},x:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"x":return Iy(a);case"xxxx":case"xx":return pn(a);case"xxxxx":case"xxx":default:return pn(a,":")}},O:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Ay(a,":");case"OOOO":default:return"GMT"+pn(a,":")}},z:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Ay(a,":");case"zzzz":default:return"GMT"+pn(a,":")}},t:function(t,r,n,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Ne(a,r.length)},T:function(t,r,n,o){var i=o._originalDate||t,a=i.getTime();return Ne(a,r.length)}};function Ay(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),i=n%60;if(i===0)return r+String(o);var a=t||"";return r+String(o)+a+Ne(i,2)}function Iy(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Ne(Math.abs(e)/60,2)}return pn(e,t)}function pn(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e),i=Ne(Math.floor(o/60),2),a=Ne(o%60,2);return n+i+r+a}const Y$=H$;var jy=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Fy=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},G$=function(t,r){var n=t.match(/(P+)(p+)?/)||[],o=n[1],i=n[2];if(!i)return jy(t,r);var a;switch(o){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",jy(o,r)).replace("{{time}}",Fy(i,r))},K$={p:Fy,P:G$};const tc=K$;var X$=["D","DD"],J$=["YY","YYYY"];function Ly(e){return X$.indexOf(e)!==-1}function By(e){return J$.indexOf(e)!==-1}function Ua(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Q$={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Z$=function(t,r,n){var o,i=Q$[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};const Vy=Z$;var eM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},tM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nM={date:Or({formats:eM,defaultWidth:"full"}),time:Or({formats:tM,defaultWidth:"full"}),dateTime:Or({formats:rM,defaultWidth:"full"})};const oM=nM;var iM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},aM=function(t,r,n,o){return iM[t]};const Uy=aM;var sM={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uM={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},cM={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},fM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pM=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},mM={ordinalNumber:pM,era:ur({values:sM,defaultWidth:"wide"}),quarter:ur({values:uM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ur({values:lM,defaultWidth:"wide"}),day:ur({values:cM,defaultWidth:"wide"}),dayPeriod:ur({values:dM,defaultWidth:"wide",formattingValues:fM,defaultFormattingWidth:"wide"})};const Wy=mM;var hM=/^(\d+)(th|st|nd|rd)?/i,vM=/\d+/i,yM={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gM={any:[/^b/i,/^(a|c)/i]},bM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},EM={any:[/1/i,/2/i,/3/i,/4/i]},wM={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},SM={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},TM={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},OM={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},CM={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},PM={ordinalNumber:Sy({matchPattern:hM,parsePattern:vM,valueCallback:function(t){return parseInt(t,10)}}),era:lr({matchPatterns:yM,defaultMatchWidth:"wide",parsePatterns:gM,defaultParseWidth:"any"}),quarter:lr({matchPatterns:bM,defaultMatchWidth:"wide",parsePatterns:EM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:lr({matchPatterns:wM,defaultMatchWidth:"wide",parsePatterns:xM,defaultParseWidth:"any"}),day:lr({matchPatterns:SM,defaultMatchWidth:"wide",parsePatterns:TM,defaultParseWidth:"any"}),dayPeriod:lr({matchPatterns:OM,defaultMatchWidth:"any",parsePatterns:CM,defaultParseWidth:"any"})};const zy=PM;var RM={code:"en-US",formatDistance:Vy,formatLong:oM,formatRelative:Uy,localize:Wy,match:zy,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Wa=RM;var NM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$M=/^'([^]*?)'?$/,MM=/''/g,kM=/[a-zA-Z]/;function DM(e,t,r){var n,o,i,a,u,c,l,d,f,p,y,v,h,m,g,S,E,x;oe(2,arguments);var w=String(t),P=zr(),_=(n=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:P.locale)!==null&&n!==void 0?n:Wa,k=tt((i=(a=(u=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(l=r.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:P.firstWeekContainsDate)!==null&&a!==void 0?a:(f=P.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=tt((y=(v=(h=(m=r==null?void 0:r.weekStartsOn)!==null&&m!==void 0?m:r==null||(g=r.locale)===null||g===void 0||(S=g.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:P.weekStartsOn)!==null&&v!==void 0?v:(E=P.locale)===null||E===void 0||(x=E.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&y!==void 0?y:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var L=ie(e);if(!Oy(L))throw new RangeError("Invalid time value");var Y=ja(L),te=$y(L,Y),ee={firstWeekContainsDate:k,weekStartsOn:A,locale:_,_originalDate:L},F=w.match(_M).map(function(B){var q=B[0];if(q==="p"||q==="P"){var Z=tc[q];return Z(B,_.formatLong)}return B}).join("").match(NM).map(function(B){if(B==="''")return"'";var q=B[0];if(q==="'")return AM(B);var Z=Y$[q];if(Z)return!(r!=null&&r.useAdditionalWeekYearTokens)&&By(B)&&Ua(B,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ly(B)&&Ua(B,t,String(e)),Z(te,B,_.localize,ee);if(q.match(kM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+q+"`");return B}).join("");return F}function AM(e){var t=e.match($M);return t?t[1].replace(MM,"'"):e}function IM(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function jM(e,t){var r,n;oe(1,arguments);var o=ie(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var i=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var u="",c="",l=i==="extended"?"-":"",d=i==="extended"?":":"";if(a!=="time"){var f=Ne(o.getDate(),2),p=Ne(o.getMonth()+1,2),y=Ne(o.getFullYear(),4);u="".concat(y).concat(l).concat(p).concat(l).concat(f)}if(a!=="date"){var v=o.getTimezoneOffset();if(v!==0){var h=Math.abs(v),m=Ne(Math.floor(h/60),2),g=Ne(h%60,2),S=v<0?"+":"-";c="".concat(S).concat(m,":").concat(g)}else c="Z";var E=Ne(o.getHours(),2),x=Ne(o.getMinutes(),2),w=Ne(o.getSeconds(),2),P=u===""?"":"T",_=[E,x,w].join(d);u="".concat(u).concat(P).concat(_).concat(c)}return u}function FM(e){oe(1,arguments);var t=ie(e),r=t.getDate();return r}function LM(e){oe(1,arguments);var t=ie(e),r=t.getDay();return r}function qy(e){oe(1,arguments);var t=ie(e),r=t.getFullYear(),n=t.getMonth(),o=new Date(0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function BM(e){oe(1,arguments);var t=ie(e),r=t.getHours();return r}function VM(e){oe(1,arguments);var t=ie(e),r=t.getMinutes();return r}function UM(e){oe(1,arguments);var t=ie(e),r=t.getMonth();return r}function WM(e){oe(1,arguments);var t=ie(e),r=t.getSeconds();return r}function zM(e){return oe(1,arguments),ie(e).getFullYear()}function rc(e,t){oe(2,arguments);var r=ie(e),n=ie(t);return r.getTime()>n.getTime()}function Ko(e,t){oe(2,arguments);var r=ie(e),n=ie(t);return r.getTime()<n.getTime()}function qM(e,t){oe(2,arguments);var r=ie(e),n=ie(t);return r.getTime()===n.getTime()}function Hy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HM(e,t){if(e){if(typeof e=="string")return Hy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hy(e,t)}}function Yy(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=HM(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
306
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,u;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return i=l.done,l},e:function(l){a=!0,u=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw u}}}}function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yi(e,t)}function za(e){return za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},za(e)}function YM(){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 GM(e,t){if(t&&(Sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return le(e)}function Ue(e){var t=YM();return function(){var n=za(e),o;if(t){var i=za(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return GM(this,o)}}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vv(n.key),n)}}function Ie(e,t,r){return t&&Gy(e.prototype,t),r&&Gy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var KM=10,Ky=function(){function e(){Ae(this,e),ae(this,"priority",void 0),ae(this,"subPriority",0)}return Ie(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),XM=function(e){Ve(r,e);var t=Ue(r);function r(n,o,i,a,u){var c;return Ae(this,r),c=t.call(this),c.value=n,c.validateValue=o,c.setValue=i,c.priority=a,u&&(c.subPriority=u),c}return Ie(r,[{key:"validate",value:function(o,i){return this.validateValue(o,this.value,i)}},{key:"set",value:function(o,i,a){return this.setValue(o,i,this.value,a)}}]),r}(Ky),JM=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",KM),ae(le(n),"subPriority",-1),n}return Ie(r,[{key:"set",value:function(o,i){if(i.timestampIsSet)return o;var a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}}]),r}(Ky),qe=function(){function e(){Ae(this,e),ae(this,"incompatibleTokens",void 0),ae(this,"priority",void 0),ae(this,"subPriority",void 0)}return Ie(e,[{key:"run",value:function(r,n,o,i){var a=this.parse(r,n,o,i);return a?{setter:new XM(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(r,n,o){return!0}}]),e}(),QM=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",140),ae(le(n),"incompatibleTokens",["R","u","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"G":case"GG":case"GGG":return a.era(o,{width:"abbreviated"})||a.era(o,{width:"narrow"});case"GGGGG":return a.era(o,{width:"narrow"});case"GGGG":default:return a.era(o,{width:"wide"})||a.era(o,{width:"abbreviated"})||a.era(o,{width:"narrow"})}}},{key:"set",value:function(o,i,a){return i.era=a,o.setUTCFullYear(a,0,1),o.setUTCHours(0,0,0,0),o}}]),r}(qe),gt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},cr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function bt(e,t){return e&&{value:t(e.value),rest:e.rest}}function dt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function dr(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,o=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(o*La+i*Fa+a*O$),rest:t.slice(r[0].length)}}function Xy(e){return dt(gt.anyDigitsSigned,e)}function vt(e,t){switch(e){case 1:return dt(gt.singleDigit,t);case 2:return dt(gt.twoDigits,t);case 3:return dt(gt.threeDigits,t);case 4:return dt(gt.fourDigits,t);default:return dt(new RegExp("^\\d{1,"+e+"}"),t)}}function qa(e,t){switch(e){case 1:return dt(gt.singleDigitSigned,t);case 2:return dt(gt.twoDigitsSigned,t);case 3:return dt(gt.threeDigitsSigned,t);case 4:return dt(gt.fourDigitsSigned,t);default:return dt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function nc(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Jy(e,t){var r=t>0,n=r?t:1-t,o;if(n<=50)o=e||100;else{var i=n+50,a=Math.floor(i/100)*100,u=e>=i%100;o=e+a-(u?100:0)}return r?o:1-o}function Qy(e){return e%400===0||e%4===0&&e%100!==0}var ZM=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",130),ae(le(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){var u=function(l){return{year:l,isTwoDigitYear:i==="yy"}};switch(i){case"y":return bt(vt(4,o),u);case"yo":return bt(a.ordinalNumber(o,{unit:"year"}),u);default:return bt(vt(i.length,o),u)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,a){var u=o.getUTCFullYear();if(a.isTwoDigitYear){var c=Jy(a.year,u);return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}var l=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}}]),r}(qe),ek=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",130),ae(le(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){var u=function(l){return{year:l,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return bt(vt(4,o),u);case"Yo":return bt(a.ordinalNumber(o,{unit:"year"}),u);default:return bt(vt(i.length,o),u)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,a,u){var c=ec(o,u);if(a.isTwoDigitYear){var l=Jy(a.year,c);return o.setUTCFullYear(l,0,u.firstWeekContainsDate),o.setUTCHours(0,0,0,0),fn(o,u)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,u.firstWeekContainsDate),o.setUTCHours(0,0,0,0),fn(o,u)}}]),r}(qe),tk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",130),ae(le(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i){return qa(i==="R"?4:i.length,o)}},{key:"set",value:function(o,i,a){var u=new Date(0);return u.setUTCFullYear(a,0,4),u.setUTCHours(0,0,0,0),Qn(u)}}]),r}(qe),rk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",130),ae(le(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i){return qa(i==="u"?4:i.length,o)}},{key:"set",value:function(o,i,a){return o.setUTCFullYear(a,0,1),o.setUTCHours(0,0,0,0),o}}]),r}(qe),nk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",120),ae(le(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"Q":case"QQ":return vt(i.length,o);case"Qo":return a.ordinalNumber(o,{unit:"quarter"});case"QQQ":return a.quarter(o,{width:"abbreviated",context:"formatting"})||a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(o,{width:"wide",context:"formatting"})||a.quarter(o,{width:"abbreviated",context:"formatting"})||a.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),r}(qe),ok=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",120),ae(le(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"q":case"qq":return vt(i.length,o);case"qo":return a.ordinalNumber(o,{unit:"quarter"});case"qqq":return a.quarter(o,{width:"abbreviated",context:"standalone"})||a.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(o,{width:"wide",context:"standalone"})||a.quarter(o,{width:"abbreviated",context:"standalone"})||a.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),r}(qe),ik=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),ae(le(n),"priority",110),n}return Ie(r,[{key:"parse",value:function(o,i,a){var u=function(l){return l-1};switch(i){case"M":return bt(dt(gt.month,o),u);case"MM":return bt(vt(2,o),u);case"Mo":return bt(a.ordinalNumber(o,{unit:"month"}),u);case"MMM":return a.month(o,{width:"abbreviated",context:"formatting"})||a.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(o,{width:"wide",context:"formatting"})||a.month(o,{width:"abbreviated",context:"formatting"})||a.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),r}(qe),ak=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",110),ae(le(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){var u=function(l){return l-1};switch(i){case"L":return bt(dt(gt.month,o),u);case"LL":return bt(vt(2,o),u);case"Lo":return bt(a.ordinalNumber(o,{unit:"month"}),u);case"LLL":return a.month(o,{width:"abbreviated",context:"standalone"})||a.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(o,{width:"wide",context:"standalone"})||a.month(o,{width:"abbreviated",context:"standalone"})||a.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),r}(qe);function sk(e,t,r){oe(2,arguments);var n=ie(e),o=tt(t),i=Dy(n,r)-o;return n.setUTCDate(n.getUTCDate()-i*7),n}var uk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",100),ae(le(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"w":return dt(gt.week,o);case"wo":return a.ordinalNumber(o,{unit:"week"});default:return vt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,a,u){return fn(sk(o,a,u),u)}}]),r}(qe);function lk(e,t){oe(2,arguments);var r=ie(e),n=tt(t),o=ky(r)-n;return r.setUTCDate(r.getUTCDate()-o*7),r}var ck=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",100),ae(le(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"I":return dt(gt.week,o);case"Io":return a.ordinalNumber(o,{unit:"week"});default:return vt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,a){return Qn(lk(o,a))}}]),r}(qe),dk=[31,28,31,30,31,30,31,31,30,31,30,31],fk=[31,29,31,30,31,30,31,31,30,31,30,31],pk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",90),ae(le(n),"subPriority",1),ae(le(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"d":return dt(gt.date,o);case"do":return a.ordinalNumber(o,{unit:"date"});default:return vt(i.length,o)}}},{key:"validate",value:function(o,i){var a=o.getUTCFullYear(),u=Qy(a),c=o.getUTCMonth();return u?i>=1&&i<=fk[c]:i>=1&&i<=dk[c]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),r}(qe),mk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",90),ae(le(n),"subpriority",1),ae(le(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"D":case"DD":return dt(gt.dayOfYear,o);case"Do":return a.ordinalNumber(o,{unit:"date"});default:return vt(i.length,o)}}},{key:"validate",value:function(o,i){var a=o.getUTCFullYear(),u=Qy(a);return u?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),r}(qe);function oc(e,t,r){var n,o,i,a,u,c,l,d;oe(2,arguments);var f=zr(),p=tt((n=(o=(i=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(u=r.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=ie(e),v=tt(t),h=y.getUTCDay(),m=v%7,g=(m+7)%7,S=(g<p?7:0)+v-h;return y.setUTCDate(y.getUTCDate()+S),y}var hk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",90),ae(le(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"E":case"EE":case"EEE":return a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(o,{width:"wide",context:"formatting"})||a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,a,u){return o=oc(o,a,u),o.setUTCHours(0,0,0,0),o}}]),r}(qe),vk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",90),ae(le(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a,u){var c=function(d){var f=Math.floor((d-1)/7)*7;return(d+u.weekStartsOn+6)%7+f};switch(i){case"e":case"ee":return bt(vt(i.length,o),c);case"eo":return bt(a.ordinalNumber(o,{unit:"day"}),c);case"eee":return a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})||a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,a,u){return o=oc(o,a,u),o.setUTCHours(0,0,0,0),o}}]),r}(qe),yk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",90),ae(le(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a,u){var c=function(d){var f=Math.floor((d-1)/7)*7;return(d+u.weekStartsOn+6)%7+f};switch(i){case"c":case"cc":return bt(vt(i.length,o),c);case"co":return bt(a.ordinalNumber(o,{unit:"day"}),c);case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"})||a.day(o,{width:"short",context:"standalone"})||a.day(o,{width:"narrow",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"})||a.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})||a.day(o,{width:"abbreviated",context:"standalone"})||a.day(o,{width:"short",context:"standalone"})||a.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,a,u){return o=oc(o,a,u),o.setUTCHours(0,0,0,0),o}}]),r}(qe);function gk(e,t){oe(2,arguments);var r=tt(t);r%7===0&&(r=r-7);var n=1,o=ie(e),i=o.getUTCDay(),a=r%7,u=(a+7)%7,c=(u<n?7:0)+r-i;return o.setUTCDate(o.getUTCDate()+c),o}var bk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",90),ae(le(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){var u=function(l){return l===0?7:l};switch(i){case"i":case"ii":return vt(i.length,o);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return bt(a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"}),u);case"iiiii":return bt(a.day(o,{width:"narrow",context:"formatting"}),u);case"iiiiii":return bt(a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"}),u);case"iiii":default:return bt(a.day(o,{width:"wide",context:"formatting"})||a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"}),u)}}},{key:"validate",value:function(o,i){return i>=1&&i<=7}},{key:"set",value:function(o,i,a){return o=gk(o,a),o.setUTCHours(0,0,0,0),o}}]),r}(qe),Ek=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",80),ae(le(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"a":case"aa":case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})||a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,a){return o.setUTCHours(nc(a),0,0,0),o}}]),r}(qe),wk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",80),ae(le(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"b":case"bb":case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})||a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,a){return o.setUTCHours(nc(a),0,0,0),o}}]),r}(qe),xk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",80),ae(le(n),"incompatibleTokens",["a","b","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})||a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,a){return o.setUTCHours(nc(a),0,0,0),o}}]),r}(qe),Sk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",70),ae(le(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"h":return dt(gt.hour12h,o);case"ho":return a.ordinalNumber(o,{unit:"hour"});default:return vt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=12}},{key:"set",value:function(o,i,a){var u=o.getUTCHours()>=12;return u&&a<12?o.setUTCHours(a+12,0,0,0):!u&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),r}(qe),Tk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",70),ae(le(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"H":return dt(gt.hour23h,o);case"Ho":return a.ordinalNumber(o,{unit:"hour"});default:return vt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),r}(qe),Ok=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",70),ae(le(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"K":return dt(gt.hour11h,o);case"Ko":return a.ordinalNumber(o,{unit:"hour"});default:return vt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,a){var u=o.getUTCHours()>=12;return u&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),r}(qe),Ck=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",70),ae(le(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"k":return dt(gt.hour24h,o);case"ko":return a.ordinalNumber(o,{unit:"hour"});default:return vt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=24}},{key:"set",value:function(o,i,a){var u=a<=24?a%24:a;return o.setUTCHours(u,0,0,0),o}}]),r}(qe),Pk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",60),ae(le(n),"incompatibleTokens",["t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"m":return dt(gt.minute,o);case"mo":return a.ordinalNumber(o,{unit:"minute"});default:return vt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),r}(qe),Rk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",50),ae(le(n),"incompatibleTokens",["t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i,a){switch(i){case"s":return dt(gt.second,o);case"so":return a.ordinalNumber(o,{unit:"second"});default:return vt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),r}(qe),Nk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",30),ae(le(n),"incompatibleTokens",["t","T"]),n}return Ie(r,[{key:"parse",value:function(o,i){var a=function(c){return Math.floor(c*Math.pow(10,-i.length+3))};return bt(vt(i.length,o),a)}},{key:"set",value:function(o,i,a){return o.setUTCMilliseconds(a),o}}]),r}(qe),_k=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",10),ae(le(n),"incompatibleTokens",["t","T","x"]),n}return Ie(r,[{key:"parse",value:function(o,i){switch(i){case"X":return dr(cr.basicOptionalMinutes,o);case"XX":return dr(cr.basic,o);case"XXXX":return dr(cr.basicOptionalSeconds,o);case"XXXXX":return dr(cr.extendedOptionalSeconds,o);case"XXX":default:return dr(cr.extended,o)}}},{key:"set",value:function(o,i,a){return i.timestampIsSet?o:new Date(o.getTime()-a)}}]),r}(qe),$k=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",10),ae(le(n),"incompatibleTokens",["t","T","X"]),n}return Ie(r,[{key:"parse",value:function(o,i){switch(i){case"x":return dr(cr.basicOptionalMinutes,o);case"xx":return dr(cr.basic,o);case"xxxx":return dr(cr.basicOptionalSeconds,o);case"xxxxx":return dr(cr.extendedOptionalSeconds,o);case"xxx":default:return dr(cr.extended,o)}}},{key:"set",value:function(o,i,a){return i.timestampIsSet?o:new Date(o.getTime()-a)}}]),r}(qe),Mk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",40),ae(le(n),"incompatibleTokens","*"),n}return Ie(r,[{key:"parse",value:function(o){return Xy(o)}},{key:"set",value:function(o,i,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),r}(qe),kk=function(e){Ve(r,e);var t=Ue(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),ae(le(n),"priority",20),ae(le(n),"incompatibleTokens","*"),n}return Ie(r,[{key:"parse",value:function(o){return Xy(o)}},{key:"set",value:function(o,i,a){return[new Date(a),{timestampIsSet:!0}]}}]),r}(qe),Dk={G:new QM,y:new ZM,Y:new ek,R:new tk,u:new rk,Q:new nk,q:new ok,M:new ik,L:new ak,w:new uk,I:new ck,d:new pk,D:new mk,E:new hk,e:new vk,c:new yk,i:new bk,a:new Ek,b:new wk,B:new xk,h:new Sk,H:new Tk,K:new Ok,k:new Ck,m:new Pk,s:new Rk,S:new Nk,X:new _k,x:new $k,t:new Mk,T:new kk},Ak=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ik=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jk=/^'([^]*?)'?$/,Fk=/''/g,Lk=/\S/,Bk=/[a-zA-Z]/;function Vk(e,t,r,n){var o,i,a,u,c,l,d,f,p,y,v,h,m,g,S,E,x,w;oe(3,arguments);var P=String(e),_=String(t),k=zr(),A=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&o!==void 0?o:Wa;if(!A.match)throw new RangeError("locale must contain match property");var L=tt((a=(u=(c=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(d=n.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&c!==void 0?c:k.firstWeekContainsDate)!==null&&u!==void 0?u:(p=k.locale)===null||p===void 0||(y=p.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=tt((v=(h=(m=(g=n==null?void 0:n.weekStartsOn)!==null&&g!==void 0?g:n==null||(S=n.locale)===null||S===void 0||(E=S.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&m!==void 0?m:k.weekStartsOn)!==null&&h!==void 0?h:(x=k.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&v!==void 0?v:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(_==="")return P===""?ie(r):new Date(NaN);var te={firstWeekContainsDate:L,weekStartsOn:Y,locale:A},ee=[new JM],F=_.match(Ik).map(function(K){var H=K[0];if(H in tc){var J=tc[H];return J(K,A.formatLong)}return K}).join("").match(Ak),B=[],q=Yy(F),Z;try{var fe=function(){var H=Z.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&By(H)&&Ua(H,_,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ly(H)&&Ua(H,_,e);var J=H[0],re=Dk[J];if(re){var W=re.incompatibleTokens;if(Array.isArray(W)){var ce=B.find(function(se){return W.includes(se.token)||se.token===J});if(ce)throw new RangeError("The format string mustn't contain `".concat(ce.fullToken,"` and `").concat(H,"` at the same time"))}else if(re.incompatibleTokens==="*"&&B.length>0)throw new RangeError("The format string mustn't contain `".concat(H,"` and any other token at the same time"));B.push({token:J,fullToken:H});var R=re.run(P,H,A.match,te);if(!R)return{v:new Date(NaN)};ee.push(R.setter),P=R.rest}else{if(J.match(Bk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+J+"`");if(H==="''"?H="'":J==="'"&&(H=Uk(H)),P.indexOf(H)===0)P=P.slice(H.length);else return{v:new Date(NaN)}}};for(q.s();!(Z=q.n()).done;){var ve=fe();if(Sr(ve)==="object")return ve.v}}catch(K){q.e(K)}finally{q.f()}if(P.length>0&&Lk.test(P))return new Date(NaN);var j=ee.map(function(K){return K.priority}).sort(function(K,H){return H-K}).filter(function(K,H,J){return J.indexOf(K)===H}).map(function(K){return ee.filter(function(H){return H.priority===K}).sort(function(H,J){return J.subPriority-H.subPriority})}).map(function(K){return K[0]}),U=ie(r);if(isNaN(U.getTime()))return new Date(NaN);var O=$y(U,ja(U)),$={},D=Yy(j),I;try{for(D.s();!(I=D.n()).done;){var z=I.value;if(!z.validate(O,te))return new Date(NaN);var X=z.set(O,$,te);Array.isArray(X)?(O=X[0],IM($,X[1])):O=X}}catch(K){D.e(K)}finally{D.f()}return O}function Uk(e){return e.match(jk)[1].replace(Fk,"'")}function Zy(e){oe(1,arguments);var t=ie(e);return t.setMinutes(0,0,0),t}function Wk(e,t){oe(2,arguments);var r=Zy(e),n=Zy(t);return r.getTime()===n.getTime()}function zk(e,t){oe(2,arguments);var r=ie(e),n=ie(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function qk(e,t){oe(2,arguments);var r=ie(e),n=ie(t);return r.getFullYear()===n.getFullYear()}function Hk(e,t){oe(2,arguments);var r=ie(e).getTime(),n=ie(t.start).getTime(),o=ie(t.end).getTime();if(!(n<=o))throw new RangeError("Invalid interval");return r>=n&&r<=o}function Yk(e,t){var r;oe(1,arguments);var n=tt((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=Jk(e),i;if(o.date){var a=Qk(o.date,n);i=Zk(a.restDateString,a.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var u=i.getTime(),c=0,l;if(o.time&&(c=eD(o.time),isNaN(c)))return new Date(NaN);if(o.timezone){if(l=tD(o.timezone),isNaN(l))return new Date(NaN)}else{var d=new Date(u+c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return new Date(u+c+l)}var Ha={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Gk=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kk=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Xk=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Jk(e){var t={},r=e.split(Ha.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Ha.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Ha.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var o=Ha.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}function Qk(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((n[1]||n[2]).length)}}function Zk(e,t){if(t===null)return new Date(NaN);var r=e.match(Gk);if(!r)return new Date(NaN);var n=!!r[4],o=Xo(r[1]),i=Xo(r[2])-1,a=Xo(r[3]),u=Xo(r[4]),c=Xo(r[5])-1;if(n)return aD(t,u,c)?rD(t,u,c):new Date(NaN);var l=new Date(0);return!oD(t,i,a)||!iD(t,o)?new Date(NaN):(l.setUTCFullYear(t,i,Math.max(o,a)),l)}function Xo(e){return e?parseInt(e):1}function eD(e){var t=e.match(Kk);if(!t)return NaN;var r=ic(t[1]),n=ic(t[2]),o=ic(t[3]);return sD(r,n,o)?r*La+n*Fa+o*1e3:NaN}function ic(e){return e&&parseFloat(e.replace(",","."))||0}function tD(e){if(e==="Z")return 0;var t=e.match(Xk);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return uD(n,o)?r*(n*La+o*Fa):NaN}function rD(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var o=n.getUTCDay()||7,i=(t-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+i),n}var nD=[31,null,31,30,31,30,31,31,30,31,30,31];function eg(e){return e%400===0||e%4===0&&e%100!==0}function oD(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(nD[t]||(eg(e)?29:28))}function iD(e,t){return t>=1&&t<=(eg(e)?366:365)}function aD(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function sD(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function uD(e,t){return t>=0&&t<=59}function lD(e,t){oe(2,arguments);var r=ie(e),n=tt(t),o=r.getFullYear(),i=r.getDate(),a=new Date(0);a.setFullYear(o,n,15),a.setHours(0,0,0,0);var u=qy(a);return r.setMonth(n,Math.min(i,u)),r}function cD(e,t){oe(2,arguments);var r=ie(e),n=tt(t);return r.setDate(n),r}function dD(e,t){oe(2,arguments);var r=ie(e),n=tt(t);return r.setHours(n),r}function fD(e,t){oe(2,arguments);var r=ie(e),n=tt(t);return r.setMinutes(n),r}function pD(e,t){oe(2,arguments);var r=ie(e),n=tt(t);return r.setSeconds(n),r}function mD(e,t){oe(2,arguments);var r=ie(e),n=tt(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}var hD={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},vD={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},yD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gD={date:Or({formats:hD,defaultWidth:"full"}),time:Or({formats:vD,defaultWidth:"full"}),dateTime:Or({formats:yD,defaultWidth:"full"})},bD={code:"en-GB",formatDistance:Vy,formatLong:gD,formatRelative:Uy,localize:Wy,match:zy,options:{weekStartsOn:1,firstWeekContainsDate:4}};const ED=bD;var wD={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},xD=function(t,r,n){var o,i=wD[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+o:"hace "+o:o};const SD=xD;var TD={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},OD={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},CD={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},PD={date:Or({formats:TD,defaultWidth:"full"}),time:Or({formats:OD,defaultWidth:"full"}),dateTime:Or({formats:CD,defaultWidth:"full"})};const RD=PD;var ND={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},_D={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},$D=function(t,r,n,o){return r.getUTCHours()!==1?_D[t]:ND[t]};const MD=$D;var kD={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},DD={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},AD={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},ID={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},jD={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},FD={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},LD=function(t,r){var n=Number(t);return n+"º"},BD={ordinalNumber:LD,era:ur({values:kD,defaultWidth:"wide"}),quarter:ur({values:DD,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ur({values:AD,defaultWidth:"wide"}),day:ur({values:ID,defaultWidth:"wide"}),dayPeriod:ur({values:jD,defaultWidth:"wide",formattingValues:FD,defaultFormattingWidth:"wide"})};const VD=BD;var UD=/^(\d+)(º)?/i,WD=/\d+/i,zD={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},qD={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},HD={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},YD={any:[/1/i,/2/i,/3/i,/4/i]},GD={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},KD={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},XD={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},JD={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},QD={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},ZD={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},eA={ordinalNumber:Sy({matchPattern:UD,parsePattern:WD,valueCallback:function(t){return parseInt(t,10)}}),era:lr({matchPatterns:zD,defaultMatchWidth:"wide",parsePatterns:qD,defaultParseWidth:"any"}),quarter:lr({matchPatterns:HD,defaultMatchWidth:"wide",parsePatterns:YD,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:lr({matchPatterns:GD,defaultMatchWidth:"wide",parsePatterns:KD,defaultParseWidth:"any"}),day:lr({matchPatterns:XD,defaultMatchWidth:"wide",parsePatterns:JD,defaultParseWidth:"any"}),dayPeriod:lr({matchPatterns:QD,defaultMatchWidth:"any",parsePatterns:ZD,defaultParseWidth:"any"})},tA={code:"es",formatDistance:SD,formatLong:RD,formatRelative:MD,localize:VD,match:eA,options:{weekStartsOn:1,firstWeekContainsDate:1}};const rA=tA,nA=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),tg={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",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},oA=tg;nA(tg);const rg=b.createContext(null);process.env.NODE_ENV!=="production"&&(rg.displayName="MuiPickersAdapterContext");let ng=!1;function og(e){const t=Pe({props:e,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:n,dateFormats:o,dateLibInstance:i,locale:a,adapterLocale:u,localeText:c}=t;process.env.NODE_ENV!=="production"&&!ng&&a!==void 0&&(ng=!0,console.warn("LocalizationProvider's prop `locale` is deprecated and replaced by `adapterLocale`"));const l=b.useMemo(()=>new n({locale:u??a,formats:o,instance:i}),[n,a,u,o,i]),d=b.useMemo(()=>({minDate:l.date("1900-01-01T00:00:00.000"),maxDate:l.date("2099-12-31T00:00:00.000")}),[l]),f=b.useMemo(()=>({utils:l,defaultDates:d,localeText:T({},oA,c??{})}),[d,l,c]);return N.jsx(rg.Provider,{value:f,children:r})}process.env.NODE_ENV!=="production"&&(og.propTypes={adapterLocale:s.oneOfType([s.object,s.string]),children:s.node,dateAdapter:s.func.isRequired,dateFormats:s.shape({dayOfMonth:s.string,fullDate:s.string,fullDateTime:s.string,fullDateTime12h:s.string,fullDateTime24h:s.string,fullDateWithWeekday:s.string,fullTime:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,minutes:s.string,month:s.string,monthAndDate:s.string,monthAndYear:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,locale:s.oneOfType([s.object,s.string]),localeText:s.object});var ac={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(c,l){switch(c){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},n=function(c,l){switch(c){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},o=function(c,l){var d=c.match(/(P+)(p+)?/)||[],f=d[1],p=d[2];if(!p)return r(c,l);var y;switch(f){case"P":y=l.dateTime({width:"short"});break;case"PP":y=l.dateTime({width:"medium"});break;case"PPP":y=l.dateTime({width:"long"});break;case"PPPP":default:y=l.dateTime({width:"full"});break}return y.replace("{{date}}",r(f,l)).replace("{{time}}",n(p,l))},i={p:n,P:o},a=i;t.default=a,e.exports=t.default})(ac,ac.exports);var iA=ac.exports;const ig=Rc(iA);var aA={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"},sA=function(){function e(t){var r=this,n=t===void 0?{}:t,o=n.locale,i=n.formats;this.lib="date-fns",this.is12HourCycleInCurrentLocale=function(){return r.locale?/a/.test(r.locale.formatLong.time()):!0},this.getFormatHelperText=function(a){var u=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,c=r.locale||Wa;return a.match(u).map(function(l){var d=l[0];if(d==="p"||d==="P"){var f=ig[d];return f(l,c.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()},this.parseISO=function(a){return Yk(a)},this.toISO=function(a){return jM(a,{format:"extended"})},this.getCurrentLocaleCode=function(){var a;return((a=r.locale)===null||a===void 0?void 0:a.code)||"en-US"},this.addSeconds=function(a,u){return S$(a,u)},this.addMinutes=function(a,u){return x$(a,u)},this.addHours=function(a,u){return y$(a,u)},this.addDays=function(a,u){return Gl(a,u)},this.addWeeks=function(a,u){return T$(a,u)},this.addMonths=function(a,u){return Aa(a,u)},this.addYears=function(a,u){return Ty(a,u)},this.isValid=function(a){return Oy(r.date(a))},this.getDiff=function(a,u,c){switch(c){case"years":return j$(a,r.date(u));case"quarters":return D$(a,r.date(u));case"months":return Ny(a,r.date(u));case"weeks":return I$(a,r.date(u));case"days":return Py(a,r.date(u));case"hours":return $$(a,r.date(u));case"minutes":return M$(a,r.date(u));case"seconds":return A$(a,r.date(u));default:return Ba(a,r.date(u))}},this.isAfter=function(a,u){return rc(a,u)},this.isBefore=function(a,u){return Ko(a,u)},this.startOfDay=function(a){return Jn(a)},this.endOfDay=function(a){return Xl(a)},this.getHours=function(a){return BM(a)},this.setHours=function(a,u){return dD(a,u)},this.setMinutes=function(a,u){return fD(a,u)},this.getSeconds=function(a){return WM(a)},this.setSeconds=function(a,u){return pD(a,u)},this.isSameDay=function(a,u){return C$(a,u)},this.isSameMonth=function(a,u){return zk(a,u)},this.isSameYear=function(a,u){return qk(a,u)},this.isSameHour=function(a,u){return Wk(a,u)},this.startOfYear=function(a){return Va(a)},this.endOfYear=function(a){return Ql(a)},this.startOfMonth=function(a){return _y(a)},this.endOfMonth=function(a){return Jl(a)},this.startOfWeek=function(a){return Kl(a,{locale:r.locale})},this.endOfWeek=function(a){return Zl(a,{locale:r.locale})},this.getYear=function(a){return zM(a)},this.setYear=function(a,u){return mD(a,u)},this.date=function(a){return typeof a>"u"?new Date:a===null?null:new Date(a)},this.toJsDate=function(a){return a},this.parse=function(a,u){return a===""?null:Vk(a,u,new Date,{locale:r.locale})},this.format=function(a,u){return r.formatByString(a,r.formats[u])},this.formatByString=function(a,u){return DM(a,u,{locale:r.locale})},this.isEqual=function(a,u){return a===null&&u===null?!0:qM(a,u)},this.isNull=function(a){return a===null},this.isAfterDay=function(a,u){return rc(a,Xl(u))},this.isBeforeDay=function(a,u){return Ko(a,Jn(u))},this.isBeforeYear=function(a,u){return Ko(a,Va(u))},this.isAfterYear=function(a,u){return rc(a,Ql(u))},this.isWithinRange=function(a,u){var c=u[0],l=u[1];return Hk(a,{start:c,end:l})},this.formatNumber=function(a){return a},this.getMinutes=function(a){return VM(a)},this.getDate=function(a){return FM(a)},this.setDate=function(a,u){return cD(a,u)},this.getMonth=function(a){return UM(a)},this.getDaysInMonth=function(a){return qy(a)},this.setMonth=function(a,u){return lD(a,u)},this.getMeridiemText=function(a){return a==="am"?"AM":"PM"},this.getNextMonth=function(a){return Aa(a,1)},this.getPreviousMonth=function(a){return Aa(a,-1)},this.getMonthArray=function(a){for(var u=Va(a),c=[u];c.length<12;){var l=c[c.length-1];c.push(r.getNextMonth(l))}return c},this.mergeDateAndTime=function(a,u){return r.setSeconds(r.setMinutes(r.setHours(a,r.getHours(u)),r.getMinutes(u)),r.getSeconds(u))},this.getWeekdays=function(){var a=new Date;return F$({start:Kl(a,{locale:r.locale}),end:Zl(a,{locale:r.locale})}).map(function(u){return r.formatByString(u,"EEEEEE")})},this.getWeekArray=function(a){for(var u=Kl(_y(a),{locale:r.locale}),c=Zl(Jl(a),{locale:r.locale}),l=0,d=u,f=[],p=null;Ko(d,c);){var y=Math.floor(l/7);f[y]=f[y]||[];var v=LM(d);p!==v&&(p=v,f[y].push(d),l+=1),d=Gl(d,1)}return f},this.getYearRange=function(a,u){for(var c=Va(a),l=Ql(u),d=[],f=c;Ko(f,l);)d.push(f),f=Ty(f,1);return d},this.locale=o,this.formats=Object.assign({},aA,i)}return e}();const uA={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class lA extends sA{constructor(...t){super(...t),this.formatTokenMap=uA,this.expandFormat=r=>{const n=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(n).map(o=>{const i=o[0];if(i==="p"||i==="P"){const a=ig[i],u=this.locale||Wa;return a(o,u.formatLong,{})}return o}).join("")},this.getFormatHelperText=r=>this.expandFormat(r).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const cA={es:{inicializar:{error:{titulo:"Error iniciando aplicación",mensaje:"No fue posible conectarnos con el servicio"}},login:{titulo:"Acceder al sistema",correo:"Correo electrónico",password:"Contraseña",ingresar:"Acceder",validacion:{correo:"Debe ingresar una dirección de correo",password:"Debe ingresar una contraseña"},error:"Usuario o contraseña incorrectos"},copy:"Todos los derechos reservados "}},dA={en:ED,es:rA},fA=({messages:e,children:t})=>{const r=or(n=>n.ui.idioma);return N.jsx(jn.I18n,{locale:r,messages:e[r],children:N.jsx(og,{dateAdapter:lA,adapterLocale:dA[r],children:t})})},pA=({messages:e,idioma:t,children:r})=>{const n=un();pe.useEffect(()=>{t&&n(BN(t))},[n,t]);const o={};return Object.keys(e).forEach(i=>{o[i]={...e[i],saas:cA[i]}}),N.jsx(fA,{messages:o,children:r})},mA=({children:e})=>{const t=un(),{instancia:r}=or(a=>a.aplicacion),n=or(a=>a.ui.tema),o=iO("(prefers-color-scheme: dark)");pe.useEffect(()=>{t(LN(o?"dark":"light"))},[t,o]);const i=pe.useMemo(()=>Ws({palette:{mode:n,primary:{main:r.color.primary},secondary:{main:r.color.secondary},error:{main:r.color.error},warning:{main:r.color.warning},info:{main:r.color.info},success:{main:r.color.success},...n==="light"&&{background:{default:os.A200,paper:os[100]}}},shape:{borderRadius:6}}),[n,r]);return N.jsxs(yf,{theme:i,children:[N.jsx(bp,{}),e]})};/**
|
|
307
|
+
* @remix-run/router v1.7.2
|
|
308
|
+
*
|
|
309
|
+
* Copyright (c) Remix Software Inc.
|
|
310
|
+
*
|
|
311
|
+
* This source code is licensed under the MIT license found in the
|
|
312
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
313
|
+
*
|
|
314
|
+
* @license MIT
|
|
315
|
+
*/function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jo.apply(this,arguments)}var Hr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Hr||(Hr={}));const ag="popstate";function hA(e){e===void 0&&(e={});function t(n,o){let{pathname:i,search:a,hash:u}=n.location;return sc("",{pathname:i,search:a,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:Qo(o)}return yA(t,r,null,e)}function Se(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Yt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function vA(){return Math.random().toString(36).substr(2,8)}function sg(e,t){return{usr:e.state,key:e.key,idx:t}}function sc(e,t,r,n){return r===void 0&&(r=null),Jo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?eo(t):t,{state:r,key:t&&t.key||n||vA()})}function Qo(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function eo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function yA(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,u=Hr.Pop,c=null,l=d();l==null&&(l=0,a.replaceState(Jo({},a.state,{idx:l}),""));function d(){return(a.state||{idx:null}).idx}function f(){u=Hr.Pop;let m=d(),g=m==null?null:m-l;l=m,c&&c({action:u,location:h.location,delta:g})}function p(m,g){u=Hr.Push;let S=sc(h.location,m,g);r&&r(S,m),l=d()+1;let E=sg(S,l),x=h.createHref(S);try{a.pushState(E,"",x)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(x)}i&&c&&c({action:u,location:h.location,delta:1})}function y(m,g){u=Hr.Replace;let S=sc(h.location,m,g);r&&r(S,m),l=d();let E=sg(S,l),x=h.createHref(S);a.replaceState(E,"",x),i&&c&&c({action:u,location:h.location,delta:0})}function v(m){let g=o.location.origin!=="null"?o.location.origin:o.location.href,S=typeof m=="string"?m:Qo(m);return Se(g,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,g)}let h={get action(){return u},get location(){return e(o,a)},listen(m){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(ag,f),c=m,()=>{o.removeEventListener(ag,f),c=null}},createHref(m){return t(o,m)},createURL:v,encodeLocation(m){let g=v(m);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:y,go(m){return a.go(m)}};return h}var ug;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ug||(ug={}));function gA(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?eo(t):t,o=Zo(n.pathname||"/",r);if(o==null)return null;let i=lg(e);bA(i);let a=null;for(let u=0;a==null&&u<i.length;++u)a=RA(i[u],$A(o));return a}function lg(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(i,a,u)=>{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(Se(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let l=Cr([n,c.relativePath]),d=r.concat(c);i.children&&i.children.length>0&&(Se(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),lg(i.children,t,d,l)),!(i.path==null&&!i.index)&&t.push({path:l,score:CA(l,i.index),routesMeta:d})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,a);else for(let c of cg(i.path))o(i,a,c)}),t}function cg(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=cg(n.join("/")),u=[];return u.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&u.push(...a),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function bA(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:PA(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const EA=/^:\w+$/,wA=3,xA=2,SA=1,TA=10,OA=-2,dg=e=>e==="*";function CA(e,t){let r=e.split("/"),n=r.length;return r.some(dg)&&(n+=OA),t&&(n+=xA),r.filter(o=>!dg(o)).reduce((o,i)=>o+(EA.test(i)?wA:i===""?SA:TA),n)}function PA(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function RA(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,l=o==="/"?t:t.slice(o.length)||"/",d=NA({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},l);if(!d)return null;Object.assign(n,d.params);let f=u.route;i.push({params:n,pathname:Cr([o,d.pathname]),pathnameBase:AA(Cr([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=Cr([o,d.pathnameBase]))}return i}function NA(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=_A(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:n.reduce((l,d,f)=>{if(d==="*"){let p=u[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return l[d]=MA(u[f]||"",d),l},{}),pathname:i,pathnameBase:a,pattern:e}}function _A(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Yt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,u)=>(n.push(u),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function $A(e){try{return decodeURI(e)}catch(t){return Yt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function MA(e,t){try{return decodeURIComponent(e)}catch(r){return Yt(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Zo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function kA(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?eo(e):e;return{pathname:r?r.startsWith("/")?r:DA(r,t):t,search:IA(n),hash:jA(o)}}function DA(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function uc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function lc(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function cc(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=eo(e):(o=Jo({},e),Se(!o.pathname||!o.pathname.includes("?"),uc("?","pathname","search",o)),Se(!o.pathname||!o.pathname.includes("#"),uc("#","pathname","hash",o)),Se(!o.search||!o.search.includes("#"),uc("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,u;if(n||a==null)u=r;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}u=f>=0?t[f]:"/"}let c=kA(o,u),l=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||d)&&(c.pathname+="/"),c}const Cr=e=>e.join("/").replace(/\/\/+/g,"/"),AA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),IA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function FA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fg=["post","put","patch","delete"];new Set(fg);const LA=["get",...fg];new Set(LA);/**
|
|
316
|
+
* React Router v6.14.2
|
|
317
|
+
*
|
|
318
|
+
* Copyright (c) Remix Software Inc.
|
|
319
|
+
*
|
|
320
|
+
* This source code is licensed under the MIT license found in the
|
|
321
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
322
|
+
*
|
|
323
|
+
* @license MIT
|
|
324
|
+
*/function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ya.apply(this,arguments)}const ei=b.createContext(null);process.env.NODE_ENV!=="production"&&(ei.displayName="DataRouter");const dc=b.createContext(null);process.env.NODE_ENV!=="production"&&(dc.displayName="DataRouterState");const BA=b.createContext(null);process.env.NODE_ENV!=="production"&&(BA.displayName="Await");const Zt=b.createContext(null);process.env.NODE_ENV!=="production"&&(Zt.displayName="Navigation");const ti=b.createContext(null);process.env.NODE_ENV!=="production"&&(ti.displayName="Location");const fr=b.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(fr.displayName="Route");const fc=b.createContext(null);process.env.NODE_ENV!=="production"&&(fc.displayName="RouteError");function VA(e,t){let{relative:r}=t===void 0?{}:t;to()||(process.env.NODE_ENV!=="production"?Se(!1,"useHref() may be used only in the context of a <Router> component."):Se(!1));let{basename:n,navigator:o}=b.useContext(Zt),{hash:i,pathname:a,search:u}=Ga(e,{relative:r}),c=a;return n!=="/"&&(c=a==="/"?n:Cr([n,a])),o.createHref({pathname:c,search:u,hash:i})}function to(){return b.useContext(ti)!=null}function Pr(){return to()||(process.env.NODE_ENV!=="production"?Se(!1,"useLocation() may be used only in the context of a <Router> component."):Se(!1)),b.useContext(ti).location}const pg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function mg(e){b.useContext(Zt).static||b.useLayoutEffect(e)}function hg(){let{isDataRoute:e}=b.useContext(fr);return e?tI():UA()}function UA(){to()||(process.env.NODE_ENV!=="production"?Se(!1,"useNavigate() may be used only in the context of a <Router> component."):Se(!1));let e=b.useContext(ei),{basename:t,navigator:r}=b.useContext(Zt),{matches:n}=b.useContext(fr),{pathname:o}=Pr(),i=JSON.stringify(lc(n).map(c=>c.pathnameBase)),a=b.useRef(!1);return mg(()=>{a.current=!0}),b.useCallback(function(c,l){if(l===void 0&&(l={}),process.env.NODE_ENV!=="production"&&Yt(a.current,pg),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=cc(c,JSON.parse(i),o,l.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Cr([t,d.pathname])),(l.replace?r.replace:r.push)(d,l.state,l)},[t,r,i,o,e])}function Ga(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=b.useContext(fr),{pathname:o}=Pr(),i=JSON.stringify(lc(n).map(a=>a.pathnameBase));return b.useMemo(()=>cc(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function WA(e,t){return zA(e,t)}function zA(e,t,r){to()||(process.env.NODE_ENV!=="production"?Se(!1,"useRoutes() may be used only in the context of a <Router> component."):Se(!1));let{navigator:n}=b.useContext(Zt),{matches:o}=b.useContext(fr),i=o[o.length-1],a=i?i.params:{},u=i?i.pathname:"/",c=i?i.pathnameBase:"/",l=i&&i.route;if(process.env.NODE_ENV!=="production"){let g=l&&l.path||"";rI(u,!l||g.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+u+'" (under <Route path="'+g+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
325
|
+
|
|
326
|
+
`+('Please change the parent <Route path="'+g+'"> to <Route ')+('path="'+(g==="/"?"*":g+"/*")+'">.'))}let d=Pr(),f;if(t){var p;let g=typeof t=="string"?eo(t):t;c==="/"||(p=g.pathname)!=null&&p.startsWith(c)||(process.env.NODE_ENV!=="production"?Se(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+c+'" ')+('but pathname "'+g.pathname+'" was given in the `location` prop.')):Se(!1)),f=g}else f=d;let y=f.pathname||"/",v=c==="/"?y:y.slice(c.length)||"/",h=gA(e,{pathname:v});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Yt(l||h!=null,'No routes matched location "'+f.pathname+f.search+f.hash+'" '),process.env.NODE_ENV!=="production"&&Yt(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0,'Matched leaf route at location "'+f.pathname+f.search+f.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let m=KA(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:Cr([c,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?c:Cr([c,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r);return t&&m?b.createElement(ti.Provider,{value:{location:Ya({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Hr.Pop}},m):m}function qA(){let e=eI(),t=FA(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:i},"ErrorBoundary")," or"," ",b.createElement("code",{style:i},"errorElement")," prop on your route."))),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),r?b.createElement("pre",{style:o},r):null,a)}const HA=b.createElement(qA,null);class YA extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?b.createElement(fr.Provider,{value:this.props.routeContext},b.createElement(fc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function GA(e){let{routeContext:t,match:r,children:n}=e,o=b.useContext(ei);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(fr.Provider,{value:t},n)}function KA(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,a=(n=r)==null?void 0:n.errors;if(a!=null){let u=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id]));u>=0||(process.env.NODE_ENV!=="production"?Se(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(a).join(",")):Se(!1)),i=i.slice(0,Math.min(i.length,u+1))}return i.reduceRight((u,c,l)=>{let d=c.route.id?a==null?void 0:a[c.route.id]:null,f=null;r&&(f=c.route.errorElement||HA);let p=t.concat(i.slice(0,l+1)),y=()=>{let v;return d?v=f:c.route.Component?v=b.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=u,b.createElement(GA,{match:c,routeContext:{outlet:u,matches:p,isDataRoute:r!=null},children:v})};return r&&(c.route.ErrorBoundary||c.route.errorElement||l===0)?b.createElement(YA,{location:r.location,revalidation:r.revalidation,component:f,error:d,children:y(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):y()},null)}var pc;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(pc||(pc={}));var ro;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(ro||(ro={}));function mc(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function XA(e){let t=b.useContext(ei);return t||(process.env.NODE_ENV!=="production"?Se(!1,mc(e)):Se(!1)),t}function JA(e){let t=b.useContext(dc);return t||(process.env.NODE_ENV!=="production"?Se(!1,mc(e)):Se(!1)),t}function QA(e){let t=b.useContext(fr);return t||(process.env.NODE_ENV!=="production"?Se(!1,mc(e)):Se(!1)),t}function hc(e){let t=QA(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?Se(!1,e+' can only be used on routes that contain a unique "id"'):Se(!1)),r.route.id}function ZA(){return hc(ro.UseRouteId)}function eI(){var e;let t=b.useContext(fc),r=JA(ro.UseRouteError),n=hc(ro.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function tI(){let{router:e}=XA(pc.UseNavigateStable),t=hc(ro.UseNavigateStable),r=b.useRef(!1);return mg(()=>{r.current=!0}),b.useCallback(function(o,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&Yt(r.current,pg),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ya({fromRouteId:t},i)))},[e,t])}const vg={};function rI(e,t,r){!t&&!vg[e]&&(vg[e]=!0,process.env.NODE_ENV!=="production"&&Yt(!1,r))}function yg(e){let{to:t,replace:r,state:n,relative:o}=e;to()||(process.env.NODE_ENV!=="production"?Se(!1,"<Navigate> may be used only in the context of a <Router> component."):Se(!1)),process.env.NODE_ENV!=="production"&&Yt(!b.useContext(Zt).static,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=b.useContext(fr),{pathname:a}=Pr(),u=hg(),c=cc(t,lc(i).map(d=>d.pathnameBase),a,o==="path"),l=JSON.stringify(c);return b.useEffect(()=>u(JSON.parse(l),{replace:r,state:n,relative:o}),[u,l,o,r,n]),null}function vc(e){process.env.NODE_ENV!=="production"?Se(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):Se(!1)}function nI(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Hr.Pop,navigator:i,static:a=!1}=e;to()&&(process.env.NODE_ENV!=="production"?Se(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Se(!1));let u=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:u,navigator:i,static:a}),[u,i,a]);typeof n=="string"&&(n=eo(n));let{pathname:l="/",search:d="",hash:f="",state:p=null,key:y="default"}=n,v=b.useMemo(()=>{let h=Zo(l,u);return h==null?null:{location:{pathname:h,search:d,hash:f,state:p,key:y},navigationType:o}},[u,l,d,f,p,y,o]);return process.env.NODE_ENV!=="production"&&Yt(v!=null,'<Router basename="'+u+'"> is not able to match the URL '+('"'+l+d+f+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),v==null?null:b.createElement(Zt.Provider,{value:c},b.createElement(ti.Provider,{children:r,value:v}))}function oI(e){let{children:t,location:r}=e;return WA(yc(t),r)}var gg;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(gg||(gg={})),new Promise(()=>{});function yc(e,t){t===void 0&&(t=[]);let r=[];return b.Children.forEach(e,(n,o)=>{if(!b.isValidElement(n))return;let i=[...t,o];if(n.type===b.Fragment){r.push.apply(r,yc(n.props.children,i));return}n.type!==vc&&(process.env.NODE_ENV!=="production"?Se(!1,"["+(typeof n.type=="string"?n.type:n.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):Se(!1)),!n.props.index||!n.props.children||(process.env.NODE_ENV!=="production"?Se(!1,"An index route cannot have child routes."):Se(!1));let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=yc(n.props.children,i)),r.push(a)}),r}/**
|
|
327
|
+
* React Router DOM v6.14.2
|
|
328
|
+
*
|
|
329
|
+
* Copyright (c) Remix Software Inc.
|
|
330
|
+
*
|
|
331
|
+
* This source code is licensed under the MIT license found in the
|
|
332
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
333
|
+
*
|
|
334
|
+
* @license MIT
|
|
335
|
+
*/function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mn.apply(this,arguments)}function gc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const Ka="get",Xa="application/x-www-form-urlencoded";function Ja(e){return e!=null&&typeof e.tagName=="string"}function iI(e){return Ja(e)&&e.tagName.toLowerCase()==="button"}function aI(e){return Ja(e)&&e.tagName.toLowerCase()==="form"}function sI(e){return Ja(e)&&e.tagName.toLowerCase()==="input"}function uI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lI(e,t){return e.button===0&&(!t||t==="_self")&&!uI(e)}let Qa=null;function cI(){if(Qa===null)try{new FormData(document.createElement("form"),0),Qa=!1}catch{Qa=!0}return Qa}const dI=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bc(e){return e!=null&&!dI.has(e)?(process.env.NODE_ENV!=="production"&&Yt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Xa+'"')),null):e}function fI(e,t){let r,n,o,i,a;if(aI(e)){let u=e.getAttribute("action");n=u?Zo(u,t):null,r=e.getAttribute("method")||Ka,o=bc(e.getAttribute("enctype"))||Xa,i=new FormData(e)}else if(iI(e)||sI(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||u.getAttribute("action");if(n=c?Zo(c,t):null,r=e.getAttribute("formmethod")||u.getAttribute("method")||Ka,o=bc(e.getAttribute("formenctype"))||bc(u.getAttribute("enctype"))||Xa,i=new FormData(u,e),!cI()){let{name:l,type:d,value:f}=e;if(d==="image"){let p=l?l+".":"";i.append(p+"x","0"),i.append(p+"y","0")}else l&&i.append(l,f)}}else{if(Ja(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ka,n=null,o=Xa,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}const pI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],mI=["aria-current","caseSensitive","className","end","style","to","children"],hI=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],bg=b["startTransition"];function vI(e){let{basename:t,children:r,future:n,window:o}=e,i=b.useRef();i.current==null&&(i.current=hA({window:o,v5Compat:!0}));let a=i.current,[u,c]=b.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},d=b.useCallback(f=>{l&&bg?bg(()=>c(f)):c(f)},[c,l]);return b.useLayoutEffect(()=>a.listen(d),[a,d]),b.createElement(nI,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:a})}process.env.NODE_ENV;const yI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Eg=b.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:u,target:c,to:l,preventScrollReset:d}=t,f=gc(t,pI),{basename:p}=b.useContext(Zt),y,v=!1;if(typeof l=="string"&&gI.test(l)&&(y=l,yI))try{let S=new URL(window.location.href),E=l.startsWith("//")?new URL(S.protocol+l):new URL(l),x=Zo(E.pathname,p);E.origin===S.origin&&x!=null?l=x+E.search+E.hash:v=!0}catch{process.env.NODE_ENV!=="production"&&Yt(!1,'<Link to="'+l+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let h=VA(l,{relative:o}),m=SI(l,{replace:a,state:u,target:c,preventScrollReset:d,relative:o});function g(S){n&&n(S),S.defaultPrevented||m(S)}return b.createElement("a",mn({},f,{href:y||h,onClick:v||i?n:g,ref:r,target:c}))});process.env.NODE_ENV!=="production"&&(Eg.displayName="Link");const bI=b.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:o=!1,className:i="",end:a=!1,style:u,to:c,children:l}=t,d=gc(t,mI),f=Ga(c,{relative:d.relative}),p=Pr(),y=b.useContext(dc),{navigator:v}=b.useContext(Zt),h=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,m=p.pathname,g=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(m=m.toLowerCase(),g=g?g.toLowerCase():null,h=h.toLowerCase());let S=m===h||!a&&m.startsWith(h)&&m.charAt(h.length)==="/",E=g!=null&&(g===h||!a&&g.startsWith(h)&&g.charAt(h.length)==="/"),x=S?n:void 0,w;typeof i=="function"?w=i({isActive:S,isPending:E}):w=[i,S?"active":null,E?"pending":null].filter(Boolean).join(" ");let P=typeof u=="function"?u({isActive:S,isPending:E}):u;return b.createElement(Eg,mn({},d,{"aria-current":x,className:w,ref:r,style:P,to:c}),typeof l=="function"?l({isActive:S,isPending:E}):l)});process.env.NODE_ENV!=="production"&&(bI.displayName="NavLink");const EI=b.forwardRef((e,t)=>{let r=OI();return b.createElement(wg,mn({},e,{submit:r,ref:t}))});process.env.NODE_ENV!=="production"&&(EI.displayName="Form");const wg=b.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:o,method:i=Ka,action:a,onSubmit:u,submit:c,relative:l,preventScrollReset:d}=e,f=gc(e,hI),p=i.toLowerCase()==="get"?"get":"post",y=CI(a,{relative:l}),v=h=>{if(u&&u(h),h.defaultPrevented)return;h.preventDefault();let m=h.nativeEvent.submitter,g=(m==null?void 0:m.getAttribute("formmethod"))||i;c(m||h.currentTarget,{method:g,replace:n,state:o,relative:l,preventScrollReset:d})};return b.createElement("form",mn({ref:t,method:p,action:y,onSubmit:r?u:v},f))});process.env.NODE_ENV!=="production"&&(wg.displayName="FormImpl"),process.env.NODE_ENV;var Ec;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Ec||(Ec={}));var xg;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xg||(xg={}));function wI(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function xI(e){let t=b.useContext(ei);return t||(process.env.NODE_ENV!=="production"?Se(!1,wI(e)):Se(!1)),t}function SI(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,u=hg(),c=Pr(),l=Ga(e,{relative:a});return b.useCallback(d=>{if(lI(d,r)){d.preventDefault();let f=n!==void 0?n:Qo(c)===Qo(l);u(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[c,u,l,n,o,r,e,i,a])}function TI(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function OI(){let{router:e}=xI(Ec.UseSubmit),{basename:t}=b.useContext(Zt),r=ZA();return b.useCallback(function(n,o){o===void 0&&(o={}),TI();let{action:i,method:a,encType:u,formData:c,body:l}=fI(n,t);e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:l,formMethod:o.method||a,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:r})},[e,t,r])}function CI(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=b.useContext(Zt),o=b.useContext(fr);o||(process.env.NODE_ENV!=="production"?Se(!1,"useFormAction must be used inside a RouteContext"):Se(!1));let[i]=o.matches.slice(-1),a=mn({},Ga(e||".",{relative:r})),u=Pr();if(e==null&&(a.search=u.search,a.hash=u.hash,i.route.index)){let c=new URLSearchParams(a.search);c.delete("index"),a.search=c.toString()?"?"+c.toString():""}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Cr([n,a.pathname])),Qo(a)}const Sg=e=>{const t=un(),r=or(o=>o.login),n=or(o=>o.aplicacion.instancia);return pe.useEffect(()=>{r.autenticado&&r.expiracion&&new Date(r.expiracion)<new Date&&(r.refreshToken?t(ka(e,n.clientCredentials,r.refreshToken)):t(wy()))},[e,n.clientCredentials,r,t]),r.autenticado},Tg=()=>{const e=un();return pe.useCallback((t,r="default")=>{e(a$({mensaje:t,tipo:r}))},[e])},PI=Dr(N.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"}),"Email"),RI=Dr(N.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");var NI=".".charCodeAt(0),_I=/\\(\\)?/g,$I=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),MI=function(t){var r=[];return t.charCodeAt(0)===NI&&r.push(""),t.replace($I,function(n,o,i,a){var u=n;i?u=a.replace(_I,"$1"):o&&(u=o.trim()),r.push(u)}),r},Za={},kI=/[.[\]]+/,Og=function(t){if(t==null||!t.length)return[];if(typeof t!="string")throw new Error("toPath() expects a string");return Za[t]==null&&(t.endsWith("[]")?Za[t]=t.split(kI).filter(Boolean):Za[t]=MI(t)),Za[t]},ct=function(t,r){for(var n=Og(r),o=t,i=0;i<n.length;i++){var a=n[i];if(o==null||typeof o!="object"||Array.isArray(o)&&isNaN(a))return;o=o[a]}return o};function DI(e){var t=AI(e,"string");return typeof t=="symbol"?t:String(t)}function AI(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var II=function e(t,r,n,o,i){if(r>=n.length)return o;var a=n[r];if(isNaN(a)){var u;if(t==null){var c,l=e(void 0,r+1,n,o,i);return l===void 0?void 0:(c={},c[a]=l,c)}if(Array.isArray(t))throw new Error("Cannot set a non-numeric property on an array");var d=e(t[a],r+1,n,o,i);if(d===void 0){var f=Object.keys(t).length;if(t[a]===void 0&&f===0)return;if(t[a]!==void 0&&f<=1)return!isNaN(n[r-1])&&!i?{}:void 0;t[a];var p=de(t,[a].map(DI));return p}return T({},t,(u={},u[a]=d,u))}var y=Number(a);if(t==null){var v=e(void 0,r+1,n,o,i);if(v===void 0)return;var h=[];return h[y]=v,h}if(!Array.isArray(t))throw new Error("Cannot set a numeric property on an object");var m=t[y],g=e(m,r+1,n,o,i),S=[].concat(t);if(i&&g===void 0){if(S.splice(y,1),S.length===0)return}else S[y]=g;return S},Gt=function(t,r,n,o){if(o===void 0&&(o=!1),t==null)throw new Error("Cannot call setIn() with "+String(t)+" state");if(r==null)throw new Error("Cannot call setIn() with "+String(r)+" key");return II(t,0,Og(r),n,o)},Cg="FINAL_FORM/form-error",ri="FINAL_FORM/array-error";function Pg(e,t){var r=e.errors,n=e.initialValues,o=e.lastSubmittedValues,i=e.submitErrors,a=e.submitFailed,u=e.submitSucceeded,c=e.submitting,l=e.values,d=t.active,f=t.blur,p=t.change,y=t.data,v=t.focus,h=t.modified,m=t.modifiedSinceLastSubmit,g=t.name,S=t.touched,E=t.validating,x=t.visited,w=ct(l,g),P=ct(r,g);P&&P[ri]&&(P=P[ri]);var _=i&&ct(i,g),k=n&&ct(n,g),A=t.isEqual(k,w),L=!!(o&&!t.isEqual(ct(o,g),w)),Y=!P&&!_;return{active:d,blur:f,change:p,data:y,dirty:!A,dirtySinceLastSubmit:L,error:P,focus:v,initial:k,invalid:!Y,length:Array.isArray(w)?w.length:void 0,modified:h,modifiedSinceLastSubmit:m,name:g,pristine:A,submitError:_,submitFailed:a,submitSucceeded:u,submitting:c,touched:S,valid:Y,value:w,visited:x,validating:E}}var Rg=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],pr=function(t,r){if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var n=Object.keys(t),o=Object.keys(r);if(n.length!==o.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(r),a=0;a<n.length;a++){var u=n[a];if(!i(u)||t[u]!==r[u])return!1}return!0};function Ng(e,t,r,n,o,i){var a=!1;return o.forEach(function(u){n[u]&&(e[u]=t[u],(!r||(~i.indexOf(u)?!pr(t[u],r[u]):t[u]!==r[u]))&&(a=!0))}),a}var jI=["data"],FI=function(t,r,n,o){var i={blur:t.blur,change:t.change,focus:t.focus,name:t.name},a=Ng(i,t,r,n,Rg,jI)||!r;return a||o?i:void 0},_g=["active","dirty","dirtyFields","dirtyFieldsSinceLastSubmit","dirtySinceLastSubmit","error","errors","hasSubmitErrors","hasValidationErrors","initialValues","invalid","modified","modifiedSinceLastSubmit","pristine","submitting","submitError","submitErrors","submitFailed","submitSucceeded","touched","valid","validating","values","visited"],LI=["touched","visited"];function $g(e,t,r,n){var o={},i=Ng(o,e,t,r,_g,LI)||!t;return i||n?o:void 0}var Mg=function(t){var r,n;return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(!r||i.length!==r.length||i.some(function(u,c){return!pr(r[c],u)}))&&(r=i,n=t.apply(void 0,i)),n}},wc=function(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"},BI="4.20.9",VI=function(t,r){return t===r},no=function e(t){return Object.keys(t).some(function(r){var n=t[r];return n&&typeof n=="object"&&!(n instanceof Error)?e(n):typeof n<"u"})};function UI(e){var t=e.active,r=e.dirtySinceLastSubmit,n=e.modifiedSinceLastSubmit,o=e.error,i=e.errors,a=e.initialValues,u=e.pristine,c=e.submitting,l=e.submitFailed,d=e.submitSucceeded,f=e.submitError,p=e.submitErrors,y=e.valid,v=e.validating,h=e.values;return{active:t,dirty:!u,dirtySinceLastSubmit:r,modifiedSinceLastSubmit:n,error:o,errors:i,hasSubmitErrors:!!(f||p&&no(p)),hasValidationErrors:!!(o||no(i)),invalid:!y,initialValues:a,pristine:u,submitting:c,submitFailed:l,submitSucceeded:d,submitError:f,submitErrors:p,valid:y,validating:v>0,values:h}}function kg(e,t,r,n,o,i){var a=o(r,n,t,i);return a?(e(a),!0):!1}function Dg(e,t,r,n,o){var i=e.entries;Object.keys(i).forEach(function(a){var u=i[Number(a)];if(u){var c=u.subscription,l=u.subscriber,d=u.notified;kg(l,c,t,r,n,o||!d)&&(u.notified=!0)}})}function WI(e){if(!e)throw new Error("No config specified");var t=e.debug,r=e.destroyOnUnregister,n=e.keepDirtyOnReinitialize,o=e.initialValues,i=e.mutators,a=e.onSubmit,u=e.validate,c=e.validateOnBlur;if(!a)throw new Error("No onSubmit function specified");var l={subscribers:{index:0,entries:{}},fieldSubscribers:{},fields:{},formState:{asyncErrors:{},dirtySinceLastSubmit:!1,modifiedSinceLastSubmit:!1,errors:{},initialValues:o&&T({},o),invalid:!1,pristine:!0,submitting:!1,submitFailed:!1,submitSucceeded:!1,resetWhileSubmitting:!1,valid:!0,validating:0,values:o?T({},o):{}},lastFormState:void 0},d=0,f=!1,p=!1,y=!1,v=0,h={},m=function(O){return function($){return delete h[O],$}},g=function(O,$,D){var I=ct(O.formState.values,$),z=D(I);O.formState.values=Gt(O.formState.values,$,z)||{}},S=function(O,$,D){if(O.fields[$]){var I,z;O.fields=T({},O.fields,(I={},I[D]=T({},O.fields[$],{name:D,blur:function(){return j.blur(D)},change:function(H){return j.change(D,H)},focus:function(){return j.focus(D)},lastFieldState:void 0}),I)),delete O.fields[$],O.fieldSubscribers=T({},O.fieldSubscribers,(z={},z[D]=O.fieldSubscribers[$],z)),delete O.fieldSubscribers[$];var X=ct(O.formState.values,$);O.formState.values=Gt(O.formState.values,$,void 0)||{},O.formState.values=Gt(O.formState.values,D,X),delete O.lastFormState}},E=function(O){return function(){if(i){for(var $={formState:l.formState,fields:l.fields,fieldSubscribers:l.fieldSubscribers,lastFormState:l.lastFormState},D=arguments.length,I=new Array(D),z=0;z<D;z++)I[z]=arguments[z];var X=i[O](I,$,{changeValue:g,getIn:ct,renameField:S,resetFieldState:j.resetFieldState,setIn:Gt,shallowEqual:pr});return l.formState=$.formState,l.fields=$.fields,l.fieldSubscribers=$.fieldSubscribers,l.lastFormState=$.lastFormState,k(void 0,function(){A(),q()}),X}}},x=i?Object.keys(i).reduce(function(U,O){return U[O]=E(O),U},{}):{},w=function(O){var $=[];if(u){var D=u(T({},l.formState.values));wc(D)?$.push(D.then(function(I){return O(I,!0)})):O(D,!1)}return $},P=function(O){return Object.keys(O.validators).reduce(function($,D){var I=O.validators[Number(D)]();return I&&$.push(I),$},[])},_=function(O,$){var D=[],I=P(O);if(I.length){var z;I.forEach(function(X){var K=X(ct(l.formState.values,O.name),l.formState.values,X.length===0||X.length===3?Pg(l.formState,l.fields[O.name]):void 0);if(K&&wc(K)){O.validating=!0;var H=K.then(function(J){l.fields[O.name]&&(l.fields[O.name].validating=!1,$(J))});D.push(H)}else z||(z=K)}),$(z)}return D},k=function(O,$){if(f){p=!0,$();return}var D=l.fields,I=l.formState,z=T({},D),X=Object.keys(z);if(!u&&!X.some(function(rt){return P(z[rt]).length})){$();return}var K=!1;if(O){var H=z[O];if(H){var J=H.validateFields;J&&(K=!0,X=J.length?J.concat(O):[O])}}var re={},W={},ce={},R=[].concat(w(function(rt,Fe){Fe?W=rt||{}:re=rt||{}}),X.reduce(function(rt,Fe){return rt.concat(_(D[Fe],function(it){ce[Fe]=it}))},[])),se=R.length>0,ye=++v,Ee=Promise.all(R).then(m(ye));se&&(h[ye]=Ee);var Ot=function(Fe){var it=T({},K?I.errors:{},re,Fe?W:I.asyncErrors),nt=function(ft){X.forEach(function(at){if(D[at]){var st=ct(re,at),ke=ct(it,at),ge=P(z[at]).length,It=ce[at];ft(at,ge&&It||u&&st||(!st&&!K?ke:void 0))}})};nt(function(yt,ft){it=Gt(it,yt,ft)||{}}),nt(function(yt,ft){if(ft&&ft[ri]){var at=ct(it,yt),st=[].concat(at);st[ri]=ft[ri],it=Gt(it,yt,st)}}),pr(I.errors,it)||(I.errors=it),Fe&&(I.asyncErrors=W),I.error=re[Cg]};if(se&&(l.formState.validating++,$()),Ot(!1),$(),se){var Rt=function(){l.formState.validating--,$()};Ee.then(function(){v>ye||Ot(!0)}).then(Rt,Rt)}},A=function(O){if(!d){var $=l.fields,D=l.fieldSubscribers,I=l.formState,z=T({},$),X=function(H){var J=z[H],re=Pg(I,J),W=J.lastFieldState;J.lastFieldState=re;var ce=D[H];ce&&Dg(ce,re,W,FI,W===void 0)};O?X(O):Object.keys(z).forEach(X)}},L=function(){Object.keys(l.fields).forEach(function(O){l.fields[O].touched=!0})},Y=function(){return!!(l.formState.error||no(l.formState.errors))},te=function(){var O=l.fields,$=l.formState,D=l.lastFormState,I=T({},O),z=Object.keys(I),X=!1,K=z.reduce(function(se,ye){var Ee=!I[ye].isEqual(ct($.values,ye),ct($.initialValues||{},ye));return Ee&&(X=!0,se[ye]=!0),se},{}),H=z.reduce(function(se,ye){var Ee=$.lastSubmittedValues||{};return I[ye].isEqual(ct($.values,ye),ct(Ee,ye))||(se[ye]=!0),se},{});$.pristine=!X,$.dirtySinceLastSubmit=!!($.lastSubmittedValues&&Object.values(H).some(function(se){return se})),$.modifiedSinceLastSubmit=!!($.lastSubmittedValues&&Object.keys(I).some(function(se){return I[se].modifiedSinceLastSubmit})),$.valid=!$.error&&!$.submitError&&!no($.errors)&&!($.submitErrors&&no($.submitErrors));var J=UI($),re=z.reduce(function(se,ye){return se.modified[ye]=I[ye].modified,se.touched[ye]=I[ye].touched,se.visited[ye]=I[ye].visited,se},{modified:{},touched:{},visited:{}}),W=re.modified,ce=re.touched,R=re.visited;return J.dirtyFields=D&&pr(D.dirtyFields,K)?D.dirtyFields:K,J.dirtyFieldsSinceLastSubmit=D&&pr(D.dirtyFieldsSinceLastSubmit,H)?D.dirtyFieldsSinceLastSubmit:H,J.modified=D&&pr(D.modified,W)?D.modified:W,J.touched=D&&pr(D.touched,ce)?D.touched:ce,J.visited=D&&pr(D.visited,R)?D.visited:R,D&&pr(D,J)?D:J},ee=function(){return t&&!0&&t(te(),Object.keys(l.fields).reduce(function(O,$){return O[$]=l.fields[$],O},{}))},F=!1,B=!1,q=function U(){if(F)B=!0;else{if(F=!0,ee(),!d&&!(f&&y)){var O=l.lastFormState,$=te();$!==O&&(l.lastFormState=$,Dg(l.subscribers,$,O,$g))}F=!1,B&&(B=!1,U())}},Z=function(){return Object.keys(l.fields).some(function(O){return l.fields[O].beforeSubmit&&l.fields[O].beforeSubmit()===!1})},fe=function(){return Object.keys(l.fields).forEach(function(O){return l.fields[O].afterSubmit&&l.fields[O].afterSubmit()})},ve=function(){return Object.keys(l.fields).forEach(function(O){return l.fields[O].modifiedSinceLastSubmit=!1})};k(void 0,function(){q()});var j={batch:function(O){d++,O(),d--,A(),q()},blur:function(O){var $=l.fields,D=l.formState,I=$[O];I&&(delete D.active,$[O]=T({},I,{active:!1,touched:!0}),c?k(O,function(){A(),q()}):(A(),q()))},change:function(O,$){var D=l.fields,I=l.formState;if(ct(I.values,O)!==$){g(l,O,function(){return $});var z=D[O];z&&(D[O]=T({},z,{modified:!0,modifiedSinceLastSubmit:!!I.lastSubmittedValues})),c?(A(),q()):k(O,function(){A(),q()})}},get destroyOnUnregister(){return!!r},set destroyOnUnregister(U){r=U},focus:function(O){var $=l.fields[O];$&&!$.active&&(l.formState.active=O,$.active=!0,$.visited=!0,A(),q())},mutators:x,getFieldState:function(O){var $=l.fields[O];return $&&$.lastFieldState},getRegisteredFields:function(){return Object.keys(l.fields)},getState:function(){return te()},initialize:function(O){var $=l.fields,D=l.formState,I=T({},$),z=typeof O=="function"?O(D.values):O;n||(D.values=z);var X=n?Object.keys(I).reduce(function(K,H){var J=I[H],re=J.isEqual(ct(D.values,H),ct(D.initialValues||{},H));return re||(K[H]=ct(D.values,H)),K},{}):{};D.initialValues=z,D.values=z,Object.keys(X).forEach(function(K){D.values=Gt(D.values,K,X[K])||{}}),k(void 0,function(){A(),q()})},isValidationPaused:function(){return f},pauseValidation:function(O){O===void 0&&(O=!0),f=!0,y=O},registerField:function(O,$,D,I){D===void 0&&(D={}),l.fieldSubscribers[O]||(l.fieldSubscribers[O]={index:0,entries:{}});var z=l.fieldSubscribers[O].index++;l.fieldSubscribers[O].entries[z]={subscriber:Mg($),subscription:D,notified:!1};var X=l.fields[O]||{active:!1,afterSubmit:I&&I.afterSubmit,beforeSubmit:I&&I.beforeSubmit,data:I&&I.data||{},isEqual:I&&I.isEqual||VI,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:O,touched:!1,valid:!0,validateFields:I&&I.validateFields,validators:{},validating:!1,visited:!1};X.blur=X.blur||function(){return j.blur(O)},X.change=X.change||function(W){return j.change(O,W)},X.focus=X.focus||function(){return j.focus(O)},l.fields[O]=X;var K=!1,H=I&&I.silent,J=function(){H&&l.fields[O]?A(O):(q(),A())};if(I){K=!!(I.getValidator&&I.getValidator()),I.getValidator&&(l.fields[O].validators[z]=I.getValidator);var re=ct(l.formState.values,O)===void 0;I.initialValue!==void 0&&(re||ct(l.formState.values,O)===ct(l.formState.initialValues,O))&&(l.formState.initialValues=Gt(l.formState.initialValues||{},O,I.initialValue),l.formState.values=Gt(l.formState.values,O,I.initialValue),k(void 0,J)),I.defaultValue!==void 0&&I.initialValue===void 0&&ct(l.formState.initialValues,O)===void 0&&re&&(l.formState.values=Gt(l.formState.values,O,I.defaultValue))}return K?k(void 0,J):J(),function(){var W=!1;l.fields[O]&&(W=!!(l.fields[O].validators[z]&&l.fields[O].validators[z]()),delete l.fields[O].validators[z]);var ce=!!l.fieldSubscribers[O];ce&&delete l.fieldSubscribers[O].entries[z];var R=ce&&!Object.keys(l.fieldSubscribers[O].entries).length;R&&(delete l.fieldSubscribers[O],delete l.fields[O],W&&(l.formState.errors=Gt(l.formState.errors,O,void 0)||{}),r&&(l.formState.values=Gt(l.formState.values,O,void 0,!0)||{})),H||(W?k(void 0,function(){q(),A()}):R&&q())}},reset:function(O){O===void 0&&(O=l.formState.initialValues),l.formState.submitting&&(l.formState.resetWhileSubmitting=!0),l.formState.submitFailed=!1,l.formState.submitSucceeded=!1,delete l.formState.submitError,delete l.formState.submitErrors,delete l.formState.lastSubmittedValues,j.initialize(O||{})},resetFieldState:function(O){l.fields[O]=T({},l.fields[O],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),k(void 0,function(){A(),q()})},restart:function(O){O===void 0&&(O=l.formState.initialValues),j.batch(function(){for(var $ in l.fields)j.resetFieldState($),l.fields[$]=T({},l.fields[$],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});j.reset(O)})},resumeValidation:function(){f=!1,y=!1,p&&k(void 0,function(){A(),q()}),p=!1},setConfig:function(O,$){switch(O){case"debug":t=$;break;case"destroyOnUnregister":r=$;break;case"initialValues":j.initialize($);break;case"keepDirtyOnReinitialize":n=$;break;case"mutators":i=$,$?(Object.keys(x).forEach(function(D){D in $||delete x[D]}),Object.keys($).forEach(function(D){x[D]=E(D)})):Object.keys(x).forEach(function(D){delete x[D]});break;case"onSubmit":a=$;break;case"validate":u=$,k(void 0,function(){A(),q()});break;case"validateOnBlur":c=$;break;default:throw new Error("Unrecognised option "+O)}},submit:function(){var O=l.formState;if(!O.submitting){if(delete O.submitErrors,delete O.submitError,O.lastSubmittedValues=T({},O.values),Y()){L(),ve(),l.formState.submitFailed=!0,q(),A();return}var $=Object.keys(h);if($.length){Promise.all($.map(function(H){return h[Number(H)]})).then(j.submit,console.error);return}var D=Z();if(!D){var I,z=!1,X=function(J){O.submitting=!1;var re=O.resetWhileSubmitting;return re&&(O.resetWhileSubmitting=!1),J&&no(J)?(O.submitFailed=!0,O.submitSucceeded=!1,O.submitErrors=J,O.submitError=J[Cg],L()):(re||(O.submitFailed=!1,O.submitSucceeded=!0),fe()),q(),A(),z=!0,I&&I(J),J};O.submitting=!0,O.submitFailed=!1,O.submitSucceeded=!1,O.lastSubmittedValues=T({},O.values),ve();var K=a(O.values,j,X);if(!z){if(K&&wc(K))return q(),A(),K.then(X,function(H){throw X(),H});if(a.length>=3)return q(),A(),new Promise(function(H){I=H});X(K)}}}},subscribe:function(O,$){if(!O)throw new Error("No callback given.");if(!$)throw new Error("No subscription provided. What values do you want to listen to?");var D=Mg(O),I=l.subscribers,z=I.index++;I.entries[z]={subscriber:D,subscription:$,notified:!1};var X=te();return kg(D,$,X,X,$g,!0),function(){delete I.entries[z]}}};return j}var zI=["render","children","component"];function Ag(e,t,r){var n=e.render,o=e.children,i=e.component,a=de(e,zI);if(i)return b.createElement(i,Object.assign(t,a,{children:o,render:n}));if(n)return n(o===void 0?Object.assign(t,a):Object.assign(t,a,{children:o}));if(typeof o!="function")throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+r);return o(Object.assign(t,a))}function Rr(e,t,r){r===void 0&&(r=function(i,a){return i===a});var n=pe.useRef(e);pe.useEffect(function(){r(e,n.current)||(t(),n.current=e)})}function qI(e){var t=pe.useRef();return t.current||(t.current=e()),t.current}var xc=function(t,r){if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var n=Object.keys(t),o=Object.keys(r);if(n.length!==o.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(r),a=0;a<n.length;a++){var u=n[a];if(!i(u)||t[u]!==r[u])return!1}return!0},HI=function(t){return!!(t&&typeof t.stopPropagation=="function")},Ig=b.createContext();function jg(e){var t=pe.useRef(e);return pe.useEffect(function(){t.current=e}),t}var YI="6.5.8",Fg=function(t,r,n){n.forEach(function(o){Object.defineProperty(t,o,{get:function(){return r[o]},enumerable:!0})})},GI=function(t,r){return Fg(t,r,["active","dirty","dirtyFields","dirtySinceLastSubmit","dirtyFieldsSinceLastSubmit","error","errors","hasSubmitErrors","hasValidationErrors","initialValues","invalid","modified","modifiedSinceLastSubmit","pristine","submitError","submitErrors","submitFailed","submitSucceeded","submitting","touched","valid","validating","values","visited"])},KI=function(t,r){return Fg(t,r,["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","validating","visited"])},XI=["debug","decorators","destroyOnUnregister","form","initialValues","initialValuesEqual","keepDirtyOnReinitialize","mutators","onSubmit","subscription","validate","validateOnBlur"],JI={"final-form":BI,"react-final-form":YI},QI=_g.reduce(function(e,t){return e[t]=!0,e},{});function ZI(e){var t=e.debug,r=e.decorators,n=r===void 0?[]:r,o=e.destroyOnUnregister,i=e.form,a=e.initialValues,u=e.initialValuesEqual,c=e.keepDirtyOnReinitialize,l=e.mutators,d=e.onSubmit,f=e.subscription,p=f===void 0?QI:f,y=e.validate,v=e.validateOnBlur,h=de(e,XI),m={debug:t,destroyOnUnregister:o,initialValues:a,keepDirtyOnReinitialize:c,mutators:l,onSubmit:d,validate:y,validateOnBlur:v},g=qI(function(){var k=i||WI(m);return k.pauseValidation(),k}),S=b.useState(function(){var k={};return g.subscribe(function(A){k=A},p)(),k}),E=S[0],x=S[1],w=jg(E);b.useEffect(function(){g.isValidationPaused()&&g.resumeValidation();var k=[g.subscribe(function(A){xc(A,w.current)||x(A)},p)].concat(n?n.map(function(A){return A(g)}):[]);return function(){g.pauseValidation(),k.reverse().forEach(function(A){return A()})}},n),process.env.NODE_ENV!=="production"&&Rr(n,function(){console.error("Form decorators should not change from one render to the next as new values will be ignored")},xc),Rr(t,function(){g.setConfig("debug",t)}),Rr(o,function(){g.destroyOnUnregister=!!o}),Rr(c,function(){g.setConfig("keepDirtyOnReinitialize",c)}),Rr(a,function(){g.setConfig("initialValues",a)},u||xc),Rr(l,function(){g.setConfig("mutators",l)}),Rr(d,function(){g.setConfig("onSubmit",d)}),Rr(y,function(){g.setConfig("validate",y)}),Rr(v,function(){g.setConfig("validateOnBlur",v)});var P=function(A){return A&&(typeof A.preventDefault=="function"&&A.preventDefault(),typeof A.stopPropagation=="function"&&A.stopPropagation()),g.submit()},_={form:T({},g,{reset:function(A){HI(A)?g.reset():g.reset(A)}}),handleSubmit:P};return GI(_,E),b.createElement(Ig.Provider,{value:g},Ag(T({},h,{__versions:JI}),_,"ReactFinalForm"))}function ej(e){var t=b.useContext(Ig);if(!t)throw new Error((e||"useForm")+" must be used inside of a <Form> component");return t}var tj=typeof window<"u"&&window.navigator&&window.navigator.product&&window.navigator.product==="ReactNative",rj=function(t){var r=[];if(t)for(var n=0;n<t.length;n++){var o=t[n];o.selected&&r.push(o.value)}return r},nj=function(t,r,n,o){if(!o&&t.nativeEvent&&t.nativeEvent.text!==void 0||o&&t.nativeEvent)return t.nativeEvent.text;var i=t,a=i.target,u=a.type,c=a.value,l=a.checked;switch(u){case"checkbox":if(n!==void 0){if(l)return Array.isArray(r)?r.concat(n):[n];if(!Array.isArray(r))return r;var d=r.indexOf(n);return d<0?r:r.slice(0,d).concat(r.slice(d+1))}else return!!l;case"select-multiple":return rj(t.target.options);default:return c}};function Sc(e){var t=b.useRef(e);return b.useEffect(function(){t.current=e}),b.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current.apply(null,n)},[])}var oj=Rg.reduce(function(e,t){return e[t]=!0,e},{}),Tc=function(t,r){return t===void 0?"":t},ij=function(t,r){return t===""?void 0:t},aj=function(t,r){return t===r};function sj(e,t){t===void 0&&(t={});var r=t,n=r.afterSubmit,o=r.allowNull,i=r.component,a=r.data,u=r.defaultValue,c=r.format,l=c===void 0?Tc:c,d=r.formatOnBlur,f=r.initialValue,p=r.multiple,y=r.parse,v=y===void 0?ij:y,h=r.subscription,m=h===void 0?oj:h,g=r.type,S=r.validateFields,E=r.value,x=ej("useField"),w=jg(t),P=function(B,q){return x.registerField(e,B,m,{afterSubmit:n,beforeSubmit:function(){var fe=w.current,ve=fe.beforeSubmit,j=fe.formatOnBlur,U=fe.format,O=U===void 0?Tc:U;if(j){var $=x.getFieldState(e),D=$.value,I=O(D,e);I!==D&&x.change(e,I)}return ve&&ve()},data:a,defaultValue:u,getValidator:function(){return w.current.validate},initialValue:f,isEqual:function(fe,ve){return(w.current.isEqual||aj)(fe,ve)},silent:q,validateFields:S})},_=b.useRef(!0),k=b.useState(function(){var F={},B=x.destroyOnUnregister;return x.destroyOnUnregister=!1,P(function(q){F=q},!0)(),x.destroyOnUnregister=B,F}),A=k[0],L=k[1];b.useEffect(function(){return P(function(F){_.current?_.current=!1:L(F)},!1)},[e,a,u,f]);var Y={};KI(Y,A);var te={name:e,get value(){var F=A.value;return d?i==="input"&&(F=Tc(F)):F=l(F,e),F===null&&!o&&(F=""),g==="checkbox"||g==="radio"?E:i==="select"&&p?F||[]:F},get checked(){var F=A.value;if(g==="checkbox")return F=l(F,e),E===void 0?!!F:!!(Array.isArray(F)&&~F.indexOf(E));if(g==="radio")return l(F,e)===E},onBlur:Sc(function(F){if(A.blur(),d){var B=x.getFieldState(A.name);A.change(l(B.value,A.name))}}),onChange:Sc(function(F){if(process.env.NODE_ENV!=="production"&&F&&F.target){var B=F.target.type,q=~["checkbox","radio","select-multiple"].indexOf(B)&&!g&&i!=="select",Z=B==="select-multiple"?A.value:E;q&&console.error('You must pass `type="'+(B==="select-multiple"?"select":B)+'"` prop to your Field('+e+`) component.
|
|
336
|
+
`+("Without it we don't know how to unpack your `value` prop - "+(Array.isArray(Z)?"["+Z+"]":'"'+Z+'"')+"."))}var fe=F&&F.target?nj(F,A.value,E,tj):F;A.change(v(fe,e))}),onFocus:Sc(function(F){return A.focus()})};p&&(te.multiple=p),g!==void 0&&(te.type=g);var ee={input:te,meta:Y};return ee}var uj=["afterSubmit","allowNull","beforeSubmit","children","component","data","defaultValue","format","formatOnBlur","initialValue","isEqual","multiple","name","parse","subscription","type","validate","validateFields","value"],lj=b.forwardRef(function(t,r){var n=t.afterSubmit,o=t.allowNull,i=t.beforeSubmit,a=t.children,u=t.component,c=t.data,l=t.defaultValue,d=t.format,f=t.formatOnBlur,p=t.initialValue,y=t.isEqual,v=t.multiple,h=t.name,m=t.parse,g=t.subscription,S=t.type,E=t.validate,x=t.validateFields,w=t.value,P=de(t,uj),_=sj(h,{afterSubmit:n,allowNull:o,beforeSubmit:i,children:a,component:u,data:c,defaultValue:l,format:d,formatOnBlur:f,initialValue:p,isEqual:y,multiple:v,parse:m,subscription:g,type:S,validate:E,validateFields:x,value:w});if(typeof a=="function")return a(T({},_,P));if(typeof u=="string")return b.createElement(u,T({},_.input,{children:a,ref:r},P));if(!h)throw new Error("prop name cannot be undefined in <Field> component");return Ag(T({children:a,component:u,ref:r},P),_,"Field("+h+")")});function oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oo.apply(this,arguments)}function Oc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var cj=function(t){var r=t.meta,n=r.submitError,o=r.dirtySinceLastSubmit,i=r.error,a=r.touched,u=r.modified;return!!((n&&!o||i)&&(a||u))},dj=["name","type","fieldProps"],fj=["name","value","type","onChange","onBlur","onFocus"],pj=["input","meta","required","fullWidth","helperText","showError"];function Lg(e){var t=e.name,r=e.type,n=e.fieldProps,o=Oc(e,dj);return pe.createElement(lj,oo({name:t,type:r,render:function(a){var u=a.input,c=a.meta;return pe.createElement(mj,oo({input:u,meta:c,name:t,type:r},o))}},n))}function mj(e){var t=e.input,r=t.name,n=t.value,o=t.type,i=t.onChange,a=t.onBlur,u=t.onFocus,c=Oc(t,fj),l=e.meta,d=e.required,f=e.fullWidth,p=f===void 0?!0:f,y=e.helperText,v=e.showError,h=v===void 0?cj:v,m=Oc(e,pj),g=l.error,S=l.submitError,E=h({meta:l});return pe.createElement(K1,oo({fullWidth:p,helperText:E?g||S:y,error:E,onChange:i,onBlur:a,onFocus:u,name:r,value:n,type:o,required:d,inputProps:oo({required:d},c)},m))}const hj=({devURL:e})=>{const t=un(),r=jn.useTranslate(),n=Tg(),{cargando:o,error:i}=or(l=>l.login),a=or(l=>l.aplicacion.instancia),u=l=>{t(Ma({devURL:e,clientCredentials:a.clientCredentials,data:{correo:l.correo,password:l.password}}))},c=l=>{const d={correo:void 0,password:void 0};return l.correo||(d.correo=r("saas.login.validacion.correo")),l.password||(d.password=r("saas.login.validacion.password")),d};return pe.useEffect(()=>{i&&n("saas.login.error","error")},[n,i]),N.jsx(ZI,{onSubmit:u,validate:c,render:({handleSubmit:l})=>N.jsxs("form",{onSubmit:l,children:[N.jsx(Lg,{id:"correo",name:"correo",label:r("saas.login.correo"),variant:"outlined",autoComplete:"off",disabled:o,autoFocus:!0,InputProps:{startAdornment:N.jsx(Ip,{position:"start",children:N.jsx(PI,{color:"primary"})})}}),N.jsx(Lg,{id:"password",name:"password",type:"password",label:r("saas.login.password"),variant:"outlined",autoComplete:"current-password",disabled:o,InputProps:{startAdornment:N.jsx(Ip,{position:"start",children:N.jsx(RI,{color:"primary"})})}}),N.jsxs(In,{container:!0,children:[N.jsx(In,{item:!0,xs:6}),N.jsx(In,{item:!0,xs:6,align:"right",children:N.jsx(VS,{variant:"contained",color:"primary",type:"submit",disabled:o,children:o?N.jsx(yp,{size:24,thickness:4}):r("saas.login.ingresar")})})]})]})})},vj=({devURL:e})=>{const t=or(a=>a.aplicacion.instancia),r=jn.useTranslate(),n=Pr(),o=Sg(e),{from:i}=n.state||{from:{pathname:"/"}};return!t.requiereLogin||o?N.jsx(yg,{to:i}):N.jsxs($o,{sx:{position:"relative",display:"flex",flexDirection:"column",flexGrow:1,minHeight:"100vh",backgroundColor:"primary.main","&::before":{content:'""',backgroundImage:`url(${t.logo})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"right",position:"absolute",top:"20%",bottom:0,right:0,width:"50%",opacity:.02,filter:"grayscale(100%)"}},children:[N.jsx($o,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexGrow:1},children:N.jsx(mT,{maxWidth:"md",children:N.jsxs(In,{container:!0,spacing:3,children:[N.jsxs(In,{item:!0,xs:12,lg:5,align:"center",children:[N.jsx("img",{src:t.logo,alt:t.nombre,style:{maxWidth:"100%"}}),N.jsx(nr,{variant:"h3",align:"center",children:r("aplicacion.nombre",{smart_count:1})}),N.jsx(nr,{variant:"h5",align:"center",children:t.nombre})]}),N.jsx(In,{item:!0,xs:12,lg:7,sx:{display:"flex",alignItems:"center",justifyContent:"center",zIndex:5},children:N.jsxs(HS,{elevation:5,children:[N.jsx(iT,{title:r("saas.login.titulo"),titleTypographyProps:{align:"center"}}),N.jsx(JS,{sx:{"& .MuiTextField-root":{mb:2}},children:N.jsx(hj,{devURL:e})})]})})]})})}),N.jsx(hS,{position:"static",color:"primary",children:N.jsx(W1,{sx:{justifyContent:"center"},children:N.jsxs(nr,{variant:"caption",children:[r("saas.copy"),N.jsx(PO,{href:"//chimera.com.pe",color:"inherit",target:"_blank",rel:"noreferrer",children:"Chimera Software"})]})})})]})},yj=({devURL:e,redirectTo:t,children:r})=>{const n=Pr();return Sg(e)?r:N.jsx(yg,{to:t,state:{from:n},replace:!0})},gj=({devURL:e,requiereLogin:t,children:r})=>N.jsx(vI,{children:N.jsxs(oI,{children:[N.jsx(vc,{path:"/login",element:N.jsx(vj,{devURL:e})}),N.jsx(vc,{path:"/*",element:t?N.jsx(yj,{devURL:e,redirectTo:"/login",children:r}):r})]})}),bj=({devURL:e,children:t})=>{const r=or(n=>n.aplicacion);return N.jsx($o,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",justifyContent:"flex-start",backgroundColor:"background.default"},children:r.inicializando?N.jsx(dm,{}):r.error||!r.inicializado?N.jsx(tl,{titulo:"saas.inicializar.error.titulo",texto:"saas.inicializar.error.mensaje"}):N.jsxs(N.Fragment,{children:[N.jsx(gj,{devURL:e,requiereLogin:r.instancia.requiereLogin,children:t}),N.jsx(p$,{})]})})},Ej=({aplicacion:e,devSaasURL:t,devAuthURL:r,messages:n,idioma:o,children:i})=>{const a=un();return pe.useEffect(()=>{a(Da({devURL:t,aplicacion:e}))},[a,e,t]),N.jsx(pA,{messages:n,idioma:o,children:N.jsx(mA,{children:N.jsx(bj,{devURL:r,children:i})})})},wj=({customReducers:e,aplicacion:t,devSaasURL:r,devAuthURL:n,dev:o=!1,idioma:i,messages:a,children:u})=>N.jsx(VR,{store:f$(e),children:N.jsx(Ej,{aplicacion:t,devSaasURL:o&&r,devAuthURL:o&&n,idioma:i,messages:a,children:u})});Ut.Cargando=dm,Ut.Error=tl,Ut.SaasApp=wj,Ut.logout=wy,Ut.useNotificar=Tg,Object.defineProperty(Ut,Symbol.toStringTag,{value:"Module"})});
|