@crystaltech/hsms-shared-ui 0.0.1
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/LICENSE +21 -0
- package/README.md +133 -0
- package/dist/App.d.ts +65 -0
- package/dist/components/Cards.d.ts +2 -0
- package/dist/components/ColorPickerManageWithLabel.d.ts +7 -0
- package/dist/components/ColorSettings.d.ts +2 -0
- package/dist/components/CustomAutoComplete.d.ts +11 -0
- package/dist/components/CustomFilter.d.ts +9 -0
- package/dist/components/DataTable.d.ts +23 -0
- package/dist/components/DynamicTable.d.ts +10 -0
- package/dist/components/Lists.d.ts +2 -0
- package/dist/components/Logo.d.ts +8 -0
- package/dist/components/ManageCheckbox.d.ts +2 -0
- package/dist/components/MultiDynamicTable/AddNewField.d.ts +10 -0
- package/dist/components/MultiDynamicTable/ColumnVisibilityManage.d.ts +7 -0
- package/dist/components/MultiDynamicTable/FieldContent.d.ts +7 -0
- package/dist/components/MultiDynamicTable/MultiDynamicTable.d.ts +5 -0
- package/dist/components/ProfilePage.d.ts +15 -0
- package/dist/components/ProfilePages.d.ts +2 -0
- package/dist/components/TableSetting.d.ts +2 -0
- package/dist/components/Tables.d.ts +23 -0
- package/dist/components/ThemeSetting.d.ts +2 -0
- package/dist/components/ThemeToggler.d.ts +2 -0
- package/dist/components/TypographySettings.d.ts +3 -0
- package/dist/components/UiFiles.d.ts +2 -0
- package/dist/components/layout/Customization/ThemeColorSet.d.ts +2 -0
- package/dist/components/layout/Customization/index.d.ts +2 -0
- package/dist/components/layout/MainLayout/index.d.ts +21 -0
- package/dist/components/layout/MainlayoutWithWrapper.d.ts +4 -0
- package/dist/components/layout/dummyData.d.ts +15 -0
- package/dist/components/styled-components/index.d.ts +3 -0
- package/dist/components/ui/AsyncAutocomplete.d.ts +10 -0
- package/dist/components/ui/CheckboxListWithAvatar.d.ts +11 -0
- package/dist/components/ui/ControlledDatePicker.d.ts +9 -0
- package/dist/components/ui/CustomButton.d.ts +9 -0
- package/dist/components/ui/CustomCheckbox.d.ts +8 -0
- package/dist/components/ui/CustomColorPicker.d.ts +7 -0
- package/dist/components/ui/CustomDatePicker.d.ts +9 -0
- package/dist/components/ui/CustomIconButton.d.ts +6 -0
- package/dist/components/ui/CustomInput.d.ts +10 -0
- package/dist/components/ui/CustomRadioGroup.d.ts +12 -0
- package/dist/components/ui/CustomScrollbar.d.ts +8 -0
- package/dist/components/ui/CustomSelect.d.ts +13 -0
- package/dist/components/ui/CustomSelectableList.d.ts +11 -0
- package/dist/components/ui/CustomSwitch.d.ts +6 -0
- package/dist/components/ui/CustomTabs.d.ts +12 -0
- package/dist/components/ui/CustomTextfield.d.ts +8 -0
- package/dist/components/ui/Footer.d.ts +6 -0
- package/dist/components/ui/Navbar.d.ts +33 -0
- package/dist/components/ui/SideDrawer.d.ts +22 -0
- package/dist/components/ui/StatCard.d.ts +8 -0
- package/dist/contexts/ThemeContext.d.ts +12 -0
- package/dist/contexts/ThemeContextProvider.d.ts +7 -0
- package/dist/hooks/useManageTheme.d.ts +8 -0
- package/dist/images/logo.png +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +9113 -0
- package/dist/index.js +211 -0
- package/dist/main.d.ts +0 -0
- package/dist/manifest.webmanifest +1 -0
- package/dist/registerSW.js +1 -0
- package/dist/routes/index.d.ts +1 -0
- package/dist/sw.js +1 -0
- package/dist/theme/ThemeCustomization.d.ts +6 -0
- package/dist/theme/base-theme-options.d.ts +2 -0
- package/dist/theme/dark-theme-options.d.ts +19 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/light-theme-options.d.ts +43 -0
- package/dist/utils/Utils.d.ts +0 -0
- package/dist/vite.svg +1 -0
- package/dist/workbox-3e8df8c8.js +1 -0
- package/package.json +77 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";var Qo=Object.defineProperty;var Zo=(e,t,n)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rt=(e,t,n)=>Zo(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("react"),ei=require("@emotion/styled"),Ze=require("@emotion/react"),k=require("@mui/material"),sr=require("@mui/icons-material"),yt=require("react-router-dom"),$t=require("react-dom");function ro(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=ro(re),ti=ro($t);function ni(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt={exports:{}},Ot={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and 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 ar;function ri(){if(ar)return Ot;ar=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return Ot.Fragment=t,Ot.jsx=n,Ot.jsxs=n,Ot}var Pt={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and 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 lr;function oi(){return lr||(lr=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(p==null)return null;if(typeof p=="function")return p.$$typeof===oe?null:p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case _:return"Fragment";case x:return"Portal";case H:return"Profiler";case z:return"StrictMode";case A:return"Suspense";case D:return"SuspenseList"}if(typeof p=="object")switch(typeof p.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),p.$$typeof){case c:return(p.displayName||"Context")+".Provider";case Y:return(p._context.displayName||"Context")+".Consumer";case $:var R=p.render;return p=p.displayName,p||(p=R.displayName||R.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case L:return R=p.displayName||null,R!==null?R:e(p.type)||"Memo";case I:R=p._payload,p=p._init;try{return e(p(R))}catch{}}return null}function t(p){return""+p}function n(p){try{t(p);var R=!1}catch{R=!0}if(R){R=console;var W=R.error,ie=typeof Symbol=="function"&&Symbol.toStringTag&&p[Symbol.toStringTag]||p.constructor.name||"Object";return W.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ie),t(p)}}function r(){}function o(){if(F===0){X=console.log,q=console.info,J=console.warn,ee=console.error,ne=console.group,V=console.groupCollapsed,Z=console.groupEnd;var p={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}F++}function i(){if(F--,F===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},p,{value:X}),info:j({},p,{value:q}),warn:j({},p,{value:J}),error:j({},p,{value:ee}),group:j({},p,{value:ne}),groupCollapsed:j({},p,{value:V}),groupEnd:j({},p,{value:Z})})}0>F&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function a(p){if(O===void 0)try{throw Error()}catch(W){var R=W.stack.trim().match(/\n( *(at )?)/);O=R&&R[1]||"",le=-1<W.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<W.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+O+p+le}function l(p,R){if(!p||Ee)return"";var W=Se.get(p);if(W!==void 0)return W;Ee=!0,W=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var ie=null;ie=Q.H,Q.H=null,o();try{var Te={DetermineComponentFrameRoot:function(){try{if(R){var He=function(){throw Error()};if(Object.defineProperty(He.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(He,[])}catch(Be){var Vt=Be}Reflect.construct(p,[],He)}else{try{He.call()}catch(Be){Vt=Be}p.call(He.prototype)}}else{try{throw Error()}catch(Be){Vt=Be}(He=p())&&typeof He.catch=="function"&&He.catch(function(){})}}catch(Be){if(Be&&Vt&&typeof Be.stack=="string")return[Be.stack,Vt.stack]}return[null,null]}};Te.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var he=Object.getOwnPropertyDescriptor(Te.DetermineComponentFrameRoot,"name");he&&he.configurable&&Object.defineProperty(Te.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var te=Te.DetermineComponentFrameRoot(),De=te[0],ct=te[1];if(De&&ct){var Ce=De.split(`
|
|
20
|
+
`),nt=ct.split(`
|
|
21
|
+
`);for(te=he=0;he<Ce.length&&!Ce[he].includes("DetermineComponentFrameRoot");)he++;for(;te<nt.length&&!nt[te].includes("DetermineComponentFrameRoot");)te++;if(he===Ce.length||te===nt.length)for(he=Ce.length-1,te=nt.length-1;1<=he&&0<=te&&Ce[he]!==nt[te];)te--;for(;1<=he&&0<=te;he--,te--)if(Ce[he]!==nt[te]){if(he!==1||te!==1)do if(he--,te--,0>te||Ce[he]!==nt[te]){var wt=`
|
|
22
|
+
`+Ce[he].replace(" at new "," at ");return p.displayName&&wt.includes("<anonymous>")&&(wt=wt.replace("<anonymous>",p.displayName)),typeof p=="function"&&Se.set(p,wt),wt}while(1<=he&&0<=te);break}}}finally{Ee=!1,Q.H=ie,i(),Error.prepareStackTrace=W}return Ce=(Ce=p?p.displayName||p.name:"")?a(Ce):"",typeof p=="function"&&Se.set(p,Ce),Ce}function d(p){if(p==null)return"";if(typeof p=="function"){var R=p.prototype;return l(p,!(!R||!R.isReactComponent))}if(typeof p=="string")return a(p);switch(p){case A:return a("Suspense");case D:return a("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case $:return p=l(p.render,!1),p;case L:return d(p.type);case I:R=p._payload,p=p._init;try{return d(p(R))}catch{}}return""}function f(){var p=Q.A;return p===null?null:p.getOwner()}function m(p){if(w.call(p,"key")){var R=Object.getOwnPropertyDescriptor(p,"key").get;if(R&&R.isReactWarning)return!1}return p.key!==void 0}function h(p,R){function W(){Ne||(Ne=!0,console.error("%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://react.dev/link/special-props)",R))}W.isReactWarning=!0,Object.defineProperty(p,"key",{get:W,configurable:!0})}function y(){var p=e(this.type);return $e[p]||($e[p]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),p=this.props.ref,p!==void 0?p:null}function b(p,R,W,ie,Te,he){return W=he.ref,p={$$typeof:E,type:p,key:R,props:he,_owner:Te},(W!==void 0?W:null)!==null?Object.defineProperty(p,"ref",{enumerable:!1,get:y}):Object.defineProperty(p,"ref",{enumerable:!1,value:null}),p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(p,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p}function v(p,R,W,ie,Te,he){if(typeof p=="string"||typeof p=="function"||p===_||p===H||p===z||p===A||p===D||p===M||typeof p=="object"&&p!==null&&(p.$$typeof===I||p.$$typeof===L||p.$$typeof===c||p.$$typeof===Y||p.$$typeof===$||p.$$typeof===K||p.getModuleId!==void 0)){var te=R.children;if(te!==void 0)if(ie)if(U(te)){for(ie=0;ie<te.length;ie++)u(te[ie],p);Object.freeze&&Object.freeze(te)}else console.error("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 u(te,p)}else te="",(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),p===null?ie="null":U(p)?ie="array":p!==void 0&&p.$$typeof===E?(ie="<"+(e(p.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof p,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,te);if(w.call(R,"key")){te=e(p);var De=Object.keys(R).filter(function(Ce){return Ce!=="key"});ie=0<De.length?"{key: someKey, "+De.join(": ..., ")+": ...}":"{key: someKey}",je[te+ie]||(De=0<De.length?"{"+De.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
|
+
let props = %s;
|
|
24
|
+
<%s {...props} />
|
|
25
|
+
React keys must be passed directly to JSX without using spread:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s key={someKey} {...props} />`,ie,te,De,te),je[te+ie]=!0)}if(te=null,W!==void 0&&(n(W),te=""+W),m(R)&&(n(R.key),te=""+R.key),"key"in R){W={};for(var ct in R)ct!=="key"&&(W[ct]=R[ct])}else W=R;return te&&h(W,typeof p=="function"?p.displayName||p.name||"Unknown":p),b(p,te,he,Te,f(),W)}function u(p,R){if(typeof p=="object"&&p&&p.$$typeof!==lt){if(U(p))for(var W=0;W<p.length;W++){var ie=p[W];S(ie)&&N(ie,R)}else if(S(p))p._store&&(p._store.validated=1);else if(p===null||typeof p!="object"?W=null:(W=G&&p[G]||p["@@iterator"],W=typeof W=="function"?W:null),typeof W=="function"&&W!==p.entries&&(W=W.call(p),W!==p))for(;!(p=W.next()).done;)S(p.value)&&N(p.value,R)}}function S(p){return typeof p=="object"&&p!==null&&p.$$typeof===E}function N(p,R){if(p._store&&!p._store.validated&&p.key==null&&(p._store.validated=1,R=B(R),!qe[R])){qe[R]=!0;var W="";p&&p._owner!=null&&p._owner!==f()&&(W=null,typeof p._owner.tag=="number"?W=e(p._owner.type):typeof p._owner.name=="string"&&(W=p._owner.name),W=" It was passed a child from "+W+".");var ie=Q.getCurrentStack;Q.getCurrentStack=function(){var Te=d(p.type);return ie&&(Te+=ie()||""),Te},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',R,W),Q.getCurrentStack=ie}}function B(p){var R="",W=f();return W&&(W=e(W.type))&&(R=`
|
|
28
|
+
|
|
29
|
+
Check the render method of \``+W+"`."),R||(p=e(p))&&(R=`
|
|
30
|
+
|
|
31
|
+
Check the top-level render call using <`+p+">."),R}var C=re,E=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),c=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),G=Symbol.iterator,oe=Symbol.for("react.client.reference"),Q=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=Object.prototype.hasOwnProperty,j=Object.assign,K=Symbol.for("react.client.reference"),U=Array.isArray,F=0,X,q,J,ee,ne,V,Z;r.__reactDisabledLog=!0;var O,le,Ee=!1,Se=new(typeof WeakMap=="function"?WeakMap:Map),lt=Symbol.for("react.client.reference"),Ne,$e={},je={},qe={};Pt.Fragment=_,Pt.jsx=function(p,R,W,ie,Te){return v(p,R,W,!1,ie,Te)},Pt.jsxs=function(p,R,W,ie,Te){return v(p,R,W,!0,ie,Te)}}()),Pt}var cr;function ii(){return cr||(cr=1,process.env.NODE_ENV==="production"?zt.exports=ri():zt.exports=oi()),zt.exports}var g=ii();function St(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}var Ft={exports:{}},ce={};/**
|
|
32
|
+
* @license React
|
|
33
|
+
* react-is.production.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/var ur;function si(){if(ur)return ce;ur=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");function v(u){if(typeof u=="object"&&u!==null){var S=u.$$typeof;switch(S){case e:switch(u=u.type,u){case n:case o:case r:case d:case f:return u;default:switch(u=u&&u.$$typeof,u){case a:case l:case h:case m:return u;case i:return u;default:return S}}case t:return S}}}return ce.ContextConsumer=i,ce.ContextProvider=a,ce.Element=e,ce.ForwardRef=l,ce.Fragment=n,ce.Lazy=h,ce.Memo=m,ce.Portal=t,ce.Profiler=o,ce.StrictMode=r,ce.Suspense=d,ce.SuspenseList=f,ce.isContextConsumer=function(u){return v(u)===i},ce.isContextProvider=function(u){return v(u)===a},ce.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===e},ce.isForwardRef=function(u){return v(u)===l},ce.isFragment=function(u){return v(u)===n},ce.isLazy=function(u){return v(u)===h},ce.isMemo=function(u){return v(u)===m},ce.isPortal=function(u){return v(u)===t},ce.isProfiler=function(u){return v(u)===o},ce.isStrictMode=function(u){return v(u)===r},ce.isSuspense=function(u){return v(u)===d},ce.isSuspenseList=function(u){return v(u)===f},ce.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===n||u===o||u===r||u===d||u===f||u===y||typeof u=="object"&&u!==null&&(u.$$typeof===h||u.$$typeof===m||u.$$typeof===a||u.$$typeof===i||u.$$typeof===l||u.$$typeof===b||u.getModuleId!==void 0)},ce.typeOf=v,ce}var ue={};/**
|
|
40
|
+
* @license React
|
|
41
|
+
* react-is.development.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/var dr;function ai(){return dr||(dr=1,process.env.NODE_ENV!=="production"&&function(){function e(u){if(typeof u=="object"&&u!==null){var S=u.$$typeof;switch(S){case t:switch(u=u.type,u){case r:case i:case o:case f:case m:return u;default:switch(u=u&&u.$$typeof,u){case l:case d:case y:case h:return u;case a:return u;default:return S}}case n:return S}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");ue.ContextConsumer=a,ue.ContextProvider=l,ue.Element=t,ue.ForwardRef=d,ue.Fragment=r,ue.Lazy=y,ue.Memo=h,ue.Portal=n,ue.Profiler=i,ue.StrictMode=o,ue.Suspense=f,ue.SuspenseList=m,ue.isContextConsumer=function(u){return e(u)===a},ue.isContextProvider=function(u){return e(u)===l},ue.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===t},ue.isForwardRef=function(u){return e(u)===d},ue.isFragment=function(u){return e(u)===r},ue.isLazy=function(u){return e(u)===y},ue.isMemo=function(u){return e(u)===h},ue.isPortal=function(u){return e(u)===n},ue.isProfiler=function(u){return e(u)===i},ue.isStrictMode=function(u){return e(u)===o},ue.isSuspense=function(u){return e(u)===f},ue.isSuspenseList=function(u){return e(u)===m},ue.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===r||u===i||u===o||u===f||u===m||u===b||typeof u=="object"&&u!==null&&(u.$$typeof===y||u.$$typeof===h||u.$$typeof===l||u.$$typeof===a||u.$$typeof===d||u.$$typeof===v||u.getModuleId!==void 0)},ue.typeOf=e}()),ue}var fr;function li(){return fr||(fr=1,process.env.NODE_ENV==="production"?Ft.exports=si():Ft.exports=ai()),Ft.exports}var Jt=li();function ze(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function oo(e){if(P.isValidElement(e)||Jt.isValidElementType(e)||!ze(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=oo(e[n])}),t}function Re(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ze(e)&&ze(t)&&Object.keys(t).forEach(o=>{P.isValidElement(t[o])||Jt.isValidElementType(t[o])?r[o]=t[o]:ze(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ze(e[o])?r[o]=Re(e[o],t[o],n):n.clone?r[o]=ze(t[o])?oo(t[o]):t[o]:r[o]=t[o]}),r}var Wt={exports:{}},Ut={exports:{}},se={};/** @license React v16.13.1
|
|
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 pr;function ci(){if(pr)return se;pr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=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,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function C(x){if(typeof x=="object"&&x!==null){var _=x.$$typeof;switch(_){case t:switch(x=x.type,x){case d:case f:case r:case i:case o:case h:return x;default:switch(x=x&&x.$$typeof,x){case l:case m:case v:case b:case a:return x;default:return _}}case n:return _}}}function E(x){return C(x)===f}return se.AsyncMode=d,se.ConcurrentMode=f,se.ContextConsumer=l,se.ContextProvider=a,se.Element=t,se.ForwardRef=m,se.Fragment=r,se.Lazy=v,se.Memo=b,se.Portal=n,se.Profiler=i,se.StrictMode=o,se.Suspense=h,se.isAsyncMode=function(x){return E(x)||C(x)===d},se.isConcurrentMode=E,se.isContextConsumer=function(x){return C(x)===l},se.isContextProvider=function(x){return C(x)===a},se.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},se.isForwardRef=function(x){return C(x)===m},se.isFragment=function(x){return C(x)===r},se.isLazy=function(x){return C(x)===v},se.isMemo=function(x){return C(x)===b},se.isPortal=function(x){return C(x)===n},se.isProfiler=function(x){return C(x)===i},se.isStrictMode=function(x){return C(x)===o},se.isSuspense=function(x){return C(x)===h},se.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===f||x===i||x===o||x===h||x===y||typeof x=="object"&&x!==null&&(x.$$typeof===v||x.$$typeof===b||x.$$typeof===a||x.$$typeof===l||x.$$typeof===m||x.$$typeof===S||x.$$typeof===N||x.$$typeof===B||x.$$typeof===u)},se.typeOf=C,se}var ae={};/** @license React v16.13.1
|
|
55
|
+
* react-is.development.js
|
|
56
|
+
*
|
|
57
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the MIT license found in the
|
|
60
|
+
* LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/var hr;function ui(){return hr||(hr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=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,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function C(O){return typeof O=="string"||typeof O=="function"||O===r||O===f||O===i||O===o||O===h||O===y||typeof O=="object"&&O!==null&&(O.$$typeof===v||O.$$typeof===b||O.$$typeof===a||O.$$typeof===l||O.$$typeof===m||O.$$typeof===S||O.$$typeof===N||O.$$typeof===B||O.$$typeof===u)}function E(O){if(typeof O=="object"&&O!==null){var le=O.$$typeof;switch(le){case t:var Ee=O.type;switch(Ee){case d:case f:case r:case i:case o:case h:return Ee;default:var Se=Ee&&Ee.$$typeof;switch(Se){case l:case m:case v:case b:case a:return Se;default:return le}}case n:return le}}}var x=d,_=f,z=l,H=a,Y=t,c=m,$=r,A=v,D=b,L=n,I=i,M=o,G=h,oe=!1;function Q(O){return oe||(oe=!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.")),w(O)||E(O)===d}function w(O){return E(O)===f}function j(O){return E(O)===l}function K(O){return E(O)===a}function U(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function F(O){return E(O)===m}function X(O){return E(O)===r}function q(O){return E(O)===v}function J(O){return E(O)===b}function ee(O){return E(O)===n}function ne(O){return E(O)===i}function V(O){return E(O)===o}function Z(O){return E(O)===h}ae.AsyncMode=x,ae.ConcurrentMode=_,ae.ContextConsumer=z,ae.ContextProvider=H,ae.Element=Y,ae.ForwardRef=c,ae.Fragment=$,ae.Lazy=A,ae.Memo=D,ae.Portal=L,ae.Profiler=I,ae.StrictMode=M,ae.Suspense=G,ae.isAsyncMode=Q,ae.isConcurrentMode=w,ae.isContextConsumer=j,ae.isContextProvider=K,ae.isElement=U,ae.isForwardRef=F,ae.isFragment=X,ae.isLazy=q,ae.isMemo=J,ae.isPortal=ee,ae.isProfiler=ne,ae.isStrictMode=V,ae.isSuspense=Z,ae.isValidElementType=C,ae.typeOf=E}()),ae}var mr;function io(){return mr||(mr=1,process.env.NODE_ENV==="production"?Ut.exports=ci():Ut.exports=ui()),Ut.exports}/*
|
|
62
|
+
object-assign
|
|
63
|
+
(c) Sindre Sorhus
|
|
64
|
+
@license MIT
|
|
65
|
+
*/var Tn,gr;function di(){if(gr)return Tn;gr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(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={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(d.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tn=o()?Object.assign:function(i,a){for(var l,d=r(i),f,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var h in l)t.call(l,h)&&(d[h]=l[h]);if(e){f=e(l);for(var y=0;y<f.length;y++)n.call(l,f[y])&&(d[f[y]]=l[f[y]])}}return d},Tn}var Sn,yr;function Hn(){if(yr)return Sn;yr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Sn=e,Sn}var Cn,br;function so(){return br||(br=1,Cn=Function.call.bind(Object.prototype.hasOwnProperty)),Cn}var wn,vr;function fi(){if(vr)return wn;vr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Hn(),n={},r=so();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,d,f){if(process.env.NODE_ENV!=="production"){for(var m in i)if(r(i,m)){var h;try{if(typeof i[m]!="function"){var y=Error((d||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}h=i[m](a,m,d,l,null,t)}catch(v){h=v}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var b=f?f():"";e("Failed "+l+" type: "+h.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},wn=o,wn}var Rn,xr;function pi(){if(xr)return Rn;xr=1;var e=io(),t=di(),n=Hn(),r=so(),o=fi(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return Rn=function(l,d){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function h(w){var j=w&&(f&&w[f]||w[m]);if(typeof j=="function")return j}var y="<<anonymous>>",b={array:N("array"),bigint:N("bigint"),bool:N("boolean"),func:N("function"),number:N("number"),object:N("object"),string:N("string"),symbol:N("symbol"),any:B(),arrayOf:C,element:E(),elementType:x(),instanceOf:_,node:c(),objectOf:H,oneOf:z,oneOfType:Y,shape:A,exact:D};function v(w,j){return w===j?w!==0||1/w===1/j:w!==w&&j!==j}function u(w,j){this.message=w,this.data=j&&typeof j=="object"?j:{},this.stack=""}u.prototype=Error.prototype;function S(w){if(process.env.NODE_ENV!=="production")var j={},K=0;function U(X,q,J,ee,ne,V,Z){if(ee=ee||y,V=V||J,Z!==n){if(d){var O=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 O.name="Invariant Violation",O}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=ee+":"+J;!j[le]&&K<3&&(i("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+ee+"`. 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."),j[le]=!0,K++)}}return q[J]==null?X?q[J]===null?new u("The "+ne+" `"+V+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new u("The "+ne+" `"+V+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:w(q,J,ee,ne,V)}var F=U.bind(null,!1);return F.isRequired=U.bind(null,!0),F}function N(w){function j(K,U,F,X,q,J){var ee=K[U],ne=M(ee);if(ne!==w){var V=G(ee);return new u("Invalid "+X+" `"+q+"` of type "+("`"+V+"` supplied to `"+F+"`, expected ")+("`"+w+"`."),{expectedType:w})}return null}return S(j)}function B(){return S(a)}function C(w){function j(K,U,F,X,q){if(typeof w!="function")return new u("Property `"+q+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var J=K[U];if(!Array.isArray(J)){var ee=M(J);return new u("Invalid "+X+" `"+q+"` of type "+("`"+ee+"` supplied to `"+F+"`, expected an array."))}for(var ne=0;ne<J.length;ne++){var V=w(J,ne,F,X,q+"["+ne+"]",n);if(V instanceof Error)return V}return null}return S(j)}function E(){function w(j,K,U,F,X){var q=j[K];if(!l(q)){var J=M(q);return new u("Invalid "+F+" `"+X+"` of type "+("`"+J+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return S(w)}function x(){function w(j,K,U,F,X){var q=j[K];if(!e.isValidElementType(q)){var J=M(q);return new u("Invalid "+F+" `"+X+"` of type "+("`"+J+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return S(w)}function _(w){function j(K,U,F,X,q){if(!(K[U]instanceof w)){var J=w.name||y,ee=Q(K[U]);return new u("Invalid "+X+" `"+q+"` of type "+("`"+ee+"` supplied to `"+F+"`, expected ")+("instance of `"+J+"`."))}return null}return S(j)}function z(w){if(!Array.isArray(w))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 j(K,U,F,X,q){for(var J=K[U],ee=0;ee<w.length;ee++)if(v(J,w[ee]))return null;var ne=JSON.stringify(w,function(Z,O){var le=G(O);return le==="symbol"?String(O):O});return new u("Invalid "+X+" `"+q+"` of value `"+String(J)+"` "+("supplied to `"+F+"`, expected one of "+ne+"."))}return S(j)}function H(w){function j(K,U,F,X,q){if(typeof w!="function")return new u("Property `"+q+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var J=K[U],ee=M(J);if(ee!=="object")return new u("Invalid "+X+" `"+q+"` of type "+("`"+ee+"` supplied to `"+F+"`, expected an object."));for(var ne in J)if(r(J,ne)){var V=w(J,ne,F,X,q+"."+ne,n);if(V instanceof Error)return V}return null}return S(j)}function Y(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var j=0;j<w.length;j++){var K=w[j];if(typeof K!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+oe(K)+" at index "+j+"."),a}function U(F,X,q,J,ee){for(var ne=[],V=0;V<w.length;V++){var Z=w[V],O=Z(F,X,q,J,ee,n);if(O==null)return null;O.data&&r(O.data,"expectedType")&&ne.push(O.data.expectedType)}var le=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new u("Invalid "+J+" `"+ee+"` supplied to "+("`"+q+"`"+le+"."))}return S(U)}function c(){function w(j,K,U,F,X){return L(j[K])?null:new u("Invalid "+F+" `"+X+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return S(w)}function $(w,j,K,U,F){return new u((w||"React class")+": "+j+" type `"+K+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function A(w){function j(K,U,F,X,q){var J=K[U],ee=M(J);if(ee!=="object")return new u("Invalid "+X+" `"+q+"` of type `"+ee+"` "+("supplied to `"+F+"`, expected `object`."));for(var ne in w){var V=w[ne];if(typeof V!="function")return $(F,X,q,ne,G(V));var Z=V(J,ne,F,X,q+"."+ne,n);if(Z)return Z}return null}return S(j)}function D(w){function j(K,U,F,X,q){var J=K[U],ee=M(J);if(ee!=="object")return new u("Invalid "+X+" `"+q+"` of type `"+ee+"` "+("supplied to `"+F+"`, expected `object`."));var ne=t({},K[U],w);for(var V in ne){var Z=w[V];if(r(w,V)&&typeof Z!="function")return $(F,X,q,V,G(Z));if(!Z)return new u("Invalid "+X+" `"+q+"` key `"+V+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(K[U],null," ")+`
|
|
66
|
+
Valid keys: `+JSON.stringify(Object.keys(w),null," "));var O=Z(J,V,F,X,q+"."+V,n);if(O)return O}return null}return S(j)}function L(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(L);if(w===null||l(w))return!0;var j=h(w);if(j){var K=j.call(w),U;if(j!==w.entries){for(;!(U=K.next()).done;)if(!L(U.value))return!1}else for(;!(U=K.next()).done;){var F=U.value;if(F&&!L(F[1]))return!1}}else return!1;return!0;default:return!1}}function I(w,j){return w==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function M(w){var j=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":I(j,w)?"symbol":j}function G(w){if(typeof w>"u"||w===null)return""+w;var j=M(w);if(j==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return j}function oe(w){var j=G(w);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function Q(w){return!w.constructor||!w.constructor.name?y:w.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Rn}var On,Er;function hi(){if(Er)return On;Er=1;var e=Hn();function t(){}function n(){}return n.resetWarningCache=t,On=function(){function r(a,l,d,f,m,h){if(h!==e){var y=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 y.name="Invariant Violation",y}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},On}var Tr;function mi(){if(Tr)return Wt.exports;if(Tr=1,process.env.NODE_ENV!=="production"){var e=io(),t=!0;Wt.exports=pi()(e.isElement,t)}else Wt.exports=hi()();return Wt.exports}var gi=mi();const s=ni(gi);function yi(e){const{prototype:t={}}=e;return!!t.isReactComponent}function ao(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;const d=i.type;return typeof d=="function"&&!yi(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Dt=St(s.element,ao);Dt.isRequired=St(s.element.isRequired,ao);function bi(e){const{prototype:t={}}=e;return!!t.isReactComponent}function vi(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!bi(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const lo=St(s.elementType,vi),xi="exact-prop: ";function co(e){return process.env.NODE_ENV==="production"?e:{...e,[xi]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}function Je(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function uo(e,t=""){return e.displayName||e.name||t}function Sr(e,t,n){const r=uo(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Ei(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return uo(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Jt.ForwardRef:return Sr(e,e.render,"ForwardRef");case Jt.Memo:return Sr(e,e.type,"memo");default:return}}}function Qt(e,t,n,r,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 ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const fo=s.oneOfType([s.func,s.object]);function me(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Je(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Cr(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Ti(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Fe(e){return e&&e.ownerDocument||document}function xt(e){return Fe(e).defaultView||window}function An(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const _n=typeof window<"u"?P.useLayoutEffect:P.useEffect;let wr=0;function Si(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t==null&&(wr+=1,n(`mui-${wr}`))},[t]),r}const Ci={...P},Rr=Ci.useId;function wi(e){if(Rr!==void 0){const t=Rr();return e??t}return Si(e)}function bt(e){const t=P.useRef(e);return _n(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function Ae(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{An(n,t)})},e)}const Or={};function po(e,t){const n=P.useRef(Or);return n.current===Or&&(n.current=e(t)),n}const Ri=[];function Oi(e){P.useEffect(e,Ri)}class Gn{constructor(){Rt(this,"currentId",null);Rt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Rt(this,"disposeEffect",()=>this.clear)}static create(){return new Gn}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ho(){const e=po(Gn.create).current;return Oi(e.disposeEffect),e}function Pr(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
67
|
+
`))}return!1}function Pi(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ki(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 mo(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const i=ki(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function go(e,t,...n){return e[t]===void 0?null:mo(e,t,...n)}function Mn(){return null}go.isRequired=mo;Mn.isRequired=Mn;const yo=process.env.NODE_ENV==="production"?Mn:go;function Zt(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const d=l;n[o][d]=Zt(i[d],a[d])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function et(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",l=!0;for(let d=0;d<i.length;d+=1){const f=i[d];f&&(a+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(a+=" "+n[f]))}r[o]=a}return r}const kr=e=>e,$i=()=>{let e=kr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=kr}}},Ni=$i(),ji={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _e(e,t,n="Mui"){const r=ji[t];return r?`${n}-${r}`:`${Ni.generate(e)}-${t}`}function Ue(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=_e(e,o,n)}),r}function Ii(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ai(e){return typeof e=="string"}function _i(e,t,n){return e===void 0||Ai(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function bo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function be(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bo(e))&&(r&&(r+=" "),r+=t);return r}function vo(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function $r(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Mi(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=be(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},u={...n,...o,...r};return b.length>0&&(u.className=b),Object.keys(v).length>0&&(u.style=v),{props:u,internalRef:void 0}}const a=vo({...o,...r}),l=$r(r),d=$r(o),f=t(a),m=be(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h={...f==null?void 0:f.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...f,...n,...d,...l};return m.length>0&&(y.className=m),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:f.ref}}function Di(e,t,n){return typeof e=="function"?e(t,n):e}function un(e){var t;return parseInt(P.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function At(e,t){return t?Re(e,t,{clone:!1}):e}const tt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Bi(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((l=o.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function Li(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Vi(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
68
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Je(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function zi(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const d=t(e.breakpoints.not(...l),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const dn={xs:0,sm:600,md:900,lg:1200,xl:1536},Nr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${dn[e]}px)`},Fi={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:dn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function We(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Nr;return t.reduce((a,l,d)=>(a[i.up(i.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Nr;return Object.keys(t).reduce((a,l)=>{if(Li(i.keys,l)){const d=Vi(r.containerQueries?r:Fi,l);d&&(a[d]=n(t[l],l))}else if(Object.keys(i.values||dn).includes(l)){const d=i.up(l);a[d]=n(t[l],l)}else{const d=l;a[d]=t[d]}return a},{})}return n(t)}function Wi(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Ui(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function fn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function en(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=fn(e,n)||r,t&&(o=t(o,r,e)),o}function ve(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],d=a.theme,f=fn(d,r)||{};return We(a,l,h=>{let y=en(f,o,h);return h===y&&typeof h=="string"&&(y=en(f,o,`${t}${h==="default"?"":me(h)}`,h)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:tt}:{},i.filterProps=[t],i}function Yi(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const qi={m:"margin",p:"padding"},Hi={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gi=Yi(e=>{if(e.length>2)if(jr[e])e=jr[e];else return[e];const[t,n]=e.split(""),r=qi[t],o=Hi[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),pn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ki=[...pn,...hn];function Bt(e,t,n,r){const o=fn(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
69
|
+
`)):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(`
|
|
70
|
+
`)));const l=o[a];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
71
|
+
`)),()=>{})}function Kn(e){return Bt(e,"spacing",8,"spacing")}function Lt(e,t){return typeof t=="string"||t==null?t:e(t)}function Xi(e,t){return n=>e.reduce((r,o)=>(r[o]=Lt(t,n),r),{})}function Ji(e,t,n,r){if(!t.includes(n))return null;const o=Gi(n),i=Xi(o,r),a=e[n];return We(e,a,i)}function xo(e,t){const n=Kn(e.theme);return Object.keys(e).map(r=>Ji(e,t,r,n)).reduce(At,{})}function ge(e){return xo(e,pn)}ge.propTypes=process.env.NODE_ENV!=="production"?pn.reduce((e,t)=>(e[t]=tt,e),{}):{};ge.filterProps=pn;function ye(e){return xo(e,hn)}ye.propTypes=process.env.NODE_ENV!=="production"?hn.reduce((e,t)=>(e[t]=tt,e),{}):{};ye.filterProps=hn;process.env.NODE_ENV!=="production"&&Ki.reduce((e,t)=>(e[t]=tt,e),{});function mn(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?At(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Pe(e){return typeof e!="number"?e:`${e}px solid`}function ke(e,t){return ve({prop:e,themeKey:"borders",transform:t})}const Qi=ke("border",Pe),Zi=ke("borderTop",Pe),es=ke("borderRight",Pe),ts=ke("borderBottom",Pe),ns=ke("borderLeft",Pe),rs=ke("borderColor"),os=ke("borderTopColor"),is=ke("borderRightColor"),ss=ke("borderBottomColor"),as=ke("borderLeftColor"),ls=ke("outline",Pe),cs=ke("outlineColor"),gn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Bt(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Lt(t,r)});return We(e,e.borderRadius,n)}return null};gn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:tt}:{};gn.filterProps=["borderRadius"];mn(Qi,Zi,es,ts,ns,rs,os,is,ss,as,gn,ls,cs);const yn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Bt(e.theme,"spacing",8,"gap"),n=r=>({gap:Lt(t,r)});return We(e,e.gap,n)}return null};yn.propTypes=process.env.NODE_ENV!=="production"?{gap:tt}:{};yn.filterProps=["gap"];const bn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Bt(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Lt(t,r)});return We(e,e.columnGap,n)}return null};bn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:tt}:{};bn.filterProps=["columnGap"];const vn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Bt(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Lt(t,r)});return We(e,e.rowGap,n)}return null};vn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:tt}:{};vn.filterProps=["rowGap"];const us=ve({prop:"gridColumn"}),ds=ve({prop:"gridRow"}),fs=ve({prop:"gridAutoFlow"}),ps=ve({prop:"gridAutoColumns"}),hs=ve({prop:"gridAutoRows"}),ms=ve({prop:"gridTemplateColumns"}),gs=ve({prop:"gridTemplateRows"}),ys=ve({prop:"gridTemplateAreas"}),bs=ve({prop:"gridArea"});mn(yn,bn,vn,us,ds,fs,ps,hs,ms,gs,ys,bs);function vt(e,t){return t==="grey"?t:e}const vs=ve({prop:"color",themeKey:"palette",transform:vt}),xs=ve({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vt}),Es=ve({prop:"backgroundColor",themeKey:"palette",transform:vt});mn(vs,xs,Es);function we(e){return e<=1&&e!==0?`${e*100}%`:e}const Ts=ve({prop:"width",transform:we}),Xn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,l,d;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||dn[n];return r?((d=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:we(n)}};return We(e,e.maxWidth,t)}return null};Xn.filterProps=["maxWidth"];const Ss=ve({prop:"minWidth",transform:we}),Cs=ve({prop:"height",transform:we}),ws=ve({prop:"maxHeight",transform:we}),Rs=ve({prop:"minHeight",transform:we});ve({prop:"size",cssProperty:"width",transform:we});ve({prop:"size",cssProperty:"height",transform:we});const Os=ve({prop:"boxSizing"});mn(Ts,Xn,Ss,Cs,ws,Rs,Os);const xn={border:{themeKey:"borders",transform:Pe},borderTop:{themeKey:"borders",transform:Pe},borderRight:{themeKey:"borders",transform:Pe},borderBottom:{themeKey:"borders",transform:Pe},borderLeft:{themeKey:"borders",transform:Pe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gn},color:{themeKey:"palette",transform:vt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vt},backgroundColor:{themeKey:"palette",transform:vt},p:{style:ye},pt:{style:ye},pr:{style:ye},pb:{style:ye},pl:{style:ye},px:{style:ye},py:{style:ye},padding:{style:ye},paddingTop:{style:ye},paddingRight:{style:ye},paddingBottom:{style:ye},paddingLeft:{style:ye},paddingX:{style:ye},paddingY:{style:ye},paddingInline:{style:ye},paddingInlineStart:{style:ye},paddingInlineEnd:{style:ye},paddingBlock:{style:ye},paddingBlockStart:{style:ye},paddingBlockEnd:{style:ye},m:{style:ge},mt:{style:ge},mr:{style:ge},mb:{style:ge},ml:{style:ge},mx:{style:ge},my:{style:ge},margin:{style:ge},marginTop:{style:ge},marginRight:{style:ge},marginBottom:{style:ge},marginLeft:{style:ge},marginX:{style:ge},marginY:{style:ge},marginInline:{style:ge},marginInlineStart:{style:ge},marginInlineEnd:{style:ge},marginBlock:{style:ge},marginBlockStart:{style:ge},marginBlockEnd:{style:ge},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:yn},rowGap:{style:vn},columnGap:{style:bn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:we},maxWidth:{style:Xn},minWidth:{transform:we},height:{transform:we},maxHeight:{transform:we},minHeight:{transform:we},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ps(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ks(e,t){return typeof e=="function"?e(t):e}function $s(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:m,style:h}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=fn(o,f)||{};return h?h(a):We(a,r,v=>{let u=en(y,m,v);return v===u&&typeof v=="string"&&(u=en(y,m,`${n}${v==="default"?"":me(v)}`,v)),d===!1?u:{[d]:u}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??xn;function a(l){let d=l;if(typeof l=="function")d=l(o);else if(typeof l!="object")return l;if(!d)return null;const f=Wi(o.breakpoints),m=Object.keys(f);let h=f;return Object.keys(d).forEach(y=>{const b=ks(d[y],o);if(b!=null)if(typeof b=="object")if(i[y])h=At(h,e(y,b,o,i));else{const v=We({theme:o},b,u=>({[y]:u}));Ps(v,b)?h[y]=t({sx:b,theme:o}):h=At(h,v)}else h=At(h,e(y,b,o,i))}),Bi(o,Ui(m,h))}return Array.isArray(r)?r.map(a):a(r)}return t}const Et=$s();Et.filterProps=["sx"];function Ns(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var js={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Is(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var As=/[A-Z]|^ms/g,_s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Eo=function(t){return t.charCodeAt(1)===45},Ir=function(t){return t!=null&&typeof t!="boolean"},Pn=Is(function(e){return Eo(e)?e:e.replace(As,"-$&").toLowerCase()}),Ar=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_s,function(r,o,i){return Xe={name:o,styles:i,next:Xe},o})}return js[t]!==1&&!Eo(t)&&typeof n=="number"&&n!==0?n+"px":n};function tn(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Xe={name:o.name,styles:o.styles,next:Xe},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Xe={name:a.name,styles:a.styles,next:Xe},a=a.next;var l=i.styles+";";return l}return Ms(e,t,n)}}var d=n;return d}function Ms(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=tn(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Ir(l)&&(r+=Pn(i)+":"+Ar(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var d=0;d<a.length;d++)Ir(a[d])&&(r+=Pn(i)+":"+Ar(i,a[d])+";");else{var f=tn(e,t,a);switch(i){case"animation":case"animationName":{r+=Pn(i)+":"+f+";";break}default:r+=i+"{"+f+"}"}}}return r}var _r=/label:\s*([^\s;{]+)\s*(;|$)/g,Xe;function Ds(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Xe=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=tn(n,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=tn(n,t,e[l]),r){var d=i;o+=d[l]}_r.lastIndex=0;for(var f="",m;(m=_r.exec(o))!==null;)f+="-"+m[1];var h=Ns(o)+f;return{name:h,styles:o,next:Xe}}/**
|
|
72
|
+
* @mui/styled-engine v6.4.3
|
|
73
|
+
*
|
|
74
|
+
* @license MIT
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/function Bs(e,t){const n=ei(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.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(`
|
|
78
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function Ls(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Mr=[];function Dr(e){return Mr[0]=e,Ds(Mr)}const Vs=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function zs(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Vs(t),a=Object.keys(i);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,b){const v=a.indexOf(b);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:b)-r/100}${n})`}function m(y){return a.indexOf(y)+1<a.length?f(y,a[a.indexOf(y)+1]):l(y)}function h(y){const b=a.indexOf(y);return b===0?l(a[1]):b===a.length-1?d(a[b]):f(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:d,between:f,only:m,not:h,unit:n,...o}}const Fs={borderRadius:4};function To(e=8,t=Kn({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Ws(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Jn(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,l=zs(n),d=To(o);let f=Re({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...Fs,...i}},a);return f=zi(f),f.applyStyles=Ws,f=t.reduce((m,h)=>Re(m,h),f),f.unstable_sxConfig={...xn,...a==null?void 0:a.unstable_sxConfig},f.unstable_sx=function(h){return Et({sx:h,theme:this})},f}function Us(e){return Object.keys(e).length===0}function Ys(e=null){const t=P.useContext(Ze.ThemeContext);return!t||Us(t)?e:t}const qs=Jn();function Hs(e=qs){return Ys(e)}function So(e){const{variants:t,...n}=e,r={variants:t,style:Dr(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Dr(o.style))}),r}const Gs=Jn();function kn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ks(e){return e?(t,n)=>n[e]:null}function Xs(e,t,n){e.theme=ea(e.theme)?n:e.theme[t]||e.theme}function Kt(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Kt(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return Co(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Co(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(r))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&((o=e.ownerState)==null?void 0:o[l])!==a.props[l])continue e;typeof a.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(a.style(r))):n.push(a.style)}return n}function Js(e={}){const{themeId:t,defaultTheme:n=Gs,rootShouldForwardProp:r=kn,slotShouldForwardProp:o=kn}=e;function i(l){Xs(l,t,n)}return(l,d={})=>{Ls(l,x=>x.filter(_=>_!==Et));const{name:f,slot:m,skipVariantsResolver:h,skipSx:y,overridesResolver:b=Ks(wo(m)),...v}=d,u=h!==void 0?h:m&&m!=="Root"&&m!=="root"||!1,S=y||!1;let N=kn;m==="Root"||m==="root"?N=r:m?N=o:ta(l)&&(N=void 0);const B=Bs(l,{shouldForwardProp:N,label:Zs(f,m),...v}),C=x=>{if(typeof x=="function"&&x.__emotion_real!==x)return function(z){return Kt(z,x)};if(ze(x)){const _=So(x);return _.variants?function(H){return Kt(H,_)}:_.style}return x},E=(...x)=>{const _=[],z=x.map(C),H=[];if(_.push(i),f&&b&&H.push(function(A){var M,G;const L=(G=(M=A.theme.components)==null?void 0:M[f])==null?void 0:G.styleOverrides;if(!L)return null;const I={};for(const oe in L)I[oe]=Kt(A,L[oe]);return b(A,I)}),f&&!u&&H.push(function(A){var I,M;const D=A.theme,L=(M=(I=D==null?void 0:D.components)==null?void 0:I[f])==null?void 0:M.variants;return L?Co(A,L):null}),S||H.push(Et),Array.isArray(z[0])){const $=z.shift(),A=new Array(_.length).fill(""),D=new Array(H.length).fill("");let L;L=[...A,...$,...D],L.raw=[...A,...$.raw,...D],_.unshift(L)}const Y=[..._,...z,...H],c=B(...Y);return l.muiName&&(c.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(c.displayName=Qs(f,m,l)),c};return B.withConfig&&(E.withConfig=B.withConfig),E}}function Qs(e,t,n){return e?`${e}${me(t||"")}`:`Styled(${Ei(n)})`}function Zs(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${wo(t||"Root")}`),n}function ea(e){for(const t in e)return!1;return!0}function ta(e){return typeof e=="string"&&e.charCodeAt(0)>96}function wo(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Qn(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Ii(e,t,n)}function na(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Qe(e){if(e.type)return e;if(e.charAt(0)==="#")return Qe(na(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
79
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Je(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
80
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Je(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const ra=e=>{const t=Qe(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Nt=(e,t)=>{try{return ra(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function En(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ro(e){e=Qe(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(f,m=(f+n/30)%12)=>o-i*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),En({type:l,values:d})}function Dn(e){e=Qe(e);let t=e.type==="hsl"||e.type==="hsla"?Qe(Ro(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Br(e,t){const n=Dn(e),r=Dn(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ke(e,t){return e=Qe(e),t=Qn(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,En(e)}function Yt(e,t,n){try{return Ke(e,t)}catch{return e}}function Zn(e,t){if(e=Qe(e),t=Qn(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return En(e)}function de(e,t,n){try{return Zn(e,t)}catch{return e}}function er(e,t){if(e=Qe(e),t=Qn(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return En(e)}function fe(e,t,n){try{return er(e,t)}catch{return e}}function oa(e,t=.15){return Dn(e)>.5?Zn(e,t):er(e,t)}function qt(e,t,n){try{return oa(e,t)}catch{return e}}const ia=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function sa(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Zt(o.defaultProps,r):!o.styleOverrides&&!o.variants?Zt(o,r):r}function aa({props:e,name:t}){const n=P.useContext(ia);return sa({props:e,name:t,theme:{components:n}})}const Lr={theme:void 0};function la(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(Lr.theme=o.theme,i=So(e(Lr)),t=i,n=o.theme),i}}function ca(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const Vr=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},ua=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([l,d])=>{(!n||n&&!n([...i,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...i,l],Array.isArray(d)?[...a,l]:a):t([...i,l],d,a))})}r(e)},da=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function $n(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return ua(e,(l,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(l,d))){const m=`--${n?`${n}-`:""}${l.join("-")}`,h=da(l,d);Object.assign(o,{[m]:h}),Vr(i,l,`var(${m})`,f),Vr(a,l,`var(${m}, ${h})`,f)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function fa(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...d}=e,{vars:f,css:m,varsWithDefaults:h}=$n(d,t);let y=h;const b={},{[l]:v,...u}=i;if(Object.entries(u||{}).forEach(([C,E])=>{const{vars:x,css:_,varsWithDefaults:z}=$n(E,t);y=Re(y,z),b[C]={css:_,vars:x}}),v){const{css:C,vars:E,varsWithDefaults:x}=$n(v,t);y=Re(y,x),b[l]={css:C,vars:E}}function S(C,E){var _,z;let x=o;if(o==="class"&&(x=".%s"),o==="data"&&(x="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(x=`[${o}="%s"]`),C){if(x==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((z=(_=i[C])==null?void 0:_.palette)==null?void 0:z.mode)||C})`]:{":root":E}};if(x)return e.defaultColorScheme===C?`:root, ${x.replace("%s",String(C))}`:x.replace("%s",String(C))}return":root"}return{vars:y,generateThemeVars:()=>{let C={...f};return Object.entries(b).forEach(([,{vars:E}])=>{C=Re(C,E)}),C},generateStyleSheets:()=>{var H,Y;const C=[],E=e.defaultColorScheme||"light";function x(c,$){Object.keys($).length&&C.push(typeof c=="string"?{[c]:{...$}}:c)}x(n(void 0,{...m}),m);const{[E]:_,...z}=b;if(_){const{css:c}=_,$=(Y=(H=i[E])==null?void 0:H.palette)==null?void 0:Y.mode,A=!r&&$?{colorScheme:$,...c}:{...c};x(n(E,{...A}),A)}return Object.entries(z).forEach(([c,{css:$}])=>{var L,I;const A=(I=(L=i[c])==null?void 0:L.palette)==null?void 0:I.mode,D=!r&&A?{colorScheme:A,...$}:{...$};x(n(c,{...D}),D)}),C}}}function pa(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const Mt={black:"#000",white:"#fff"},ha={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"},ut={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},dt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},kt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ft={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},pt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ht={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Oo(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Mt.white,default:Mt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ma=Oo();function Po(){return{text:{primary:Mt.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:Mt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const zr=Po();function Fr(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=er(e.main,o):t==="dark"&&(e.dark=Zn(e.main,i)))}function ga(e="light"){return e==="dark"?{main:ft[200],light:ft[50],dark:ft[400]}:{main:ft[700],light:ft[400],dark:ft[800]}}function ya(e="light"){return e==="dark"?{main:ut[200],light:ut[50],dark:ut[400]}:{main:ut[500],light:ut[300],dark:ut[700]}}function ba(e="light"){return e==="dark"?{main:dt[500],light:dt[300],dark:dt[700]}:{main:dt[700],light:dt[400],dark:dt[800]}}function va(e="light"){return e==="dark"?{main:pt[400],light:pt[300],dark:pt[700]}:{main:pt[700],light:pt[500],dark:pt[900]}}function xa(e="light"){return e==="dark"?{main:ht[400],light:ht[300],dark:ht[700]}:{main:ht[800],light:ht[500],dark:ht[900]}}function Ea(e="light"){return e==="dark"?{main:kt[400],light:kt[300],dark:kt[700]}:{main:"#ed6c02",light:kt[500],dark:kt[900]}}function tr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||ga(t),a=e.secondary||ya(t),l=e.error||ba(t),d=e.info||va(t),f=e.success||xa(t),m=e.warning||Ea(t);function h(u){const S=Br(u,zr.text.primary)>=n?zr.text.primary:ma.text.primary;if(process.env.NODE_ENV!=="production"){const N=Br(u,S);N<3&&console.error([`MUI: The contrast ratio of ${N}:1 for ${S} on ${u}`,"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(`
|
|
81
|
+
`))}return S}const y=({color:u,name:S,mainShade:N=500,lightShade:B=300,darkShade:C=700})=>{if(u={...u},!u.main&&u[N]&&(u.main=u[N]),!u.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
|
|
82
|
+
The color object needs to have a \`main\` property or a \`${N}\` property.`:Je(11,S?` (${S})`:"",N));if(typeof u.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
|
|
83
|
+
\`color.main\` should be a string, but \`${JSON.stringify(u.main)}\` was provided instead.
|
|
84
|
+
|
|
85
|
+
Did you intend to use one of the following approaches?
|
|
86
|
+
|
|
87
|
+
import { green } from "@mui/material/colors";
|
|
88
|
+
|
|
89
|
+
const theme1 = createTheme({ palette: {
|
|
90
|
+
primary: green,
|
|
91
|
+
} });
|
|
92
|
+
|
|
93
|
+
const theme2 = createTheme({ palette: {
|
|
94
|
+
primary: { main: green[500] },
|
|
95
|
+
} });`:Je(12,S?` (${S})`:"",JSON.stringify(u.main)));return Fr(u,"light",B,r),Fr(u,"dark",C,r),u.contrastText||(u.contrastText=h(u.main)),u};let b;return t==="light"?b=Oo():t==="dark"&&(b=Po()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Re({common:{...Mt},mode:t,primary:y({color:i,name:"primary"}),secondary:y({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:l,name:"error"}),warning:y({color:m,name:"warning"}),info:y({color:d,name:"info"}),success:y({color:f,name:"success"}),grey:ha,contrastThreshold:n,getContrastText:h,augmentColor:y,tonalOffset:r,...b},o)}function Ta(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Sa(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ca(e){return Math.round(e*1e5)/1e5}const Wr={textTransform:"uppercase"},Ur='"Roboto", "Helvetica", "Arial", sans-serif';function wa(e,t){const{fontFamily:n=Ur,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:d=16,allVariants:f,pxToRem:m,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=r/14,b=m||(S=>`${S/d*y}rem`),v=(S,N,B,C,E)=>({fontFamily:n,fontWeight:S,fontSize:b(N),lineHeight:B,...n===Ur?{letterSpacing:`${Ca(C/N)}em`}:{},...E,...f}),u={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(a,14,1.75,.4,Wr),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,Wr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Re({htmlFontSize:d,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...u},h,{clone:!1})}const Ra=.2,Oa=.14,Pa=.12;function pe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ra})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Oa})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Pa})`].join(",")}const ka=["none",pe(0,2,1,-1,0,1,1,0,0,1,3,0),pe(0,3,1,-2,0,2,2,0,0,1,5,0),pe(0,3,3,-2,0,3,4,0,0,1,8,0),pe(0,2,4,-1,0,4,5,0,0,1,10,0),pe(0,3,5,-1,0,5,8,0,0,1,14,0),pe(0,3,5,-1,0,6,10,0,0,1,18,0),pe(0,4,5,-2,0,7,10,1,0,2,16,1),pe(0,5,5,-3,0,8,10,1,0,3,14,2),pe(0,5,6,-3,0,9,12,1,0,3,16,2),pe(0,6,6,-3,0,10,14,1,0,4,18,3),pe(0,6,7,-4,0,11,15,1,0,4,20,3),pe(0,7,8,-4,0,12,17,2,0,5,22,4),pe(0,7,8,-4,0,13,19,2,0,5,24,4),pe(0,7,9,-4,0,14,21,2,0,5,26,4),pe(0,8,9,-5,0,15,22,2,0,6,28,5),pe(0,8,10,-5,0,16,24,2,0,6,30,5),pe(0,8,11,-5,0,17,26,2,0,6,32,5),pe(0,9,11,-5,0,18,28,2,0,7,34,6),pe(0,9,12,-6,0,19,29,2,0,7,36,6),pe(0,10,13,-6,0,20,31,3,0,8,38,7),pe(0,10,13,-6,0,21,33,3,0,8,40,7),pe(0,10,14,-6,0,22,35,3,0,8,42,7),pe(0,11,14,-7,0,23,36,3,0,9,44,8),pe(0,11,15,-7,0,24,38,3,0,9,46,8)],$a={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)"},Na={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Yr(e){return`${Math.round(e)}ms`}function ja(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ia(e){const t={...$a,...e.easing},n={...Na,...e.duration};return{getAutoHeightDuration:ja,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:d=0,...f}=i;if(process.env.NODE_ENV!=="production"){const m=y=>typeof y=="string",h=y=>!Number.isNaN(parseFloat(y));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!m(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),m(l)||console.error('MUI: Argument "easing" must be a string.'),!h(d)&&!m(d)&&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(`
|
|
96
|
+
`)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:Yr(a)} ${l} ${typeof d=="string"?d:Yr(d)}`).join(",")},...e,easing:t,duration:n}}const Aa={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _a(e){return ze(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ko(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,l]=o[i];!_a(l)||a.startsWith("unstable_")?delete r[a]:ze(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
97
|
+
|
|
98
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
99
|
+
|
|
100
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
101
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
102
|
+
|
|
103
|
+
export default theme;`}function Bn(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:l={},shape:d,...f}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Je(20));const m=tr(i),h=Jn(e);let y=Re(h,{mixins:Sa(h.breakpoints,r),palette:m,shadows:ka.slice(),typography:wa(m,l),transitions:Ia(a),zIndex:{...Aa}});if(y=Re(y,f),y=t.reduce((b,v)=>Re(b,v),y),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],v=(u,S)=>{let N;for(N in u){const B=u[N];if(b.includes(N)&&Object.keys(B).length>0){if(process.env.NODE_ENV!=="production"){const C=_e("",N);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${N}\` internal state.`,"You can not override it like this: ",JSON.stringify(u,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:B}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
104
|
+
`))}u[N]={}}}};Object.keys(y.components).forEach(u=>{const S=y.components[u].styleOverrides;S&&u.startsWith("Mui")&&v(S,u)})}return y.unstable_sxConfig={...xn,...f==null?void 0:f.unstable_sxConfig},y.unstable_sx=function(v){return Et({sx:v,theme:this})},y.toRuntimeSource=ko,y}function Ln(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Ma=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ln(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function $o(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function No(e){return e==="dark"?Ma:[]}function Da(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=tr(t);return{palette:i,opacity:{...$o(i.mode),...n},overlays:r||No(i.mode),...o}}function Ba(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const La=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Va=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return La(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function za(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function T(e,t,n){!e[t]&&n&&(e[t]=n)}function jt(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ro(e)}function Le(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Nt(jt(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
105
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Fa(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ie=e=>{try{return e()}catch{}},Wa=(e="mui")=>ca(e);function Nn(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=Da({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=Bn({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...$o(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||No(o)},a}function Ua(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=Ba,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,m=Object.keys(n)[0],h=r||(n.light&&m!=="light"?"light":m),y=Wa(i),{[h]:b,light:v,dark:u,...S}=n,N={...S};let B=b;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(B=!0),!B)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Je(21,h));const C=Nn(N,B,f,h);v&&!N.light&&Nn(N,v,void 0,"light"),u&&!N.dark&&Nn(N,u,void 0,"dark");let E={defaultColorScheme:h,...C,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:d,getCssVar:y,colorSchemes:N,font:{...Ta(C.typography),...C.font},spacing:Fa(f.spacing)};Object.keys(E.colorSchemes).forEach(Y=>{const c=E.colorSchemes[Y].palette,$=A=>{const D=A.split("-"),L=D[1],I=D[2];return y(A,c[L][I])};if(c.mode==="light"&&(T(c.common,"background","#fff"),T(c.common,"onBackground","#000")),c.mode==="dark"&&(T(c.common,"background","#000"),T(c.common,"onBackground","#fff")),za(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){T(c.Alert,"errorColor",de(c.error.light,.6)),T(c.Alert,"infoColor",de(c.info.light,.6)),T(c.Alert,"successColor",de(c.success.light,.6)),T(c.Alert,"warningColor",de(c.warning.light,.6)),T(c.Alert,"errorFilledBg",$("palette-error-main")),T(c.Alert,"infoFilledBg",$("palette-info-main")),T(c.Alert,"successFilledBg",$("palette-success-main")),T(c.Alert,"warningFilledBg",$("palette-warning-main")),T(c.Alert,"errorFilledColor",Ie(()=>c.getContrastText(c.error.main))),T(c.Alert,"infoFilledColor",Ie(()=>c.getContrastText(c.info.main))),T(c.Alert,"successFilledColor",Ie(()=>c.getContrastText(c.success.main))),T(c.Alert,"warningFilledColor",Ie(()=>c.getContrastText(c.warning.main))),T(c.Alert,"errorStandardBg",fe(c.error.light,.9)),T(c.Alert,"infoStandardBg",fe(c.info.light,.9)),T(c.Alert,"successStandardBg",fe(c.success.light,.9)),T(c.Alert,"warningStandardBg",fe(c.warning.light,.9)),T(c.Alert,"errorIconColor",$("palette-error-main")),T(c.Alert,"infoIconColor",$("palette-info-main")),T(c.Alert,"successIconColor",$("palette-success-main")),T(c.Alert,"warningIconColor",$("palette-warning-main")),T(c.AppBar,"defaultBg",$("palette-grey-100")),T(c.Avatar,"defaultBg",$("palette-grey-400")),T(c.Button,"inheritContainedBg",$("palette-grey-300")),T(c.Button,"inheritContainedHoverBg",$("palette-grey-A100")),T(c.Chip,"defaultBorder",$("palette-grey-400")),T(c.Chip,"defaultAvatarColor",$("palette-grey-700")),T(c.Chip,"defaultIconColor",$("palette-grey-700")),T(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),T(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),T(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),T(c.LinearProgress,"primaryBg",fe(c.primary.main,.62)),T(c.LinearProgress,"secondaryBg",fe(c.secondary.main,.62)),T(c.LinearProgress,"errorBg",fe(c.error.main,.62)),T(c.LinearProgress,"infoBg",fe(c.info.main,.62)),T(c.LinearProgress,"successBg",fe(c.success.main,.62)),T(c.LinearProgress,"warningBg",fe(c.warning.main,.62)),T(c.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),T(c.Slider,"primaryTrack",fe(c.primary.main,.62)),T(c.Slider,"secondaryTrack",fe(c.secondary.main,.62)),T(c.Slider,"errorTrack",fe(c.error.main,.62)),T(c.Slider,"infoTrack",fe(c.info.main,.62)),T(c.Slider,"successTrack",fe(c.success.main,.62)),T(c.Slider,"warningTrack",fe(c.warning.main,.62));const A=qt(c.background.default,.8);T(c.SnackbarContent,"bg",A),T(c.SnackbarContent,"color",Ie(()=>c.getContrastText(A))),T(c.SpeedDialAction,"fabHoverBg",qt(c.background.paper,.15)),T(c.StepConnector,"border",$("palette-grey-400")),T(c.StepContent,"border",$("palette-grey-400")),T(c.Switch,"defaultColor",$("palette-common-white")),T(c.Switch,"defaultDisabledColor",$("palette-grey-100")),T(c.Switch,"primaryDisabledColor",fe(c.primary.main,.62)),T(c.Switch,"secondaryDisabledColor",fe(c.secondary.main,.62)),T(c.Switch,"errorDisabledColor",fe(c.error.main,.62)),T(c.Switch,"infoDisabledColor",fe(c.info.main,.62)),T(c.Switch,"successDisabledColor",fe(c.success.main,.62)),T(c.Switch,"warningDisabledColor",fe(c.warning.main,.62)),T(c.TableCell,"border",fe(Yt(c.divider,1),.88)),T(c.Tooltip,"bg",Yt(c.grey[700],.92))}if(c.mode==="dark"){T(c.Alert,"errorColor",fe(c.error.light,.6)),T(c.Alert,"infoColor",fe(c.info.light,.6)),T(c.Alert,"successColor",fe(c.success.light,.6)),T(c.Alert,"warningColor",fe(c.warning.light,.6)),T(c.Alert,"errorFilledBg",$("palette-error-dark")),T(c.Alert,"infoFilledBg",$("palette-info-dark")),T(c.Alert,"successFilledBg",$("palette-success-dark")),T(c.Alert,"warningFilledBg",$("palette-warning-dark")),T(c.Alert,"errorFilledColor",Ie(()=>c.getContrastText(c.error.dark))),T(c.Alert,"infoFilledColor",Ie(()=>c.getContrastText(c.info.dark))),T(c.Alert,"successFilledColor",Ie(()=>c.getContrastText(c.success.dark))),T(c.Alert,"warningFilledColor",Ie(()=>c.getContrastText(c.warning.dark))),T(c.Alert,"errorStandardBg",de(c.error.light,.9)),T(c.Alert,"infoStandardBg",de(c.info.light,.9)),T(c.Alert,"successStandardBg",de(c.success.light,.9)),T(c.Alert,"warningStandardBg",de(c.warning.light,.9)),T(c.Alert,"errorIconColor",$("palette-error-main")),T(c.Alert,"infoIconColor",$("palette-info-main")),T(c.Alert,"successIconColor",$("palette-success-main")),T(c.Alert,"warningIconColor",$("palette-warning-main")),T(c.AppBar,"defaultBg",$("palette-grey-900")),T(c.AppBar,"darkBg",$("palette-background-paper")),T(c.AppBar,"darkColor",$("palette-text-primary")),T(c.Avatar,"defaultBg",$("palette-grey-600")),T(c.Button,"inheritContainedBg",$("palette-grey-800")),T(c.Button,"inheritContainedHoverBg",$("palette-grey-700")),T(c.Chip,"defaultBorder",$("palette-grey-700")),T(c.Chip,"defaultAvatarColor",$("palette-grey-300")),T(c.Chip,"defaultIconColor",$("palette-grey-300")),T(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),T(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),T(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),T(c.LinearProgress,"primaryBg",de(c.primary.main,.5)),T(c.LinearProgress,"secondaryBg",de(c.secondary.main,.5)),T(c.LinearProgress,"errorBg",de(c.error.main,.5)),T(c.LinearProgress,"infoBg",de(c.info.main,.5)),T(c.LinearProgress,"successBg",de(c.success.main,.5)),T(c.LinearProgress,"warningBg",de(c.warning.main,.5)),T(c.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),T(c.Slider,"primaryTrack",de(c.primary.main,.5)),T(c.Slider,"secondaryTrack",de(c.secondary.main,.5)),T(c.Slider,"errorTrack",de(c.error.main,.5)),T(c.Slider,"infoTrack",de(c.info.main,.5)),T(c.Slider,"successTrack",de(c.success.main,.5)),T(c.Slider,"warningTrack",de(c.warning.main,.5));const A=qt(c.background.default,.98);T(c.SnackbarContent,"bg",A),T(c.SnackbarContent,"color",Ie(()=>c.getContrastText(A))),T(c.SpeedDialAction,"fabHoverBg",qt(c.background.paper,.15)),T(c.StepConnector,"border",$("palette-grey-600")),T(c.StepContent,"border",$("palette-grey-600")),T(c.Switch,"defaultColor",$("palette-grey-300")),T(c.Switch,"defaultDisabledColor",$("palette-grey-600")),T(c.Switch,"primaryDisabledColor",de(c.primary.main,.55)),T(c.Switch,"secondaryDisabledColor",de(c.secondary.main,.55)),T(c.Switch,"errorDisabledColor",de(c.error.main,.55)),T(c.Switch,"infoDisabledColor",de(c.info.main,.55)),T(c.Switch,"successDisabledColor",de(c.success.main,.55)),T(c.Switch,"warningDisabledColor",de(c.warning.main,.55)),T(c.TableCell,"border",de(Yt(c.divider,1),.68)),T(c.Tooltip,"bg",Yt(c.grey[700],.92))}Le(c.background,"default"),Le(c.background,"paper"),Le(c.common,"background"),Le(c.common,"onBackground"),Le(c,"divider"),Object.keys(c).forEach(A=>{const D=c[A];A!=="tonalOffset"&&D&&typeof D=="object"&&(D.main&&T(c[A],"mainChannel",Nt(jt(D.main))),D.light&&T(c[A],"lightChannel",Nt(jt(D.light))),D.dark&&T(c[A],"darkChannel",Nt(jt(D.dark))),D.contrastText&&T(c[A],"contrastTextChannel",Nt(jt(D.contrastText))),A==="text"&&(Le(c[A],"primary"),Le(c[A],"secondary")),A==="action"&&(D.active&&Le(c[A],"active"),D.selected&&Le(c[A],"selected")))})}),E=t.reduce((Y,c)=>Re(Y,c),E);const x={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Va(E)},{vars:_,generateThemeVars:z,generateStyleSheets:H}=fa(E,x);return E.vars=_,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([Y,c])=>{E[Y]=c}),E.generateThemeVars=z,E.generateStyleSheets=H,E.generateSpacing=function(){return To(f.spacing,Kn(this))},E.getColorSchemeSelector=pa(l),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=a,E.unstable_sxConfig={...xn,...f==null?void 0:f.unstable_sxConfig},E.unstable_sx=function(c){return Et({sx:c,theme:this})},E.toRuntimeSource=ko,E}function qr(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:tr({...n===!0?{}:n.palette,mode:t})})}function Ya(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",d=o==null?void 0:o[l],f={...o,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Bn(e,...t);let m=n;"palette"in e||f[l]&&(f[l]!==!0?m=f[l].palette:l==="dark"&&(m={mode:"dark"}));const h=Bn({...e,palette:m},...t);return h.defaultColorScheme=l,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},qr(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},qr(h,"light",f.light)),h}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),Ua({...a,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const jo=Ya(),Io="$$material";function nr(){const e=Hs(jo);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[Io]||e}function qa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ao=e=>qa(e)&&e!=="classes",xe=Js({themeId:Io,defaultTheme:jo,rootShouldForwardProp:Ao}),Ct=la;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ye(e){return aa(e)}function Ha(e){return _e("MuiSvgIcon",e)}Ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ga=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${me(t)}`,`fontSize${me(n)}`]};return et(o,Ha,r)},Ka=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${me(n.color)}`],t[`fontSize${me(n.fontSize)}`]]}})(Ct(({theme:e})=>{var t,n,r,o,i,a,l,d,f,m,h,y,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:u=>!u.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:d.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:m.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,u])=>u&&u.main).map(([u])=>{var S,N;return{props:{color:u},style:{color:(N=(S=(e.vars??e).palette)==null?void 0:S[u])==null?void 0:N.main}}}),{props:{color:"action"},style:{color:(y=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(v=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),nn=P.forwardRef(function(t,n){const r=Ye({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:m=!1,titleAccess:h,viewBox:y="0 0 24 24",...b}=r,v=P.isValidElement(o)&&o.type==="svg",u={...r,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:y,hasSvgAsChild:v},S={};m||(S.viewBox=y);const N=Ga(u);return g.jsxs(Ka,{as:l,className:be(N.root,i),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...S,...b,...v&&o.props,ownerState:u,children:[v?o.props.children:o,h?g.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(nn.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});nn.muiName="SvgIcon";function at(e,t){function n(r,o){return g.jsx(nn,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=nn.muiName,P.memo(P.forwardRef(n))}const Xa=at(g.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Ja=k.styled(k.Container)(({theme:e})=>({marginTop:e.spacing(2),gap:e.spacing(2),alignItems:"flex-start",display:"flex",flexDirection:"column",justifyContent:"flex-start",paddingBottom:e.spacing(2),minHeight:"80vh"})),Qa=k.styled(k.Box)(({theme:e})=>({backgroundColor:e.palette.background.default,padding:e.spacing(2,0),borderTop:`1px solid ${e.palette.divider}`})),Za=k.styled(k.Typography)(({theme:e})=>({textAlign:"center",color:e.palette.text.secondary})),el=({footerText:e})=>g.jsx(Qa,{children:g.jsx(k.Container,{children:g.jsx(Za,{children:e})})}),tl=({children:e})=>g.jsx(k.AppBar,{position:"sticky",sx:{backgroundColor:t=>t.palette.navbar.background},children:g.jsx(k.Container,{maxWidth:"lg",children:g.jsx(k.Toolbar,{disableGutters:!0,children:e})})}),nl=at(g.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),rl=at(g.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),ol=({logoSrc:e,altText:t="Logo",redirectUrl:n="/"})=>g.jsx(yt.Link,{to:n,style:{textDecoration:"none"},children:g.jsx(k.Box,{display:"flex",alignItems:"center",height:"100%",children:g.jsx("img",{src:e,alt:t,style:{height:"40px",width:"auto"}})})}),il={logo:"/images/logo.png"},sl=({isSidebarOpen:e,toggleSidebar:t,variant:n,drawerWidth:r,menuConfig:o,showOnlyIcons:i=!1,toggleSidebarDesktop:a})=>{const[l,d]=re.useState({}),f=yt.useLocation(),m=y=>f.pathname===y,h=y=>{d(b=>({...b,[y]:!b[y]}))};return g.jsx(k.Drawer,{anchor:"left",open:e,onClose:t,sx:{"& .MuiDrawer-paper":{width:r,borderRight:"1px solid #ddd",backgroundColor:y=>y.palette.sidebar.background,color:y=>y.palette.sidebar.foreground}},variant:n,children:g.jsxs(k.Box,{role:"presentation",onClick:n==="temporary"?t:void 0,onKeyDown:n==="temporary"?t:void 0,sx:{height:"100%",overflowY:"auto"},children:[g.jsxs(k.Box,{sx:{pt:2,px:1,display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row"},children:[g.jsx(ol,{logoSrc:il.logo}),g.jsx(k.Tooltip,{title:"Minimize sidebar",arrow:!0,children:g.jsx(k.IconButton,{edge:"start",color:"inherit","aria-label":"toggle sidebar",sx:{display:{xs:"none",md:i?"none":"flex"}},onClick:a,children:g.jsx(nl,{color:"inherit"})})})]}),o.map(y=>g.jsxs(k.Box,{children:[g.jsx(k.Typography,{variant:"subtitle1",sx:{px:2,py:1,fontWeight:"bold",textTransform:"uppercase"},children:y.sectionName}),g.jsx(k.Divider,{}),g.jsxs(k.List,{children:[g.jsx(k.Tooltip,{title:"Expand sidebar",arrow:!0,children:g.jsx(k.ListItemButton,{sx:{borderRadius:1,px:2,display:i?"block":"none"},onClick:a,children:g.jsx(k.ListItemIcon,{children:g.jsx(rl,{})})})}),y.items.map((b,v)=>g.jsxs(re.Fragment,{children:[g.jsx(yt.Link,{to:b.link||"#",style:{textDecoration:"none",color:"inherit"},children:g.jsxs(k.ListItemButton,{sx:{borderRadius:1,px:2,backgroundColor:m(b.link)?"action.selected":"transparent"},onClick:()=>b.children&&h(b.label),children:[b.icon&&g.jsx(k.ListItemIcon,{color:"inherit",children:b.icon}),i?null:g.jsx(k.ListItemText,{primary:b.label}),b.children&&(l[b.label]?g.jsx(sr.ExpandLess,{}):g.jsx(sr.ExpandMore,{}))]})}),b.children&&g.jsx(k.Collapse,{in:l[b.label]||!1,timeout:"auto",unmountOnExit:!0,children:g.jsx(k.List,{component:"div",disablePadding:!0,children:b.children.map((u,S)=>g.jsx(yt.Link,{to:u==null?void 0:u.link,style:{textDecoration:"none",color:"inherit"},children:g.jsxs(k.ListItemButton,{sx:{pl:4,borderRadius:1},children:[u.icon&&g.jsx(k.ListItemIcon,{children:u.icon}),g.jsx(k.ListItemText,{primary:u.label})]})},`${b.label}-${S}`))})})]},`${y.sectionName}-${v}`))]})]},y.sectionName))]})})},_o=({children:e,layoutConfig:t})=>{const[n,r]=re.useState(!1),[o,i]=re.useState(t.sideDrawer.isMinimized),a=k.useMediaQuery(y=>y.breakpoints.up("md")),l=t.navbar.showHamburgerInMobile&&!a,d=a?"permanent":"temporary",f=o?60:t.sideDrawer.drawerWidth,m=()=>{r(!n)},h=()=>{i(!o)};return g.jsxs(k.Box,{children:[g.jsxs(k.Box,{component:"main",sx:{flexGrow:1,ml:{md:`${f}px`}},children:[g.jsx(tl,{children:g.jsxs(k.Stack,{direction:"row",spacing:2,alignItems:"center",justifyContent:"space-between",width:"100%",children:[l&&g.jsx(k.IconButton,{edge:"start",color:"inherit","aria-label":"menu",onClick:m,sx:{display:{xs:"block",md:"none"}},children:g.jsx(Xa,{})}),g.jsx(k.Box,{})]})}),g.jsx(Ja,{maxWidth:"lg",children:e}),g.jsx(el,{footerText:t.footerText})]}),g.jsx(sl,{isSidebarOpen:n,toggleSidebar:m,variant:d,drawerWidth:f,menuConfig:t.sideDrawer.menuConfig,showOnlyIcons:o,toggleSidebarDesktop:h})]})},al=({children:e,layoutConfig:t})=>g.jsx(yt.BrowserRouter,{children:g.jsx(_o,{layoutConfig:t,children:e})}),ll=at(g.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),cl=at(g.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),ul=({children:e,...t})=>g.jsx(k.IconButton,{...t,children:e}),dl=({startIcon:e,placeholder:t="Search...",onChange:n,count:r=0,onClear:o})=>{const[i,a]=re.useState(""),l=()=>{a(""),o&&o()},d=()=>i!==""?g.jsxs(k.Stack,{direction:"row",alignItems:"center",children:[g.jsx(k.Box,{sx:{px:"4px",bgcolor:"gray",borderRadius:"50%",color:"white"},children:r}),g.jsx(ul,{onClick:l,children:g.jsx(cl,{})})]}):null;return g.jsx("form",{noValidate:!0,autoComplete:"off",children:g.jsx(k.FormControl,{fullWidth:!0,children:g.jsx(k.OutlinedInput,{placeholder:t,onChange:f=>{a(f.target.value),n&&n(f.target.value)},fullWidth:!0,startAdornment:e,size:"small",endAdornment:d(),value:i})})})};function fl(e){return typeof e=="string"}function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vn.apply(null,arguments)}function Mo(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function zn(e,t){return zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zn(e,t)}function Do(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zn(e,t)}const Hr={disabled:!1};var pl=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 rn=re.createContext(null);var hl=function(t){return t.scrollTop},It="unmounted",ot="exited",it="entering",gt="entered",Fn="exiting",Me=function(e){Do(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,d;return i.appearStatus=null,r.in?l?(d=ot,i.appearStatus=it):d=gt:r.unmountOnExit||r.mountOnEnter?d=It:d=ot,i.state={status:d},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===It?{status:ot}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==it&&a!==gt&&(i=it):(a===it||a===gt)&&(i=Fn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===it){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:$t.findDOMNode(this);a&&hl(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ot&&this.setState({status:It})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,d=this.props.nodeRef?[l]:[$t.findDOMNode(this),l],f=d[0],m=d[1],h=this.getTimeouts(),y=l?h.appear:h.enter;if(!o&&!a||Hr.disabled){this.safeSetState({status:gt},function(){i.props.onEntered(f)});return}this.props.onEnter(f,m),this.safeSetState({status:it},function(){i.props.onEntering(f,m),i.onTransitionEnd(y,function(){i.safeSetState({status:gt},function(){i.props.onEntered(f,m)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:$t.findDOMNode(this);if(!i||Hr.disabled){this.safeSetState({status:ot},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Fn},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ot},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:$t.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=d[0],m=d[1];this.props.addEndListener(f,m)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===It)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 l=Mo(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return re.createElement(rn.Provider,{value:null},typeof a=="function"?a(o,l):re.cloneElement(re.Children.only(a),l))},t}(re.Component);Me.contextType=rn;Me.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,r,o,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,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 n=pl;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.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 mt(){}Me.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mt,onEntering:mt,onEntered:mt,onExit:mt,onExiting:mt,onExited:mt};Me.UNMOUNTED=It;Me.EXITED=ot;Me.ENTERING=it;Me.ENTERED=gt;Me.EXITING=Fn;function ml(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rr(e,t){var n=function(i){return t&&re.isValidElement(i)?t(i):i},r=Object.create(null);return e&&re.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function gl(e,t){e=e||{},t=t||{};function n(m){return m in t?t[m]:e[m]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var d in t){if(r[d])for(a=0;a<r[d].length;a++){var f=r[d][a];l[r[d][a]]=n(f)}l[d]=n(d)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function st(e,t,n){return n[t]!=null?n[t]:e.props[t]}function yl(e,t){return rr(e.children,function(n){return re.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:st(n,"appear",e),enter:st(n,"enter",e),exit:st(n,"exit",e)})})}function bl(e,t,n){var r=rr(e.children),o=gl(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(re.isValidElement(a)){var l=i in t,d=i in r,f=t[i],m=re.isValidElement(f)&&!f.props.in;d&&(!l||m)?o[i]=re.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:st(a,"exit",e),enter:st(a,"enter",e)}):!d&&l&&!m?o[i]=re.cloneElement(a,{in:!1}):d&&l&&re.isValidElement(f)&&(o[i]=re.cloneElement(a,{onExited:n.bind(null,a),in:f.props.in,exit:st(a,"exit",e),enter:st(a,"enter",e)}))}}),o}var vl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xl={component:"div",childFactory:function(t){return t}},or=function(e){Do(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(ml(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,l=i.handleExited,d=i.firstRender;return{children:d?yl(o,l):bl(o,a,l),firstRender:!1}},n.handleExited=function(o,i){var a=rr(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var d=Vn({},l.children);return delete d[o.key],{children:d}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,l=Mo(o,["component","childFactory"]),d=this.state.contextValue,f=vl(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?re.createElement(rn.Provider,{value:d},f):re.createElement(rn.Provider,{value:d},re.createElement(i,l,f))},t}(re.Component);or.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};or.defaultProps=xl;const Bo=e=>e.scrollTop;function on(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Wn(e){return`scale(${e}, ${e**2})`}const El={entering:{opacity:1,transform:Wn(1)},entered:{opacity:1,transform:"none"}},jn=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sn=P.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:d,onEntered:f,onEntering:m,onExit:h,onExited:y,onExiting:b,style:v,timeout:u="auto",TransitionComponent:S=Me,...N}=t,B=ho(),C=P.useRef(),E=nr(),x=P.useRef(null),_=Ae(x,un(i),n),z=I=>M=>{if(I){const G=x.current;M===void 0?I(G):I(G,M)}},H=z(m),Y=z((I,M)=>{Bo(I);const{duration:G,delay:oe,easing:Q}=on({style:v,timeout:u,easing:a},{mode:"enter"});let w;u==="auto"?(w=E.transitions.getAutoHeightDuration(I.clientHeight),C.current=w):w=G,I.style.transition=[E.transitions.create("opacity",{duration:w,delay:oe}),E.transitions.create("transform",{duration:jn?w:w*.666,delay:oe,easing:Q})].join(","),d&&d(I,M)}),c=z(f),$=z(b),A=z(I=>{const{duration:M,delay:G,easing:oe}=on({style:v,timeout:u,easing:a},{mode:"exit"});let Q;u==="auto"?(Q=E.transitions.getAutoHeightDuration(I.clientHeight),C.current=Q):Q=M,I.style.transition=[E.transitions.create("opacity",{duration:Q,delay:G}),E.transitions.create("transform",{duration:jn?Q:Q*.666,delay:jn?G:G||Q*.333,easing:oe})].join(","),I.style.opacity=0,I.style.transform=Wn(.75),h&&h(I)}),D=z(y),L=I=>{u==="auto"&&B.start(C.current||0,I),r&&r(x.current,I)};return g.jsx(S,{appear:o,in:l,nodeRef:x,onEnter:Y,onEntered:c,onEntering:H,onExit:A,onExited:D,onExiting:$,addEndListener:L,timeout:u==="auto"?null:u,...N,children:(I,{ownerState:M,...G})=>P.cloneElement(i,{style:{opacity:0,transform:Wn(.75),visibility:I==="exited"&&!l?"hidden":void 0,...El[I],...v,...i.props.style},ref:_,...G})})});process.env.NODE_ENV!=="production"&&(sn.propTypes={addEndListener:s.func,appear:s.bool,children:Dt.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})])});sn&&(sn.muiSupportAuto=!0);function Tl(e){const t=Fe(e);return t.body===e?xt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function _t(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gr(e){return parseInt(xt(e).getComputedStyle(e).paddingRight,10)||0}function Sl(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Kr(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=!i.includes(a),d=!Sl(a);l&&d&&_t(a,o)})}function In(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Cl(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Tl(r)){const a=Pi(xt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Gr(r)+a}px`;const l=Fe(r).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Gr(d)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Fe(r).body;else{const a=r.parentElement,l=xt(r);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.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()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function wl(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Rl{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&_t(t.modalRef,!1);const o=wl(n);Kr(n,t.mount,t.modalRef,o,!0);const i=In(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=In(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=Cl(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=In(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&_t(t.modalRef,n),Kr(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&&_t(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Ol=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Pl(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 kl(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function $l(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kl(e))}function Nl(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ol)).forEach((r,o)=>{const i=Pl(r);i===-1||!$l(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function jl(){return!0}function an(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Nl,isEnabled:a=jl,open:l}=e,d=P.useRef(!1),f=P.useRef(null),m=P.useRef(null),h=P.useRef(null),y=P.useRef(null),b=P.useRef(!1),v=P.useRef(null),u=Ae(un(t),v),S=P.useRef(null);P.useEffect(()=>{!l||!v.current||(b.current=!n)},[n,l]),P.useEffect(()=>{if(!l||!v.current)return;const C=Fe(v.current);return v.current.contains(C.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(`
|
|
106
|
+
`)),v.current.setAttribute("tabIndex","-1")),b.current&&v.current.focus()),()=>{o||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[l]),P.useEffect(()=>{if(!l||!v.current)return;const C=Fe(v.current),E=z=>{S.current=z,!(r||!a()||z.key!=="Tab")&&C.activeElement===v.current&&z.shiftKey&&(d.current=!0,m.current&&m.current.focus())},x=()=>{var Y,c;const z=v.current;if(z===null)return;if(!C.hasFocus()||!a()||d.current){d.current=!1;return}if(z.contains(C.activeElement)||r&&C.activeElement!==f.current&&C.activeElement!==m.current)return;if(C.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!b.current)return;let H=[];if((C.activeElement===f.current||C.activeElement===m.current)&&(H=i(v.current)),H.length>0){const $=!!((Y=S.current)!=null&&Y.shiftKey&&((c=S.current)==null?void 0:c.key)==="Tab"),A=H[0],D=H[H.length-1];typeof A!="string"&&typeof D!="string"&&($?D.focus():A.focus())}else z.focus()};C.addEventListener("focusin",x),C.addEventListener("keydown",E,!0);const _=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&x()},50);return()=>{clearInterval(_),C.removeEventListener("focusin",x),C.removeEventListener("keydown",E,!0)}},[n,r,o,a,l,i]);const N=C=>{h.current===null&&(h.current=C.relatedTarget),b.current=!0,y.current=C.target;const E=t.props.onFocus;E&&E(C)},B=C=>{h.current===null&&(h.current=C.relatedTarget),b.current=!0};return g.jsxs(P.Fragment,{children:[g.jsx("div",{tabIndex:l?0:-1,onFocus:B,ref:f,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:u,onFocus:N}),g.jsx("div",{tabIndex:l?0:-1,onFocus:B,ref:m,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(an.propTypes={children:Dt,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(an.propTypes=co(an.propTypes));function Il(e){return typeof e=="function"?e():e}const ln=P.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,l]=P.useState(null),d=Ae(P.isValidElement(r)?un(r):null,n);if(_n(()=>{i||l(Il(o)||document.body)},[o,i]),_n(()=>{if(a&&!i)return An(n,a),()=>{An(n,null)}},[n,a,i]),i){if(P.isValidElement(r)){const f={ref:d};return P.cloneElement(r,f)}return r}return a&&ti.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(ln.propTypes={children:s.node,container:s.oneOfType([Qt,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(ln.propTypes=co(ln.propTypes));function Tt(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...d}=t,{component:f,slots:m={[e]:void 0},slotProps:h={[e]:void 0},...y}=i,b=m[e]||r,v=Di(h[e],o),{props:{component:u,...S},internalRef:N}=Mi({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:v}),B=Ae(N,v==null?void 0:v.ref,t.ref),C=e==="root"?u||f:u,E=_i(b,{...e==="root"&&!f&&!m[e]&&a,...e!=="root"&&!m[e]&&a,...S,...C&&!l&&{as:C},...C&&l&&{component:C},ref:B},o);return[b,E]}const Al={entering:{opacity:1},entered:{opacity:1}},Lo=P.forwardRef(function(t,n){const r=nr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:d,in:f,onEnter:m,onEntered:h,onEntering:y,onExit:b,onExited:v,onExiting:u,style:S,timeout:N=o,TransitionComponent:B=Me,...C}=t,E=P.useRef(null),x=Ae(E,un(l),n),_=L=>I=>{if(L){const M=E.current;I===void 0?L(M):L(M,I)}},z=_(y),H=_((L,I)=>{Bo(L);const M=on({style:S,timeout:N,easing:d},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",M),L.style.transition=r.transitions.create("opacity",M),m&&m(L,I)}),Y=_(h),c=_(u),$=_(L=>{const I=on({style:S,timeout:N,easing:d},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",I),L.style.transition=r.transitions.create("opacity",I),b&&b(L)}),A=_(v),D=L=>{i&&i(E.current,L)};return g.jsx(B,{appear:a,in:f,nodeRef:E,onEnter:H,onEntered:Y,onEntering:z,onExit:$,onExited:A,onExiting:c,addEndListener:D,timeout:N,...C,children:(L,{ownerState:I,...M})=>P.cloneElement(l,{style:{opacity:0,visibility:L==="exited"&&!f?"hidden":void 0,...Al[L],...S,...l.props.style},ref:x,...M})})});process.env.NODE_ENV!=="production"&&(Lo.propTypes={addEndListener:s.func,appear:s.bool,children:Dt.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})])});function _l(e){return _e("MuiBackdrop",e)}Ue("MuiBackdrop",["root","invisible"]);const Ml=e=>{const{classes:t,invisible:n}=e;return et({root:["root",n&&"invisible"]},_l,t)},Dl=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Vo=P.forwardRef(function(t,n){const r=Ye({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:l=!1,open:d,components:f={},componentsProps:m={},slotProps:h={},slots:y={},TransitionComponent:b,transitionDuration:v,...u}=r,S={...r,component:a,invisible:l},N=Ml(S),B={transition:b,root:f.Root,...y},C={...m,...h},E={slots:B,slotProps:C},[x,_]=Tt("root",{elementType:Dl,externalForwardedProps:E,className:be(N.root,i),ownerState:S}),[z,H]=Tt("transition",{elementType:Lo,externalForwardedProps:E,ownerState:S});return g.jsx(z,{in:d,timeout:v,...u,...H,children:g.jsx(x,{"aria-hidden":!0,..._,classes:N,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(Vo.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.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition: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})])});function Bl(e){return typeof e=="function"?e():e}function Ll(e){return e?e.props.hasOwnProperty("in"):!1}const Xr=()=>{},Ht=new Rl;function Vl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:d,open:f,rootRef:m}=e,h=P.useRef({}),y=P.useRef(null),b=P.useRef(null),v=Ae(b,m),[u,S]=P.useState(!f),N=Ll(l);let B=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(B=!1);const C=()=>Fe(y.current),E=()=>(h.current.modalRef=b.current,h.current.mount=y.current,h.current),x=()=>{Ht.mount(E(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},_=bt(()=>{const I=Bl(t)||C().body;Ht.add(E(),I),b.current&&x()}),z=()=>Ht.isTopModal(E()),H=bt(I=>{y.current=I,I&&(f&&z()?x():b.current&&_t(b.current,B))}),Y=P.useCallback(()=>{Ht.remove(E(),B)},[B]);P.useEffect(()=>()=>{Y()},[Y]),P.useEffect(()=>{f?_():(!N||!o)&&Y()},[f,Y,N,o,_]);const c=I=>M=>{var G;(G=I.onKeyDown)==null||G.call(I,M),!(M.key!=="Escape"||M.which===229||!z())&&(n||(M.stopPropagation(),d&&d(M,"escapeKeyDown")))},$=I=>M=>{var G;(G=I.onClick)==null||G.call(I,M),M.target===M.currentTarget&&d&&d(M,"backdropClick")};return{getRootProps:(I={})=>{const M=vo(e);delete M.onTransitionEnter,delete M.onTransitionExited;const G={...M,...I};return{role:"presentation",...G,onKeyDown:c(G),ref:v}},getBackdropProps:(I={})=>{const M=I;return{"aria-hidden":!0,...M,onClick:$(M),open:f}},getTransitionProps:()=>{const I=()=>{S(!1),i&&i()},M=()=>{S(!0),a&&a(),o&&Y()};return{onEnter:Cr(I,(l==null?void 0:l.props.onEnter)??Xr),onExited:Cr(M,(l==null?void 0:l.props.onExited)??Xr)}},rootRef:v,portalRef:H,isTopModal:z,exited:u,hasTransition:N}}function zl(e){return _e("MuiModal",e)}Ue("MuiModal",["root","hidden","backdrop"]);const Fl=e=>{const{open:t,exited:n,classes:r}=e;return et({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zl,r)},Wl=xe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ct(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Ul=xe(Vo,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zo=P.forwardRef(function(t,n){const r=Ye({name:"MuiModal",props:t}),{BackdropComponent:o=Ul,BackdropProps:i,classes:a,className:l,closeAfterTransition:d=!1,children:f,container:m,component:h,components:y={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:S=!1,disablePortal:N=!1,disableRestoreFocus:B=!1,disableScrollLock:C=!1,hideBackdrop:E=!1,keepMounted:x=!1,onBackdropClick:_,onClose:z,onTransitionEnter:H,onTransitionExited:Y,open:c,slotProps:$={},slots:A={},theme:D,...L}=r,I={...r,closeAfterTransition:d,disableAutoFocus:v,disableEnforceFocus:u,disableEscapeKeyDown:S,disablePortal:N,disableRestoreFocus:B,disableScrollLock:C,hideBackdrop:E,keepMounted:x},{getRootProps:M,getBackdropProps:G,getTransitionProps:oe,portalRef:Q,isTopModal:w,exited:j,hasTransition:K}=Vl({...I,rootRef:n}),U={...I,exited:j},F=Fl(U),X={};if(f.props.tabIndex===void 0&&(X.tabIndex="-1"),K){const{onEnter:O,onExited:le}=oe();X.onEnter=O,X.onExited=le}const q={...L,slots:{root:y.Root,backdrop:y.Backdrop,...A},slotProps:{...b,...$}},[J,ee]=Tt("root",{elementType:Wl,externalForwardedProps:q,getSlotProps:M,additionalProps:{ref:n,as:h},ownerState:U,className:be(l,F==null?void 0:F.root,!U.open&&U.exited&&(F==null?void 0:F.hidden))}),[ne,V]=Tt("backdrop",{elementType:o,externalForwardedProps:q,additionalProps:i,getSlotProps:O=>G({...O,onClick:le=>{_&&_(le),O!=null&&O.onClick&&O.onClick(le)}}),className:be(i==null?void 0:i.className,F==null?void 0:F.backdrop),ownerState:U}),Z=Ae(i==null?void 0:i.ref,V.ref);return!x&&!c&&(!K||j)?null:g.jsx(ln,{ref:Q,container:m,disablePortal:N,children:g.jsxs(J,{...ee,children:[!E&&o?g.jsx(ne,{...V,ref:Z}):null,g.jsx(an,{disableEnforceFocus:u,disableAutoFocus:v,disableRestoreFocus:B,isEnabled:w,open:c,children:P.cloneElement(f,X)})]})})});process.env.NODE_ENV!=="production"&&(zo.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Dt.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([Qt,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])});function Yl(e){return _e("MuiPaper",e)}Ue("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 ql=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return et(i,Yl,o)},Hl=xe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ct(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Fo=P.forwardRef(function(t,n){var b;const r=Ye({props:t,name:"MuiPaper"}),o=nr(),{className:i,component:a="div",elevation:l=1,square:d=!1,variant:f="elevation",...m}=r,h={...r,component:a,elevation:l,square:d,variant:f},y=ql(h);return process.env.NODE_ENV!=="production"&&o.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
107
|
+
`)),g.jsx(Hl,{as:a,ownerState:h,className:be(y.root,i),ref:n,...m,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":(b=o.vars.overlays)==null?void 0:b[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ke("#fff",Ln(l))}, ${Ke("#fff",Ln(l))})`}},...m.style}})});process.env.NODE_ENV!=="production"&&(Fo.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:St(yo,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,style:s.object,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])});function Gl(e){return _e("MuiPopover",e)}Ue("MuiPopover",["root","paper"]);function Jr(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Qr(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Zr(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Xt(e){return typeof e=="function"?e():e}const Kl=e=>{const{classes:t}=e;return et({root:["root"],paper:["paper"]},Gl,t)},Xl=xe(zo,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jl=xe(Fo,{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}),Wo=P.forwardRef(function(t,n){const r=Ye({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:f,className:m,container:h,elevation:y=8,marginThreshold:b=16,open:v,PaperProps:u={},slots:S={},slotProps:N={},transformOrigin:B={vertical:"top",horizontal:"left"},TransitionComponent:C=sn,transitionDuration:E="auto",TransitionProps:{onEntering:x,..._}={},disableScrollLock:z=!1,...H}=r,Y=(N==null?void 0:N.paper)??u,c=P.useRef(),$={...r,anchorOrigin:a,anchorReference:d,elevation:y,marginThreshold:b,externalPaperSlotProps:Y,transformOrigin:B,TransitionComponent:C,transitionDuration:E,TransitionProps:_},A=Kl($),D=P.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const V=Xt(i),Z=V&&V.nodeType===1?V:Fe(c.current).body,O=Z.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const le=Z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&le.top===0&&le.left===0&&le.right===0&&le.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(`
|
|
108
|
+
`))}return{top:O.top+Jr(O,a.vertical),left:O.left+Qr(O,a.horizontal)}},[i,a.horizontal,a.vertical,l,d]),L=P.useCallback(V=>({vertical:Jr(V,B.vertical),horizontal:Qr(V,B.horizontal)}),[B.horizontal,B.vertical]),I=P.useCallback(V=>{const Z={width:V.offsetWidth,height:V.offsetHeight},O=L(Z);if(d==="none")return{top:null,left:null,transformOrigin:Zr(O)};const le=D();let Ee=le.top-O.vertical,Se=le.left-O.horizontal;const lt=Ee+Z.height,Ne=Se+Z.width,$e=xt(Xt(i)),je=$e.innerHeight-b,qe=$e.innerWidth-b;if(b!==null&&Ee<b){const p=Ee-b;Ee-=p,O.vertical+=p}else if(b!==null&<>je){const p=lt-je;Ee-=p,O.vertical+=p}if(process.env.NODE_ENV!=="production"&&Z.height>je&&Z.height&&je&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${Z.height-je}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
109
|
+
`)),b!==null&&Se<b){const p=Se-b;Se-=p,O.horizontal+=p}else if(Ne>qe){const p=Ne-qe;Se-=p,O.horizontal+=p}return{top:`${Math.round(Ee)}px`,left:`${Math.round(Se)}px`,transformOrigin:Zr(O)}},[i,d,D,L,b]),[M,G]=P.useState(v),oe=P.useCallback(()=>{const V=c.current;if(!V)return;const Z=I(V);Z.top!==null&&V.style.setProperty("top",Z.top),Z.left!==null&&(V.style.left=Z.left),V.style.transformOrigin=Z.transformOrigin,G(!0)},[I]);P.useEffect(()=>(z&&window.addEventListener("scroll",oe),()=>window.removeEventListener("scroll",oe)),[i,z,oe]);const Q=(V,Z)=>{x&&x(V,Z),oe()},w=()=>{G(!1)};P.useEffect(()=>{v&&oe()}),P.useImperativeHandle(o,()=>v?{updatePosition:()=>{oe()}}:null,[v,oe]),P.useEffect(()=>{if(!v)return;const V=Ti(()=>{oe()}),Z=xt(i);return Z.addEventListener("resize",V),()=>{V.clear(),Z.removeEventListener("resize",V)}},[i,v,oe]);let j=E;E==="auto"&&!C.muiSupportAuto&&(j=void 0);const K=h||(i?Fe(Xt(i)).body:void 0),U={slots:S,slotProps:{...N,paper:Y}},[F,X]=Tt("paper",{elementType:Jl,externalForwardedProps:U,additionalProps:{elevation:y,className:be(A.paper,Y==null?void 0:Y.className),style:M?Y.style:{...Y.style,opacity:0}},ownerState:$}),[q,{slotProps:J,...ee}]=Tt("root",{elementType:Xl,externalForwardedProps:U,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:K,open:v},ownerState:$,className:be(A.root,m)}),ne=Ae(c,X.ref);return g.jsx(q,{...ee,...!fl(q)&&{slotProps:J,disableScrollLock:z},...H,ref:n,children:g.jsx(C,{appear:!0,in:v,onEntering:Q,onExited:w,timeout:j,..._,children:g.jsx(F,{...X,ref:ne,children:f})})})});process.env.NODE_ENV!=="production"&&(Wo.propTypes={action:fo,anchorEl:St(s.oneOfType([Qt,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Xt(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
110
|
+
`))}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(`
|
|
111
|
+
`))}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"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([Qt,s.func]),disableScrollLock:s.bool,elevation:yo,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:lo}),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 eo=at(g.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Ql=at(g.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");class cn{constructor(){Rt(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new cn}static use(){const t=po(cn.create).current,[n,r]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=r,P.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=ec(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function Zl(){return cn.use()}function ec(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Uo(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:d,timeout:f}=e,[m,h]=P.useState(!1),y=be(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=be(n.child,m&&n.childLeaving,r&&n.childPulsate);return!l&&!m&&h(!0),P.useEffect(()=>{if(!l&&d!=null){const u=setTimeout(d,f);return()=>{clearTimeout(u)}}},[d,l,f]),g.jsx("span",{className:y,style:b,children:g.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(Uo.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 Oe=Ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Un=550,tc=80,nc=Ze.keyframes`
|
|
112
|
+
0% {
|
|
113
|
+
transform: scale(0);
|
|
114
|
+
opacity: 0.1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
100% {
|
|
118
|
+
transform: scale(1);
|
|
119
|
+
opacity: 0.3;
|
|
120
|
+
}
|
|
121
|
+
`,rc=Ze.keyframes`
|
|
122
|
+
0% {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
100% {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
}
|
|
129
|
+
`,oc=Ze.keyframes`
|
|
130
|
+
0% {
|
|
131
|
+
transform: scale(1);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
50% {
|
|
135
|
+
transform: scale(0.92);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
100% {
|
|
139
|
+
transform: scale(1);
|
|
140
|
+
}
|
|
141
|
+
`,ic=xe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sc=xe(Uo,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
142
|
+
opacity: 0;
|
|
143
|
+
position: absolute;
|
|
144
|
+
|
|
145
|
+
&.${Oe.rippleVisible} {
|
|
146
|
+
opacity: 0.3;
|
|
147
|
+
transform: scale(1);
|
|
148
|
+
animation-name: ${nc};
|
|
149
|
+
animation-duration: ${Un}ms;
|
|
150
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.${Oe.ripplePulsate} {
|
|
154
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
& .${Oe.child} {
|
|
158
|
+
opacity: 1;
|
|
159
|
+
display: block;
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 100%;
|
|
162
|
+
border-radius: 50%;
|
|
163
|
+
background-color: currentColor;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
& .${Oe.childLeaving} {
|
|
167
|
+
opacity: 0;
|
|
168
|
+
animation-name: ${rc};
|
|
169
|
+
animation-duration: ${Un}ms;
|
|
170
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
& .${Oe.childPulsate} {
|
|
174
|
+
position: absolute;
|
|
175
|
+
/* @noflip */
|
|
176
|
+
left: 0px;
|
|
177
|
+
top: 0;
|
|
178
|
+
animation-name: ${oc};
|
|
179
|
+
animation-duration: 2500ms;
|
|
180
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
181
|
+
animation-iteration-count: infinite;
|
|
182
|
+
animation-delay: 200ms;
|
|
183
|
+
}
|
|
184
|
+
`,Yo=P.forwardRef(function(t,n){const r=Ye({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...l}=r,[d,f]=P.useState([]),m=P.useRef(0),h=P.useRef(null);P.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const y=P.useRef(!1),b=ho(),v=P.useRef(null),u=P.useRef(null),S=P.useCallback(E=>{const{pulsate:x,rippleX:_,rippleY:z,rippleSize:H,cb:Y}=E;f(c=>[...c,g.jsx(sc,{classes:{ripple:be(i.ripple,Oe.ripple),rippleVisible:be(i.rippleVisible,Oe.rippleVisible),ripplePulsate:be(i.ripplePulsate,Oe.ripplePulsate),child:be(i.child,Oe.child),childLeaving:be(i.childLeaving,Oe.childLeaving),childPulsate:be(i.childPulsate,Oe.childPulsate)},timeout:Un,pulsate:x,rippleX:_,rippleY:z,rippleSize:H},m.current)]),m.current+=1,h.current=Y},[i]),N=P.useCallback((E={},x={},_=()=>{})=>{const{pulsate:z=!1,center:H=o||x.pulsate,fakeElement:Y=!1}=x;if((E==null?void 0:E.type)==="mousedown"&&y.current){y.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(y.current=!0);const c=Y?null:u.current,$=c?c.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,D,L;if(H||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)A=Math.round($.width/2),D=Math.round($.height/2);else{const{clientX:I,clientY:M}=E.touches&&E.touches.length>0?E.touches[0]:E;A=Math.round(I-$.left),D=Math.round(M-$.top)}if(H)L=Math.sqrt((2*$.width**2+$.height**2)/3),L%2===0&&(L+=1);else{const I=Math.max(Math.abs((c?c.clientWidth:0)-A),A)*2+2,M=Math.max(Math.abs((c?c.clientHeight:0)-D),D)*2+2;L=Math.sqrt(I**2+M**2)}E!=null&&E.touches?v.current===null&&(v.current=()=>{S({pulsate:z,rippleX:A,rippleY:D,rippleSize:L,cb:_})},b.start(tc,()=>{v.current&&(v.current(),v.current=null)})):S({pulsate:z,rippleX:A,rippleY:D,rippleSize:L,cb:_})},[o,S,b]),B=P.useCallback(()=>{N({},{pulsate:!0})},[N]),C=P.useCallback((E,x)=>{if(b.clear(),(E==null?void 0:E.type)==="touchend"&&v.current){v.current(),v.current=null,b.start(0,()=>{C(E,x)});return}v.current=null,f(_=>_.length>0?_.slice(1):_),h.current=x},[b]);return P.useImperativeHandle(n,()=>({pulsate:B,start:N,stop:C}),[B,N,C]),g.jsx(ic,{className:be(Oe.root,i.root,a),ref:u,...l,children:g.jsx(or,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(Yo.propTypes={center:s.bool,classes:s.object,className:s.string});function ac(e){return _e("MuiButtonBase",e)}const lc=Ue("MuiButtonBase",["root","disabled","focusVisible"]),cc=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=et({root:["root",t&&"disabled",n&&"focusVisible"]},ac,o);return n&&r&&(a.root+=` ${r}`),a},uc=xe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${lc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),qo=P.forwardRef(function(t,n){const r=Ye({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:d="button",disabled:f=!1,disableRipple:m=!1,disableTouchRipple:h=!1,focusRipple:y=!1,focusVisibleClassName:b,LinkComponent:v="a",onBlur:u,onClick:S,onContextMenu:N,onDragLeave:B,onFocus:C,onFocusVisible:E,onKeyDown:x,onKeyUp:_,onMouseDown:z,onMouseLeave:H,onMouseUp:Y,onTouchEnd:c,onTouchMove:$,onTouchStart:A,tabIndex:D=0,TouchRippleProps:L,touchRippleRef:I,type:M,...G}=r,oe=P.useRef(null),Q=Zl(),w=Ae(Q.ref,I),[j,K]=P.useState(!1);f&&j&&K(!1),P.useImperativeHandle(o,()=>({focusVisible:()=>{K(!0),oe.current.focus()}}),[]);const U=Q.shouldMount&&!m&&!f;P.useEffect(()=>{j&&y&&!m&&Q.pulsate()},[m,y,j,Q]);const F=Ve(Q,"start",z,h),X=Ve(Q,"stop",N,h),q=Ve(Q,"stop",B,h),J=Ve(Q,"stop",Y,h),ee=Ve(Q,"stop",R=>{j&&R.preventDefault(),H&&H(R)},h),ne=Ve(Q,"start",A,h),V=Ve(Q,"stop",c,h),Z=Ve(Q,"stop",$,h),O=Ve(Q,"stop",R=>{Pr(R.target)||K(!1),u&&u(R)},!1),le=bt(R=>{oe.current||(oe.current=R.currentTarget),Pr(R.target)&&(K(!0),E&&E(R)),C&&C(R)}),Ee=()=>{const R=oe.current;return d&&d!=="button"&&!(R.tagName==="A"&&R.href)},Se=bt(R=>{y&&!R.repeat&&j&&R.key===" "&&Q.stop(R,()=>{Q.start(R)}),R.target===R.currentTarget&&Ee()&&R.key===" "&&R.preventDefault(),x&&x(R),R.target===R.currentTarget&&Ee()&&R.key==="Enter"&&!f&&(R.preventDefault(),S&&S(R))}),lt=bt(R=>{y&&R.key===" "&&j&&!R.defaultPrevented&&Q.stop(R,()=>{Q.pulsate(R)}),_&&_(R),S&&R.target===R.currentTarget&&Ee()&&R.key===" "&&!R.defaultPrevented&&S(R)});let Ne=d;Ne==="button"&&(G.href||G.to)&&(Ne=v);const $e={};Ne==="button"?($e.type=M===void 0?"button":M,$e.disabled=f):(!G.href&&!G.to&&($e.role="button"),f&&($e["aria-disabled"]=f));const je=Ae(n,oe),qe={...r,centerRipple:i,component:d,disabled:f,disableRipple:m,disableTouchRipple:h,focusRipple:y,tabIndex:D,focusVisible:j},p=cc(qe);return g.jsxs(uc,{as:Ne,className:be(p.root,l),ownerState:qe,onBlur:O,onClick:S,onContextMenu:X,onFocus:le,onKeyDown:Se,onKeyUp:lt,onMouseDown:F,onMouseLeave:ee,onMouseUp:J,onDragLeave:q,onTouchEnd:V,onTouchMove:Z,onTouchStart:ne,ref:je,tabIndex:f?-1:D,type:M,...$e,...G,children:[a,U?g.jsx(Yo,{ref:w,center:i,...L}):null]})});function Ve(e,t,n,r=!1){return bt(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(qo.propTypes={action:fo,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:lo,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])});function dc(e){return typeof e.main=="string"}function fc(e,t=[]){if(!dc(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ho(e=[]){return([,t])=>t&&fc(t,e)}function pc(e){return _e("MuiCircularProgress",e)}Ue("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ge=44,Yn=Ze.keyframes`
|
|
185
|
+
0% {
|
|
186
|
+
transform: rotate(0deg);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
100% {
|
|
190
|
+
transform: rotate(360deg);
|
|
191
|
+
}
|
|
192
|
+
`,qn=Ze.keyframes`
|
|
193
|
+
0% {
|
|
194
|
+
stroke-dasharray: 1px, 200px;
|
|
195
|
+
stroke-dashoffset: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
50% {
|
|
199
|
+
stroke-dasharray: 100px, 200px;
|
|
200
|
+
stroke-dashoffset: -15px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
100% {
|
|
204
|
+
stroke-dasharray: 1px, 200px;
|
|
205
|
+
stroke-dashoffset: -126px;
|
|
206
|
+
}
|
|
207
|
+
`,hc=typeof Yn!="string"?Ze.css`
|
|
208
|
+
animation: ${Yn} 1.4s linear infinite;
|
|
209
|
+
`:null,mc=typeof qn!="string"?Ze.css`
|
|
210
|
+
animation: ${qn} 1.4s ease-in-out infinite;
|
|
211
|
+
`:null,gc=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${me(r)}`],svg:["svg"],circle:["circle",`circle${me(n)}`,o&&"circleDisableShrink"]};return et(i,pc,t)},yc=xe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${me(n.color)}`]]}})(Ct(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:hc||{animation:`${Yn} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),bc=xe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),vc=xe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${me(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ct(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:mc||{animation:`${qn} 1.4s ease-in-out infinite`}}]}))),ir=P.forwardRef(function(t,n){const r=Ye({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:l=40,style:d,thickness:f=3.6,value:m=0,variant:h="indeterminate",...y}=r,b={...r,color:i,disableShrink:a,size:l,thickness:f,value:m,variant:h},v=gc(b),u={},S={},N={};if(h==="determinate"){const B=2*Math.PI*((Ge-f)/2);u.strokeDasharray=B.toFixed(3),N["aria-valuenow"]=Math.round(m),u.strokeDashoffset=`${((100-m)/100*B).toFixed(3)}px`,S.transform="rotate(-90deg)"}return g.jsx(yc,{className:be(v.root,o),style:{width:l,height:l,...S,...d},ownerState:b,ref:n,role:"progressbar",...N,...y,children:g.jsx(bc,{className:v.svg,ownerState:b,viewBox:`${Ge/2} ${Ge/2} ${Ge} ${Ge}`,children:g.jsx(vc,{className:v.circle,style:u,ownerState:b,cx:Ge,cy:Ge,r:(Ge-f)/2,fill:"none",strokeWidth:f})})})});process.env.NODE_ENV!=="production"&&(ir.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:St(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"])});function xc(e){return _e("MuiButton",e)}const rt=Ue("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Go=P.createContext({});process.env.NODE_ENV!=="production"&&(Go.displayName="ButtonGroupContext");const Ko=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ko.displayName="ButtonGroupButtonContext");const Ec=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:l,classes:d}=e,f={root:["root",a&&"loading",i,`${i}${me(t)}`,`size${me(o)}`,`${i}Size${me(o)}`,`color${me(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${me(l)}`],startIcon:["icon","startIcon",`iconSize${me(o)}`],endIcon:["icon","endIcon",`iconSize${me(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},m=et(f,xc,d);return{...d,...m}},Xo=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Tc=xe(qo,{shouldForwardProp:e=>Ao(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${me(n.color)}`],t[`size${me(n.size)}`],t[`${n.variant}Size${me(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ct(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${rt.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${rt.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${rt.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${rt.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ho()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Ke(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${rt.loading}`]:{color:"transparent"}}}]}})),Sc=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${me(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Xo]})),Cc=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${me(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Xo]})),wc=xe("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),to=xe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Jo=P.forwardRef(function(t,n){const r=P.useContext(Go),o=P.useContext(Ko),i=Zt(r,t),a=Ye({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:f="button",className:m,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:b=!1,endIcon:v,focusVisibleClassName:u,fullWidth:S=!1,id:N,loading:B=null,loadingIndicator:C,loadingPosition:E="center",size:x="medium",startIcon:_,type:z,variant:H="text",...Y}=a,c=wi(N),$=C??g.jsx(ir,{"aria-labelledby":c,color:"inherit",size:16}),A={...a,color:d,component:f,disabled:h,disableElevation:y,disableFocusRipple:b,fullWidth:S,loading:B,loadingIndicator:$,loadingPosition:E,size:x,type:z,variant:H},D=Ec(A),L=(_||B&&E==="start")&&g.jsx(Sc,{className:D.startIcon,ownerState:A,children:_||g.jsx(to,{className:D.loadingIconPlaceholder,ownerState:A})}),I=(v||B&&E==="end")&&g.jsx(Cc,{className:D.endIcon,ownerState:A,children:v||g.jsx(to,{className:D.loadingIconPlaceholder,ownerState:A})}),M=o||"",G=typeof B=="boolean"?g.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:B&&g.jsx(wc,{className:D.loadingIndicator,ownerState:A,children:$})}):null;return g.jsxs(Tc,{ownerState:A,className:be(r.className,D.root,m,M),component:f,disabled:h||B,focusRipple:!b,focusVisibleClassName:be(D.focusVisible,u),ref:n,type:z,id:B?c:N,...Y,classes:D,children:[L,E!=="end"&&G,l,E==="end"&&G,I]})});process.env.NODE_ENV!=="production"&&(Jo.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,id:s.string,loading:s.bool,loadingIndicator:s.node,loadingPosition:s.oneOf(["center","end","start"]),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 Rc=({variant:e="contained",startIcon:t,endIcon:n,loading:r=!1,disabled:o=!1,children:i,onClick:a,...l})=>g.jsx(Jo,{variant:e,startIcon:r?null:t,endIcon:r?null:n,disabled:o||r,onClick:a,...l,children:r?g.jsx(ir,{size:24,color:"inherit"}):i}),Oc=({data:e,handleColumnVisibility:t})=>{const[n,r]=re.useState(null),[o,i]=re.useState(!1),a=b=>{r(b.currentTarget)},l=()=>{i(!1),r(null)},d=!!n,f=d?"simple-popover":void 0,m=e[0].filter(b=>b.isVisible),h=e[0].filter(b=>!b.isVisible),y=b=>{const v=e.map(u=>u.map(S=>S.id===b?{...S,isVisible:!S.isVisible}:S));console.log(v),t(v)};return console.log(e),g.jsxs(g.Fragment,{children:[g.jsx(k.Tooltip,{title:"Add new",arrow:!0,children:g.jsx(Rc,{variant:"text",onClick:a,children:g.jsx(eo,{})})}),g.jsx(Wo,{id:f,open:d,anchorEl:n,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:g.jsx(k.Paper,{elevation:3,style:{padding:"16px",minWidth:"200px"},children:g.jsx(g.Fragment,{children:o?g.jsx(g.Fragment,{}):g.jsxs(g.Fragment,{children:[g.jsx(k.Typography,{variant:"h6",fontWeight:"bold",children:"Visible Items"}),g.jsx(k.List,{children:m.map(b=>g.jsxs(k.ListItemButton,{onClick:()=>y(b.id),children:[g.jsx(k.ListItemIcon,{sx:{minWidth:"32px"},children:g.jsx(Ql,{})}),g.jsx(k.ListItemText,{slotProps:{primary:{variant:"body2"}},primary:`${b.fieldName}`})]},b.id))}),g.jsx(k.Typography,{variant:"h6",fontWeight:"bold",children:"Not Visible Items"}),g.jsx(k.List,{children:h.map(b=>g.jsxs(k.ListItemButton,{onClick:()=>y(b.id),children:[g.jsx(k.ListItemIcon,{sx:{minWidth:"32px"},children:g.jsx(eo,{})}),g.jsx(k.ListItemText,{slotProps:{primary:{variant:"body2"}},primary:`${b.fieldName}`})]},b.id))})]})})})})]})},Pc=xe(yt.Link)(({theme:e})=>({textDecoration:"none",color:"inherit","&:hover":{color:e.palette.primary.main}})),kc=({item:e,itemIndex:t,rowIndex:n})=>g.jsxs(k.Grid2,{container:!0,spacing:2,children:[t===0&&g.jsx(k.Grid2,{size:{xs:2},children:n+1}),e.isVisible&&g.jsxs(k.Grid2,{size:{xs:10},children:[e.fieldType==="link"&&g.jsx(Pc,{to:e.to||"/",children:e.fieldContent}),e.fieldType==="label"&&g.jsx(k.Chip,{label:typeof e.fieldContent=="string"?e.fieldContent:"",color:"primary",variant:"outlined"}),e.fieldType==="text"&&g.jsx(k.Typography,{variant:"body2",children:e.fieldContent}),e.fieldType==="date"&&g.jsx(k.Typography,{variant:"body2",color:"primary",children:e.fieldContent})]})]}),$c=(e,t)=>t?e.filter(n=>n.some(r=>r.isVisible&&typeof r.fieldContent=="string"&&r.fieldContent.toLowerCase().includes(t.toLowerCase()))):e,Gt=xe(k.TableCell)(({theme:e})=>({minWidth:130,maxWidth:380,borderTop:"1px solid",borderBottom:"1px solid",borderTopColor:e.palette.neutral[200],borderBottomColor:e.palette.neutral[200],wordWrap:"break-word",minHeight:"35px"})),Nc=({tableData:e})=>{const[t,n]=re.useState([]),[r,o]=re.useState([]),[i,a]=re.useState([]);re.useEffect(()=>{if(e.length>0){n(e),o(e);const m=e[0].map(h=>h);a(m)}},[e]);const l=m=>{const h=$c(r,m);n(h)},d=()=>{n(r)},f=m=>{const h=m[0].map(y=>y);a(h),n(m),o(m)};return g.jsxs(k.TableContainer,{component:k.Paper,sx:{minHeight:"80vh",width:"100%",overflow:"auto"},children:[g.jsx(k.Box,{sx:{width:"100%"},children:g.jsx(dl,{startIcon:g.jsx(ll,{}),placeholder:"Filter by keyword or field",count:t.length,onChange:l,onClear:d})}),g.jsxs(k.Table,{stickyHeader:!0,"aria-label":"sticky table",sx:{minWidth:650,width:"100%"},children:[g.jsx(k.TableHead,{children:g.jsxs(k.TableRow,{children:[i.length>0&&i.map((m,h)=>g.jsx(g.Fragment,{children:m.isVisible?g.jsx(Gt,{sx:{height:"30px"},children:g.jsxs(k.Grid,{container:!0,spacing:2,children:[h===0&&g.jsx(k.Grid,{item:!0,xs:2}),m.isVisible&&g.jsx(k.Grid,{item:!0,xs:10,children:g.jsxs(k.Typography,{variant:"body2",fontWeight:"bold",children:[" ",m.fieldName]})})]})},h):null})),g.jsx(Gt,{sx:{width:20},align:"center",children:t.length>0&&g.jsx(Oc,{data:t,handleColumnVisibility:f})})]})}),g.jsx(k.TableBody,{children:(t==null?void 0:t.length)>0&&t.map((m,h)=>g.jsxs(k.TableRow,{hover:!0,children:[m.length>0&&m.map((y,b)=>g.jsx(g.Fragment,{children:y.isVisible?g.jsx(Gt,{children:g.jsx(kc,{item:y,itemIndex:b,rowIndex:h})},`${y.fieldName}-${b}`):null})),g.jsx(Gt,{align:"center"})]},h))})]})]})},jc=k.styled(k.Paper)(({theme:e})=>({padding:e.spacing(4),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper})),Ic=k.styled(k.Avatar)(({theme:e})=>({width:e.spacing(12),height:e.spacing(12),marginBottom:e.spacing(2),border:`4px solid ${e.palette.background.paper}`})),Ac=k.styled(k.Box)(({theme:e})=>({textAlign:"left",marginTop:e.spacing(2),"& .MuiTypography-root":{marginBottom:e.spacing(1)}})),_c=k.styled(k.Button)(({theme:e})=>({marginTop:e.spacing(2),backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark}})),no=({profileData:e,onEditClick:t})=>{const{imageUrl:n,name:r,bio:o,email:i,location:a,phoneNumber:l}=e;return g.jsxs(jc,{elevation:4,children:[g.jsxs(k.Stack,{spacing:4,direction:"column",sx:{width:"100%"},alignItems:"center",justifyContent:"center",children:[g.jsx(Ic,{alt:r,src:n}),g.jsx(k.Typography,{variant:"h5",color:"text.primary",children:r}),g.jsx(k.Typography,{variant:"body1",color:"text.secondary",children:o})]}),g.jsx(k.Divider,{sx:{marginY:3}}),g.jsxs(Ac,{children:[g.jsxs(k.Typography,{variant:"body2",color:"text.primary",children:[g.jsx("strong",{children:"Email:"})," ",i]}),g.jsxs(k.Typography,{variant:"body2",color:"text.primary",children:[g.jsx("strong",{children:"Location:"})," ",a]}),g.jsxs(k.Typography,{variant:"body2",color:"text.primary",children:[g.jsx("strong",{children:"Phone:"})," ",l]})]}),t&&g.jsx(_c,{variant:"contained",fullWidth:!0,onClick:t,children:"Edit Profile"})]})},Mc=()=>{const e={imageUrl:"https://www.w3schools.com/w3images/avatar2.png",name:"Abul Kalam",bio:"Senior consultant SKH",email:"abulkalam@example.com",location:"Dhaka, Bangladesh",phoneNumber:"123-456-7890"},t={imageUrl:"https://www.w3schools.com/w3images/avatar1.png",name:"Abul Kalam Azad",bio:"Senior consultant SKH",email:"abulkalam@example.com",location:"Dhaka, Bangladesh",phoneNumber:"123-456-7890"},n=()=>{alert("Edit button clicked!")};return g.jsxs(k.Stack,{spacing:4,direction:"column",sx:{width:"100%"},children:[g.jsx(no,{profileData:e,onEditClick:n}),g.jsx(no,{profileData:t,onEditClick:n})]})},Dc={typography:{fontFamily:"Segoe UI"},components:{MuiButton:{styleOverrides:{root:{borderRadius:5}}},MuiTextField:{defaultProps:{variant:"outlined",size:"small"}}}},Bc=({children:e,defaultTheme:t})=>{const[n,r]=re.useState(null),[o,i]=re.useState(!0);return re.useEffect(()=>{const a=localStorage.getItem("theme");if(a){const l=JSON.parse(a);r(l)}else localStorage.setItem("theme",JSON.stringify(t)),r(k.createTheme(Dc,t));i(!1)},[]),o?g.jsx("div",{children:g.jsx(k.CircularProgress,{})}):g.jsx(k.StyledEngineProvider,{injectFirst:!0,children:n&&g.jsxs(k.ThemeProvider,{theme:k.createTheme(n),children:[g.jsx(k.CssBaseline,{enableColorScheme:!0}),e]})})};exports.MainLayout=_o;exports.MainlayoutWithWrapper=al;exports.MultiDynamicTable=Nc;exports.ProfilePages=Mc;exports.ThemeCustomization=Bc;
|