mui-toolpad-extended-tuni 1.0.3 → 2.0.0
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/README.md +30 -25
- package/dist/LMSToolpad/EduMLProvider.d.ts +21 -0
- package/dist/LMSToolpad/components/Courses/CourseLoader.d.ts +7 -0
- package/dist/LMSToolpad/components/MicroserviceRoutes.d.ts +19 -0
- package/dist/index.cjs +81 -81
- package/dist/index.d.ts +30 -24
- package/dist/index.es.js +4168 -4036
- package/package.json +1 -1
- /package/dist/{EduMLToolpad/EduMLProvider.d.ts → LMSToolpad/LMSProvider.d.ts} +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Courses/CourseItem.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Courses/CourseList.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Courses/CourseSelector.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Courses/CourseTools.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Courses/LtiLoginUrlForm.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Courses/NoCoursesMessage.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/DevelopmentTools.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Dialogs/DialogOpener.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Dialogs/FormDialog.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/EduMLDialog.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Home.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/IconWithBadge.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/LoadingScreen.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Logo.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/Notifications.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/PageToolBar.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/ToolSelector.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/UserSwitcher.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/sidebar/Footer.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/toolbar/Account.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/toolbar/Actions.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/tools/addActions.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/tools/addIcons.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/tools/iconsByType.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/tools/utils/ActionFCWrapper.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/components/tools/utils/IconFCWrapper.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/constants.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/hooks/useCustomRouter.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/interfaces.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/layout/breadcrumbs/SizableContentHeader.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/network/axiosConfig.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/network/courses.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/network/users.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/store/useCourseStore.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/store/useDialogStore.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/store/useNavigationStore.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/store/useNotificationsStore.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/store/useUserStore.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/theme/EduMLTheme.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/tools/ErrorBoundary.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/tools/NullStateWarning.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/types/toolpad.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/types/vite-env.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/utils/caseConverter.d.ts +0 -0
- /package/dist/{EduMLToolpad → LMSToolpad}/utils/slugify.d.ts +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Ah=Object.defineProperty;var Ih=(e,t,n)=>t in e?Ah(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zn=(e,t,n)=>Ih(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react"),_h=require("@emotion/styled"),mr=require("@emotion/react"),Y=require("@mui/material"),nr=require("react-dom");function dd(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 v=dd(D),$h=dd(nr);function ma(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $s={exports:{}},wr={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var jc;function Mh(){if(jc)return wr;jc=1;var e=D,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(c,l,u){var d,f={},h=null,b=null;u!==void 0&&(h=""+u),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(b=l.ref);for(d in l)r.call(l,d)&&!i.hasOwnProperty(d)&&(f[d]=l[d]);if(c&&c.defaultProps)for(d in l=c.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:c,key:h,ref:b,props:f,_owner:o.current}}return wr.Fragment=n,wr.jsx=a,wr.jsxs=a,wr}var Tr={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,50 +14,50 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+Q+k}}var oe=!1,K;{var ie=typeof WeakMap=="function"?WeakMap:Map;K=new ie}function
|
|
17
|
+
*/var Ac;function Dh(){return Ac||(Ac=1,process.env.NODE_ENV!=="production"&&function(){var e=D,t=Symbol.for("react.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.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),m=Symbol.iterator,p="@@iterator";function y(k){if(k===null||typeof k!="object")return null;var W=m&&k[m]||k[p];return typeof W=="function"?W:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(k){{for(var W=arguments.length,re=new Array(W>1?W-1:0),le=1;le<W;le++)re[le-1]=arguments[le];w("error",k,re)}}function w(k,W,re){{var le=T.ReactDebugCurrentFrame,be=le.getStackAddendum();be!==""&&(W+="%s",re=re.concat([be]));var Ae=re.map(function(ye){return String(ye)});Ae.unshift("Warning: "+W),Function.prototype.apply.call(console[k],console,Ae)}}var E=!1,S=!1,O=!1,R=!1,N=!1,j;j=Symbol.for("react.module.reference");function x(k){return!!(typeof k=="string"||typeof k=="function"||k===r||k===i||N||k===o||k===u||k===d||R||k===b||E||S||O||typeof k=="object"&&k!==null&&(k.$$typeof===h||k.$$typeof===f||k.$$typeof===a||k.$$typeof===c||k.$$typeof===l||k.$$typeof===j||k.getModuleId!==void 0))}function P(k,W,re){var le=k.displayName;if(le)return le;var be=W.displayName||W.name||"";return be!==""?re+"("+be+")":re}function B(k){return k.displayName||"Context"}function $(k){if(k==null)return null;if(typeof k.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case c:var W=k;return B(W)+".Consumer";case a:var re=k;return B(re._context)+".Provider";case l:return P(k,k.render,"ForwardRef");case f:var le=k.displayName||null;return le!==null?le:$(k.type)||"Memo";case h:{var be=k,Ae=be._payload,ye=be._init;try{return $(ye(Ae))}catch{return null}}}return null}var U=Object.assign,M=0,L,H,q,Z,A,z,te;function ne(){}ne.__reactDisabledLog=!0;function G(){{if(M===0){L=console.log,H=console.info,q=console.warn,Z=console.error,A=console.group,z=console.groupCollapsed,te=console.groupEnd;var k={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:k,log:k,warn:k,error:k,group:k,groupCollapsed:k,groupEnd:k})}M++}}function J(){{if(M--,M===0){var k={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},k,{value:L}),info:U({},k,{value:H}),warn:U({},k,{value:q}),error:U({},k,{value:Z}),group:U({},k,{value:A}),groupCollapsed:U({},k,{value:z}),groupEnd:U({},k,{value:te})})}M<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var V=T.ReactCurrentDispatcher,Q;function ee(k,W,re){{if(Q===void 0)try{throw Error()}catch(be){var le=be.stack.trim().match(/\n( *(at )?)/);Q=le&&le[1]||""}return`
|
|
18
|
+
`+Q+k}}var oe=!1,K;{var ie=typeof WeakMap=="function"?WeakMap:Map;K=new ie}function F(k,W){if(!k||oe)return"";{var re=K.get(k);if(re!==void 0)return re}var le;oe=!0;var be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ae;Ae=V.current,V.current=null,G();try{if(W){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(st){le=st}Reflect.construct(k,[],ye)}else{try{ye.call()}catch(st){le=st}k.call(ye.prototype)}}else{try{throw Error()}catch(st){le=st}k()}}catch(st){if(st&&le&&typeof st.stack=="string"){for(var me=st.stack.split(`
|
|
19
19
|
`),rt=le.stack.split(`
|
|
20
20
|
`),Ke=me.length-1,Ze=rt.length-1;Ke>=1&&Ze>=0&&me[Ke]!==rt[Ze];)Ze--;for(;Ke>=1&&Ze>=0;Ke--,Ze--)if(me[Ke]!==rt[Ze]){if(Ke!==1||Ze!==1)do if(Ke--,Ze--,Ze<0||me[Ke]!==rt[Ze]){var vt=`
|
|
21
|
-
`+me[Ke].replace(" at new "," at ");return k.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",k.displayName)),typeof k=="function"&&K.set(k,vt),vt}while(Ke>=1&&Ze>=0);break}}}finally{oe=!1,V.current=Ae,J(),Error.prepareStackTrace=be}var
|
|
21
|
+
`+me[Ke].replace(" at new "," at ");return k.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",k.displayName)),typeof k=="function"&&K.set(k,vt),vt}while(Ke>=1&&Ze>=0);break}}}finally{oe=!1,V.current=Ae,J(),Error.prepareStackTrace=be}var Un=k?k.displayName||k.name:"",xn=Un?ee(Un):"";return typeof k=="function"&&K.set(k,xn),xn}function he(k,W,re){return F(k,!1)}function X(k){var W=k.prototype;return!!(W&&W.isReactComponent)}function ve(k,W,re){if(k==null)return"";if(typeof k=="function")return F(k,X(k));if(typeof k=="string")return ee(k);switch(k){case u:return ee("Suspense");case d:return ee("SuspenseList")}if(typeof k=="object")switch(k.$$typeof){case l:return he(k.render);case f:return ve(k.type,W,re);case h:{var le=k,be=le._payload,Ae=le._init;try{return ve(Ae(be),W,re)}catch{}}}return""}var De=Object.prototype.hasOwnProperty,ge={},Le=T.ReactDebugCurrentFrame;function Be(k){if(k){var W=k._owner,re=ve(k.type,k._source,W?W.type:null);Le.setExtraStackFrame(re)}else Le.setExtraStackFrame(null)}function Je(k,W,re,le,be){{var Ae=Function.call.bind(De);for(var ye in k)if(Ae(k,ye)){var me=void 0;try{if(typeof k[ye]!="function"){var rt=Error((le||"React class")+": "+re+" type `"+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof k[ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw rt.name="Invariant Violation",rt}me=k[ye](W,ye,le,re,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ke){me=Ke}me&&!(me instanceof Error)&&(Be(be),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",le||"React class",re,ye,typeof me),Be(null)),me instanceof Error&&!(me.message in ge)&&(ge[me.message]=!0,Be(be),C("Failed %s type: %s",re,me.message),Be(null))}}}var $e=Array.isArray;function se(k){return $e(k)}function $t(k){{var W=typeof Symbol=="function"&&Symbol.toStringTag,re=W&&k[Symbol.toStringTag]||k.constructor.name||"Object";return re}}function Mt(k){try{return Dt(k),!1}catch{return!0}}function Dt(k){return""+k}function Lt(k){if(Mt(k))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$t(k)),Dt(k)}var je=T.ReactCurrentOwner,Ye={key:!0,ref:!0,__self:!0,__source:!0},ze,yt;function Me(k){if(De.call(k,"ref")){var W=Object.getOwnPropertyDescriptor(k,"ref").get;if(W&&W.isReactWarning)return!1}return k.ref!==void 0}function tt(k){if(De.call(k,"key")){var W=Object.getOwnPropertyDescriptor(k,"key").get;if(W&&W.isReactWarning)return!1}return k.key!==void 0}function qt(k,W){typeof k.ref=="string"&&je.current}function ft(k,W){{var re=function(){ze||(ze=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};re.isReactWarning=!0,Object.defineProperty(k,"key",{get:re,configurable:!0})}}function Zi(k,W){{var re=function(){yt||(yt=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};re.isReactWarning=!0,Object.defineProperty(k,"ref",{get:re,configurable:!0})}}var xr=function(k,W,re,le,be,Ae,ye){var me={$$typeof:t,type:k,key:W,ref:re,props:ye,_owner:Ae};return me._store={},Object.defineProperty(me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.defineProperty(me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.freeze&&(Object.freeze(me.props),Object.freeze(me)),me};function Qi(k,W,re,le,be){{var Ae,ye={},me=null,rt=null;re!==void 0&&(Lt(re),me=""+re),tt(W)&&(Lt(W.key),me=""+W.key),Me(W)&&(rt=W.ref,qt(W,be));for(Ae in W)De.call(W,Ae)&&!Ye.hasOwnProperty(Ae)&&(ye[Ae]=W[Ae]);if(k&&k.defaultProps){var Ke=k.defaultProps;for(Ae in Ke)ye[Ae]===void 0&&(ye[Ae]=Ke[Ae])}if(me||rt){var Ze=typeof k=="function"?k.displayName||k.name||"Unknown":k;me&&ft(ye,Ze),rt&&Zi(ye,Ze)}return xr(k,me,rt,be,le,je.current,ye)}}var nn=T.ReactCurrentOwner,Co=T.ReactDebugCurrentFrame;function rn(k){if(k){var W=k._owner,re=ve(k.type,k._source,W?W.type:null);Co.setExtraStackFrame(re)}else Co.setExtraStackFrame(null)}var Er;Er=!1;function Sr(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Oo(){{if(nn.current){var k=$(nn.current.type);if(k)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+k+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+k+"`."}return""}}function es(k){return""}var Ro={};function ts(k){{var W=Oo();if(!W){var re=typeof k=="string"?k:k.displayName||k.name;re&&(W=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+re+">.")}return W}}function ue(k,W){{if(!k._store||k._store.validated||k.key!=null)return;k._store.validated=!0;var re=
|
|
25
|
+
Check the top-level render call using <`+re+">.")}return W}}function ue(k,W){{if(!k._store||k._store.validated||k.key!=null)return;k._store.validated=!0;var re=ts(W);if(Ro[re])return;Ro[re]=!0;var le="";k&&k._owner&&k._owner!==nn.current&&(le=" It was passed a child from "+$(k._owner.type)+"."),rn(k),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',re,le),rn(null)}}function it(k,W){{if(typeof k!="object")return;if(se(k))for(var re=0;re<k.length;re++){var le=k[re];Sr(le)&&ue(le,W)}else if(Sr(k))k._store&&(k._store.validated=!0);else if(k){var be=y(k);if(typeof be=="function"&&be!==k.entries)for(var Ae=be.call(k),ye;!(ye=Ae.next()).done;)Sr(ye.value)&&ue(ye.value,W)}}}function ko(k){{var W=k.type;if(W==null||typeof W=="string")return;var re;if(typeof W=="function")re=W.propTypes;else if(typeof W=="object"&&(W.$$typeof===l||W.$$typeof===f))re=W.propTypes;else return;if(re){var le=$(W);Je(re,k.props,"prop",le,k)}else if(W.PropTypes!==void 0&&!Er){Er=!0;var be=$(W);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",be||"Unknown")}typeof W.getDefaultProps=="function"&&!W.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ch(k){{for(var W=Object.keys(k.props),re=0;re<W.length;re++){var le=W[re];if(le!=="children"&&le!=="key"){rn(k),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",le),rn(null);break}}k.ref!==null&&(rn(k),C("Invalid attribute `ref` supplied to `React.Fragment`."),rn(null))}}var Pc={};function Nc(k,W,re,le,be,Ae){{var ye=x(k);if(!ye){var me="";(k===void 0||typeof k=="object"&&k!==null&&Object.keys(k).length===0)&&(me+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var rt=es();rt?me+=rt:me+=Oo();var Ke;k===null?Ke="null":se(k)?Ke="array":k!==void 0&&k.$$typeof===t?(Ke="<"+($(k.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):Ke=typeof k,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ke,me)}var Ze=Qi(k,W,re,be,Ae);if(Ze==null)return Ze;if(ye){var vt=W.children;if(vt!==void 0)if(le)if(se(vt)){for(var Un=0;Un<vt.length;Un++)it(vt[Un],k);Object.freeze&&Object.freeze(vt)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else it(vt,k)}if(De.call(W,"key")){var xn=$(k),st=Object.keys(W).filter(function(jh){return jh!=="key"}),ns=st.length>0?"{key: someKey, "+st.join(": ..., ")+": ...}":"{key: someKey}";if(!Pc[xn+ns]){var Nh=st.length>0?"{"+st.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,ns,xn,Nh,xn),Pc[xn+ns]=!0}}return k===r?Ch(Ze):ko(Ze),Ze}}function Oh(k,W,re){return Nc(k,W,re,!0)}function Rh(k,W,re){return Nc(k,W,re,!1)}var kh=Rh,Ph=Oh;Tr.Fragment=r,Tr.jsx=kh,Tr.jsxs=Ph}()),Tr}process.env.NODE_ENV==="production"?$s.exports=Mh():$s.exports=Dh();var g=$s.exports,Ms={exports:{}},Po={exports:{}},xe={};/** @license React v16.13.1
|
|
31
31
|
* react-is.production.min.js
|
|
32
32
|
*
|
|
33
33
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var
|
|
37
|
+
*/var Ic;function Lh(){if(Ic)return xe;Ic=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,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case t:switch(S=S.type,S){case l:case u:case r:case i:case o:case f:return S;default:switch(S=S&&S.$$typeof,S){case c:case d:case m:case b:case a:return S;default:return O}}case n:return O}}}function E(S){return w(S)===u}return xe.AsyncMode=l,xe.ConcurrentMode=u,xe.ContextConsumer=c,xe.ContextProvider=a,xe.Element=t,xe.ForwardRef=d,xe.Fragment=r,xe.Lazy=m,xe.Memo=b,xe.Portal=n,xe.Profiler=i,xe.StrictMode=o,xe.Suspense=f,xe.isAsyncMode=function(S){return E(S)||w(S)===l},xe.isConcurrentMode=E,xe.isContextConsumer=function(S){return w(S)===c},xe.isContextProvider=function(S){return w(S)===a},xe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},xe.isForwardRef=function(S){return w(S)===d},xe.isFragment=function(S){return w(S)===r},xe.isLazy=function(S){return w(S)===m},xe.isMemo=function(S){return w(S)===b},xe.isPortal=function(S){return w(S)===n},xe.isProfiler=function(S){return w(S)===i},xe.isStrictMode=function(S){return w(S)===o},xe.isSuspense=function(S){return w(S)===f},xe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===o||S===f||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===b||S.$$typeof===a||S.$$typeof===c||S.$$typeof===d||S.$$typeof===y||S.$$typeof===T||S.$$typeof===C||S.$$typeof===p)},xe.typeOf=w,xe}var Ee={};/** @license React v16.13.1
|
|
38
38
|
* react-is.development.js
|
|
39
39
|
*
|
|
40
40
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var
|
|
44
|
+
*/var _c;function Bh(){return _c||(_c=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,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(F){return typeof F=="string"||typeof F=="function"||F===r||F===u||F===i||F===o||F===f||F===h||typeof F=="object"&&F!==null&&(F.$$typeof===m||F.$$typeof===b||F.$$typeof===a||F.$$typeof===c||F.$$typeof===d||F.$$typeof===y||F.$$typeof===T||F.$$typeof===C||F.$$typeof===p)}function E(F){if(typeof F=="object"&&F!==null){var he=F.$$typeof;switch(he){case t:var X=F.type;switch(X){case l:case u:case r:case i:case o:case f:return X;default:var ve=X&&X.$$typeof;switch(ve){case c:case d:case m:case b:case a:return ve;default:return he}}case n:return he}}}var S=l,O=u,R=c,N=a,j=t,x=d,P=r,B=m,$=b,U=n,M=i,L=o,H=f,q=!1;function Z(F){return q||(q=!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.")),A(F)||E(F)===l}function A(F){return E(F)===u}function z(F){return E(F)===c}function te(F){return E(F)===a}function ne(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function G(F){return E(F)===d}function J(F){return E(F)===r}function V(F){return E(F)===m}function Q(F){return E(F)===b}function ee(F){return E(F)===n}function oe(F){return E(F)===i}function K(F){return E(F)===o}function ie(F){return E(F)===f}Ee.AsyncMode=S,Ee.ConcurrentMode=O,Ee.ContextConsumer=R,Ee.ContextProvider=N,Ee.Element=j,Ee.ForwardRef=x,Ee.Fragment=P,Ee.Lazy=B,Ee.Memo=$,Ee.Portal=U,Ee.Profiler=M,Ee.StrictMode=L,Ee.Suspense=H,Ee.isAsyncMode=Z,Ee.isConcurrentMode=A,Ee.isContextConsumer=z,Ee.isContextProvider=te,Ee.isElement=ne,Ee.isForwardRef=G,Ee.isFragment=J,Ee.isLazy=V,Ee.isMemo=Q,Ee.isPortal=ee,Ee.isProfiler=oe,Ee.isStrictMode=K,Ee.isSuspense=ie,Ee.isValidElementType=w,Ee.typeOf=E}()),Ee}var $c;function fd(){return $c||($c=1,process.env.NODE_ENV==="production"?Po.exports=Lh():Po.exports=Bh()),Po.exports}/*
|
|
45
45
|
object-assign
|
|
46
46
|
(c) Sindre Sorhus
|
|
47
47
|
@license MIT
|
|
48
|
-
*/var
|
|
49
|
-
Valid keys: `+JSON.stringify(Object.keys(A),null," "));var
|
|
48
|
+
*/var rs,Mc;function Fh(){if(Mc)return rs;Mc=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={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return rs=o()?Object.assign:function(i,a){for(var c,l=r(i),u,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var f in c)t.call(c,f)&&(l[f]=c[f]);if(e){u=e(c);for(var h=0;h<u.length;h++)n.call(c,u[h])&&(l[u[h]]=c[u[h]])}}return l},rs}var os,Dc;function ga(){if(Dc)return os;Dc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return os=e,os}var is,Lc;function pd(){return Lc||(Lc=1,is=Function.call.bind(Object.prototype.hasOwnProperty)),is}var ss,Bc;function Vh(){if(Bc)return ss;Bc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ga(),n={},r=pd();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,l,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var f;try{if(typeof i[d]!="function"){var h=Error((l||"React class")+": "+c+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=i[d](a,d,l,c,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+c+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var b=u?u():"";e("Failed "+c+" type: "+f.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ss=o,ss}var as,Fc;function Uh(){if(Fc)return as;Fc=1;var e=fd(),t=Fh(),n=ga(),r=pd(),o=Vh(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return as=function(c,l){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(A){var z=A&&(u&&A[u]||A[d]);if(typeof z=="function")return z}var h="<<anonymous>>",b={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:C(),arrayOf:w,element:E(),elementType:S(),instanceOf:O,node:x(),objectOf:N,oneOf:R,oneOfType:j,shape:B,exact:$};function m(A,z){return A===z?A!==0||1/A===1/z:A!==A&&z!==z}function p(A,z){this.message=A,this.data=z&&typeof z=="object"?z:{},this.stack=""}p.prototype=Error.prototype;function y(A){if(process.env.NODE_ENV!=="production")var z={},te=0;function ne(J,V,Q,ee,oe,K,ie){if(ee=ee||h,K=K||Q,ie!==n){if(l){var F=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 F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=ee+":"+Q;!z[he]&&te<3&&(i("You are manually calling a React.PropTypes validation function for the `"+K+"` 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."),z[he]=!0,te++)}}return V[Q]==null?J?V[Q]===null?new p("The "+oe+" `"+K+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new p("The "+oe+" `"+K+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:A(V,Q,ee,oe,K)}var G=ne.bind(null,!1);return G.isRequired=ne.bind(null,!0),G}function T(A){function z(te,ne,G,J,V,Q){var ee=te[ne],oe=L(ee);if(oe!==A){var K=H(ee);return new p("Invalid "+J+" `"+V+"` of type "+("`"+K+"` supplied to `"+G+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return y(z)}function C(){return y(a)}function w(A){function z(te,ne,G,J,V){if(typeof A!="function")return new p("Property `"+V+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var Q=te[ne];if(!Array.isArray(Q)){var ee=L(Q);return new p("Invalid "+J+" `"+V+"` of type "+("`"+ee+"` supplied to `"+G+"`, expected an array."))}for(var oe=0;oe<Q.length;oe++){var K=A(Q,oe,G,J,V+"["+oe+"]",n);if(K instanceof Error)return K}return null}return y(z)}function E(){function A(z,te,ne,G,J){var V=z[te];if(!c(V)){var Q=L(V);return new p("Invalid "+G+" `"+J+"` of type "+("`"+Q+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return y(A)}function S(){function A(z,te,ne,G,J){var V=z[te];if(!e.isValidElementType(V)){var Q=L(V);return new p("Invalid "+G+" `"+J+"` of type "+("`"+Q+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return y(A)}function O(A){function z(te,ne,G,J,V){if(!(te[ne]instanceof A)){var Q=A.name||h,ee=Z(te[ne]);return new p("Invalid "+J+" `"+V+"` of type "+("`"+ee+"` supplied to `"+G+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(z)}function R(A){if(!Array.isArray(A))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 z(te,ne,G,J,V){for(var Q=te[ne],ee=0;ee<A.length;ee++)if(m(Q,A[ee]))return null;var oe=JSON.stringify(A,function(ie,F){var he=H(F);return he==="symbol"?String(F):F});return new p("Invalid "+J+" `"+V+"` of value `"+String(Q)+"` "+("supplied to `"+G+"`, expected one of "+oe+"."))}return y(z)}function N(A){function z(te,ne,G,J,V){if(typeof A!="function")return new p("Property `"+V+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var Q=te[ne],ee=L(Q);if(ee!=="object")return new p("Invalid "+J+" `"+V+"` of type "+("`"+ee+"` supplied to `"+G+"`, expected an object."));for(var oe in Q)if(r(Q,oe)){var K=A(Q,oe,G,J,V+"."+oe,n);if(K instanceof Error)return K}return null}return y(z)}function j(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var z=0;z<A.length;z++){var te=A[z];if(typeof te!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(te)+" at index "+z+"."),a}function ne(G,J,V,Q,ee){for(var oe=[],K=0;K<A.length;K++){var ie=A[K],F=ie(G,J,V,Q,ee,n);if(F==null)return null;F.data&&r(F.data,"expectedType")&&oe.push(F.data.expectedType)}var he=oe.length>0?", expected one of type ["+oe.join(", ")+"]":"";return new p("Invalid "+Q+" `"+ee+"` supplied to "+("`"+V+"`"+he+"."))}return y(ne)}function x(){function A(z,te,ne,G,J){return U(z[te])?null:new p("Invalid "+G+" `"+J+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return y(A)}function P(A,z,te,ne,G){return new p((A||"React class")+": "+z+" type `"+te+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function B(A){function z(te,ne,G,J,V){var Q=te[ne],ee=L(Q);if(ee!=="object")return new p("Invalid "+J+" `"+V+"` of type `"+ee+"` "+("supplied to `"+G+"`, expected `object`."));for(var oe in A){var K=A[oe];if(typeof K!="function")return P(G,J,V,oe,H(K));var ie=K(Q,oe,G,J,V+"."+oe,n);if(ie)return ie}return null}return y(z)}function $(A){function z(te,ne,G,J,V){var Q=te[ne],ee=L(Q);if(ee!=="object")return new p("Invalid "+J+" `"+V+"` of type `"+ee+"` "+("supplied to `"+G+"`, expected `object`."));var oe=t({},te[ne],A);for(var K in oe){var ie=A[K];if(r(A,K)&&typeof ie!="function")return P(G,J,V,K,H(ie));if(!ie)return new p("Invalid "+J+" `"+V+"` key `"+K+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(te[ne],null," ")+`
|
|
49
|
+
Valid keys: `+JSON.stringify(Object.keys(A),null," "));var F=ie(Q,K,G,J,V+"."+K,n);if(F)return F}return null}return y(z)}function U(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(U);if(A===null||c(A))return!0;var z=f(A);if(z){var te=z.call(A),ne;if(z!==A.entries){for(;!(ne=te.next()).done;)if(!U(ne.value))return!1}else for(;!(ne=te.next()).done;){var G=ne.value;if(G&&!U(G[1]))return!1}}else return!1;return!0;default:return!1}}function M(A,z){return A==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function L(A){var z=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":M(z,A)?"symbol":z}function H(A){if(typeof A>"u"||A===null)return""+A;var z=L(A);if(z==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return z}function q(A){var z=H(A);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function Z(A){return!A.constructor||!A.constructor.name?h:A.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},as}var cs,Vc;function zh(){if(Vc)return cs;Vc=1;var e=ga();function t(){}function n(){}return n.resetWarningCache=t,cs=function(){function r(a,c,l,u,d,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function 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},cs}if(process.env.NODE_ENV!=="production"){var Wh=fd(),Hh=!0;Ms.exports=Uh()(Wh.isElement,Hh)}else Ms.exports=zh()();var qh=Ms.exports;const s=ma(qh);function ln(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.`}const Nt="$$material";function Gh(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 Yh={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 Kh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xh=/[A-Z]|^ms/g,Jh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hd=function(t){return t.charCodeAt(1)===45},Uc=function(t){return t!=null&&typeof t!="boolean"},ls=Kh(function(e){return hd(e)?e:e.replace(Xh,"-$&").toLowerCase()}),zc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Jh,function(r,o,i){return an={name:o,styles:i,next:an},o})}return Yh[t]!==1&&!hd(t)&&typeof n=="number"&&n!==0?n+"px":n};function oi(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 an={name:o.name,styles:o.styles,next:an},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)an={name:a.name,styles:a.styles,next:an},a=a.next;var c=i.styles+";";return c}return Zh(e,t,n)}}var l=n;return l}function Zh(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=oi(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var c=a;Uc(c)&&(r+=ls(i)+":"+zc(i,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)Uc(a[l])&&(r+=ls(i)+":"+zc(i,a[l])+";");else{var u=oi(e,t,a);switch(i){case"animation":case"animationName":{r+=ls(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var Wc=/label:\s*([^\s;{]+)\s*(;|$)/g,an;function Qh(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="";an=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=oi(n,t,i);else{var a=i;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=oi(n,t,e[c]),r){var l=i;o+=l[c]}Wc.lastIndex=0;for(var u="",d;(d=Wc.exec(o))!==null;)u+="-"+d[1];var f=Gh(o)+u;return{name:f,styles:o,next:an}}function em(e){return e==null||Object.keys(e).length===0}function ya(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(em(o)?n:o):t;return g.jsx(mr.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(ya.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
|
|
50
50
|
* @mui/styled-engine v6.3.0
|
|
51
51
|
*
|
|
52
52
|
* @license MIT
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/function
|
|
56
|
-
`)):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
|
|
57
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
55
|
+
*/function md(e,t){const n=_h(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(`
|
|
56
|
+
`)):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 tm(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Hc=[];function qc(e){return Hc[0]=e,Qh(Hc)}function Vt(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 gd(e){if(v.isValidElement(e)||!Vt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=gd(e[n])}),t}function ot(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Vt(e)&&Vt(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:Vt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Vt(e[o])?r[o]=ot(e[o],t[o],n):n.clone?r[o]=Vt(t[o])?gd(t[o]):t[o]:r[o]=t[o]}),r}const nm=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 rm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=nm(t),a=Object.keys(i);function c(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,b){const m=a.indexOf(b);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:b)-r/100}${n})`}function d(h){return a.indexOf(h)+1<a.length?u(h,a[a.indexOf(h)+1]):c(h)}function f(h){const b=a.indexOf(h);return b===0?c(a[1]):b===a.length-1?l(a[b]):u(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:c,down:l,between:u,only:d,not:f,unit:n,...o}}function om(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,c;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((c=o.match(i))==null?void 0:c[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function im(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function sm(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>\`.
|
|
57
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ln(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function am(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...c)=>t(e.breakpoints.up(...c),a),i.down=(...c)=>t(e.breakpoints.down(...c),a),i.between=(...c)=>t(e.breakpoints.between(...c),a),i.only=(...c)=>t(e.breakpoints.only(...c),a),i.not=(...c)=>{const l=t(e.breakpoints.not(...c),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const cm={borderRadius:4},mn=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Lr(e,t){return t?ot(e,t,{clone:!1}):e}const wi={xs:0,sm:600,md:900,lg:1200,xl:1536},Gc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wi[e]}px)`},lm={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:wi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function jt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Gc;return t.reduce((a,c,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Gc;return Object.keys(t).reduce((a,c)=>{if(im(i.keys,c)){const l=sm(r.containerQueries?r:lm,c);l&&(a[l]=n(t[c],c))}else if(Object.keys(i.values||wi).includes(c)){const l=i.up(c);a[l]=n(t[c],c)}else{const l=c;a[l]=t[l]}return a},{})}return n(t)}function yd(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function vd(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function um(e,...t){const n=yd(e),r=[n,...t].reduce((o,i)=>ot(o,i),{});return vd(Object.keys(n),r)}function dm(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function us({values:e,breakpoints:t,base:n}){const r=n||dm(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,c,l)=>(Array.isArray(e)?(a[c]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[c]=e[c]!=null?e[c]:e[i],i=c):a[c]=e,a),{})}function de(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ln(7));return e.charAt(0).toUpperCase()+e.slice(1)}function sr(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 ii(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=sr(e,n)||r,t&&(o=t(o,r,e)),o}function Xe(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],l=a.theme,u=sr(l,r)||{};return jt(a,c,f=>{let h=ii(u,o,f);return f===h&&typeof f=="string"&&(h=ii(u,o,`${t}${f==="default"?"":de(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:mn}:{},i.filterProps=[t],i}function fm(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pm={m:"margin",p:"padding"},hm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mm=fm(e=>{if(e.length>2)if(Yc[e])e=Yc[e];else return[e];const[t,n]=e.split(""),r=pm[t],o=hm[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Ti=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ci=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],gm=[...Ti,...Ci];function ao(e,t,n,r){const o=sr(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(`
|
|
58
58
|
`)):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(`
|
|
59
59
|
`)));const c=o[a];return i>=0?c:typeof c=="number"?-c:`-${c}`}: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(`
|
|
60
|
-
`)),()=>{})}function Ti(e){return oo(e,"spacing",8,"spacing")}function jn(e,t){return typeof t=="string"||t==null?t:e(t)}function rm(e,t){return n=>e.reduce((r,o)=>(r[o]=jn(t,n),r),{})}function om(e,t,n,r){if(!t.includes(n))return null;const o=tm(n),i=rm(o,r),a=e[n];return jt(e,a,i)}function pd(e,t){const n=Ti(e.theme);return Object.keys(e).map(r=>om(e,t,r,n)).reduce(Mr,{})}function We(e){return pd(e,Si)}We.propTypes=process.env.NODE_ENV!=="production"?Si.reduce((e,t)=>(e[t]=pn,e),{}):{};We.filterProps=Si;function He(e){return pd(e,wi)}He.propTypes=process.env.NODE_ENV!=="production"?wi.reduce((e,t)=>(e[t]=pn,e),{}):{};He.filterProps=wi;process.env.NODE_ENV!=="production"&&nm.reduce((e,t)=>(e[t]=pn,e),{});function hd(e=8,t=Ti({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 Ci(...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]?Mr(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 xt(e){return typeof e!="number"?e:`${e}px solid`}function Ot(e,t){return Xe({prop:e,themeKey:"borders",transform:t})}const im=Ot("border",xt),sm=Ot("borderTop",xt),am=Ot("borderRight",xt),cm=Ot("borderBottom",xt),lm=Ot("borderLeft",xt),um=Ot("borderColor"),dm=Ot("borderTopColor"),fm=Ot("borderRightColor"),pm=Ot("borderBottomColor"),hm=Ot("borderLeftColor"),mm=Ot("outline",xt),gm=Ot("outlineColor"),Oi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=oo(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:jn(t,r)});return jt(e,e.borderRadius,n)}return null};Oi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:pn}:{};Oi.filterProps=["borderRadius"];Ci(im,sm,am,cm,lm,um,dm,fm,pm,hm,Oi,mm,gm);const Ri=e=>{if(e.gap!==void 0&&e.gap!==null){const t=oo(e.theme,"spacing",8,"gap"),n=r=>({gap:jn(t,r)});return jt(e,e.gap,n)}return null};Ri.propTypes=process.env.NODE_ENV!=="production"?{gap:pn}:{};Ri.filterProps=["gap"];const ki=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=oo(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:jn(t,r)});return jt(e,e.columnGap,n)}return null};ki.propTypes=process.env.NODE_ENV!=="production"?{columnGap:pn}:{};ki.filterProps=["columnGap"];const Pi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=oo(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:jn(t,r)});return jt(e,e.rowGap,n)}return null};Pi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:pn}:{};Pi.filterProps=["rowGap"];const ym=Xe({prop:"gridColumn"}),vm=Xe({prop:"gridRow"}),bm=Xe({prop:"gridAutoFlow"}),xm=Xe({prop:"gridAutoColumns"}),Em=Xe({prop:"gridAutoRows"}),Sm=Xe({prop:"gridTemplateColumns"}),wm=Xe({prop:"gridTemplateRows"}),Tm=Xe({prop:"gridTemplateAreas"}),Cm=Xe({prop:"gridArea"});Ci(Ri,ki,Pi,ym,vm,bm,xm,Em,Sm,wm,Tm,Cm);function nr(e,t){return t==="grey"?t:e}const Om=Xe({prop:"color",themeKey:"palette",transform:nr}),Rm=Xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nr}),km=Xe({prop:"backgroundColor",themeKey:"palette",transform:nr});Ci(Om,Rm,km);function pt(e){return e<=1&&e!==0?`${e*100}%`:e}const Pm=Xe({prop:"width",transform:pt}),ga=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,c,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Ei[n];return r?((l=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:pt(n)}};return jt(e,e.maxWidth,t)}return null};ga.filterProps=["maxWidth"];const Nm=Xe({prop:"minWidth",transform:pt}),jm=Xe({prop:"height",transform:pt}),Am=Xe({prop:"maxHeight",transform:pt}),Im=Xe({prop:"minHeight",transform:pt});Xe({prop:"size",cssProperty:"width",transform:pt});Xe({prop:"size",cssProperty:"height",transform:pt});const _m=Xe({prop:"boxSizing"});Ci(Pm,ga,Nm,jm,Am,Im,_m);const io={border:{themeKey:"borders",transform:xt},borderTop:{themeKey:"borders",transform:xt},borderRight:{themeKey:"borders",transform:xt},borderBottom:{themeKey:"borders",transform:xt},borderLeft:{themeKey:"borders",transform:xt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Oi},color:{themeKey:"palette",transform:nr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nr},backgroundColor:{themeKey:"palette",transform:nr},p:{style:He},pt:{style:He},pr:{style:He},pb:{style:He},pl:{style:He},px:{style:He},py:{style:He},padding:{style:He},paddingTop:{style:He},paddingRight:{style:He},paddingBottom:{style:He},paddingLeft:{style:He},paddingX:{style:He},paddingY:{style:He},paddingInline:{style:He},paddingInlineStart:{style:He},paddingInlineEnd:{style:He},paddingBlock:{style:He},paddingBlockStart:{style:He},paddingBlockEnd:{style:He},m:{style:We},mt:{style:We},mr:{style:We},mb:{style:We},ml:{style:We},mx:{style:We},my:{style:We},margin:{style:We},marginTop:{style:We},marginRight:{style:We},marginBottom:{style:We},marginLeft:{style:We},marginX:{style:We},marginY:{style:We},marginInline:{style:We},marginInlineStart:{style:We},marginInlineEnd:{style:We},marginBlock:{style:We},marginBlockStart:{style:We},marginBlockEnd:{style:We},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:Ri},rowGap:{style:Pi},columnGap:{style:ki},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pt},maxWidth:{style:ga},minWidth:{transform:pt},height:{transform:pt},maxHeight:{transform:pt},minHeight:{transform:pt},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 $m(...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 Mm(e,t){return typeof e=="function"?e(t):e}function Dm(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:f}=c;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=or(o,u)||{};return f?f(a):jt(a,r,m=>{let p=ri(h,d,m);return m===p&&typeof m=="string"&&(p=ri(h,d,`${n}${m==="default"?"":de(m)}`,m)),l===!1?p:{[l]:p}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??io;function a(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=dd(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(l).forEach(h=>{const b=Mm(l[h],o);if(b!=null)if(typeof b=="object")if(i[h])f=Mr(f,e(h,b,o,i));else{const m=jt({theme:o},b,p=>({[h]:p}));$m(m,b)?f[h]=t({sx:b,theme:o}):f=Mr(f,m)}else f=Mr(f,e(h,b,o,i))}),Wh(o,fd(d,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const cn=Dm();cn.filterProps=["sx"];function Lm(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 so(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,c=zh(n),l=hd(o);let u=ot({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Yh,...i}},a);return u=Gh(u),u.applyStyles=Lm,u=t.reduce((d,f)=>ot(d,f),u),u.unstable_sxConfig={...io,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return cn({sx:f,theme:this})},u}function Bm(e){return Object.keys(e).length===0}function ya(e=null){const t=v.useContext(pr.ThemeContext);return!t||Bm(t)?e:t}const Fm=so();function Ni(e=Fm){return ya(e)}function md({styles:e,themeId:t,defaultTheme:n={}}){const r=Ni(n),o=typeof e=="function"?e(t&&r[t]||r):e;return y.jsx(ma,{styles:o})}process.env.NODE_ENV!=="production"&&(md.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const Vm=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??io;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function va(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Vm(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const c=t(...a);return Vt(c)?{...r,...c}:r}:i={...r,...t},{...o,sx:i}}const zc=e=>e,Um=()=>{let e=zc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=zc}}},ba=Um();function gd(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=gd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ae(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gd(e))&&(r&&(r+=" "),r+=t);return r}function yd(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ld("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(cn);return v.forwardRef(function(l,u){const d=Ni(n),{className:f,component:h="div",...b}=va(l);return y.jsx(i,{as:h,ref:u,className:ae(f,o?o(r):r),theme:t&&d[t]||d,...b})})}const zm={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 Te(e,t,n="Mui"){const r=zm[t];return r?`${n}-${r}`:`${ba.generate(e)}-${t}`}function Oe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Te(e,o,n)}),r}const Wm=Oe("MuiBox",["root"]),vd=yd({defaultClassName:Wm.root,generateClassName:ba.generate});process.env.NODE_ENV!=="production"&&(vd.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});var $s={exports:{}},Re={};/**
|
|
60
|
+
`)),()=>{})}function Oi(e){return ao(e,"spacing",8,"spacing")}function An(e,t){return typeof t=="string"||t==null?t:e(t)}function ym(e,t){return n=>e.reduce((r,o)=>(r[o]=An(t,n),r),{})}function vm(e,t,n,r){if(!t.includes(n))return null;const o=mm(n),i=ym(o,r),a=e[n];return jt(e,a,i)}function bd(e,t){const n=Oi(e.theme);return Object.keys(e).map(r=>vm(e,t,r,n)).reduce(Lr,{})}function We(e){return bd(e,Ti)}We.propTypes=process.env.NODE_ENV!=="production"?Ti.reduce((e,t)=>(e[t]=mn,e),{}):{};We.filterProps=Ti;function He(e){return bd(e,Ci)}He.propTypes=process.env.NODE_ENV!=="production"?Ci.reduce((e,t)=>(e[t]=mn,e),{}):{};He.filterProps=Ci;process.env.NODE_ENV!=="production"&&gm.reduce((e,t)=>(e[t]=mn,e),{});function xd(e=8,t=Oi({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 Ri(...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]?Lr(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 xt(e){return typeof e!="number"?e:`${e}px solid`}function Ot(e,t){return Xe({prop:e,themeKey:"borders",transform:t})}const bm=Ot("border",xt),xm=Ot("borderTop",xt),Em=Ot("borderRight",xt),Sm=Ot("borderBottom",xt),wm=Ot("borderLeft",xt),Tm=Ot("borderColor"),Cm=Ot("borderTopColor"),Om=Ot("borderRightColor"),Rm=Ot("borderBottomColor"),km=Ot("borderLeftColor"),Pm=Ot("outline",xt),Nm=Ot("outlineColor"),ki=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ao(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:An(t,r)});return jt(e,e.borderRadius,n)}return null};ki.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:mn}:{};ki.filterProps=["borderRadius"];Ri(bm,xm,Em,Sm,wm,Tm,Cm,Om,Rm,km,ki,Pm,Nm);const Pi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ao(e.theme,"spacing",8,"gap"),n=r=>({gap:An(t,r)});return jt(e,e.gap,n)}return null};Pi.propTypes=process.env.NODE_ENV!=="production"?{gap:mn}:{};Pi.filterProps=["gap"];const Ni=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ao(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:An(t,r)});return jt(e,e.columnGap,n)}return null};Ni.propTypes=process.env.NODE_ENV!=="production"?{columnGap:mn}:{};Ni.filterProps=["columnGap"];const ji=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ao(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:An(t,r)});return jt(e,e.rowGap,n)}return null};ji.propTypes=process.env.NODE_ENV!=="production"?{rowGap:mn}:{};ji.filterProps=["rowGap"];const jm=Xe({prop:"gridColumn"}),Am=Xe({prop:"gridRow"}),Im=Xe({prop:"gridAutoFlow"}),_m=Xe({prop:"gridAutoColumns"}),$m=Xe({prop:"gridAutoRows"}),Mm=Xe({prop:"gridTemplateColumns"}),Dm=Xe({prop:"gridTemplateRows"}),Lm=Xe({prop:"gridTemplateAreas"}),Bm=Xe({prop:"gridArea"});Ri(Pi,Ni,ji,jm,Am,Im,_m,$m,Mm,Dm,Lm,Bm);function or(e,t){return t==="grey"?t:e}const Fm=Xe({prop:"color",themeKey:"palette",transform:or}),Vm=Xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:or}),Um=Xe({prop:"backgroundColor",themeKey:"palette",transform:or});Ri(Fm,Vm,Um);function pt(e){return e<=1&&e!==0?`${e*100}%`:e}const zm=Xe({prop:"width",transform:pt}),va=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,c,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||wi[n];return r?((l=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:pt(n)}};return jt(e,e.maxWidth,t)}return null};va.filterProps=["maxWidth"];const Wm=Xe({prop:"minWidth",transform:pt}),Hm=Xe({prop:"height",transform:pt}),qm=Xe({prop:"maxHeight",transform:pt}),Gm=Xe({prop:"minHeight",transform:pt});Xe({prop:"size",cssProperty:"width",transform:pt});Xe({prop:"size",cssProperty:"height",transform:pt});const Ym=Xe({prop:"boxSizing"});Ri(zm,va,Wm,Hm,qm,Gm,Ym);const co={border:{themeKey:"borders",transform:xt},borderTop:{themeKey:"borders",transform:xt},borderRight:{themeKey:"borders",transform:xt},borderBottom:{themeKey:"borders",transform:xt},borderLeft:{themeKey:"borders",transform:xt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ki},color:{themeKey:"palette",transform:or},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:or},backgroundColor:{themeKey:"palette",transform:or},p:{style:He},pt:{style:He},pr:{style:He},pb:{style:He},pl:{style:He},px:{style:He},py:{style:He},padding:{style:He},paddingTop:{style:He},paddingRight:{style:He},paddingBottom:{style:He},paddingLeft:{style:He},paddingX:{style:He},paddingY:{style:He},paddingInline:{style:He},paddingInlineStart:{style:He},paddingInlineEnd:{style:He},paddingBlock:{style:He},paddingBlockStart:{style:He},paddingBlockEnd:{style:He},m:{style:We},mt:{style:We},mr:{style:We},mb:{style:We},ml:{style:We},mx:{style:We},my:{style:We},margin:{style:We},marginTop:{style:We},marginRight:{style:We},marginBottom:{style:We},marginLeft:{style:We},marginX:{style:We},marginY:{style:We},marginInline:{style:We},marginInlineStart:{style:We},marginInlineEnd:{style:We},marginBlock:{style:We},marginBlockStart:{style:We},marginBlockEnd:{style:We},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:Pi},rowGap:{style:ji},columnGap:{style:Ni},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pt},maxWidth:{style:va},minWidth:{transform:pt},height:{transform:pt},maxHeight:{transform:pt},minHeight:{transform:pt},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 Km(...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 Xm(e,t){return typeof e=="function"?e(t):e}function Jm(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:f}=c;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=sr(o,u)||{};return f?f(a):jt(a,r,m=>{let p=ii(h,d,m);return m===p&&typeof m=="string"&&(p=ii(h,d,`${n}${m==="default"?"":de(m)}`,m)),l===!1?p:{[l]:p}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??co;function a(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=yd(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(l).forEach(h=>{const b=Xm(l[h],o);if(b!=null)if(typeof b=="object")if(i[h])f=Lr(f,e(h,b,o,i));else{const m=jt({theme:o},b,p=>({[h]:p}));Km(m,b)?f[h]=t({sx:b,theme:o}):f=Lr(f,m)}else f=Lr(f,e(h,b,o,i))}),om(o,vd(d,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const un=Jm();un.filterProps=["sx"];function Zm(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 lo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,c=rm(n),l=xd(o);let u=ot({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...cm,...i}},a);return u=am(u),u.applyStyles=Zm,u=t.reduce((d,f)=>ot(d,f),u),u.unstable_sxConfig={...co,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return un({sx:f,theme:this})},u}function Qm(e){return Object.keys(e).length===0}function ba(e=null){const t=v.useContext(mr.ThemeContext);return!t||Qm(t)?e:t}const eg=lo();function Ai(e=eg){return ba(e)}function Ed({styles:e,themeId:t,defaultTheme:n={}}){const r=Ai(n),o=typeof e=="function"?e(t&&r[t]||r):e;return g.jsx(ya,{styles:o})}process.env.NODE_ENV!=="production"&&(Ed.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const tg=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??co;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function xa(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=tg(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const c=t(...a);return Vt(c)?{...r,...c}:r}:i={...r,...t},{...o,sx:i}}const Kc=e=>e,ng=()=>{let e=Kc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Kc}}},Ea=ng();function Sd(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=Sd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ae(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Sd(e))&&(r&&(r+=" "),r+=t);return r}function wd(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=md("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(un);return v.forwardRef(function(l,u){const d=Ai(n),{className:f,component:h="div",...b}=xa(l);return g.jsx(i,{as:h,ref:u,className:ae(f,o?o(r):r),theme:t&&d[t]||d,...b})})}const rg={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 Te(e,t,n="Mui"){const r=rg[t];return r?`${n}-${r}`:`${Ea.generate(e)}-${t}`}function Oe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Te(e,o,n)}),r}const og=Oe("MuiBox",["root"]),Td=wd({defaultClassName:og.root,generateClassName:Ea.generate});process.env.NODE_ENV!=="production"&&(Td.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});var Ds={exports:{}},Re={};/**
|
|
61
61
|
* @license React
|
|
62
62
|
* react-is.production.js
|
|
63
63
|
*
|
|
@@ -65,7 +65,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:an(18,`(${t})`));return
|
|
|
65
65
|
*
|
|
66
66
|
* This source code is licensed under the MIT license found in the
|
|
67
67
|
* LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/var
|
|
68
|
+
*/var Xc;function ig(){if(Xc)return Re;Xc=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"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");function m(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case n:case o:case r:case l:case u:return p;default:switch(p=p&&p.$$typeof,p){case a:case c:case f:case d:return p;case i:return p;default:return y}}case t:return y}}}return Re.ContextConsumer=i,Re.ContextProvider=a,Re.Element=e,Re.ForwardRef=c,Re.Fragment=n,Re.Lazy=f,Re.Memo=d,Re.Portal=t,Re.Profiler=o,Re.StrictMode=r,Re.Suspense=l,Re.SuspenseList=u,Re.isContextConsumer=function(p){return m(p)===i},Re.isContextProvider=function(p){return m(p)===a},Re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Re.isForwardRef=function(p){return m(p)===c},Re.isFragment=function(p){return m(p)===n},Re.isLazy=function(p){return m(p)===f},Re.isMemo=function(p){return m(p)===d},Re.isPortal=function(p){return m(p)===t},Re.isProfiler=function(p){return m(p)===o},Re.isStrictMode=function(p){return m(p)===r},Re.isSuspense=function(p){return m(p)===l},Re.isSuspenseList=function(p){return m(p)===u},Re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===l||p===u||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===a||p.$$typeof===i||p.$$typeof===c||p.$$typeof===b||p.getModuleId!==void 0)},Re.typeOf=m,Re}var ke={};/**
|
|
69
69
|
* @license React
|
|
70
70
|
* react-is.development.js
|
|
71
71
|
*
|
|
@@ -73,19 +73,19 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:an(18,`(${t})`));return
|
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the MIT license found in the
|
|
75
75
|
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
77
|
-
`));let f=typeof r=="function"?r(i):r;f=f.replace(/^@media( ?)/m,"");const b=(
|
|
78
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
79
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
76
|
+
*/var Jc;function sg(){return Jc||(Jc=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case r:case i:case o:case u:case d:return p;default:switch(p=p&&p.$$typeof,p){case c:case l:case h:case f:return p;case a:return p;default:return y}}case n:return y}}}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"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");ke.ContextConsumer=a,ke.ContextProvider=c,ke.Element=t,ke.ForwardRef=l,ke.Fragment=r,ke.Lazy=h,ke.Memo=f,ke.Portal=n,ke.Profiler=i,ke.StrictMode=o,ke.Suspense=u,ke.SuspenseList=d,ke.isContextConsumer=function(p){return e(p)===a},ke.isContextProvider=function(p){return e(p)===c},ke.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ke.isForwardRef=function(p){return e(p)===l},ke.isFragment=function(p){return e(p)===r},ke.isLazy=function(p){return e(p)===h},ke.isMemo=function(p){return e(p)===f},ke.isPortal=function(p){return e(p)===n},ke.isProfiler=function(p){return e(p)===i},ke.isStrictMode=function(p){return e(p)===o},ke.isSuspense=function(p){return e(p)===u},ke.isSuspenseList=function(p){return e(p)===d},ke.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===o||p===u||p===d||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===f||p.$$typeof===c||p.$$typeof===a||p.$$typeof===l||p.$$typeof===m||p.getModuleId!==void 0)},ke.typeOf=e}()),ke}process.env.NODE_ENV==="production"?Ds.exports=ig():Ds.exports=sg();var Ls=Ds.exports;function Cd(e,t=""){return e.displayName||e.name||t}function Zc(e,t,n){const r=Cd(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function ag(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Cd(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ls.ForwardRef:return Zc(e,e.render,"ForwardRef");case Ls.Memo:return Zc(e,e.type,"memo");default:return}}}function Od(e){const{variants:t,...n}=e,r={variants:t,style:qc(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=qc(o.style))}),r}const cg=lo();function ds(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function lg(e){return e?(t,n)=>n[e]:null}function ug(e,t,n){e.theme=pg(e.theme)?n:e.theme[t]||e.theme}function qo(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>qo(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 Rd(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Rd(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 c in a.props)if(e[c]!==a.props[c]&&((o=e.ownerState)==null?void 0:o[c])!==a.props[c])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 kd(e={}){const{themeId:t,defaultTheme:n=cg,rootShouldForwardProp:r=ds,slotShouldForwardProp:o=ds}=e;function i(c){ug(c,t,n)}return(c,l={})=>{tm(c,S=>S.filter(O=>O!==un));const{name:u,slot:d,skipVariantsResolver:f,skipSx:h,overridesResolver:b=lg(Pd(d)),...m}=l,p=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,y=h||!1;let T=ds;d==="Root"||d==="root"?T=r:d?T=o:hg(c)&&(T=void 0);const C=md(c,{shouldForwardProp:T,label:fg(u,d),...m}),w=S=>{if(typeof S=="function"&&S.__emotion_real!==S)return function(R){return qo(R,S)};if(Vt(S)){const O=Od(S);return O.variants?function(N){return qo(N,O)}:O.style}return S},E=(...S)=>{const O=[],R=S.map(w),N=[];if(O.push(i),u&&b&&N.push(function(B){var L,H;const U=(H=(L=B.theme.components)==null?void 0:L[u])==null?void 0:H.styleOverrides;if(!U)return null;const M={};for(const q in U)M[q]=qo(B,U[q]);return b(B,M)}),u&&!p&&N.push(function(B){var M,L;const $=B.theme,U=(L=(M=$==null?void 0:$.components)==null?void 0:M[u])==null?void 0:L.variants;return U?Rd(B,U):null}),y||N.push(un),Array.isArray(R[0])){const P=R.shift(),B=new Array(O.length).fill(""),$=new Array(N.length).fill("");let U;U=[...B,...P,...$],U.raw=[...B,...P.raw,...$],O.unshift(U)}const j=[...O,...R,...N],x=C(...j);return c.muiName&&(x.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(x.displayName=dg(u,d,c)),x};return C.withConfig&&(E.withConfig=C.withConfig),E}}function dg(e,t,n){return e?`${e}${de(t||"")}`:`Styled(${ag(n)})`}function fg(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Pd(t||"Root")}`),n}function pg(e){for(const t in e)return!1;return!0}function hg(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Pd(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Nd=kd();function Wr(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 c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const l=c;n[o][l]=Wr(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function jd(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Wr(t.components[n].defaultProps,r)}function Ad({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ai(n);return r&&(o=o[r]||o),jd({theme:o,name:t,props:e})}const In=typeof window<"u"?v.useLayoutEffect:v.useEffect;function mg(e,t,n,r,o){const[i,a]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return In(()=>{if(!n)return;const c=n(e),l=()=>{a(c.matches)};return l(),c.addEventListener("change",l),()=>{c.removeEventListener("change",l)}},[e,n]),i}const gg={...v},Id=gg.useSyncExternalStore;function yg(e,t,n,r,o){const i=v.useCallback(()=>t,[t]),a=v.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return i},[i,e,r,o,n]),[c,l]=v.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addEventListener("change",f),()=>{d.removeEventListener("change",f)})]},[i,n,e]);return Id(l,c,a)}function vg(e={}){const{themeId:t}=e;return function(r,o={}){let i=ba();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=jd({name:"MuiUseMediaQuery",props:o,theme:i});process.env.NODE_ENV!=="production"&&typeof r=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
77
|
+
`));let f=typeof r=="function"?r(i):r;f=f.replace(/^@media( ?)/m,"");const b=(Id!==void 0?yg:mg)(f,c,l,u,d);return process.env.NODE_ENV!=="production"&&v.useDebugValue({query:f,match:b}),b}}function bg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Sa(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}].`),bg(e,t,n)}function xg(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 dn(e){if(e.type)return e;if(e.charAt(0)==="#")return dn(xg(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
78
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ln(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.
|
|
79
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ln(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Eg=e=>{const t=dn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ar=(e,t)=>{try{return Eg(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ii(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 _d(e){e=dn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,d=(u+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let c="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",l.push(t[3])),Ii({type:c,values:l})}function Bs(e){e=dn(e);let t=e.type==="hsl"||e.type==="hsla"?dn(_d(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 Qc(e,t){const n=Bs(e),r=Bs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ue(e,t){return e=dn(e),t=Sa(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ii(e)}function No(e,t,n){try{return Ue(e,t)}catch{return e}}function wa(e,t){if(e=dn(e),t=Sa(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 Ii(e)}function Ie(e,t,n){try{return wa(e,t)}catch{return e}}function Ta(e,t){if(e=dn(e),t=Sa(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 Ii(e)}function _e(e,t,n){try{return Ta(e,t)}catch{return e}}function Fs(e,t=.15){return Bs(e)>.5?wa(e,t):Ta(e,t)}function jo(e,t,n){try{return Fs(e,t)}catch{return e}}function en(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Sg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function $d(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;const l=i.type;return typeof l=="function"&&!Sg(l)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ln=en(s.element,$d);Ln.isRequired=en(s.element.isRequired,$d);function wg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Tg(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;return typeof i=="function"&&!wg(i)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const uo=en(s.elementType,Tg),Cg="exact-prop: ";function _i(e){return process.env.NODE_ENV==="production"?e:{...e,[Cg]: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 Zt(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 $i=s.oneOfType([s.func,s.object]);function el(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Md(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 Dd(e,t){var n,r,o;return v.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function At(e){return e&&e.ownerDocument||document}function fn(e){return At(e).defaultView||window}function Vs(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let tl=0;function Og(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(tl+=1,n(`mui-${tl}`))},[t]),r}const Rg={...v},nl=Rg.useId;function kg(e){if(nl!==void 0){const t=nl();return e??t}return Og(e)}function Pg({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(e!==void 0),[i,a]=v.useState(t),c=o?e:i;if(process.env.NODE_ENV!=="production"){v.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
80
80
|
`))},[r,n,e]);const{current:u}=v.useRef(t);v.useEffect(()=>{!o&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
81
|
-
`))},[JSON.stringify(t)])}const l=v.useCallback(u=>{o||a(u)},[]);return[c,l]}function
|
|
82
|
-
`))}return!1}function
|
|
83
|
-
`))),n}return{...e,...t}}function
|
|
84
|
-
`));const o=v.useMemo(()=>{const i=r===null?{...n}:
|
|
85
|
-
`));const a=
|
|
81
|
+
`))},[JSON.stringify(t)])}const l=v.useCallback(u=>{o||a(u)},[]);return[c,l]}function cn(e){const t=v.useRef(e);return In(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function et(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Vs(n,t)})},e)}const rl={};function Ld(e,t){const n=v.useRef(rl);return n.current===rl&&(n.current=e(t)),n}const Ng=[];function jg(e){v.useEffect(e,Ng)}class Mi{constructor(){zn(this,"currentId",null);zn(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});zn(this,"disposeEffect",()=>this.clear)}static create(){return new Mi}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Cn(){const e=Ld(Mi.create).current;return jg(e.disposeEffect),e}function ar(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
82
|
+
`))}return!1}function Ag(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ig(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 Bd(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const i=Ig(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Fd(e,t,...n){return e[t]===void 0?null:Bd(e,t,...n)}function Us(){return null}Fd.isRequired=Bd;Us.isRequired=Us;const ir=process.env.NODE_ENV==="production"?Us:Fd;function Ne(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",c=!0;for(let l=0;l<i.length;l+=1){const u=i[l];u&&(a+=(c===!0?"":" ")+t(u),c=!1,n&&n[u]&&(a+=" "+n[u]))}r[o]=a}return r}function _g(e){return typeof e=="string"}function Vd(e,t,n){return e===void 0||_g(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ud(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 ol(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 zd(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=ae(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...n,...o,...r};return b.length>0&&(p.className=b),Object.keys(m).length>0&&(p.style=m),{props:p,internalRef:void 0}}const a=Ud({...o,...r}),c=ol(r),l=ol(o),u=t(a),d=ae(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},h={...u,...n,...l,...c};return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}function Wd(e,t,n){return typeof e=="function"?e(t,n):e}function Hd(e){var f;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Wd(n,r),{props:c,internalRef:l}=zd({...i,externalSlotProps:a}),u=et(l,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Vd(t,{...c,ref:u},r)}function gr(e){var t;return parseInt(v.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Ca=v.createContext(null);process.env.NODE_ENV!=="production"&&(Ca.displayName="ThemeContext");function Oa(){const e=v.useContext(Ca);return process.env.NODE_ENV!=="production"&&v.useDebugValue(e),e}const $g=typeof Symbol=="function"&&Symbol.for,Mg=$g?Symbol.for("mui.nested"):"__THEME_NESTED__";function Dg(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
83
|
+
`))),n}return{...e,...t}}function si(e){const{children:t,theme:n}=e,r=Oa();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
84
|
+
`));const o=v.useMemo(()=>{const i=r===null?{...n}:Dg(r,n);return i!=null&&(i[Mg]=r!==null),i},[n,r]);return g.jsx(Ca.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(si.propTypes={children:s.node,theme:s.oneOfType([s.object,s.func]).isRequired});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(si.propTypes=_i(si.propTypes));const qd=v.createContext();function Gd({value:e,...t}){return g.jsx(qd.Provider,{value:e??!0,...t})}process.env.NODE_ENV!=="production"&&(Gd.propTypes={children:s.node,value:s.bool});const Ra=()=>v.useContext(qd)??!1,Yd=v.createContext(void 0);function Kd({value:e,children:t}){return g.jsx(Yd.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(Kd.propTypes={children:s.node,value:s.object});function Lg(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?Wr(o.defaultProps,r):!o.styleOverrides&&!o.variants?Wr(o,r):r}function Bg({props:e,name:t}){const n=v.useContext(Yd);return Lg({props:e,name:t,theme:{components:n}})}const il={};function sl(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Hr(e){const{children:t,theme:n,themeId:r}=e,o=ba(il),i=Oa()||il;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
85
|
+
`));const a=sl(r,o,n),c=sl(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return g.jsx(si,{theme:c,children:g.jsx(mr.ThemeContext.Provider,{value:a,children:g.jsx(Gd,{value:l,children:g.jsx(Kd,{value:r?a[r].components:a.components,children:t})})})})}process.env.NODE_ENV!=="production"&&(Hr.propTypes={children:s.node,theme:s.oneOfType([s.func,s.object]).isRequired,themeId:s.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Hr.propTypes=_i(Hr.propTypes));const al={theme:void 0};function Fg(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(al.theme=o.theme,i=Od(e(al)),t=i,n=o.theme),i}}const ka="mode",Pa="color-scheme",Vg="data-color-scheme";function Xd(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=ka,colorSchemeStorageKey:i=Pa,attribute:a=Vg,colorSchemeNode:c="document.documentElement",nonce:l}=e||{};let u="",d=a;if(a==="class"&&(d=".%s"),a==="data"&&(d="[data-%s]"),d.startsWith(".")){const h=d.substring(1);u+=`${c}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark));
|
|
86
86
|
${c}.classList.add('${h}'.replace('%s', colorScheme));`}const f=d.match(/\[([^\]]+)\]/);if(f){const[h,b]=f[1].split("=");b||(u+=`${c}.removeAttribute('${h}'.replace('%s', light));
|
|
87
87
|
${c}.removeAttribute('${h}'.replace('%s', dark));`),u+=`
|
|
88
|
-
${c}.setAttribute('${h}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else u+=`${c}.setAttribute('${d}', colorScheme);`;return
|
|
88
|
+
${c}.setAttribute('${h}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else u+=`${c}.setAttribute('${d}', colorScheme);`;return g.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
89
89
|
try {
|
|
90
90
|
let colorScheme = '';
|
|
91
91
|
const mode = localStorage.getItem('${o}') || '${t}';
|
|
@@ -109,10 +109,10 @@ try {
|
|
|
109
109
|
if (colorScheme) {
|
|
110
110
|
${u}
|
|
111
111
|
}
|
|
112
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function
|
|
113
|
-
`)),K(je)},systemMode:ie}),[J,ge,he,B,De,ve,K,ie,Le.colorSchemeSelector]);let $e=!0;(P||A.cssVariables===!1||H&&(M==null?void 0:M.cssVarPrefix)===ne)&&($e=!1);const se=y.jsxs(v.Fragment,{children:[y.jsx(Ur,{themeId:Z?t:void 0,theme:Le,children:C}),$e&&y.jsx(ma,{styles:((Lt=Le.generateStyleSheets)==null?void 0:Lt.call(Le))||[]})]});return H?se:y.jsx(u.Provider,{value:Je,children:se})}process.env.NODE_ENV!=="production"&&(b.propTypes={children:s.node,colorSchemeNode:s.any,colorSchemeStorageKey:s.string,defaultMode:s.string,disableNestedContext:s.bool,disableStyleSheetGeneration:s.bool,disableTransitionOnChange:s.bool,documentNode:s.any,modeStorageKey:s.string,noSsr:s.bool,storageWindow:s.any,theme:s.object});const m=typeof a=="string"?a:a.light,p=typeof a=="string"?a:a.dark;return{CssVarsProvider:b,useColorScheme:d,getInitColorSchemeScript:T=>Wd({colorSchemeStorageKey:o,defaultLightColorScheme:m,defaultDarkColorScheme:p,modeStorageKey:r,...T})}}function Ag(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 rl=(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])})},Ig=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([c,l])=>{(!n||!n([...i,c]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,c],Array.isArray(l)?[...a,c]:a):t([...i,c],l,a))})}r(e)},_g=(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 ds(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return Ig(e,(c,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(c,l))){const d=`--${n?`${n}-`:""}${c.join("-")}`,f=_g(c,l);Object.assign(o,{[d]:f}),rl(i,c,`var(${d})`,u),rl(a,c,`var(${d}, ${f})`,u)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function $g(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:c="light",...l}=e,{vars:u,css:d,varsWithDefaults:f}=ds(l,t);let h=f;const b={},{[c]:m,...p}=i;if(Object.entries(p||{}).forEach(([w,E])=>{const{vars:S,css:O,varsWithDefaults:R}=ds(E,t);h=ot(h,R),b[w]={css:O,vars:S}}),m){const{css:w,vars:E,varsWithDefaults:S}=ds(m,t);h=ot(h,S),b[c]={css:w,vars:E}}function g(w,E){var O,R;let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),w){if(S==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((R=(O=i[w])==null?void 0:O.palette)==null?void 0:R.mode)||w})`]:{":root":E}};if(S)return e.defaultColorScheme===w?`:root, ${S.replace("%s",String(w))}`:S.replace("%s",String(w))}return":root"}return{vars:h,generateThemeVars:()=>{let w={...u};return Object.entries(b).forEach(([,{vars:E}])=>{w=ot(w,E)}),w},generateStyleSheets:()=>{var N,j;const w=[],E=e.defaultColorScheme||"light";function S(x,P){Object.keys(P).length&&w.push(typeof x=="string"?{[x]:{...P}}:x)}S(n(void 0,{...d}),d);const{[E]:O,...R}=b;if(O){const{css:x}=O,P=(j=(N=i[E])==null?void 0:N.palette)==null?void 0:j.mode,L=!r&&P?{colorScheme:P,...x}:{...x};S(n(E,{...L}),L)}return Object.entries(R).forEach(([x,{css:P}])=>{var U,M;const L=(M=(U=i[x])==null?void 0:U.palette)==null?void 0:M.mode,$=!r&&L?{colorScheme:L,...P}:{...P};S(n(x,{...$}),$)}),w}}}function Mg(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 Dg=so(),Lg=Td("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Bg=e=>Od({props:e,name:"MuiContainer",defaultTheme:Dg}),Fg=(e,t)=>{const n=l=>Te(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,c={root:["root",a&&`maxWidth${de(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Ne(c,n,r)};function Vg(e={}){const{createStyledComponent:t=Lg,useThemeProps:n=Bg,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:c})=>c.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const d=u,f=a.breakpoints.values[d];return f!==0&&(l[a.breakpoints.up(d)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:c})=>({...c.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[a.breakpoints.up(c.maxWidth)]:{maxWidth:`${a.breakpoints.values[c.maxWidth]}${a.breakpoints.unit}`}}})),i=v.forwardRef(function(c,l){const u=n(c),{className:d,component:f="div",disableGutters:h=!1,fixed:b=!1,maxWidth:m="lg",classes:p,...g}=u,T={...u,component:f,disableGutters:h,fixed:b,maxWidth:m},C=Fg(T,r);return y.jsx(o,{as:f,ownerState:T,className:ae(C.root,d),ref:l,...g})});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disableGutters:s.bool,fixed:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),i}const Ug=so(),zg=Td("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Wg(e){return Od({props:e,name:"MuiStack",defaultTheme:Ug})}function Hg(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(v.cloneElement(t,{key:`separator-${i}`})),r),[])}const qg=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Gg=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...jt({theme:t},cs({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Ti(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=cs({values:e.direction,base:o}),a=cs({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,d)=>{if(!i[l]){const h=u>0?i[d[u-1]]:"column";i[l]=h}}),n=ot(n,jt({theme:t},a,(l,u)=>e.useFlexGap?{gap:jn(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${qg(u?i[u]:e.direction)}`]:jn(r,l)}}))}return n=Xh(t.breakpoints,n),n};function qd(e={}){const{createStyledComponent:t=zg,useThemeProps:n=Wg,componentName:r="MuiStack"}=e,o=()=>Ne({root:["root"]},l=>Te(r,l),{}),i=t(Gg),a=v.forwardRef(function(l,u){const d=n(l),f=va(d),{component:h="div",direction:b="column",spacing:m=0,divider:p,children:g,className:T,useFlexGap:C=!1,...w}=f,E={direction:b,spacing:m,useFlexGap:C},S=o();return y.jsx(i,{as:h,ownerState:E,ref:u,className:ae(S.root,T),...w,children:p?Hg(g,p):g})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:s.node,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),a}const Gd=qd();process.env.NODE_ENV!=="production"&&(Gd.propTypes={children:s.node,component:s.elementType,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),useFlexGap:s.bool});const zr={black:"#000",white:"#fff"},Yg={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"},Un={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},zn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},wr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Wn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Hn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},qn={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Yd(){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:zr.white,default:zr.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 Kg=Yd();function Kd(){return{text:{primary:zr.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:zr.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 ol=Kd();function il(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=Sa(e.main,o):t==="dark"&&(e.dark=Ea(e.main,i)))}function Xg(e="light"){return e==="dark"?{main:Wn[200],light:Wn[50],dark:Wn[400]}:{main:Wn[700],light:Wn[400],dark:Wn[800]}}function Jg(e="light"){return e==="dark"?{main:Un[200],light:Un[50],dark:Un[400]}:{main:Un[500],light:Un[300],dark:Un[700]}}function Zg(e="light"){return e==="dark"?{main:zn[500],light:zn[300],dark:zn[700]}:{main:zn[700],light:zn[400],dark:zn[800]}}function Qg(e="light"){return e==="dark"?{main:Hn[400],light:Hn[300],dark:Hn[700]}:{main:Hn[700],light:Hn[500],dark:Hn[900]}}function ey(e="light"){return e==="dark"?{main:qn[400],light:qn[300],dark:qn[700]}:{main:qn[800],light:qn[500],dark:qn[900]}}function ty(e="light"){return e==="dark"?{main:wr[400],light:wr[300],dark:wr[700]}:{main:"#ed6c02",light:wr[500],dark:wr[900]}}function ka(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||Xg(t),a=e.secondary||Jg(t),c=e.error||Zg(t),l=e.info||Qg(t),u=e.success||ey(t),d=e.warning||ty(t);function f(p){const g=Gc(p,ol.text.primary)>=n?ol.text.primary:Kg.text.primary;if(process.env.NODE_ENV!=="production"){const T=Gc(p,g);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${g} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
114
|
-
`))}return
|
|
115
|
-
The color object needs to have a \`main\` property or a \`${T}\` property.`:
|
|
112
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function cl(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Jd(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function Ug(e){return Jd(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function fs(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function zg(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=ka,colorSchemeStorageKey:a=Pa,storageWindow:c=typeof window>"u"?void 0:window,noSsr:l=!1}=e,u=o.join(","),d=o.length>1,[f,h]=v.useState(()=>{const E=fs(i,t),S=fs(`${a}-light`,n),O=fs(`${a}-dark`,r);return{mode:E,systemMode:cl(E),lightColorScheme:S,darkColorScheme:O}}),[b,m]=v.useState(l||!d);v.useEffect(()=>{m(!0)},[]);const p=Ug(f),y=v.useCallback(E=>{h(S=>{if(E===S.mode)return S;const O=E??t;try{localStorage.setItem(i,O)}catch{}return{...S,mode:O,systemMode:cl(O)}})},[i,t]),T=v.useCallback(E=>{E?typeof E=="string"?E&&!u.includes(E)?console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`):h(S=>{const O={...S};return Jd(S,R=>{try{localStorage.setItem(`${a}-${R}`,E)}catch{}R==="light"&&(O.lightColorScheme=E),R==="dark"&&(O.darkColorScheme=E)}),O}):h(S=>{const O={...S},R=E.light===null?n:E.light,N=E.dark===null?r:E.dark;if(R)if(!u.includes(R))console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`);else{O.lightColorScheme=R;try{localStorage.setItem(`${a}-light`,R)}catch{}}if(N)if(!u.includes(N))console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`);else{O.darkColorScheme=N;try{localStorage.setItem(`${a}-dark`,N)}catch{}}return O}):h(S=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...S,lightColorScheme:n,darkColorScheme:r}})},[u,a,n,r]),C=v.useCallback(E=>{f.mode==="system"&&h(S=>{const O=E!=null&&E.matches?"dark":"light";return S.systemMode===O?S:{...S,systemMode:O}})},[f.mode]),w=v.useRef(C);return w.current=C,v.useEffect(()=>{if(typeof window.matchMedia!="function"||!d)return;const E=(...O)=>w.current(...O),S=window.matchMedia("(prefers-color-scheme: dark)");return S.addListener(E),E(S),()=>{S.removeListener(E)}},[d]),v.useEffect(()=>{if(c&&d){const E=S=>{const O=S.newValue;typeof S.key=="string"&&S.key.startsWith(a)&&(!O||u.match(O))&&(S.key.endsWith("light")&&T({light:O}),S.key.endsWith("dark")&&T({dark:O})),S.key===i&&(!O||["light","dark","system"].includes(O))&&y(O||t)};return c.addEventListener("storage",E),()=>{c.removeEventListener("storage",E)}}},[T,y,i,a,u,t,c,d]),{...f,mode:b?f.mode:void 0,systemMode:b?f.systemMode:void 0,colorScheme:b?p:void 0,setMode:y,setColorScheme:T}}const Wg="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Hg(e){const{themeId:t,theme:n={},modeStorageKey:r=ka,colorSchemeStorageKey:o=Pa,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:c}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(u.displayName="ColorSchemeContext");const d=()=>v.useContext(u)||l,f={},h={};function b(T){var $t,Mt,Dt,Lt;const{children:C,theme:w,modeStorageKey:E=r,colorSchemeStorageKey:S=o,disableTransitionOnChange:O=i,storageWindow:R=typeof window>"u"?void 0:window,documentNode:N=typeof document>"u"?void 0:document,colorSchemeNode:j=typeof document>"u"?void 0:document.documentElement,disableNestedContext:x=!1,disableStyleSheetGeneration:P=!1,defaultMode:B="system",noSsr:$}=T,U=v.useRef(!1),M=Oa(),L=v.useContext(u),H=!!L&&!x,q=v.useMemo(()=>w||(typeof n=="function"?n():n),[w]),Z=q[t],A=Z||q,{colorSchemes:z=f,components:te=h,cssVarPrefix:ne}=A,G=Object.keys(z).filter(je=>!!z[je]).join(","),J=v.useMemo(()=>G.split(","),[G]),V=typeof a=="string"?a:a.light,Q=typeof a=="string"?a:a.dark,ee=z[V]&&z[Q]?B:((Mt=($t=z[A.defaultColorScheme])==null?void 0:$t.palette)==null?void 0:Mt.mode)||((Dt=A.palette)==null?void 0:Dt.mode),{mode:oe,setMode:K,systemMode:ie,lightColorScheme:F,darkColorScheme:he,colorScheme:X,setColorScheme:ve}=zg({supportedColorSchemes:J,defaultLightColorScheme:V,defaultDarkColorScheme:Q,modeStorageKey:E,colorSchemeStorageKey:S,defaultMode:ee,storageWindow:R,noSsr:$});let De=oe,ge=X;H&&(De=L.mode,ge=L.colorScheme);const Le=v.useMemo(()=>{var yt;const je=ge||A.defaultColorScheme,Ye=((yt=A.generateThemeVars)==null?void 0:yt.call(A))||A.vars,ze={...A,components:te,colorSchemes:z,cssVarPrefix:ne,vars:Ye};if(typeof ze.generateSpacing=="function"&&(ze.spacing=ze.generateSpacing()),je){const Me=z[je];Me&&typeof Me=="object"&&Object.keys(Me).forEach(tt=>{Me[tt]&&typeof Me[tt]=="object"?ze[tt]={...ze[tt],...Me[tt]}:ze[tt]=Me[tt]})}return c?c(ze):ze},[A,ge,te,z,ne]),Be=A.colorSchemeSelector;v.useEffect(()=>{if(ge&&j&&Be&&Be!=="media"){const je=Be;let Ye=Be;if(je==="class"&&(Ye=".%s"),je==="data"&&(Ye="[data-%s]"),je!=null&&je.startsWith("data-")&&!je.includes("%s")&&(Ye=`[${je}="%s"]`),Ye.startsWith("."))j.classList.remove(...J.map(ze=>Ye.substring(1).replace("%s",ze))),j.classList.add(Ye.substring(1).replace("%s",ge));else{const ze=Ye.replace("%s",ge).match(/\[([^\]]+)\]/);if(ze){const[yt,Me]=ze[1].split("=");Me||J.forEach(tt=>{j.removeAttribute(yt.replace(ge,tt))}),j.setAttribute(yt,Me?Me.replace(/"|'/g,""):"")}else j.setAttribute(Ye,ge)}}},[ge,Be,j,J]),v.useEffect(()=>{let je;if(O&&U.current&&N){const Ye=N.createElement("style");Ye.appendChild(N.createTextNode(Wg)),N.head.appendChild(Ye),window.getComputedStyle(N.body),je=setTimeout(()=>{N.head.removeChild(Ye)},1)}return()=>{clearTimeout(je)}},[ge,O,N]),v.useEffect(()=>(U.current=!0,()=>{U.current=!1}),[]);const Je=v.useMemo(()=>({allColorSchemes:J,colorScheme:ge,darkColorScheme:he,lightColorScheme:F,mode:De,setColorScheme:ve,setMode:process.env.NODE_ENV==="production"?K:je=>{Le.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
|
|
113
|
+
`)),K(je)},systemMode:ie}),[J,ge,he,F,De,ve,K,ie,Le.colorSchemeSelector]);let $e=!0;(P||A.cssVariables===!1||H&&(M==null?void 0:M.cssVarPrefix)===ne)&&($e=!1);const se=g.jsxs(v.Fragment,{children:[g.jsx(Hr,{themeId:Z?t:void 0,theme:Le,children:C}),$e&&g.jsx(ya,{styles:((Lt=Le.generateStyleSheets)==null?void 0:Lt.call(Le))||[]})]});return H?se:g.jsx(u.Provider,{value:Je,children:se})}process.env.NODE_ENV!=="production"&&(b.propTypes={children:s.node,colorSchemeNode:s.any,colorSchemeStorageKey:s.string,defaultMode:s.string,disableNestedContext:s.bool,disableStyleSheetGeneration:s.bool,disableTransitionOnChange:s.bool,documentNode:s.any,modeStorageKey:s.string,noSsr:s.bool,storageWindow:s.any,theme:s.object});const m=typeof a=="string"?a:a.light,p=typeof a=="string"?a:a.dark;return{CssVarsProvider:b,useColorScheme:d,getInitColorSchemeScript:T=>Xd({colorSchemeStorageKey:o,defaultLightColorScheme:m,defaultDarkColorScheme:p,modeStorageKey:r,...T})}}function qg(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 ll=(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])})},Gg=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([c,l])=>{(!n||!n([...i,c]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,c],Array.isArray(l)?[...a,c]:a):t([...i,c],l,a))})}r(e)},Yg=(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 ps(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return Gg(e,(c,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(c,l))){const d=`--${n?`${n}-`:""}${c.join("-")}`,f=Yg(c,l);Object.assign(o,{[d]:f}),ll(i,c,`var(${d})`,u),ll(a,c,`var(${d}, ${f})`,u)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function Kg(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:c="light",...l}=e,{vars:u,css:d,varsWithDefaults:f}=ps(l,t);let h=f;const b={},{[c]:m,...p}=i;if(Object.entries(p||{}).forEach(([w,E])=>{const{vars:S,css:O,varsWithDefaults:R}=ps(E,t);h=ot(h,R),b[w]={css:O,vars:S}}),m){const{css:w,vars:E,varsWithDefaults:S}=ps(m,t);h=ot(h,S),b[c]={css:w,vars:E}}function y(w,E){var O,R;let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),w){if(S==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((R=(O=i[w])==null?void 0:O.palette)==null?void 0:R.mode)||w})`]:{":root":E}};if(S)return e.defaultColorScheme===w?`:root, ${S.replace("%s",String(w))}`:S.replace("%s",String(w))}return":root"}return{vars:h,generateThemeVars:()=>{let w={...u};return Object.entries(b).forEach(([,{vars:E}])=>{w=ot(w,E)}),w},generateStyleSheets:()=>{var N,j;const w=[],E=e.defaultColorScheme||"light";function S(x,P){Object.keys(P).length&&w.push(typeof x=="string"?{[x]:{...P}}:x)}S(n(void 0,{...d}),d);const{[E]:O,...R}=b;if(O){const{css:x}=O,P=(j=(N=i[E])==null?void 0:N.palette)==null?void 0:j.mode,B=!r&&P?{colorScheme:P,...x}:{...x};S(n(E,{...B}),B)}return Object.entries(R).forEach(([x,{css:P}])=>{var U,M;const B=(M=(U=i[x])==null?void 0:U.palette)==null?void 0:M.mode,$=!r&&B?{colorScheme:B,...P}:{...P};S(n(x,{...$}),$)}),w}}}function Xg(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 Jg=lo(),Zg=Nd("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Qg=e=>Ad({props:e,name:"MuiContainer",defaultTheme:Jg}),ey=(e,t)=>{const n=l=>Te(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,c={root:["root",a&&`maxWidth${de(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Ne(c,n,r)};function ty(e={}){const{createStyledComponent:t=Zg,useThemeProps:n=Qg,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:c})=>c.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const d=u,f=a.breakpoints.values[d];return f!==0&&(l[a.breakpoints.up(d)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:c})=>({...c.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[a.breakpoints.up(c.maxWidth)]:{maxWidth:`${a.breakpoints.values[c.maxWidth]}${a.breakpoints.unit}`}}})),i=v.forwardRef(function(c,l){const u=n(c),{className:d,component:f="div",disableGutters:h=!1,fixed:b=!1,maxWidth:m="lg",classes:p,...y}=u,T={...u,component:f,disableGutters:h,fixed:b,maxWidth:m},C=ey(T,r);return g.jsx(o,{as:f,ownerState:T,className:ae(C.root,d),ref:l,...y})});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disableGutters:s.bool,fixed:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),i}const ny=lo(),ry=Nd("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function oy(e){return Ad({props:e,name:"MuiStack",defaultTheme:ny})}function iy(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(v.cloneElement(t,{key:`separator-${i}`})),r),[])}const sy=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],ay=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...jt({theme:t},us({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Oi(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=us({values:e.direction,base:o}),a=us({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,d)=>{if(!i[l]){const h=u>0?i[d[u-1]]:"column";i[l]=h}}),n=ot(n,jt({theme:t},a,(l,u)=>e.useFlexGap?{gap:An(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${sy(u?i[u]:e.direction)}`]:An(r,l)}}))}return n=um(t.breakpoints,n),n};function Zd(e={}){const{createStyledComponent:t=ry,useThemeProps:n=oy,componentName:r="MuiStack"}=e,o=()=>Ne({root:["root"]},l=>Te(r,l),{}),i=t(ay),a=v.forwardRef(function(l,u){const d=n(l),f=xa(d),{component:h="div",direction:b="column",spacing:m=0,divider:p,children:y,className:T,useFlexGap:C=!1,...w}=f,E={direction:b,spacing:m,useFlexGap:C},S=o();return g.jsx(i,{as:h,ownerState:E,ref:u,className:ae(S.root,T),...w,children:p?iy(y,p):y})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:s.node,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),a}const Qd=Zd();process.env.NODE_ENV!=="production"&&(Qd.propTypes={children:s.node,component:s.elementType,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),useFlexGap:s.bool});const qr={black:"#000",white:"#fff"},cy={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"},Wn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Hn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Cr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},qn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Gn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Yn={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function ef(){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:qr.white,default:qr.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 ly=ef();function tf(){return{text:{primary:qr.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:qr.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 ul=tf();function dl(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=Ta(e.main,o):t==="dark"&&(e.dark=wa(e.main,i)))}function uy(e="light"){return e==="dark"?{main:qn[200],light:qn[50],dark:qn[400]}:{main:qn[700],light:qn[400],dark:qn[800]}}function dy(e="light"){return e==="dark"?{main:Wn[200],light:Wn[50],dark:Wn[400]}:{main:Wn[500],light:Wn[300],dark:Wn[700]}}function fy(e="light"){return e==="dark"?{main:Hn[500],light:Hn[300],dark:Hn[700]}:{main:Hn[700],light:Hn[400],dark:Hn[800]}}function py(e="light"){return e==="dark"?{main:Gn[400],light:Gn[300],dark:Gn[700]}:{main:Gn[700],light:Gn[500],dark:Gn[900]}}function hy(e="light"){return e==="dark"?{main:Yn[400],light:Yn[300],dark:Yn[700]}:{main:Yn[800],light:Yn[500],dark:Yn[900]}}function my(e="light"){return e==="dark"?{main:Cr[400],light:Cr[300],dark:Cr[700]}:{main:"#ed6c02",light:Cr[500],dark:Cr[900]}}function Na(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||uy(t),a=e.secondary||dy(t),c=e.error||fy(t),l=e.info||py(t),u=e.success||hy(t),d=e.warning||my(t);function f(p){const y=Qc(p,ul.text.primary)>=n?ul.text.primary:ly.text.primary;if(process.env.NODE_ENV!=="production"){const T=Qc(p,y);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${y} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
114
|
+
`))}return y}const h=({color:p,name:y,mainShade:T=500,lightShade:C=300,darkShade:w=700})=>{if(p={...p},!p.main&&p[T]&&(p.main=p[T]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
115
|
+
The color object needs to have a \`main\` property or a \`${T}\` property.`:ln(11,y?` (${y})`:"",T));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
116
116
|
\`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
|
|
117
117
|
|
|
118
118
|
Did you intend to use one of the following approaches?
|
|
@@ -125,17 +125,17 @@ const theme1 = createTheme({ palette: {
|
|
|
125
125
|
|
|
126
126
|
const theme2 = createTheme({ palette: {
|
|
127
127
|
primary: { main: green[500] },
|
|
128
|
-
} });`:
|
|
129
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof a=="string"?a:
|
|
128
|
+
} });`:ln(12,y?` (${y})`:"",JSON.stringify(p.main)));return dl(p,"light",C,r),dl(p,"dark",w,r),p.contrastText||(p.contrastText=f(p.main)),p};let b;return t==="light"?b=ef():t==="dark"&&(b=tf()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ot({common:{...qr},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:c,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:cy,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r,...b},o)}function gy(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 yy(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vy(e){return Math.round(e*1e5)/1e5}const fl={textTransform:"uppercase"},pl='"Roboto", "Helvetica", "Arial", sans-serif';function nf(e,t){const{fontFamily:n=pl,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:u,pxToRem:d,...f}=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 l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=r/14,b=d||(y=>`${y/l*h}rem`),m=(y,T,C,w,E)=>({fontFamily:n,fontWeight:y,fontSize:b(T),lineHeight:C,...n===pl?{letterSpacing:`${vy(w/T)}em`}:{},...E,...u}),p={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,fl),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,fl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ot({htmlFontSize:l,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c,...p},f,{clone:!1})}const by=.2,xy=.14,Ey=.12;function Fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${by})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xy})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ey})`].join(",")}const Sy=["none",Fe(0,2,1,-1,0,1,1,0,0,1,3,0),Fe(0,3,1,-2,0,2,2,0,0,1,5,0),Fe(0,3,3,-2,0,3,4,0,0,1,8,0),Fe(0,2,4,-1,0,4,5,0,0,1,10,0),Fe(0,3,5,-1,0,5,8,0,0,1,14,0),Fe(0,3,5,-1,0,6,10,0,0,1,18,0),Fe(0,4,5,-2,0,7,10,1,0,2,16,1),Fe(0,5,5,-3,0,8,10,1,0,3,14,2),Fe(0,5,6,-3,0,9,12,1,0,3,16,2),Fe(0,6,6,-3,0,10,14,1,0,4,18,3),Fe(0,6,7,-4,0,11,15,1,0,4,20,3),Fe(0,7,8,-4,0,12,17,2,0,5,22,4),Fe(0,7,8,-4,0,13,19,2,0,5,24,4),Fe(0,7,9,-4,0,14,21,2,0,5,26,4),Fe(0,8,9,-5,0,15,22,2,0,6,28,5),Fe(0,8,10,-5,0,16,24,2,0,6,30,5),Fe(0,8,11,-5,0,17,26,2,0,6,32,5),Fe(0,9,11,-5,0,18,28,2,0,7,34,6),Fe(0,9,12,-6,0,19,29,2,0,7,36,6),Fe(0,10,13,-6,0,20,31,3,0,8,38,7),Fe(0,10,13,-6,0,21,33,3,0,8,40,7),Fe(0,10,14,-6,0,22,35,3,0,8,42,7),Fe(0,11,14,-7,0,23,36,3,0,9,44,8),Fe(0,11,15,-7,0,24,38,3,0,9,46,8)],wy={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)"},rf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hl(e){return`${Math.round(e)}ms`}function Ty(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Cy(e){const t={...wy,...e.easing},n={...rf,...e.duration};return{getAutoHeightDuration:Ty,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:l=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",f=h=>!Number.isNaN(parseFloat(h));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(c)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!d(l)&&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(`
|
|
129
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof a=="string"?a:hl(a)} ${c} ${typeof l=="string"?l:hl(l)}`).join(",")},...e,easing:t,duration:n}}const Oy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ry(e){return Vt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function of(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,c]=o[i];!Ry(c)||a.startsWith("unstable_")?delete r[a]:Vt(c)&&(r[a]={...c},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
130
130
|
|
|
131
131
|
const theme = ${JSON.stringify(t,null,2)};
|
|
132
132
|
|
|
133
133
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
134
134
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
135
135
|
|
|
136
|
-
export default theme;`}function
|
|
137
|
-
`))}p[T]={}}}};Object.keys(h.components).forEach(p=>{const
|
|
138
|
-
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 xy(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Bt=e=>{try{return e()}catch{}},Ey=(e="mui")=>Ag(e);function fs(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=my({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=Vs({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Qd(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||ef(o)},a}function Sy(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=gy,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!=="light"?"light":d),h=Ey(i),{[f]:b,light:m,dark:p,...g}=n,T={...g};let C=b;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:an(21,f));const w=fs(T,C,u,f);m&&!T.light&&fs(T,m,void 0,"light"),p&&!T.dark&&fs(T,p,void 0,"dark");let E={defaultColorScheme:f,...w,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:h,colorSchemes:T,font:{...ny(w.typography),...w.font},spacing:xy(u.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const x=E.colorSchemes[j].palette,P=L=>{const $=L.split("-"),U=$[1],M=$[2];return h(L,x[U][M])};if(x.mode==="light"&&(_(x.common,"background","#fff"),_(x.common,"onBackground","#000")),x.mode==="dark"&&(_(x.common,"background","#000"),_(x.common,"onBackground","#fff")),by(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){_(x.Alert,"errorColor",Ie(x.error.light,.6)),_(x.Alert,"infoColor",Ie(x.info.light,.6)),_(x.Alert,"successColor",Ie(x.success.light,.6)),_(x.Alert,"warningColor",Ie(x.warning.light,.6)),_(x.Alert,"errorFilledBg",P("palette-error-main")),_(x.Alert,"infoFilledBg",P("palette-info-main")),_(x.Alert,"successFilledBg",P("palette-success-main")),_(x.Alert,"warningFilledBg",P("palette-warning-main")),_(x.Alert,"errorFilledColor",Bt(()=>x.getContrastText(x.error.main))),_(x.Alert,"infoFilledColor",Bt(()=>x.getContrastText(x.info.main))),_(x.Alert,"successFilledColor",Bt(()=>x.getContrastText(x.success.main))),_(x.Alert,"warningFilledColor",Bt(()=>x.getContrastText(x.warning.main))),_(x.Alert,"errorStandardBg",_e(x.error.light,.9)),_(x.Alert,"infoStandardBg",_e(x.info.light,.9)),_(x.Alert,"successStandardBg",_e(x.success.light,.9)),_(x.Alert,"warningStandardBg",_e(x.warning.light,.9)),_(x.Alert,"errorIconColor",P("palette-error-main")),_(x.Alert,"infoIconColor",P("palette-info-main")),_(x.Alert,"successIconColor",P("palette-success-main")),_(x.Alert,"warningIconColor",P("palette-warning-main")),_(x.AppBar,"defaultBg",P("palette-grey-100")),_(x.Avatar,"defaultBg",P("palette-grey-400")),_(x.Button,"inheritContainedBg",P("palette-grey-300")),_(x.Button,"inheritContainedHoverBg",P("palette-grey-A100")),_(x.Chip,"defaultBorder",P("palette-grey-400")),_(x.Chip,"defaultAvatarColor",P("palette-grey-700")),_(x.Chip,"defaultIconColor",P("palette-grey-700")),_(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(x.LinearProgress,"primaryBg",_e(x.primary.main,.62)),_(x.LinearProgress,"secondaryBg",_e(x.secondary.main,.62)),_(x.LinearProgress,"errorBg",_e(x.error.main,.62)),_(x.LinearProgress,"infoBg",_e(x.info.main,.62)),_(x.LinearProgress,"successBg",_e(x.success.main,.62)),_(x.LinearProgress,"warningBg",_e(x.warning.main,.62)),_(x.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),_(x.Slider,"primaryTrack",_e(x.primary.main,.62)),_(x.Slider,"secondaryTrack",_e(x.secondary.main,.62)),_(x.Slider,"errorTrack",_e(x.error.main,.62)),_(x.Slider,"infoTrack",_e(x.info.main,.62)),_(x.Slider,"successTrack",_e(x.success.main,.62)),_(x.Slider,"warningTrack",_e(x.warning.main,.62));const L=Po(x.background.default,.8);_(x.SnackbarContent,"bg",L),_(x.SnackbarContent,"color",Bt(()=>x.getContrastText(L))),_(x.SpeedDialAction,"fabHoverBg",Po(x.background.paper,.15)),_(x.StepConnector,"border",P("palette-grey-400")),_(x.StepContent,"border",P("palette-grey-400")),_(x.Switch,"defaultColor",P("palette-common-white")),_(x.Switch,"defaultDisabledColor",P("palette-grey-100")),_(x.Switch,"primaryDisabledColor",_e(x.primary.main,.62)),_(x.Switch,"secondaryDisabledColor",_e(x.secondary.main,.62)),_(x.Switch,"errorDisabledColor",_e(x.error.main,.62)),_(x.Switch,"infoDisabledColor",_e(x.info.main,.62)),_(x.Switch,"successDisabledColor",_e(x.success.main,.62)),_(x.Switch,"warningDisabledColor",_e(x.warning.main,.62)),_(x.TableCell,"border",_e(ko(x.divider,1),.88)),_(x.Tooltip,"bg",ko(x.grey[700],.92))}if(x.mode==="dark"){_(x.Alert,"errorColor",_e(x.error.light,.6)),_(x.Alert,"infoColor",_e(x.info.light,.6)),_(x.Alert,"successColor",_e(x.success.light,.6)),_(x.Alert,"warningColor",_e(x.warning.light,.6)),_(x.Alert,"errorFilledBg",P("palette-error-dark")),_(x.Alert,"infoFilledBg",P("palette-info-dark")),_(x.Alert,"successFilledBg",P("palette-success-dark")),_(x.Alert,"warningFilledBg",P("palette-warning-dark")),_(x.Alert,"errorFilledColor",Bt(()=>x.getContrastText(x.error.dark))),_(x.Alert,"infoFilledColor",Bt(()=>x.getContrastText(x.info.dark))),_(x.Alert,"successFilledColor",Bt(()=>x.getContrastText(x.success.dark))),_(x.Alert,"warningFilledColor",Bt(()=>x.getContrastText(x.warning.dark))),_(x.Alert,"errorStandardBg",Ie(x.error.light,.9)),_(x.Alert,"infoStandardBg",Ie(x.info.light,.9)),_(x.Alert,"successStandardBg",Ie(x.success.light,.9)),_(x.Alert,"warningStandardBg",Ie(x.warning.light,.9)),_(x.Alert,"errorIconColor",P("palette-error-main")),_(x.Alert,"infoIconColor",P("palette-info-main")),_(x.Alert,"successIconColor",P("palette-success-main")),_(x.Alert,"warningIconColor",P("palette-warning-main")),_(x.AppBar,"defaultBg",P("palette-grey-900")),_(x.AppBar,"darkBg",P("palette-background-paper")),_(x.AppBar,"darkColor",P("palette-text-primary")),_(x.Avatar,"defaultBg",P("palette-grey-600")),_(x.Button,"inheritContainedBg",P("palette-grey-800")),_(x.Button,"inheritContainedHoverBg",P("palette-grey-700")),_(x.Chip,"defaultBorder",P("palette-grey-700")),_(x.Chip,"defaultAvatarColor",P("palette-grey-300")),_(x.Chip,"defaultIconColor",P("palette-grey-300")),_(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(x.LinearProgress,"primaryBg",Ie(x.primary.main,.5)),_(x.LinearProgress,"secondaryBg",Ie(x.secondary.main,.5)),_(x.LinearProgress,"errorBg",Ie(x.error.main,.5)),_(x.LinearProgress,"infoBg",Ie(x.info.main,.5)),_(x.LinearProgress,"successBg",Ie(x.success.main,.5)),_(x.LinearProgress,"warningBg",Ie(x.warning.main,.5)),_(x.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),_(x.Slider,"primaryTrack",Ie(x.primary.main,.5)),_(x.Slider,"secondaryTrack",Ie(x.secondary.main,.5)),_(x.Slider,"errorTrack",Ie(x.error.main,.5)),_(x.Slider,"infoTrack",Ie(x.info.main,.5)),_(x.Slider,"successTrack",Ie(x.success.main,.5)),_(x.Slider,"warningTrack",Ie(x.warning.main,.5));const L=Po(x.background.default,.98);_(x.SnackbarContent,"bg",L),_(x.SnackbarContent,"color",Bt(()=>x.getContrastText(L))),_(x.SpeedDialAction,"fabHoverBg",Po(x.background.paper,.15)),_(x.StepConnector,"border",P("palette-grey-600")),_(x.StepContent,"border",P("palette-grey-600")),_(x.Switch,"defaultColor",P("palette-grey-300")),_(x.Switch,"defaultDisabledColor",P("palette-grey-600")),_(x.Switch,"primaryDisabledColor",Ie(x.primary.main,.55)),_(x.Switch,"secondaryDisabledColor",Ie(x.secondary.main,.55)),_(x.Switch,"errorDisabledColor",Ie(x.error.main,.55)),_(x.Switch,"infoDisabledColor",Ie(x.info.main,.55)),_(x.Switch,"successDisabledColor",Ie(x.success.main,.55)),_(x.Switch,"warningDisabledColor",Ie(x.warning.main,.55)),_(x.TableCell,"border",Ie(ko(x.divider,1),.68)),_(x.Tooltip,"bg",ko(x.grey[700],.92))}qt(x.background,"default"),qt(x.background,"paper"),qt(x.common,"background"),qt(x.common,"onBackground"),qt(x,"divider"),Object.keys(x).forEach(L=>{const $=x[L];L!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&_(x[L],"mainChannel",Nr(jr($.main))),$.light&&_(x[L],"lightChannel",Nr(jr($.light))),$.dark&&_(x[L],"darkChannel",Nr(jr($.dark))),$.contrastText&&_(x[L],"contrastTextChannel",Nr(jr($.contrastText))),L==="text"&&(qt(x[L],"primary"),qt(x[L],"secondary")),L==="action"&&($.active&&qt(x[L],"active"),$.selected&&qt(x[L],"selected")))})}),E=t.reduce((j,x)=>ot(j,x),E);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:vy(E)},{vars:O,generateThemeVars:R,generateStyleSheets:N}=$g(E,S);return E.vars=O,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,x])=>{E[j]=x}),E.generateThemeVars=R,E.generateStyleSheets=N,E.generateSpacing=function(){return hd(u.spacing,Ti(this))},E.getColorSchemeSelector=Mg(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=a,E.unstable_sxConfig={...io,...u==null?void 0:u.unstable_sxConfig},E.unstable_sx=function(x){return cn({sx:x,theme:this})},E.toRuntimeSource=Zd,E}function ll(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ka({...n===!0?{}:n.palette,mode:t})})}function $i(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,c=i||"light",l=o==null?void 0:o[c],u={...o,...n?{[c]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Vs(e,...t);let d=n;"palette"in e||u[c]&&(u[c]!==!0?d=u[c].palette:c==="dark"&&(d={mode:"dark"}));const f=Vs({...e,palette:d},...t);return f.defaultColorScheme=c,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},ll(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},ll(f,"light",u.light)),f}return!n&&!("light"in u)&&c==="light"&&(u.light=!0),Sy({...a,colorSchemes:u,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Pa=$i();function hn(){const e=Ni(Pa);return process.env.NODE_ENV!=="production"&&v.useDebugValue(e),e[Nt]||e}function wy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mi=e=>wy(e)&&e!=="classes",ce=Sd({themeId:Nt,defaultTheme:Pa,rootShouldForwardProp:Mi});function ul({theme:e,...t}){const n=Nt in e?e[Nt]:void 0;return y.jsx(Ur,{...t,themeId:n?Nt:void 0,theme:n||e})}const Ar={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},Ty=function(t){return y.jsx(Wd,{...Ar,...t})},{CssVarsProvider:Cy,useColorScheme:Oy,getInitColorSchemeScript:U1}=jg({themeId:Nt,theme:()=>$i({cssVariables:!0}),colorSchemeStorageKey:Ar.colorSchemeStorageKey,modeStorageKey:Ar.modeStorageKey,defaultColorScheme:{light:Ar.defaultLightColorScheme,dark:Ar.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Xd(e.palette,e.typography)};return t.unstable_sx=function(r){return cn({sx:r,theme:this})},t}}),Ry=Cy;function tf({theme:e,...t}){return typeof e=="function"?y.jsx(ul,{theme:e,...t}):"colorSchemes"in(Nt in e?e[Nt]:e)?y.jsx(Ry,{theme:e,...t}):y.jsx(ul,{theme:e,...t})}const nf=v.createContext(null);function rf(e){return y.jsx(md,{...e,defaultTheme:Pa,themeId:Nt})}process.env.NODE_ENV!=="production"&&(rf.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function of(e){return function(n){return y.jsx(rf,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function ky(){return va}const Ve=Og;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ce(e){return Cg(e)}function Py(e){return Te("MuiSvgIcon",e)}Oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ny=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(n)}`]};return Ne(o,Py,r)},jy=ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${de(n.color)}`],t[`fontSize${de(n.fontSize)}`]]}})(Ve(({theme:e})=>{var t,n,r,o,i,a,c,l,u,d,f,h,b,m;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:p=>!p.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:((l=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:l.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var g,T;return{props:{color:p},style:{color:(T=(g=(e.vars??e).palette)==null?void 0:g[p])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(h=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(m=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ii=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:c="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24",...b}=r,m=v.isValidElement(o)&&o.type==="svg",p={...r,color:a,component:c,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:m},g={};d||(g.viewBox=h);const T=Ny(p);return y.jsxs(jy,{as:c,className:ae(T.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...g,...b,...m&&o.props,ownerState:p,children:[m?o.props.children:o,f?y.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(ii.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});ii.muiName="SvgIcon";function Ge(e,t){function n(r,o){return y.jsx(ii,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ii.muiName,v.memo(v.forwardRef(n))}const sf=Ge(y.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");var Se={};/**
|
|
136
|
+
export default theme;`}function zs(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:c={},shape:l,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":ln(20));const d=Na(i),f=lo(e);let h=ot(f,{mixins:yy(f.breakpoints,r),palette:d,shadows:Sy.slice(),typography:nf(d,c),transitions:Cy(a),zIndex:{...Oy}});if(h=ot(h,u),h=t.reduce((b,m)=>ot(b,m),h),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(p,y)=>{let T;for(T in p){const C=p[T];if(b.includes(T)&&Object.keys(C).length>0){if(process.env.NODE_ENV!=="production"){const w=Te("",T);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:C}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
137
|
+
`))}p[T]={}}}};Object.keys(h.components).forEach(p=>{const y=h.components[p].styleOverrides;y&&p.startsWith("Mui")&&m(y,p)})}return h.unstable_sxConfig={...co,...u==null?void 0:u.unstable_sxConfig},h.unstable_sx=function(m){return un({sx:m,theme:this})},h.toRuntimeSource=of,h}function Ws(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 ky=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ws(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function sf(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function af(e){return e==="dark"?ky:[]}function Py(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Na(t);return{palette:i,opacity:{...sf(i.mode),...n},overlays:r||af(i.mode),...o}}function Ny(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 jy=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Ay=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 jy(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),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 Iy(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _(e,t,n){!e[t]&&n&&(e[t]=n)}function Ir(e){return typeof e!="string"||!e.startsWith("hsl")?e:_d(e)}function Gt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ar(Ir(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().
|
|
138
|
+
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 _y(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Bt=e=>{try{return e()}catch{}},$y=(e="mui")=>qg(e);function hs(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=Py({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=zs({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...sf(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||af(o)},a}function My(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=Ny,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!=="light"?"light":d),h=$y(i),{[f]:b,light:m,dark:p,...y}=n,T={...y};let C=b;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:ln(21,f));const w=hs(T,C,u,f);m&&!T.light&&hs(T,m,void 0,"light"),p&&!T.dark&&hs(T,p,void 0,"dark");let E={defaultColorScheme:f,...w,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:h,colorSchemes:T,font:{...gy(w.typography),...w.font},spacing:_y(u.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const x=E.colorSchemes[j].palette,P=B=>{const $=B.split("-"),U=$[1],M=$[2];return h(B,x[U][M])};if(x.mode==="light"&&(_(x.common,"background","#fff"),_(x.common,"onBackground","#000")),x.mode==="dark"&&(_(x.common,"background","#000"),_(x.common,"onBackground","#fff")),Iy(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){_(x.Alert,"errorColor",Ie(x.error.light,.6)),_(x.Alert,"infoColor",Ie(x.info.light,.6)),_(x.Alert,"successColor",Ie(x.success.light,.6)),_(x.Alert,"warningColor",Ie(x.warning.light,.6)),_(x.Alert,"errorFilledBg",P("palette-error-main")),_(x.Alert,"infoFilledBg",P("palette-info-main")),_(x.Alert,"successFilledBg",P("palette-success-main")),_(x.Alert,"warningFilledBg",P("palette-warning-main")),_(x.Alert,"errorFilledColor",Bt(()=>x.getContrastText(x.error.main))),_(x.Alert,"infoFilledColor",Bt(()=>x.getContrastText(x.info.main))),_(x.Alert,"successFilledColor",Bt(()=>x.getContrastText(x.success.main))),_(x.Alert,"warningFilledColor",Bt(()=>x.getContrastText(x.warning.main))),_(x.Alert,"errorStandardBg",_e(x.error.light,.9)),_(x.Alert,"infoStandardBg",_e(x.info.light,.9)),_(x.Alert,"successStandardBg",_e(x.success.light,.9)),_(x.Alert,"warningStandardBg",_e(x.warning.light,.9)),_(x.Alert,"errorIconColor",P("palette-error-main")),_(x.Alert,"infoIconColor",P("palette-info-main")),_(x.Alert,"successIconColor",P("palette-success-main")),_(x.Alert,"warningIconColor",P("palette-warning-main")),_(x.AppBar,"defaultBg",P("palette-grey-100")),_(x.Avatar,"defaultBg",P("palette-grey-400")),_(x.Button,"inheritContainedBg",P("palette-grey-300")),_(x.Button,"inheritContainedHoverBg",P("palette-grey-A100")),_(x.Chip,"defaultBorder",P("palette-grey-400")),_(x.Chip,"defaultAvatarColor",P("palette-grey-700")),_(x.Chip,"defaultIconColor",P("palette-grey-700")),_(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(x.LinearProgress,"primaryBg",_e(x.primary.main,.62)),_(x.LinearProgress,"secondaryBg",_e(x.secondary.main,.62)),_(x.LinearProgress,"errorBg",_e(x.error.main,.62)),_(x.LinearProgress,"infoBg",_e(x.info.main,.62)),_(x.LinearProgress,"successBg",_e(x.success.main,.62)),_(x.LinearProgress,"warningBg",_e(x.warning.main,.62)),_(x.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),_(x.Slider,"primaryTrack",_e(x.primary.main,.62)),_(x.Slider,"secondaryTrack",_e(x.secondary.main,.62)),_(x.Slider,"errorTrack",_e(x.error.main,.62)),_(x.Slider,"infoTrack",_e(x.info.main,.62)),_(x.Slider,"successTrack",_e(x.success.main,.62)),_(x.Slider,"warningTrack",_e(x.warning.main,.62));const B=jo(x.background.default,.8);_(x.SnackbarContent,"bg",B),_(x.SnackbarContent,"color",Bt(()=>x.getContrastText(B))),_(x.SpeedDialAction,"fabHoverBg",jo(x.background.paper,.15)),_(x.StepConnector,"border",P("palette-grey-400")),_(x.StepContent,"border",P("palette-grey-400")),_(x.Switch,"defaultColor",P("palette-common-white")),_(x.Switch,"defaultDisabledColor",P("palette-grey-100")),_(x.Switch,"primaryDisabledColor",_e(x.primary.main,.62)),_(x.Switch,"secondaryDisabledColor",_e(x.secondary.main,.62)),_(x.Switch,"errorDisabledColor",_e(x.error.main,.62)),_(x.Switch,"infoDisabledColor",_e(x.info.main,.62)),_(x.Switch,"successDisabledColor",_e(x.success.main,.62)),_(x.Switch,"warningDisabledColor",_e(x.warning.main,.62)),_(x.TableCell,"border",_e(No(x.divider,1),.88)),_(x.Tooltip,"bg",No(x.grey[700],.92))}if(x.mode==="dark"){_(x.Alert,"errorColor",_e(x.error.light,.6)),_(x.Alert,"infoColor",_e(x.info.light,.6)),_(x.Alert,"successColor",_e(x.success.light,.6)),_(x.Alert,"warningColor",_e(x.warning.light,.6)),_(x.Alert,"errorFilledBg",P("palette-error-dark")),_(x.Alert,"infoFilledBg",P("palette-info-dark")),_(x.Alert,"successFilledBg",P("palette-success-dark")),_(x.Alert,"warningFilledBg",P("palette-warning-dark")),_(x.Alert,"errorFilledColor",Bt(()=>x.getContrastText(x.error.dark))),_(x.Alert,"infoFilledColor",Bt(()=>x.getContrastText(x.info.dark))),_(x.Alert,"successFilledColor",Bt(()=>x.getContrastText(x.success.dark))),_(x.Alert,"warningFilledColor",Bt(()=>x.getContrastText(x.warning.dark))),_(x.Alert,"errorStandardBg",Ie(x.error.light,.9)),_(x.Alert,"infoStandardBg",Ie(x.info.light,.9)),_(x.Alert,"successStandardBg",Ie(x.success.light,.9)),_(x.Alert,"warningStandardBg",Ie(x.warning.light,.9)),_(x.Alert,"errorIconColor",P("palette-error-main")),_(x.Alert,"infoIconColor",P("palette-info-main")),_(x.Alert,"successIconColor",P("palette-success-main")),_(x.Alert,"warningIconColor",P("palette-warning-main")),_(x.AppBar,"defaultBg",P("palette-grey-900")),_(x.AppBar,"darkBg",P("palette-background-paper")),_(x.AppBar,"darkColor",P("palette-text-primary")),_(x.Avatar,"defaultBg",P("palette-grey-600")),_(x.Button,"inheritContainedBg",P("palette-grey-800")),_(x.Button,"inheritContainedHoverBg",P("palette-grey-700")),_(x.Chip,"defaultBorder",P("palette-grey-700")),_(x.Chip,"defaultAvatarColor",P("palette-grey-300")),_(x.Chip,"defaultIconColor",P("palette-grey-300")),_(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(x.LinearProgress,"primaryBg",Ie(x.primary.main,.5)),_(x.LinearProgress,"secondaryBg",Ie(x.secondary.main,.5)),_(x.LinearProgress,"errorBg",Ie(x.error.main,.5)),_(x.LinearProgress,"infoBg",Ie(x.info.main,.5)),_(x.LinearProgress,"successBg",Ie(x.success.main,.5)),_(x.LinearProgress,"warningBg",Ie(x.warning.main,.5)),_(x.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),_(x.Slider,"primaryTrack",Ie(x.primary.main,.5)),_(x.Slider,"secondaryTrack",Ie(x.secondary.main,.5)),_(x.Slider,"errorTrack",Ie(x.error.main,.5)),_(x.Slider,"infoTrack",Ie(x.info.main,.5)),_(x.Slider,"successTrack",Ie(x.success.main,.5)),_(x.Slider,"warningTrack",Ie(x.warning.main,.5));const B=jo(x.background.default,.98);_(x.SnackbarContent,"bg",B),_(x.SnackbarContent,"color",Bt(()=>x.getContrastText(B))),_(x.SpeedDialAction,"fabHoverBg",jo(x.background.paper,.15)),_(x.StepConnector,"border",P("palette-grey-600")),_(x.StepContent,"border",P("palette-grey-600")),_(x.Switch,"defaultColor",P("palette-grey-300")),_(x.Switch,"defaultDisabledColor",P("palette-grey-600")),_(x.Switch,"primaryDisabledColor",Ie(x.primary.main,.55)),_(x.Switch,"secondaryDisabledColor",Ie(x.secondary.main,.55)),_(x.Switch,"errorDisabledColor",Ie(x.error.main,.55)),_(x.Switch,"infoDisabledColor",Ie(x.info.main,.55)),_(x.Switch,"successDisabledColor",Ie(x.success.main,.55)),_(x.Switch,"warningDisabledColor",Ie(x.warning.main,.55)),_(x.TableCell,"border",Ie(No(x.divider,1),.68)),_(x.Tooltip,"bg",No(x.grey[700],.92))}Gt(x.background,"default"),Gt(x.background,"paper"),Gt(x.common,"background"),Gt(x.common,"onBackground"),Gt(x,"divider"),Object.keys(x).forEach(B=>{const $=x[B];B!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&_(x[B],"mainChannel",Ar(Ir($.main))),$.light&&_(x[B],"lightChannel",Ar(Ir($.light))),$.dark&&_(x[B],"darkChannel",Ar(Ir($.dark))),$.contrastText&&_(x[B],"contrastTextChannel",Ar(Ir($.contrastText))),B==="text"&&(Gt(x[B],"primary"),Gt(x[B],"secondary")),B==="action"&&($.active&&Gt(x[B],"active"),$.selected&&Gt(x[B],"selected")))})}),E=t.reduce((j,x)=>ot(j,x),E);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Ay(E)},{vars:O,generateThemeVars:R,generateStyleSheets:N}=Kg(E,S);return E.vars=O,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,x])=>{E[j]=x}),E.generateThemeVars=R,E.generateStyleSheets=N,E.generateSpacing=function(){return xd(u.spacing,Oi(this))},E.getColorSchemeSelector=Xg(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=a,E.unstable_sxConfig={...co,...u==null?void 0:u.unstable_sxConfig},E.unstable_sx=function(x){return un({sx:x,theme:this})},E.toRuntimeSource=of,E}function ml(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Na({...n===!0?{}:n.palette,mode:t})})}function Di(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,c=i||"light",l=o==null?void 0:o[c],u={...o,...n?{[c]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return zs(e,...t);let d=n;"palette"in e||u[c]&&(u[c]!==!0?d=u[c].palette:c==="dark"&&(d={mode:"dark"}));const f=zs({...e,palette:d},...t);return f.defaultColorScheme=c,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},ml(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},ml(f,"light",u.light)),f}return!n&&!("light"in u)&&c==="light"&&(u.light=!0),My({...a,colorSchemes:u,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const ja=Di();function gn(){const e=Ai(ja);return process.env.NODE_ENV!=="production"&&v.useDebugValue(e),e[Nt]||e}function Dy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Li=e=>Dy(e)&&e!=="classes",ce=kd({themeId:Nt,defaultTheme:ja,rootShouldForwardProp:Li});function gl({theme:e,...t}){const n=Nt in e?e[Nt]:void 0;return g.jsx(Hr,{...t,themeId:n?Nt:void 0,theme:n||e})}const _r={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},Ly=function(t){return g.jsx(Xd,{..._r,...t})},{CssVarsProvider:By,useColorScheme:Fy,getInitColorSchemeScript:H1}=Hg({themeId:Nt,theme:()=>Di({cssVariables:!0}),colorSchemeStorageKey:_r.colorSchemeStorageKey,modeStorageKey:_r.modeStorageKey,defaultColorScheme:{light:_r.defaultLightColorScheme,dark:_r.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:nf(e.palette,e.typography)};return t.unstable_sx=function(r){return un({sx:r,theme:this})},t}}),Vy=By;function cf({theme:e,...t}){return typeof e=="function"?g.jsx(gl,{theme:e,...t}):"colorSchemes"in(Nt in e?e[Nt]:e)?g.jsx(Vy,{theme:e,...t}):g.jsx(gl,{theme:e,...t})}const lf=v.createContext(null);function uf(e){return g.jsx(Ed,{...e,defaultTheme:ja,themeId:Nt})}process.env.NODE_ENV!=="production"&&(uf.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function df(e){return function(n){return g.jsx(uf,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Uy(){return xa}const Ve=Fg;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ce(e){return Bg(e)}function zy(e){return Te("MuiSvgIcon",e)}Oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wy=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(n)}`]};return Ne(o,zy,r)},Hy=ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${de(n.color)}`],t[`fontSize${de(n.fontSize)}`]]}})(Ve(({theme:e})=>{var t,n,r,o,i,a,c,l,u,d,f,h,b,m;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:p=>!p.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:((l=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:l.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,T;return{props:{color:p},style:{color:(T=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(h=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(m=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ai=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:c="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24",...b}=r,m=v.isValidElement(o)&&o.type==="svg",p={...r,color:a,component:c,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:m},y={};d||(y.viewBox=h);const T=Wy(p);return g.jsxs(Hy,{as:c,className:ae(T.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...y,...b,...m&&o.props,ownerState:p,children:[m?o.props.children:o,f?g.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(ai.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});ai.muiName="SvgIcon";function Ge(e,t){function n(r,o){return g.jsx(ai,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ai.muiName,v.memo(v.forwardRef(n))}const ff=Ge(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");var Se={};/**
|
|
139
139
|
* @license React
|
|
140
140
|
* react-is.production.min.js
|
|
141
141
|
*
|
|
@@ -143,7 +143,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the MIT license found in the
|
|
145
145
|
* LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/var
|
|
146
|
+
*/var yl;function qy(){if(yl)return Se;yl=1;var e=Symbol.for("react.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.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function p(y){if(typeof y=="object"&&y!==null){var T=y.$$typeof;switch(T){case e:switch(y=y.type,y){case n:case o:case r:case u:case d:return y;default:switch(y=y&&y.$$typeof,y){case c:case a:case l:case h:case f:case i:return y;default:return T}}case t:return T}}}return Se.ContextConsumer=a,Se.ContextProvider=i,Se.Element=e,Se.ForwardRef=l,Se.Fragment=n,Se.Lazy=h,Se.Memo=f,Se.Portal=t,Se.Profiler=o,Se.StrictMode=r,Se.Suspense=u,Se.SuspenseList=d,Se.isAsyncMode=function(){return!1},Se.isConcurrentMode=function(){return!1},Se.isContextConsumer=function(y){return p(y)===a},Se.isContextProvider=function(y){return p(y)===i},Se.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Se.isForwardRef=function(y){return p(y)===l},Se.isFragment=function(y){return p(y)===n},Se.isLazy=function(y){return p(y)===h},Se.isMemo=function(y){return p(y)===f},Se.isPortal=function(y){return p(y)===t},Se.isProfiler=function(y){return p(y)===o},Se.isStrictMode=function(y){return p(y)===r},Se.isSuspense=function(y){return p(y)===u},Se.isSuspenseList=function(y){return p(y)===d},Se.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===u||y===d||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===f||y.$$typeof===i||y.$$typeof===a||y.$$typeof===l||y.$$typeof===m||y.getModuleId!==void 0)},Se.typeOf=p,Se}var we={};/**
|
|
147
147
|
* @license React
|
|
148
148
|
* react-is.development.js
|
|
149
149
|
*
|
|
@@ -151,8 +151,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
151
151
|
*
|
|
152
152
|
* This source code is licensed under the MIT license found in the
|
|
153
153
|
* LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/var
|
|
155
|
-
`)),y.jsx(Xy,{as:a,ownerState:f,className:ae(h.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":(b=o.vars.overlays)==null?void 0:b[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ue("#fff",Us(c))}, ${Ue("#fff",Us(c))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Di.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Qt(rr,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])});class si{constructor(){Vn(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 si}static use(){const t=Ad(si.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=Zy(),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 Jy(){return si.use()}function Zy(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function zs(){return zs=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},zs.apply(null,arguments)}function lf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ws(e,t){return Ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ws(e,t)}function uf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ws(e,t)}const yl={disabled:!1};var Qy=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 ai=F.createContext(null);var ev=function(t){return t.scrollTop},Ir="unmounted",xn="exited",En="entering",Zn="entered",Hs="exiting",Rt=function(e){uf(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?c?(l=xn,i.appearStatus=En):l=Zn:r.unmountOnExit||r.mountOnEnter?l=Ir:l=xn,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ir?{status:xn}: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!==En&&a!==Zn&&(i=En):(a===En||a===Zn)&&(i=Hs)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===En){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:er.findDOMNode(this);a&&ev(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xn&&this.setState({status:Ir})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[er.findDOMNode(this),c],u=l[0],d=l[1],f=this.getTimeouts(),h=c?f.appear:f.enter;if(!o&&!a||yl.disabled){this.safeSetState({status:Zn},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:En},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:Zn},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:er.findDOMNode(this);if(!i||yl.disabled){this.safeSetState({status:xn},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Hs},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:xn},function(){o.props.onExited(c)})})})},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(c){a&&(a=!1,i.nextCallback=null,o(c))},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:er.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ir)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 c=lf(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return F.createElement(ai.Provider,{value:null},typeof a=="function"?a(o,c):F.cloneElement(F.Children.only(a),c))},t}(F.Component);Rt.contextType=ai;Rt.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=Qy;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 Gn(){}Rt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gn,onEntering:Gn,onEntered:Gn,onExit:Gn,onExiting:Gn,onExited:Gn};Rt.UNMOUNTED=Ir;Rt.EXITED=xn;Rt.ENTERING=En;Rt.ENTERED=Zn;Rt.EXITING=Hs;function tv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Na(e,t){var n=function(i){return t&&F.isValidElement(i)?t(i):i},r=Object.create(null);return e&&F.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function nv(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}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,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var u=r[l][a];c[r[l][a]]=n(u)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function Cn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function rv(e,t){return Na(e.children,function(n){return F.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Cn(n,"appear",e),enter:Cn(n,"enter",e),exit:Cn(n,"exit",e)})})}function ov(e,t,n){var r=Na(e.children),o=nv(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(F.isValidElement(a)){var c=i in t,l=i in r,u=t[i],d=F.isValidElement(u)&&!u.props.in;l&&(!c||d)?o[i]=F.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Cn(a,"exit",e),enter:Cn(a,"enter",e)}):!l&&c&&!d?o[i]=F.cloneElement(a,{in:!1}):l&&c&&F.isValidElement(u)&&(o[i]=F.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Cn(a,"exit",e),enter:Cn(a,"enter",e)}))}}),o}var iv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},sv={component:"div",childFactory:function(t){return t}},ja=function(e){uf(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(tv(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,c=i.handleExited,l=i.firstRender;return{children:l?rv(o,c):ov(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=Na(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=zs({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=lf(o,["component","childFactory"]),l=this.state.contextValue,u=iv(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?F.createElement(ai.Provider,{value:l},u):F.createElement(ai.Provider,{value:l},F.createElement(i,c,u))},t}(F.Component);ja.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};ja.defaultProps=sv;function df(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:u}=e,[d,f]=v.useState(!1),h=ae(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},m=ae(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&f(!0),v.useEffect(()=>{if(!c&&l!=null){const p=setTimeout(l,u);return()=>{clearTimeout(p)}}},[l,c,u]),y.jsx("span",{className:h,style:b,children:y.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(df.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 bt=Oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qs=550,av=80,cv=pr.keyframes`
|
|
154
|
+
*/var vl;function Gy(){return vl||(vl=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.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.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),m=!1,p=!1,y=!1,T=!1,C=!1,w;w=Symbol.for("react.module.reference");function E(X){return!!(typeof X=="string"||typeof X=="function"||X===n||X===o||C||X===r||X===u||X===d||T||X===b||m||p||y||typeof X=="object"&&X!==null&&(X.$$typeof===h||X.$$typeof===f||X.$$typeof===i||X.$$typeof===a||X.$$typeof===l||X.$$typeof===w||X.getModuleId!==void 0))}function S(X){if(typeof X=="object"&&X!==null){var ve=X.$$typeof;switch(ve){case e:var De=X.type;switch(De){case n:case o:case r:case u:case d:return De;default:var ge=De&&De.$$typeof;switch(ge){case c:case a:case l:case h:case f:case i:return ge;default:return ve}}case t:return ve}}}var O=a,R=i,N=e,j=l,x=n,P=h,B=f,$=t,U=o,M=r,L=u,H=d,q=!1,Z=!1;function A(X){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(X){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(X){return S(X)===a}function ne(X){return S(X)===i}function G(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function J(X){return S(X)===l}function V(X){return S(X)===n}function Q(X){return S(X)===h}function ee(X){return S(X)===f}function oe(X){return S(X)===t}function K(X){return S(X)===o}function ie(X){return S(X)===r}function F(X){return S(X)===u}function he(X){return S(X)===d}we.ContextConsumer=O,we.ContextProvider=R,we.Element=N,we.ForwardRef=j,we.Fragment=x,we.Lazy=P,we.Memo=B,we.Portal=$,we.Profiler=U,we.StrictMode=M,we.Suspense=L,we.SuspenseList=H,we.isAsyncMode=A,we.isConcurrentMode=z,we.isContextConsumer=te,we.isContextProvider=ne,we.isElement=G,we.isForwardRef=J,we.isFragment=V,we.isLazy=Q,we.isMemo=ee,we.isPortal=oe,we.isProfiler=K,we.isStrictMode=ie,we.isSuspense=F,we.isSuspenseList=he,we.isValidElementType=E,we.typeOf=S}()),we}process.env.NODE_ENV==="production"?qy():Gy();function Yy(e,t){const n=v.useContext(e);if(n==null)throw new Error(`context "${t}" was used without a Provider`);return n}function Ky(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Xy(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ky(n,t)})},e)}function Jy(e){return typeof e=="string"}function Zy(e,t,n){return e===void 0||Jy(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Qy(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 bl(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 ev(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=ae(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...n,...o,...r};return b.length>0&&(p.className=b),Object.keys(m).length>0&&(p.style=m),{props:p,internalRef:void 0}}const a=Qy({...o,...r}),c=bl(r),l=bl(o),u=t(a),d=ae(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},h={...u,...n,...l,...c};return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}function tv(e,t,n){return typeof e=="function"?e(t,n):e}function pf(e){var f;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:tv(n,r),{props:c,internalRef:l}=ev({...i,externalSlotProps:a}),u=Xy(l,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Zy(t,{...c,ref:u},r)}var xl;const El="Close",hf=v.createContext(null);function nv({notificationKey:e,open:t,message:n,options:r,badge:o}){var p,y;const{close:i}=Yy(lf),{severity:a,actionText:c,onAction:l,autoHideDuration:u}=r,d=v.useCallback((T,C)=>{C!=="clickaway"&&i(e)},[e,i]),f=g.jsxs(v.Fragment,{children:[l?g.jsx(Y.Button,{color:"inherit",size:"small",onClick:l,children:c??"Action"}):null,g.jsx(Y.IconButton,{size:"small","aria-label":El,title:El,color:"inherit",onClick:d,children:xl||(xl=g.jsx(ff,{fontSize:"small"}))})]}),h=v.useContext(hf),b=((p=h==null?void 0:h.slots)==null?void 0:p.snackbar)??Y.Snackbar,m=pf({elementType:b,ownerState:h,externalSlotProps:(y=h==null?void 0:h.slotProps)==null?void 0:y.snackbar,additionalProps:{open:t,autoHideDuration:u,onClose:d,action:f}});return g.jsx(b,{...m,children:g.jsx(Y.Badge,{badgeContent:o,color:"primary",sx:{width:"100%"},children:a?g.jsx(Y.Alert,{severity:a,sx:{width:"100%"},action:f,children:n}):g.jsx(Y.SnackbarContent,{message:n,action:f})})},e)}function rv({state:e}){const t=e.queue[0]??null;return t?g.jsx(nv,{...t,badge:e.queue.length>1?String(e.queue.length):null}):null}let Sl=0;const ov=()=>{const e=Sl;return Sl+=1,e};function iv(e){const{children:t}=e,[n,r]=v.useState({queue:[]}),o=v.useCallback((c,l={})=>{const u=l.key??`::toolpad-internal::notification::${ov()}`;return r(d=>d.queue.some(f=>f.notificationKey===u)?d:{...d,queue:[...d.queue,{message:c,options:l,notificationKey:u,open:!0}]}),u},[]),i=v.useCallback(c=>{r(l=>({...l,queue:l.queue.filter(u=>u.notificationKey!==c)}))},[]),a=v.useMemo(()=>({show:o,close:i}),[o,i]);return g.jsx(hf.Provider,{value:e,children:g.jsxs(lf.Provider,{value:a,children:[t,g.jsx(rv,{state:n})]})})}function ht(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,h=u[e]||r,b=Wd(d[e],o),{props:{component:m,...p},internalRef:y}=zd({className:n,...c,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:b}),T=et(y,b==null?void 0:b.ref,t.ref),C=e==="root"?m||l:m,w=Vd(h,{...e==="root"&&!l&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...p,...C&&{as:C},ref:T},o);return[h,w]}function sv(e){return typeof e.main=="string"}function av(e,t=[]){if(!sv(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function cr(e=[]){return([,t])=>t&&av(t,e)}function cv(e){return Te("MuiPaper",e)}Oe("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 lv=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ne(i,cv,o)},uv=ce("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}`]]}})(Ve(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Bi=v.forwardRef(function(t,n){var b;const r=Ce({props:t,name:"MuiPaper"}),o=gn(),{className:i,component:a="div",elevation:c=1,square:l=!1,variant:u="elevation",...d}=r,f={...r,component:a,elevation:c,square:l,variant:u},h=lv(f);return process.env.NODE_ENV!=="production"&&o.shadows[c]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${c}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${c}]\` is defined.`].join(`
|
|
155
|
+
`)),g.jsx(uv,{as:a,ownerState:f,className:ae(h.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":(b=o.vars.overlays)==null?void 0:b[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ue("#fff",Ws(c))}, ${Ue("#fff",Ws(c))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Bi.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:en(ir,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])});class ci{constructor(){zn(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 ci}static use(){const t=Ld(ci.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=fv(),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 dv(){return ci.use()}function fv(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Hs(){return Hs=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},Hs.apply(null,arguments)}function mf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function qs(e,t){return qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qs(e,t)}function gf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qs(e,t)}const wl={disabled:!1};var pv=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 li=D.createContext(null);var hv=function(t){return t.scrollTop},$r="unmounted",En="exited",Sn="entering",er="entered",Gs="exiting",Rt=function(e){gf(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?c?(l=En,i.appearStatus=Sn):l=er:r.unmountOnExit||r.mountOnEnter?l=$r:l=En,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$r?{status:En}: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!==Sn&&a!==er&&(i=Sn):(a===Sn||a===er)&&(i=Gs)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:nr.findDOMNode(this);a&&hv(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===En&&this.setState({status:$r})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[nr.findDOMNode(this),c],u=l[0],d=l[1],f=this.getTimeouts(),h=c?f.appear:f.enter;if(!o&&!a||wl.disabled){this.safeSetState({status:er},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Sn},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:er},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:nr.findDOMNode(this);if(!i||wl.disabled){this.safeSetState({status:En},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Gs},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:En},function(){o.props.onExited(c)})})})},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(c){a&&(a=!1,i.nextCallback=null,o(c))},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:nr.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$r)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 c=mf(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D.createElement(li.Provider,{value:null},typeof a=="function"?a(o,c):D.cloneElement(D.Children.only(a),c))},t}(D.Component);Rt.contextType=li;Rt.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=pv;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 Kn(){}Rt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kn,onEntering:Kn,onEntered:Kn,onExit:Kn,onExiting:Kn,onExited:Kn};Rt.UNMOUNTED=$r;Rt.EXITED=En;Rt.ENTERING=Sn;Rt.ENTERED=er;Rt.EXITING=Gs;function mv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aa(e,t){var n=function(i){return t&&D.isValidElement(i)?t(i):i},r=Object.create(null);return e&&D.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function gv(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}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,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var u=r[l][a];c[r[l][a]]=n(u)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function On(e,t,n){return n[t]!=null?n[t]:e.props[t]}function yv(e,t){return Aa(e.children,function(n){return D.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:On(n,"appear",e),enter:On(n,"enter",e),exit:On(n,"exit",e)})})}function vv(e,t,n){var r=Aa(e.children),o=gv(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(D.isValidElement(a)){var c=i in t,l=i in r,u=t[i],d=D.isValidElement(u)&&!u.props.in;l&&(!c||d)?o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:On(a,"exit",e),enter:On(a,"enter",e)}):!l&&c&&!d?o[i]=D.cloneElement(a,{in:!1}):l&&c&&D.isValidElement(u)&&(o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:On(a,"exit",e),enter:On(a,"enter",e)}))}}),o}var bv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xv={component:"div",childFactory:function(t){return t}},Ia=function(e){gf(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(mv(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,c=i.handleExited,l=i.firstRender;return{children:l?yv(o,c):vv(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=Aa(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=Hs({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=mf(o,["component","childFactory"]),l=this.state.contextValue,u=bv(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?D.createElement(li.Provider,{value:l},u):D.createElement(li.Provider,{value:l},D.createElement(i,c,u))},t}(D.Component);Ia.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Ia.defaultProps=xv;function yf(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:u}=e,[d,f]=v.useState(!1),h=ae(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},m=ae(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&f(!0),v.useEffect(()=>{if(!c&&l!=null){const p=setTimeout(l,u);return()=>{clearTimeout(p)}}},[l,c,u]),g.jsx("span",{className:h,style:b,children:g.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(yf.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 bt=Oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ys=550,Ev=80,Sv=mr.keyframes`
|
|
156
156
|
0% {
|
|
157
157
|
transform: scale(0);
|
|
158
158
|
opacity: 0.1;
|
|
@@ -162,7 +162,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
162
162
|
transform: scale(1);
|
|
163
163
|
opacity: 0.3;
|
|
164
164
|
}
|
|
165
|
-
`,
|
|
165
|
+
`,wv=mr.keyframes`
|
|
166
166
|
0% {
|
|
167
167
|
opacity: 1;
|
|
168
168
|
}
|
|
@@ -170,7 +170,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
170
170
|
100% {
|
|
171
171
|
opacity: 0;
|
|
172
172
|
}
|
|
173
|
-
`,
|
|
173
|
+
`,Tv=mr.keyframes`
|
|
174
174
|
0% {
|
|
175
175
|
transform: scale(1);
|
|
176
176
|
}
|
|
@@ -182,15 +182,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
182
182
|
100% {
|
|
183
183
|
transform: scale(1);
|
|
184
184
|
}
|
|
185
|
-
`,
|
|
185
|
+
`,Cv=ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ov=ce(yf,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
186
186
|
opacity: 0;
|
|
187
187
|
position: absolute;
|
|
188
188
|
|
|
189
189
|
&.${bt.rippleVisible} {
|
|
190
190
|
opacity: 0.3;
|
|
191
191
|
transform: scale(1);
|
|
192
|
-
animation-name: ${
|
|
193
|
-
animation-duration: ${
|
|
192
|
+
animation-name: ${Sv};
|
|
193
|
+
animation-duration: ${Ys}ms;
|
|
194
194
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
195
195
|
}
|
|
196
196
|
|
|
@@ -209,8 +209,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
209
209
|
|
|
210
210
|
& .${bt.childLeaving} {
|
|
211
211
|
opacity: 0;
|
|
212
|
-
animation-name: ${
|
|
213
|
-
animation-duration: ${
|
|
212
|
+
animation-name: ${wv};
|
|
213
|
+
animation-duration: ${Ys}ms;
|
|
214
214
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
215
215
|
}
|
|
216
216
|
|
|
@@ -219,29 +219,29 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
219
219
|
/* @noflip */
|
|
220
220
|
left: 0px;
|
|
221
221
|
top: 0;
|
|
222
|
-
animation-name: ${
|
|
222
|
+
animation-name: ${Tv};
|
|
223
223
|
animation-duration: 2500ms;
|
|
224
224
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
225
225
|
animation-iteration-count: infinite;
|
|
226
226
|
animation-delay: 200ms;
|
|
227
227
|
}
|
|
228
|
-
`,
|
|
229
|
-
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Ev(e){return Te("MuiTypography",e)}const vl=Oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Sv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wv=ky(),Tv=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,c={root:["root",i,e.align!=="inherit"&&`align${de(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ne(c,Ev,a)},Cv=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${de(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ve(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(sr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${de(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),bl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Et=v.forwardRef(function(t,n){const{color:r,...o}=Ce({props:t,name:"MuiTypography"}),i=!Sv[r],a=wv({...o,...i&&{color:r}}),{align:c="inherit",className:l,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:h=!1,variant:b="body1",variantMapping:m=bl,...p}=a,g={...a,align:c,color:r,className:l,component:u,gutterBottom:d,noWrap:f,paragraph:h,variant:b,variantMapping:m},T=u||(h?"p":m[b]||bl[b])||"span",C=Tv(g);return y.jsx(Cv,{as:T,ref:n,className:ae(C.root,l),...p,ownerState:g,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...p.style}})});process.env.NODE_ENV!=="production"&&(Et.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph: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(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});var ct="top",Tt="bottom",Ct="right",lt="left",Aa="auto",lo=[ct,Tt,Ct,lt],ar="start",Hr="end",Ov="clippingParents",pf="viewport",Tr="popper",Rv="reference",xl=lo.reduce(function(e,t){return e.concat([t+"-"+ar,t+"-"+Hr])},[]),hf=[].concat(lo,[Aa]).reduce(function(e,t){return e.concat([t,t+"-"+ar,t+"-"+Hr])},[]),kv="beforeRead",Pv="read",Nv="afterRead",jv="beforeMain",Av="main",Iv="afterMain",_v="beforeWrite",$v="write",Mv="afterWrite",Dv=[kv,Pv,Nv,jv,Av,Iv,_v,$v,Mv];function Wt(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function In(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function wt(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ia(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Lv(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!wt(i)||!Wt(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function Bv(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(l,u){return l[u]="",l},{});!wt(o)||!Wt(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Fv={name:"applyStyles",enabled:!0,phase:"write",fn:Lv,effect:Bv,requires:["computeStyles"]};function Ut(e){return e.split("-")[0]}var Rn=Math.max,ci=Math.min,cr=Math.round;function Gs(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function mf(){return!/^((?!chrome|android).)*safari/i.test(Gs())}function lr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&wt(e)&&(o=e.offsetWidth>0&&cr(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&cr(r.height)/e.offsetHeight||1);var a=In(e)?gt(e):window,c=a.visualViewport,l=!mf()&&n,u=(r.left+(l&&c?c.offsetLeft:0))/o,d=(r.top+(l&&c?c.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function _a(e){var t=lr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function gf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ia(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zt(e){return gt(e).getComputedStyle(e)}function Vv(e){return["table","td","th"].indexOf(Wt(e))>=0}function mn(e){return((In(e)?e.ownerDocument:e.document)||window.document).documentElement}function Li(e){return Wt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ia(e)?e.host:null)||mn(e)}function El(e){return!wt(e)||Zt(e).position==="fixed"?null:e.offsetParent}function Uv(e){var t=/firefox/i.test(Gs()),n=/Trident/i.test(Gs());if(n&&wt(e)){var r=Zt(e);if(r.position==="fixed")return null}var o=Li(e);for(Ia(o)&&(o=o.host);wt(o)&&["html","body"].indexOf(Wt(o))<0;){var i=Zt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function uo(e){for(var t=gt(e),n=El(e);n&&Vv(n)&&Zt(n).position==="static";)n=El(n);return n&&(Wt(n)==="html"||Wt(n)==="body"&&Zt(n).position==="static")?t:n||Uv(e)||t}function $a(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dr(e,t,n){return Rn(e,ci(t,n))}function zv(e,t,n){var r=Dr(e,t,n);return r>n?n:r}function yf(){return{top:0,right:0,bottom:0,left:0}}function vf(e){return Object.assign({},yf(),e)}function bf(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Wv=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,vf(typeof t!="number"?t:bf(t,lo))};function Hv(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Ut(n.placement),l=$a(c),u=[lt,Ct].indexOf(c)>=0,d=u?"height":"width";if(!(!i||!a)){var f=Wv(o.padding,n),h=_a(i),b=l==="y"?ct:lt,m=l==="y"?Tt:Ct,p=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],g=a[l]-n.rects.reference[l],T=uo(i),C=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,w=p/2-g/2,E=f[b],S=C-h[d]-f[m],O=C/2-h[d]/2+w,R=Dr(E,O,S),N=l;n.modifiersData[r]=(t={},t[N]=R,t.centerOffset=R-O,t)}}function qv(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||gf(t.elements.popper,o)&&(t.elements.arrow=o))}const Gv={name:"arrow",enabled:!0,phase:"main",fn:Hv,effect:qv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ur(e){return e.split("-")[1]}var Yv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kv(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:cr(n*o)/o||0,y:cr(r*o)/o||0}}function Sl(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,b=h===void 0?0:h,m=a.y,p=m===void 0?0:m,g=typeof d=="function"?d({x:b,y:p}):{x:b,y:p};b=g.x,p=g.y;var T=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),w=lt,E=ct,S=window;if(u){var O=uo(n),R="clientHeight",N="clientWidth";if(O===gt(n)&&(O=mn(n),Zt(O).position!=="static"&&c==="absolute"&&(R="scrollHeight",N="scrollWidth")),O=O,o===ct||(o===lt||o===Ct)&&i===Hr){E=Tt;var j=f&&O===S&&S.visualViewport?S.visualViewport.height:O[R];p-=j-r.height,p*=l?1:-1}if(o===lt||(o===ct||o===Tt)&&i===Hr){w=Ct;var x=f&&O===S&&S.visualViewport?S.visualViewport.width:O[N];b-=x-r.width,b*=l?1:-1}}var P=Object.assign({position:c},u&&Yv),L=d===!0?Kv({x:b,y:p},gt(n)):{x:b,y:p};if(b=L.x,p=L.y,l){var $;return Object.assign({},P,($={},$[E]=C?"0":"",$[w]=T?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+b+"px, "+p+"px)":"translate3d("+b+"px, "+p+"px, 0)",$))}return Object.assign({},P,(t={},t[E]=C?p+"px":"",t[w]=T?b+"px":"",t.transform="",t))}function Xv(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c,u={placement:Ut(t.placement),variation:ur(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Sl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Jv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xv,data:{}};var No={passive:!0};function Zv(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,l=gt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,No)}),c&&l.addEventListener("resize",n.update,No),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,No)}),c&&l.removeEventListener("resize",n.update,No)}}const Qv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zv,data:{}};var eb={left:"right",right:"left",bottom:"top",top:"bottom"};function Ho(e){return e.replace(/left|right|bottom|top/g,function(t){return eb[t]})}var tb={start:"end",end:"start"};function wl(e){return e.replace(/start|end/g,function(t){return tb[t]})}function Ma(e){var t=gt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Da(e){return lr(mn(e)).left+Ma(e).scrollLeft}function nb(e,t){var n=gt(e),r=mn(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var u=mf();(u||!u&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+Da(e),y:l}}function rb(e){var t,n=mn(e),r=Ma(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Rn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Rn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Da(e),l=-r.scrollTop;return Zt(o||n).direction==="rtl"&&(c+=Rn(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}function La(e){var t=Zt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function xf(e){return["html","body","#document"].indexOf(Wt(e))>=0?e.ownerDocument.body:wt(e)&&La(e)?e:xf(Li(e))}function Lr(e,t){var n;t===void 0&&(t=[]);var r=xf(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=gt(r),a=o?[i].concat(i.visualViewport||[],La(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(Lr(Li(a)))}function Ys(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ob(e,t){var n=lr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Tl(e,t,n){return t===pf?Ys(nb(e,n)):In(t)?ob(t,n):Ys(rb(mn(e)))}function ib(e){var t=Lr(Li(e)),n=["absolute","fixed"].indexOf(Zt(e).position)>=0,r=n&&wt(e)?uo(e):e;return In(r)?t.filter(function(o){return In(o)&&gf(o,r)&&Wt(o)!=="body"}):[]}function sb(e,t,n,r){var o=t==="clippingParents"?ib(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(l,u){var d=Tl(e,u,r);return l.top=Rn(d.top,l.top),l.right=ci(d.right,l.right),l.bottom=ci(d.bottom,l.bottom),l.left=Rn(d.left,l.left),l},Tl(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Ef(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ut(r):null,i=r?ur(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(o){case ct:l={x:a,y:t.y-n.height};break;case Tt:l={x:a,y:t.y+t.height};break;case Ct:l={x:t.x+t.width,y:c};break;case lt:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var u=o?$a(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case ar:l[u]=l[u]-(t[d]/2-n[d]/2);break;case Hr:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function qr(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,l=c===void 0?Ov:c,u=n.rootBoundary,d=u===void 0?pf:u,f=n.elementContext,h=f===void 0?Tr:f,b=n.altBoundary,m=b===void 0?!1:b,p=n.padding,g=p===void 0?0:p,T=vf(typeof g!="number"?g:bf(g,lo)),C=h===Tr?Rv:Tr,w=e.rects.popper,E=e.elements[m?C:h],S=sb(In(E)?E:E.contextElement||mn(e.elements.popper),l,d,a),O=lr(e.elements.reference),R=Ef({reference:O,element:w,strategy:"absolute",placement:o}),N=Ys(Object.assign({},w,R)),j=h===Tr?N:O,x={top:S.top-j.top+T.top,bottom:j.bottom-S.bottom+T.bottom,left:S.left-j.left+T.left,right:j.right-S.right+T.right},P=e.modifiersData.offset;if(h===Tr&&P){var L=P[o];Object.keys(x).forEach(function($){var U=[Ct,Tt].indexOf($)>=0?1:-1,M=[ct,Tt].indexOf($)>=0?"y":"x";x[$]+=L[M]*U})}return x}function ab(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?hf:l,d=ur(r),f=d?c?xl:xl.filter(function(m){return ur(m)===d}):lo,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var b=h.reduce(function(m,p){return m[p]=qr(e,{placement:p,boundary:o,rootBoundary:i,padding:a})[Ut(p)],m},{});return Object.keys(b).sort(function(m,p){return b[m]-b[p]})}function cb(e){if(Ut(e)===Aa)return[];var t=Ho(e);return[wl(e),t,wl(t)]}function lb(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,m=b===void 0?!0:b,p=n.allowedAutoPlacements,g=t.options.placement,T=Ut(g),C=T===g,w=l||(C||!m?[Ho(g)]:cb(g)),E=[g].concat(w).reduce(function(G,J){return G.concat(Ut(J)===Aa?ab(t,{placement:J,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:p}):J)},[]),S=t.rects.reference,O=t.rects.popper,R=new Map,N=!0,j=E[0],x=0;x<E.length;x++){var P=E[x],L=Ut(P),$=ur(P)===ar,U=[ct,Tt].indexOf(L)>=0,M=U?"width":"height",D=qr(t,{placement:P,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),H=U?$?Ct:lt:$?Tt:ct;S[M]>O[M]&&(H=Ho(H));var q=Ho(H),Z=[];if(i&&Z.push(D[L]<=0),c&&Z.push(D[H]<=0,D[q]<=0),Z.every(function(G){return G})){j=P,N=!1;break}R.set(P,Z)}if(N)for(var A=m?3:1,z=function(J){var V=E.find(function(Q){var ee=R.get(Q);if(ee)return ee.slice(0,J).every(function(oe){return oe})});if(V)return j=V,"break"},te=A;te>0;te--){var ne=z(te);if(ne==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const ub={name:"flip",enabled:!0,phase:"main",fn:lb,requiresIfExists:["offset"],data:{_skip:!1}};function Cl(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ol(e){return[ct,Ct,Tt,lt].some(function(t){return e[t]>=0})}function db(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=qr(t,{elementContext:"reference"}),c=qr(t,{altBoundary:!0}),l=Cl(a,r),u=Cl(c,o,i),d=Ol(l),f=Ol(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const fb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:db};function pb(e,t,n){var r=Ut(e),o=[lt,ct].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[lt,Ct].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function hb(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=hf.reduce(function(d,f){return d[f]=pb(f,t.rects,i),d},{}),c=a[t.placement],l=c.x,u=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const mb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hb};function gb(e){var t=e.state,n=e.name;t.modifiersData[n]=Ef({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const yb={name:"popperOffsets",enabled:!0,phase:"read",fn:gb,data:{}};function vb(e){return e==="x"?"y":"x"}function bb(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,b=h===void 0?!0:h,m=n.tetherOffset,p=m===void 0?0:m,g=qr(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),T=Ut(t.placement),C=ur(t.placement),w=!C,E=$a(T),S=vb(E),O=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,j=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,x=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(O){if(i){var $,U=E==="y"?ct:lt,M=E==="y"?Tt:Ct,D=E==="y"?"height":"width",H=O[E],q=H+g[U],Z=H-g[M],A=b?-N[D]/2:0,z=C===ar?R[D]:N[D],te=C===ar?-N[D]:-R[D],ne=t.elements.arrow,G=b&&ne?_a(ne):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yf(),V=J[U],Q=J[M],ee=Dr(0,R[D],G[D]),oe=w?R[D]/2-A-ee-V-x.mainAxis:z-ee-V-x.mainAxis,K=w?-R[D]/2+A+ee+Q+x.mainAxis:te+ee+Q+x.mainAxis,ie=t.elements.arrow&&uo(t.elements.arrow),B=ie?E==="y"?ie.clientTop||0:ie.clientLeft||0:0,he=($=P==null?void 0:P[E])!=null?$:0,X=H+oe-he-B,ve=H+K-he,De=Dr(b?ci(q,X):q,H,b?Rn(Z,ve):Z);O[E]=De,L[E]=De-H}if(c){var ge,Le=E==="x"?ct:lt,Be=E==="x"?Tt:Ct,Je=O[S],$e=S==="y"?"height":"width",se=Je+g[Le],$t=Je-g[Be],Mt=[ct,lt].indexOf(T)!==-1,Dt=(ge=P==null?void 0:P[S])!=null?ge:0,Lt=Mt?se:Je-R[$e]-N[$e]-Dt+x.altAxis,je=Mt?Je+R[$e]+N[$e]-Dt-x.altAxis:$t,Ye=b&&Mt?zv(Lt,Je,je):Dr(b?Lt:se,Je,b?je:$t);O[S]=Ye,L[S]=Ye-Je}t.modifiersData[r]=L}}const xb={name:"preventOverflow",enabled:!0,phase:"main",fn:bb,requiresIfExists:["offset"]};function Eb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Sb(e){return e===gt(e)||!wt(e)?Ma(e):Eb(e)}function wb(e){var t=e.getBoundingClientRect(),n=cr(t.width)/e.offsetWidth||1,r=cr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Tb(e,t,n){n===void 0&&(n=!1);var r=wt(t),o=wt(t)&&wb(t),i=mn(t),a=lr(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Wt(t)!=="body"||La(i))&&(c=Sb(t)),wt(t)?(l=lr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Da(i))),{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function Cb(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Ob(e){var t=Cb(e);return Dv.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Rb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kb(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Rl={placement:"bottom",modifiers:[],strategy:"absolute"};function kl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Pb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Rl:o;return function(c,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rl,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},f=[],h=!1,b={state:d,setOptions:function(T){var C=typeof T=="function"?T(d.options):T;p(),d.options=Object.assign({},i,d.options,C),d.scrollParents={reference:In(c)?Lr(c):c.contextElement?Lr(c.contextElement):[],popper:Lr(l)};var w=Ob(kb([].concat(r,d.options.modifiers)));return d.orderedModifiers=w.filter(function(E){return E.enabled}),m(),b.update()},forceUpdate:function(){if(!h){var T=d.elements,C=T.reference,w=T.popper;if(kl(C,w)){d.rects={reference:Tb(C,uo(w),d.options.strategy==="fixed"),popper:_a(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(x){return d.modifiersData[x.name]=Object.assign({},x.data)});for(var E=0;E<d.orderedModifiers.length;E++){if(d.reset===!0){d.reset=!1,E=-1;continue}var S=d.orderedModifiers[E],O=S.fn,R=S.options,N=R===void 0?{}:R,j=S.name;typeof O=="function"&&(d=O({state:d,options:N,name:j,instance:b})||d)}}}},update:Rb(function(){return new Promise(function(g){b.forceUpdate(),g(d)})}),destroy:function(){p(),h=!0}};if(!kl(c,l))return b;b.setOptions(u).then(function(g){!h&&u.onFirstUpdate&&u.onFirstUpdate(g)});function m(){d.orderedModifiers.forEach(function(g){var T=g.name,C=g.options,w=C===void 0?{}:C,E=g.effect;if(typeof E=="function"){var S=E({state:d,name:T,instance:b,options:w}),O=function(){};f.push(S||O)}})}function p(){f.forEach(function(g){return g()}),f=[]}return b}}var Nb=[Qv,yb,Jv,Fv,mb,ub,xb,Gv,fb],jb=Pb({defaultModifiers:Nb});function Ab(e){return typeof e=="function"?e():e}const Gr=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=v.useState(null),l=et(v.isValidElement(r)?hr(r):null,n);if(An(()=>{i||c(Ab(o)||document.body)},[o,i]),An(()=>{if(a&&!i)return Bs(n,a),()=>{Bs(n,null)}},[n,a,i]),i){if(v.isValidElement(r)){const u={ref:l};return v.cloneElement(r,u)}return r}return a&&Eh.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Gr.propTypes={children:s.node,container:s.oneOfType([Jt,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(Gr.propTypes=Ai(Gr.propTypes));function Ib(e){return Te("MuiPopper",e)}Oe("MuiPopper",["root"]);function _b(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function li(e){return typeof e=="function"?e():e}function Bi(e){return e.nodeType!==void 0}function $b(e){return!Bi(e)}const Mb=e=>{const{classes:t}=e;return Ne({root:["root"]},Ib,t)},Db={},Lb=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,slotProps:h={},slots:b={},TransitionProps:m,ownerState:p,...g}=t,T=v.useRef(null),C=et(T,n),w=v.useRef(null),E=et(w,f),S=v.useRef(E);An(()=>{S.current=E},[E]),v.useImperativeHandle(f,()=>w.current,[]);const O=_b(u,i),[R,N]=v.useState(O),[j,x]=v.useState(li(r));v.useEffect(()=>{w.current&&w.current.forceUpdate()}),v.useEffect(()=>{r&&x(li(r))},[r]),An(()=>{if(!j||!l)return;const M=q=>{N(q.placement)};if(process.env.NODE_ENV!=="production"&&j&&Bi(j)&&j.nodeType===1){const q=j.getBoundingClientRect();process.env.NODE_ENV!=="test"&&q.top===0&&q.left===0&&q.right===0&&q.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
230
|
-
`))}let
|
|
231
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"
|
|
232
|
-
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Jt,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Ii,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const Bb=ce(Sf,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ba=v.forwardRef(function(t,n){const r=Ca(),o=Ce({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:c,componentsProps:l,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:b,placement:m,popperOptions:p,popperRef:g,transition:T,slots:C,slotProps:w,...E}=o,S=(C==null?void 0:C.root)??(c==null?void 0:c.Root),O={anchorEl:i,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:b,placement:m,popperOptions:p,popperRef:g,transition:T,...E};return y.jsx(Bb,{as:a,direction:r?"rtl":"ltr",slots:{root:S},slotProps:w??l,...O,ref:n})});process.env.NODE_ENV!=="production"&&(Ba.propTypes={anchorEl:s.oneOfType([Jt,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Jt,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Ii,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});function Fb(e){return Te("MuiListSubheader",e)}Oe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Vb=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${de(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ne(a,Fb,t)},Ub=ce("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Ve(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),ui=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:c=!1,disableSticky:l=!1,inset:u=!1,...d}=r,f={...r,color:i,component:a,disableGutters:c,disableSticky:l,inset:u},h=Vb(f);return y.jsx(Ub,{as:a,className:ae(h.root,o),ref:n,ownerState:f,...d})});ui&&(ui.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(ui.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOf(["default","inherit","primary"]),component:s.elementType,disableGutters:s.bool,disableSticky:s.bool,inset:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Ks(e){return typeof e=="string"}const zb=Ge(y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Wb(e){return Te("MuiAvatar",e)}Oe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Hb=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ne({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Wb,t)},qb=ce("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ve(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),Gb=ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Yb=ce(zb,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Kb({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=v.useState(!1);return v.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&i("loaded")},c.onerror=()=>{a&&i("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Fa=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:c="div",slots:l={},slotProps:u={},imgProps:d,sizes:f,src:h,srcSet:b,variant:m="circular",...p}=r;let g=null;const T={...r,component:c,variant:m},C=Kb({...d,...typeof u.img=="function"?u.img(T):u.img,src:h,srcSet:b}),w=h||b,E=w&&C!=="error";T.colorDefault=!E,delete T.ownerState;const S=Hb(T),[O,R]=ht("img",{className:S.img,elementType:Gb,externalForwardedProps:{slots:l,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:o,src:h,srcSet:b,sizes:f},ownerState:T});return E?g=y.jsx(O,{...R}):i||i===0?g=i:w&&o?g=o[0]:g=y.jsx(Yb,{ownerState:T,className:S.fallback}),y.jsx(qb,{as:c,className:ae(S.root,a),ref:n,...p,ownerState:T,children:g})});process.env.NODE_ENV!=="production"&&(Fa.propTypes={alt:s.string,children:s.node,classes:s.object,className:s.string,component:s.elementType,imgProps:s.object,sizes:s.string,slotProps:s.shape({img:s.oneOfType([s.func,s.object])}),slots:s.shape({img:s.elementType}),src:s.string,srcSet:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rounded","square"]),s.string])});function Xb(e){return Te("MuiButton",e)}const Yn=Oe("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"]),wf=v.createContext({});process.env.NODE_ENV!=="production"&&(wf.displayName="ButtonGroupContext");const Tf=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(Tf.displayName="ButtonGroupButtonContext");const Jb=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,c={root:["root",i,`${i}${de(t)}`,`size${de(o)}`,`${i}Size${de(o)}`,`color${de(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${de(o)}`],endIcon:["icon","endIcon",`iconSize${de(o)}`]},l=Ne(c,Xb,a);return{...a,...l}},Cf=[{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}}}],Zb=ce(co,{shouldForwardProp:e=>Mi(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${de(n.color)}`],t[`size${de(n.size)}`],t[`${n.variant}Size${de(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Ve(({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"},[`&.${Yn.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]},[`&.${Yn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Yn.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)",[`&.${Yn.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(sr()).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)`:Ue(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})`:Ue(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})`:Ue(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})`:Ue(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(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"},[`&.${Yn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),Qb=ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${de(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Cf]}),e0=ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${de(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Cf]}),Va=v.forwardRef(function(t,n){const r=v.useContext(wf),o=v.useContext(Tf),i=Vr(r,t),a=Ce({props:i,name:"MuiButton"}),{children:c,color:l="primary",component:u="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:m,focusVisibleClassName:p,fullWidth:g=!1,size:T="medium",startIcon:C,type:w,variant:E="text",...S}=a,O={...a,color:l,component:u,disabled:f,disableElevation:h,disableFocusRipple:b,fullWidth:g,size:T,type:w,variant:E},R=Jb(O),N=C&&y.jsx(Qb,{className:R.startIcon,ownerState:O,children:C}),j=m&&y.jsx(e0,{className:R.endIcon,ownerState:O,children:m}),x=o||"";return y.jsxs(Zb,{ownerState:O,className:ae(r.className,R.root,d,x),component:u,disabled:f,focusRipple:!b,focusVisibleClassName:ae(R.focusVisible,p),ref:n,type:w,...S,classes:R,children:[N,c,j]})});process.env.NODE_ENV!=="production"&&(Va.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});const Ua=e=>e.scrollTop;function dn(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 Xs(e){return`scale(${e}, ${e**2})`}const t0={entering:{opacity:1,transform:Xs(1)},entered:{opacity:1,transform:"none"}},ps=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Yr=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:b,style:m,timeout:p="auto",TransitionComponent:g=Rt,...T}=t,C=Tn(),w=v.useRef(),E=hn(),S=v.useRef(null),O=et(S,hr(i),n),R=M=>D=>{if(M){const H=S.current;D===void 0?M(H):M(H,D)}},N=R(d),j=R((M,D)=>{Ua(M);const{duration:H,delay:q,easing:Z}=dn({style:m,timeout:p,easing:a},{mode:"enter"});let A;p==="auto"?(A=E.transitions.getAutoHeightDuration(M.clientHeight),w.current=A):A=H,M.style.transition=[E.transitions.create("opacity",{duration:A,delay:q}),E.transitions.create("transform",{duration:ps?A:A*.666,delay:q,easing:Z})].join(","),l&&l(M,D)}),x=R(u),P=R(b),L=R(M=>{const{duration:D,delay:H,easing:q}=dn({style:m,timeout:p,easing:a},{mode:"exit"});let Z;p==="auto"?(Z=E.transitions.getAutoHeightDuration(M.clientHeight),w.current=Z):Z=D,M.style.transition=[E.transitions.create("opacity",{duration:Z,delay:H}),E.transitions.create("transform",{duration:ps?Z:Z*.666,delay:ps?H:H||Z*.333,easing:q})].join(","),M.style.opacity=0,M.style.transform=Xs(.75),f&&f(M)}),$=R(h),U=M=>{p==="auto"&&C.start(w.current||0,M),r&&r(S.current,M)};return y.jsx(g,{appear:o,in:c,nodeRef:S,onEnter:j,onEntered:x,onEntering:N,onExit:L,onExited:$,onExiting:P,addEndListener:U,timeout:p==="auto"?null:p,...T,children:(M,{ownerState:D,...H})=>v.cloneElement(i,{style:{opacity:0,transform:Xs(.75),visibility:M==="exited"&&!c?"hidden":void 0,...t0[M],...m,...i.props.style},ref:O,...H})})});process.env.NODE_ENV!=="production"&&(Yr.propTypes={addEndListener:s.func,appear:s.bool,children:Dn.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})])});Yr&&(Yr.muiSupportAuto=!0);function n0(e){return Te("MuiTooltip",e)}const qe=Oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function r0(e){return Math.round(e*1e5)/1e5}const o0=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${de(i.split("-")[0])}`],arrow:["arrow"]};return Ne(a,n0,t)},i0=ce(Ba,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${qe.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qe.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),s0=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${de(n.placement.split("-")[0])}`]]}})(Ve(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ue(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${qe.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${qe.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${r0(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),a0=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Ve(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ue(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let jo=!1;const Pl=new _i;let Cr={x:0,y:0};function Ao(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const fo=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:c={},componentsProps:l={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:b=!1,enterDelay:m=100,enterNextDelay:p=0,enterTouchDelay:g=700,followCursor:T=!1,id:C,leaveDelay:w=0,leaveTouchDelay:E=1500,onClose:S,onOpen:O,open:R,placement:N="bottom",PopperComponent:j,PopperProps:x={},slotProps:P={},slots:L={},title:$,TransitionComponent:U,TransitionProps:M,...D}=r,H=v.isValidElement(i)?i:y.jsx("span",{children:i}),q=hn(),Z=Ca(),[A,z]=v.useState(),[te,ne]=v.useState(null),G=v.useRef(!1),J=h||T,V=Tn(),Q=Tn(),ee=Tn(),oe=Tn(),[K,ie]=mg({controlled:R,default:!1,name:"Tooltip",state:"open"});let B=K;if(process.env.NODE_ENV!=="production"){const{current:ue}=v.useRef(R!==void 0);v.useEffect(()=>{A&&A.disabled&&!ue&&$!==""&&A.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
233
|
-
`))},[$,A,ue])}const he=
|
|
234
|
-
`))},[A]));const tt={};b||(Me.onTouchStart=Mt,Me.onTouchEnd=Dt),f||(Me.onMouseOver=
|
|
235
|
-
`));const Ht={...r,isRtl:Z,arrow:o,disableInteractive:J,placement:N,PopperComponentProp:j,touch:G.current},ft=typeof P.popper=="function"?P.popper(Ht):P.popper,Xi=v.useMemo(()=>{var it,Oo;let ue=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(it=x.popperOptions)!=null&&it.modifiers&&(ue=ue.concat(x.popperOptions.modifiers)),(Oo=ft==null?void 0:ft.popperOptions)!=null&&Oo.modifiers&&(ue=ue.concat(ft.popperOptions.modifiers)),{...x.popperOptions,...ft==null?void 0:ft.popperOptions,modifiers:ue}},[te,x.popperOptions,ft==null?void 0:ft.popperOptions]),vr=o0(Ht),Ji=typeof P.transition=="function"?P.transition(Ht):P.transition,en={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...L},slotProps:{arrow:P.arrow??l.arrow,popper:{...x,...ft??l.popper},tooltip:P.tooltip??l.tooltip,transition:{...M,...Ji??l.transition}}},[wo,tn]=ht("popper",{elementType:i0,externalForwardedProps:en,ownerState:Ht,className:ae(vr.popper,x==null?void 0:x.className)}),[br,xr]=ht("transition",{elementType:Yr,externalForwardedProps:en,ownerState:Ht}),[To,Zi]=ht("tooltip",{elementType:s0,className:vr.tooltip,externalForwardedProps:en,ownerState:Ht}),[Co,Qi]=ht("arrow",{elementType:a0,className:vr.arrow,externalForwardedProps:en,ownerState:Ht,ref:ne});return y.jsxs(v.Fragment,{children:[v.cloneElement(H,Me),y.jsx(wo,{as:j??Ba,placement:N,anchorEl:T?{getBoundingClientRect:()=>({top:Cr.y,left:Cr.x,right:Cr.x,bottom:Cr.y,width:0,height:0})}:A,popperRef:je,open:A?B:!1,id:he,transition:!0,...tt,...tn,popperOptions:Xi,children:({TransitionProps:ue})=>y.jsx(br,{timeout:q.transitions.duration.shorter,...ue,...xr,children:y.jsxs(To,{...Zi,children:[$,o?y.jsx(Co,{...Qi}):null]})})})]})});process.env.NODE_ENV!=="production"&&(fo.propTypes={arrow:s.bool,children:Dn.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.oneOfType([s.func,s.object]),popper:s.oneOfType([s.func,s.object]),tooltip:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});var c0=function(e,t,n,r,o,i,a,c){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},l0=c0;const Kr=pa(l0),u0=v.createContext(null);function d0(e){const{children:t,unmountAfter:n=1e3}=e,[r,o]=v.useState([]),i=v.useId(),a=v.useRef(0),c=v.useCallback(function(h,b,m={}){const{onClose:p=async()=>{}}=m;let g;const T=new Promise(E=>{g=E});Kr(g,"resolve not set");const C=`${i}-${a.current}`;a.current+=1;const w={key:C,open:!0,promise:T,Component:h,payload:b,onClose:p,resolve:g};return o(E=>[...E,w]),T},[i]),l=v.useCallback(function(h){o(b=>b.map(m=>m.promise===h?{...m,open:!1}:m)),setTimeout(()=>{o(b=>b.filter(m=>m.promise!==h))},n)},[n]),u=v.useCallback(async function(h,b){const m=r.find(p=>p.promise===h);return Kr(m,"dialog not found"),await m.onClose(b),m.resolve(b),l(h),h},[r,l]),d=v.useMemo(()=>({open:c,close:u}),[c,u]);return y.jsxs(u0.Provider,{value:d,children:[t,r.map(({key:f,open:h,Component:b,payload:m,promise:p})=>y.jsx(b,{payload:m,open:h,onClose:async g=>{await u(p,g)}},f))]})}const za=v.createContext(null),Wa=v.createContext([]),Ha=v.createContext({paletteMode:"light",setPaletteMode:()=>{},isDualTheme:!1}),Fi=v.createContext(null),Of=v.createContext(void 0),Js=typeof of({})=="function",f0=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),p0=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Rf=(e,t=!1)=>{var i,a;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([c,l])=>{var d,f;const u=e.getColorSchemeSelector(c);u.startsWith("@")?n[u]={":root":{colorScheme:(d=l.palette)==null?void 0:d.mode}}:n[u.replace(/\s*&/,"")]={colorScheme:(f=l.palette)==null?void 0:f.mode}});let r={html:f0(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...p0(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(a=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:a.styleOverrides;return o&&(r=[r,o]),r},qo="mui-ecs",h0=e=>{const t=Rf(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${qo})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var a,c;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${qo}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${qo}))`]:{colorScheme:(c=o.palette)==null?void 0:c.mode}}}),t},m0=of(Js?({theme:e,enableColorScheme:t})=>Rf(e,t):({theme:e})=>h0(e));function qa(e){const t=Ce({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return y.jsxs(v.Fragment,{children:[Js&&y.jsx(m0,{enableColorScheme:r}),!Js&&!r&&y.jsx("span",{className:qo,style:{display:"none"}}),n]})}process.env.NODE_ENV!=="production"&&(qa.propTypes={children:s.node,enableColorScheme:s.bool});const g0={parse:e=>e,stringify:e=>e},Xr=new Map;function y0(e,t){let n=Xr.get(e);n||(n=new Set,Xr.set(e,n)),n.add(t)}function v0(e,t){const n=Xr.get(e);n&&(n.delete(t),n.size===0&&Xr.delete(e))}function kf(e){const t=Xr.get(e);t&&t.forEach(n=>n())}if(typeof window<"u"){const e=window.localStorage.setItem;window.localStorage.setItem=function(n,r){const o=e.call(this,n,r);return kf(n),o}}function b0(e,t,n){if(!t)return()=>{};const r=o=>{o.storageArea===e&&o.key===t&&n()};return window.addEventListener("storage",r),y0(t,n),()=>{window.removeEventListener("storage",r),v0(t,n)}}function x0(e,t){if(!t)return null;try{return e.getItem(t)}catch{return null}}function E0(e,t,n){if(t){try{n===null?e.removeItem(t):e.setItem(t,String(n))}catch{return}kf(t)}}const S0=[null,()=>{}];function w0(){return S0}function Nl(e,t){return t===null?null:e.stringify(t)}function T0(e,t){return t===null?null:e.parse(t)}const C0=()=>null;function O0(e,t,n=null,r){const o=(r==null?void 0:r.codec)??g0,[i]=v.useState(n),a=v.useMemo(()=>Nl(o,i),[o,i]),c=v.useCallback(m=>b0(e,t,m),[e,t]),l=v.useCallback(()=>x0(e,t)??a,[e,a,t]),u=v.useSyncExternalStore(c,l,C0),d=v.useMemo(()=>T0(o,u),[o,u]),f=v.useCallback(m=>{const p=m instanceof Function?m(d):m,g=Nl(o,p);E0(e,t,g)},[e,o,d,t]),[h,b]=v.useState(i);return t?[d,f]:[h,b]}const R0=(...e)=>O0(window.localStorage,...e),k0=typeof window>"u"?w0:R0;var jl,Al,Il;const P0="data-toolpad-color-scheme",_l="toolpad-color-scheme",Zs="toolpad-mode";function Pf(e){return Y.useMediaQuery("(prefers-color-scheme: dark)",e&&{matchMedia:e.matchMedia})?"dark":"light"}function Ga(e){return"vars"in e}function N0(e){const{children:t,theme:n,window:r}=e;Kr(!Ga(n),"This provider only accepts legacy themes.");const o="light"in n||"dark"in n,i=Pf(r),[a,c]=k0(Zs,"system"),l=!a||a==="system"?i:a,u=v.useMemo(()=>o?n[l==="dark"?"dark":"light"]??n[l==="dark"?"light":"dark"]:n,[o,l,n]),d=v.useMemo(()=>({paletteMode:l,setPaletteMode:c,isDualTheme:o}),[o,l,c]);return y.jsx(tf,{theme:u,children:y.jsxs(Ha.Provider,{value:d,children:[jl||(jl=y.jsx(qa,{enableColorScheme:!0})),t]})})}function j0(e){const{children:t,window:n}=e,r=Pf(n),{mode:o,setMode:i,allColorSchemes:a}=Oy(),c=v.useMemo(()=>({paletteMode:!o||o==="system"?r:o,setPaletteMode:i,isDualTheme:a.length>1}),[a,o,r,i]);return y.jsx(Ha.Provider,{value:c,children:t})}function A0(e){const{children:t,theme:n,window:r}=e;return Kr(Ga(n),"This provider only accepts CSS vars themes."),y.jsxs(tf,{theme:n,documentNode:r==null?void 0:r.document,colorSchemeNode:r==null?void 0:r.document.documentElement,disableNestedContext:!0,colorSchemeStorageKey:_l,modeStorageKey:Zs,children:[Al||(Al=y.jsx(Ty,{attribute:P0,colorSchemeStorageKey:_l,modeStorageKey:Zs})),y.jsxs(j0,{window:r,children:[Il||(Il=y.jsx(qa,{enableColorScheme:!0})),t]})]})}function I0(e){const{children:t,theme:n,...r}=e;return Ga(n)?y.jsx(A0,{theme:n,...r,children:t}):y.jsx(N0,{theme:n,...r,children:t})}const Vi=v.createContext(null),Ya=v.createContext(null);function _0(){return $i({cssVariables:{colorSchemeSelector:"data-toolpad-color-scheme"},colorSchemes:{dark:!0}})}function Nf(e){const{children:t,theme:n=_0(),branding:r=null,navigation:o=[],router:i=null,authentication:a=null,session:c=null,window:l}=e;return y.jsx(Of.Provider,{value:l,children:y.jsx(Vi.Provider,{value:a,children:y.jsx(Ya.Provider,{value:c,children:y.jsx(Fi.Provider,{value:i,children:y.jsx(I0,{theme:n,window:l,children:y.jsx(Hy,{children:y.jsx(d0,{children:y.jsx(za.Provider,{value:r,children:y.jsx(Wa.Provider,{value:o,children:t})})})})})})})})})}process.env.NODE_ENV!=="production"&&(Nf.propTypes={authentication:s.shape({signIn:s.func.isRequired,signOut:s.func.isRequired}),branding:s.shape({logo:s.node,title:s.string}),children:s.node,navigation:s.arrayOf(s.oneOfType([s.shape({action:s.node,children:s.arrayOf(s.oneOfType([s.object,s.shape({kind:s.oneOf(["header"]).isRequired,title:s.string.isRequired}),s.shape({kind:s.oneOf(["divider"]).isRequired})]).isRequired),icon:s.node,kind:s.oneOf(["page"]),pattern:s.string,segment:s.string,title:s.string}),s.shape({kind:s.oneOf(["header"]).isRequired,title:s.string.isRequired}),s.shape({kind:s.oneOf(["divider"]).isRequired})]).isRequired),router:s.shape({navigate:s.func.isRequired,pathname:s.string.isRequired,searchParams:s.instanceOf(URLSearchParams).isRequired}),session:s.shape({user:s.shape({email:s.string,id:s.string,image:s.string,name:s.string})}),theme:s.object,window:s.object});function $0(e){return Te("MuiAppBar",e)}Oe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const M0=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${de(t)}`,`position${de(n)}`]};return Ne(o,$0,r)},$l=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,D0=ce(Di,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${de(n.position)}`],t[`color${de(n.color)}`]]}})(Ve(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(sr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?$l(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?$l(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),jf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:c="fixed",...l}=r,u={...r,color:i,position:c,enableColorOnDark:a},d=M0(u);return y.jsx(D0,{square:!0,component:"header",ownerState:u,elevation:4,className:ae(d.root,o,c==="fixed"&&"mui-fixed"),ref:n,...l})});process.env.NODE_ENV!=="production"&&(jf.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","inherit","primary","secondary","transparent","error","info","success","warning"]),s.string]),enableColorOnDark:s.bool,position:s.oneOf(["absolute","fixed","relative","static","sticky"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const L0=Oe("MuiBox",["root"]),B0=$i(),nn=yd({themeId:Nt,defaultTheme:B0,defaultClassName:L0.root,generateClassName:ba.generate});process.env.NODE_ENV!=="production"&&(nn.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function F0(e){const t=At(e);return t.body===e?un(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Br(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ml(e){return parseInt(un(e).getComputedStyle(e).paddingRight,10)||0}function V0(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 Dl(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const c=!i.includes(a),l=!V0(a);c&&l&&Br(a,o)})}function hs(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function U0(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(F0(r)){const a=vg(un(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ml(r)+a}px`;const c=At(r).querySelectorAll(".mui-fixed");[].forEach.call(c,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Ml(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=At(r).body;else{const a=r.parentElement,c=un(r);i=(a==null?void 0:a.nodeName)==="HTML"&&c.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:c})=>{i?a.style.setProperty(c,i):a.style.removeProperty(c)})}}function z0(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class W0{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&&Br(t.modalRef,!1);const o=z0(n);Dl(n,t.mount,t.modalRef,o,!0);const i=hs(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=hs(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=U0(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=hs(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&&Br(t.modalRef,n),Dl(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&&Br(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const H0=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function q0(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 G0(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 Y0(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||G0(e))}function K0(e){const t=[],n=[];return Array.from(e.querySelectorAll(H0)).forEach((r,o)=>{const i=q0(r);i===-1||!Y0(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 X0(){return!0}function di(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=K0,isEnabled:a=X0,open:c}=e,l=v.useRef(!1),u=v.useRef(null),d=v.useRef(null),f=v.useRef(null),h=v.useRef(null),b=v.useRef(!1),m=v.useRef(null),p=et(hr(t),m),g=v.useRef(null);v.useEffect(()=>{!c||!m.current||(b.current=!n)},[n,c]),v.useEffect(()=>{if(!c||!m.current)return;const w=At(m.current);return m.current.contains(w.activeElement)||(m.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(`
|
|
236
|
-
`)),m.current.setAttribute("tabIndex","-1")),b.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[c]),v.useEffect(()=>{if(!c||!m.current)return;const w=At(m.current),E=R=>{g.current=R,!(r||!a()||R.key!=="Tab")&&w.activeElement===m.current&&R.shiftKey&&(l.current=!0,d.current&&d.current.focus())},S=()=>{var j,x;const R=m.current;if(R===null)return;if(!w.hasFocus()||!a()||l.current){l.current=!1;return}if(R.contains(w.activeElement)||r&&w.activeElement!==u.current&&w.activeElement!==d.current)return;if(w.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let N=[];if((w.activeElement===u.current||w.activeElement===d.current)&&(N=i(m.current)),N.length>0){const P=!!((j=g.current)!=null&&j.shiftKey&&((x=g.current)==null?void 0:x.key)==="Tab"),L=N[0],$=N[N.length-1];typeof L!="string"&&typeof $!="string"&&(P?$.focus():L.focus())}else R.focus()};w.addEventListener("focusin",S),w.addEventListener("keydown",E,!0);const O=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(O),w.removeEventListener("focusin",S),w.removeEventListener("keydown",E,!0)}},[n,r,o,a,c,i]);const T=w=>{f.current===null&&(f.current=w.relatedTarget),b.current=!0,h.current=w.target;const E=t.props.onFocus;E&&E(w)},C=w=>{f.current===null&&(f.current=w.relatedTarget),b.current=!0};return y.jsxs(v.Fragment,{children:[y.jsx("div",{tabIndex:c?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:p,onFocus:T}),y.jsx("div",{tabIndex:c?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(di.propTypes={children:Dn,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(di.propTypes=Ai(di.propTypes));const J0={entering:{opacity:1},entered:{opacity:1}},Af=v.forwardRef(function(t,n){const r=hn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:c,easing:l,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:b,onExited:m,onExiting:p,style:g,timeout:T=o,TransitionComponent:C=Rt,...w}=t,E=v.useRef(null),S=et(E,hr(c),n),O=U=>M=>{if(U){const D=E.current;M===void 0?U(D):U(D,M)}},R=O(h),N=O((U,M)=>{Ua(U);const D=dn({style:g,timeout:T,easing:l},{mode:"enter"});U.style.webkitTransition=r.transitions.create("opacity",D),U.style.transition=r.transitions.create("opacity",D),d&&d(U,M)}),j=O(f),x=O(p),P=O(U=>{const M=dn({style:g,timeout:T,easing:l},{mode:"exit"});U.style.webkitTransition=r.transitions.create("opacity",M),U.style.transition=r.transitions.create("opacity",M),b&&b(U)}),L=O(m),$=U=>{i&&i(E.current,U)};return y.jsx(C,{appear:a,in:u,nodeRef:E,onEnter:N,onEntered:j,onEntering:R,onExit:P,onExited:L,onExiting:x,addEndListener:$,timeout:T,...w,children:(U,{ownerState:M,...D})=>v.cloneElement(c,{style:{opacity:0,visibility:U==="exited"&&!u?"hidden":void 0,...J0[U],...g,...c.props.style},ref:S,...D})})});process.env.NODE_ENV!=="production"&&(Af.propTypes={addEndListener:s.func,appear:s.bool,children:Dn.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 Z0(e){return Te("MuiBackdrop",e)}Oe("MuiBackdrop",["root","invisible"]);const Q0=e=>{const{classes:t,invisible:n}=e;return Ne({root:["root",n&&"invisible"]},Z0,t)},ex=ce("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"}}]}),If=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:c=!1,open:l,components:u={},componentsProps:d={},slotProps:f={},slots:h={},TransitionComponent:b,transitionDuration:m,...p}=r,g={...r,component:a,invisible:c},T=Q0(g),C={transition:b,root:u.Root,...h},w={...d,...f},E={slots:C,slotProps:w},[S,O]=ht("root",{elementType:ex,externalForwardedProps:E,className:ae(T.root,i),ownerState:g}),[R,N]=ht("transition",{elementType:Af,externalForwardedProps:E,ownerState:g});return y.jsx(R,{in:l,timeout:m,...p,...N,children:y.jsx(S,{"aria-hidden":!0,...O,classes:T,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(If.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 tx(e){return typeof e=="function"?e():e}function nx(e){return e?e.props.hasOwnProperty("in"):!1}const Ll=()=>{},Io=new W0;function rx(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:c,onClose:l,open:u,rootRef:d}=e,f=v.useRef({}),h=v.useRef(null),b=v.useRef(null),m=et(b,d),[p,g]=v.useState(!u),T=nx(c);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>At(h.current),E=()=>(f.current.modalRef=b.current,f.current.mount=h.current,f.current),S=()=>{Io.mount(E(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},O=sn(()=>{const M=tx(t)||w().body;Io.add(E(),M),b.current&&S()}),R=()=>Io.isTopModal(E()),N=sn(M=>{h.current=M,M&&(u&&R()?S():b.current&&Br(b.current,C))}),j=v.useCallback(()=>{Io.remove(E(),C)},[C]);v.useEffect(()=>()=>{j()},[j]),v.useEffect(()=>{u?O():(!T||!o)&&j()},[u,j,T,o,O]);const x=M=>D=>{var H;(H=M.onKeyDown)==null||H.call(M,D),!(D.key!=="Escape"||D.which===229||!R())&&(n||(D.stopPropagation(),l&&l(D,"escapeKeyDown")))},P=M=>D=>{var H;(H=M.onClick)==null||H.call(M,D),D.target===D.currentTarget&&l&&l(D,"backdropClick")};return{getRootProps:(M={})=>{const D=Md(e);delete D.onTransitionEnter,delete D.onTransitionExited;const H={...D,...M};return{role:"presentation",...H,onKeyDown:x(H),ref:m}},getBackdropProps:(M={})=>{const D=M;return{"aria-hidden":!0,...D,onClick:P(D),open:u}},getTransitionProps:()=>{const M=()=>{g(!1),i&&i()},D=()=>{g(!0),a&&a(),o&&j()};return{onEnter:Yc(M,(c==null?void 0:c.props.onEnter)??Ll),onExited:Yc(D,(c==null?void 0:c.props.onExited)??Ll)}},rootRef:m,portalRef:N,isTopModal:R,exited:p,hasTransition:T}}function ox(e){return Te("MuiModal",e)}Oe("MuiModal",["root","hidden","backdrop"]);const ix=e=>{const{open:t,exited:n,classes:r}=e;return Ne({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ox,r)},sx=ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ve(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),ax=ce(If,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ka=v.forwardRef(function(t,n){const r=Ce({name:"MuiModal",props:t}),{BackdropComponent:o=ax,BackdropProps:i,classes:a,className:c,closeAfterTransition:l=!1,children:u,container:d,component:f,components:h={},componentsProps:b={},disableAutoFocus:m=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:g=!1,disablePortal:T=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:E=!1,keepMounted:S=!1,onBackdropClick:O,onClose:R,onTransitionEnter:N,onTransitionExited:j,open:x,slotProps:P={},slots:L={},theme:$,...U}=r,M={...r,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:p,disableEscapeKeyDown:g,disablePortal:T,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:E,keepMounted:S},{getRootProps:D,getBackdropProps:H,getTransitionProps:q,portalRef:Z,isTopModal:A,exited:z,hasTransition:te}=rx({...M,rootRef:n}),ne={...M,exited:z},G=ix(ne),J={};if(u.props.tabIndex===void 0&&(J.tabIndex="-1"),te){const{onEnter:B,onExited:he}=q();J.onEnter=B,J.onExited=he}const V={...U,slots:{root:h.Root,backdrop:h.Backdrop,...L},slotProps:{...b,...P}},[Q,ee]=ht("root",{elementType:sx,externalForwardedProps:V,getSlotProps:D,additionalProps:{ref:n,as:f},ownerState:ne,className:ae(c,G==null?void 0:G.root,!ne.open&&ne.exited&&(G==null?void 0:G.hidden))}),[oe,K]=ht("backdrop",{elementType:o,externalForwardedProps:V,additionalProps:i,getSlotProps:B=>H({...B,onClick:he=>{O&&O(he),B!=null&&B.onClick&&B.onClick(he)}}),className:ae(i==null?void 0:i.className,G==null?void 0:G.backdrop),ownerState:ne}),ie=et(i==null?void 0:i.ref,K.ref);return!S&&!x&&(!te||z)?null:y.jsx(Gr,{ref:Z,container:d,disablePortal:T,children:y.jsxs(Q,{...ee,children:[!E&&o?y.jsx(oe,{...K,ref:ie}):null,y.jsx(di,{disableEnforceFocus:p,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:A,open:x,children:v.cloneElement(u,J)})]})})});process.env.NODE_ENV!=="production"&&(Ka.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Dn.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([Jt,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 cx(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=un(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=i.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let c=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");c=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+c-r.left}px)`:`translateX(${i.innerWidth+c-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-c}px)`:`translateX(-${r.left+r.width-c}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function _f(e){return typeof e=="function"?e():e}function _o(e,t,n){const r=_f(n),o=cx(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const $f=v.forwardRef(function(t,n){const r=hn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:c=!0,children:l,container:u,direction:d="down",easing:f=o,in:h,onEnter:b,onEntered:m,onEntering:p,onExit:g,onExited:T,onExiting:C,style:w,timeout:E=i,TransitionComponent:S=Rt,...O}=t,R=v.useRef(null),N=et(hr(l),R,n),j=q=>Z=>{q&&(Z===void 0?q(R.current):q(R.current,Z))},x=j((q,Z)=>{_o(d,q,u),Ua(q),b&&b(q,Z)}),P=j((q,Z)=>{const A=dn({timeout:E,style:w,easing:f},{mode:"enter"});q.style.webkitTransition=r.transitions.create("-webkit-transform",{...A}),q.style.transition=r.transitions.create("transform",{...A}),q.style.webkitTransform="none",q.style.transform="none",p&&p(q,Z)}),L=j(m),$=j(C),U=j(q=>{const Z=dn({timeout:E,style:w,easing:f},{mode:"exit"});q.style.webkitTransition=r.transitions.create("-webkit-transform",Z),q.style.transition=r.transitions.create("transform",Z),_o(d,q,u),g&&g(q)}),M=j(q=>{q.style.webkitTransition="",q.style.transition="",T&&T(q)}),D=q=>{a&&a(R.current,q)},H=v.useCallback(()=>{R.current&&_o(d,R.current,u)},[d,u]);return v.useEffect(()=>{if(h||d==="down"||d==="right")return;const q=Nd(()=>{R.current&&_o(d,R.current,u)}),Z=un(R.current);return Z.addEventListener("resize",q),()=>{q.clear(),Z.removeEventListener("resize",q)}},[d,h,u]),v.useEffect(()=>{h||H()},[h,H]),y.jsx(S,{nodeRef:R,onEnter:x,onEntered:L,onEntering:P,onExit:U,onExited:M,onExiting:$,addEndListener:D,appear:c,in:h,timeout:E,...O,children:(q,{ownerState:Z,...A})=>v.cloneElement(l,{ref:N,style:{visibility:q==="exited"&&!h?"hidden":void 0,...w,...l.props.style},...A})})});process.env.NODE_ENV!=="production"&&($f.propTypes={addEndListener:s.func,appear:s.bool,children:Dn.isRequired,container:Qt(s.oneOfType([Jt,s.func]),e=>{if(e.open){const t=_f(e.container);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 `container` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
228
|
+
`,vf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...c}=r,[l,u]=v.useState([]),d=v.useRef(0),f=v.useRef(null);v.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=v.useRef(!1),b=Cn(),m=v.useRef(null),p=v.useRef(null),y=v.useCallback(E=>{const{pulsate:S,rippleX:O,rippleY:R,rippleSize:N,cb:j}=E;u(x=>[...x,g.jsx(Ov,{classes:{ripple:ae(i.ripple,bt.ripple),rippleVisible:ae(i.rippleVisible,bt.rippleVisible),ripplePulsate:ae(i.ripplePulsate,bt.ripplePulsate),child:ae(i.child,bt.child),childLeaving:ae(i.childLeaving,bt.childLeaving),childPulsate:ae(i.childPulsate,bt.childPulsate)},timeout:Ys,pulsate:S,rippleX:O,rippleY:R,rippleSize:N},d.current)]),d.current+=1,f.current=j},[i]),T=v.useCallback((E={},S={},O=()=>{})=>{const{pulsate:R=!1,center:N=o||S.pulsate,fakeElement:j=!1}=S;if((E==null?void 0:E.type)==="mousedown"&&h.current){h.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(h.current=!0);const x=j?null:p.current,P=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,$,U;if(N||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)B=Math.round(P.width/2),$=Math.round(P.height/2);else{const{clientX:M,clientY:L}=E.touches&&E.touches.length>0?E.touches[0]:E;B=Math.round(M-P.left),$=Math.round(L-P.top)}if(N)U=Math.sqrt((2*P.width**2+P.height**2)/3),U%2===0&&(U+=1);else{const M=Math.max(Math.abs((x?x.clientWidth:0)-B),B)*2+2,L=Math.max(Math.abs((x?x.clientHeight:0)-$),$)*2+2;U=Math.sqrt(M**2+L**2)}E!=null&&E.touches?m.current===null&&(m.current=()=>{y({pulsate:R,rippleX:B,rippleY:$,rippleSize:U,cb:O})},b.start(Ev,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:R,rippleX:B,rippleY:$,rippleSize:U,cb:O})},[o,y,b]),C=v.useCallback(()=>{T({},{pulsate:!0})},[T]),w=v.useCallback((E,S)=>{if(b.clear(),(E==null?void 0:E.type)==="touchend"&&m.current){m.current(),m.current=null,b.start(0,()=>{w(E,S)});return}m.current=null,u(O=>O.length>0?O.slice(1):O),f.current=S},[b]);return v.useImperativeHandle(n,()=>({pulsate:C,start:T,stop:w}),[C,T,w]),g.jsx(Cv,{className:ae(bt.root,i.root,a),ref:p,...c,children:g.jsx(Ia,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(vf.propTypes={center:s.bool,classes:s.object,className:s.string});function Rv(e){return Te("MuiButtonBase",e)}const kv=Oe("MuiButtonBase",["root","disabled","focusVisible"]),Pv=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ne({root:["root",t&&"disabled",n&&"focusVisible"]},Rv,o);return n&&r&&(a.root+=` ${r}`),a},Nv=ce("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"},[`&.${kv.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fo=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:c,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:b,LinkComponent:m="a",onBlur:p,onClick:y,onContextMenu:T,onDragLeave:C,onFocus:w,onFocusVisible:E,onKeyDown:S,onKeyUp:O,onMouseDown:R,onMouseLeave:N,onMouseUp:j,onTouchEnd:x,onTouchMove:P,onTouchStart:B,tabIndex:$=0,TouchRippleProps:U,touchRippleRef:M,type:L,...H}=r,q=v.useRef(null),Z=dv(),A=et(Z.ref,M),[z,te]=v.useState(!1);u&&z&&te(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{te(!0),q.current.focus()}}),[]);const ne=Z.shouldMount&&!d&&!u;v.useEffect(()=>{z&&h&&!d&&Z.pulsate()},[d,h,z,Z]);const G=Yt(Z,"start",R,f),J=Yt(Z,"stop",T,f),V=Yt(Z,"stop",C,f),Q=Yt(Z,"stop",j,f),ee=Yt(Z,"stop",se=>{z&&se.preventDefault(),N&&N(se)},f),oe=Yt(Z,"start",B,f),K=Yt(Z,"stop",x,f),ie=Yt(Z,"stop",P,f),F=Yt(Z,"stop",se=>{ar(se.target)||te(!1),p&&p(se)},!1),he=cn(se=>{q.current||(q.current=se.currentTarget),ar(se.target)&&(te(!0),E&&E(se)),w&&w(se)}),X=()=>{const se=q.current;return l&&l!=="button"&&!(se.tagName==="A"&&se.href)},ve=cn(se=>{h&&!se.repeat&&z&&se.key===" "&&Z.stop(se,()=>{Z.start(se)}),se.target===se.currentTarget&&X()&&se.key===" "&&se.preventDefault(),S&&S(se),se.target===se.currentTarget&&X()&&se.key==="Enter"&&!u&&(se.preventDefault(),y&&y(se))}),De=cn(se=>{h&&se.key===" "&&z&&!se.defaultPrevented&&Z.stop(se,()=>{Z.pulsate(se)}),O&&O(se),y&&se.target===se.currentTarget&&X()&&se.key===" "&&!se.defaultPrevented&&y(se)});let ge=l;ge==="button"&&(H.href||H.to)&&(ge=m);const Le={};ge==="button"?(Le.type=L===void 0?"button":L,Le.disabled=u):(!H.href&&!H.to&&(Le.role="button"),u&&(Le["aria-disabled"]=u));const Be=et(n,q),Je={...r,centerRipple:i,component:l,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:$,focusVisible:z},$e=Pv(Je);return g.jsxs(Nv,{as:ge,className:ae($e.root,c),ownerState:Je,onBlur:F,onClick:y,onContextMenu:J,onFocus:he,onKeyDown:ve,onKeyUp:De,onMouseDown:G,onMouseLeave:ee,onMouseUp:Q,onDragLeave:V,onTouchEnd:K,onTouchMove:ie,onTouchStart:oe,ref:Be,tabIndex:u?-1:$,type:L,...Le,...H,children:[a,ne?g.jsx(vf,{ref:A,center:i,...U}):null]})});function Yt(e,t,n,r=!1){return cn(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(fo.propTypes={action:$i,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:uo,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 jv(e){return Te("MuiIconButton",e)}const Av=Oe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Iv=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${de(r)}`,o&&`edge${de(o)}`,`size${de(i)}`]};return Ne(a,jv,t)},_v=ce(fo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],n.edge&&t[`edge${de(n.edge)}`],t[`size${de(n.size)}`]]}})(Ve(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ve(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(cr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(cr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Av.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Gr=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:c="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium",...f}=r,h={...r,edge:o,color:c,disabled:l,disableFocusRipple:u,size:d},b=Iv(h);return g.jsx(_v,{className:ae(b.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,...f,ownerState:h,children:i})});process.env.NODE_ENV!=="production"&&(Gr.propTypes={children:en(s.node,e=>v.Children.toArray(e.children).some(n=>v.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
229
|
+
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function $v(e){return Te("MuiTypography",e)}const Tl=Oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Mv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Dv=Uy(),Lv=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,c={root:["root",i,e.align!=="inherit"&&`align${de(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ne(c,$v,a)},Bv=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${de(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ve(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(cr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${de(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Cl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Et=v.forwardRef(function(t,n){const{color:r,...o}=Ce({props:t,name:"MuiTypography"}),i=!Mv[r],a=Dv({...o,...i&&{color:r}}),{align:c="inherit",className:l,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:h=!1,variant:b="body1",variantMapping:m=Cl,...p}=a,y={...a,align:c,color:r,className:l,component:u,gutterBottom:d,noWrap:f,paragraph:h,variant:b,variantMapping:m},T=u||(h?"p":m[b]||Cl[b])||"span",C=Lv(y);return g.jsx(Bv,{as:T,ref:n,className:ae(C.root,l),...p,ownerState:y,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...p.style}})});process.env.NODE_ENV!=="production"&&(Et.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph: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(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});var ct="top",Tt="bottom",Ct="right",lt="left",_a="auto",po=[ct,Tt,Ct,lt],lr="start",Yr="end",Fv="clippingParents",bf="viewport",Or="popper",Vv="reference",Ol=po.reduce(function(e,t){return e.concat([t+"-"+lr,t+"-"+Yr])},[]),xf=[].concat(po,[_a]).reduce(function(e,t){return e.concat([t,t+"-"+lr,t+"-"+Yr])},[]),Uv="beforeRead",zv="read",Wv="afterRead",Hv="beforeMain",qv="main",Gv="afterMain",Yv="beforeWrite",Kv="write",Xv="afterWrite",Jv=[Uv,zv,Wv,Hv,qv,Gv,Yv,Kv,Xv];function Wt(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _n(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function wt(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $a(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Zv(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!wt(i)||!Wt(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function Qv(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(l,u){return l[u]="",l},{});!wt(o)||!Wt(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const eb={name:"applyStyles",enabled:!0,phase:"write",fn:Zv,effect:Qv,requires:["computeStyles"]};function Ut(e){return e.split("-")[0]}var kn=Math.max,ui=Math.min,ur=Math.round;function Ks(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ef(){return!/^((?!chrome|android).)*safari/i.test(Ks())}function dr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&wt(e)&&(o=e.offsetWidth>0&&ur(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ur(r.height)/e.offsetHeight||1);var a=_n(e)?gt(e):window,c=a.visualViewport,l=!Ef()&&n,u=(r.left+(l&&c?c.offsetLeft:0))/o,d=(r.top+(l&&c?c.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function Ma(e){var t=dr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Sf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qt(e){return gt(e).getComputedStyle(e)}function tb(e){return["table","td","th"].indexOf(Wt(e))>=0}function yn(e){return((_n(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fi(e){return Wt(e)==="html"?e:e.assignedSlot||e.parentNode||($a(e)?e.host:null)||yn(e)}function Rl(e){return!wt(e)||Qt(e).position==="fixed"?null:e.offsetParent}function nb(e){var t=/firefox/i.test(Ks()),n=/Trident/i.test(Ks());if(n&&wt(e)){var r=Qt(e);if(r.position==="fixed")return null}var o=Fi(e);for($a(o)&&(o=o.host);wt(o)&&["html","body"].indexOf(Wt(o))<0;){var i=Qt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ho(e){for(var t=gt(e),n=Rl(e);n&&tb(n)&&Qt(n).position==="static";)n=Rl(n);return n&&(Wt(n)==="html"||Wt(n)==="body"&&Qt(n).position==="static")?t:n||nb(e)||t}function Da(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Br(e,t,n){return kn(e,ui(t,n))}function rb(e,t,n){var r=Br(e,t,n);return r>n?n:r}function wf(){return{top:0,right:0,bottom:0,left:0}}function Tf(e){return Object.assign({},wf(),e)}function Cf(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ob=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Tf(typeof t!="number"?t:Cf(t,po))};function ib(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Ut(n.placement),l=Da(c),u=[lt,Ct].indexOf(c)>=0,d=u?"height":"width";if(!(!i||!a)){var f=ob(o.padding,n),h=Ma(i),b=l==="y"?ct:lt,m=l==="y"?Tt:Ct,p=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],y=a[l]-n.rects.reference[l],T=ho(i),C=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,w=p/2-y/2,E=f[b],S=C-h[d]-f[m],O=C/2-h[d]/2+w,R=Br(E,O,S),N=l;n.modifiersData[r]=(t={},t[N]=R,t.centerOffset=R-O,t)}}function sb(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Sf(t.elements.popper,o)&&(t.elements.arrow=o))}const ab={name:"arrow",enabled:!0,phase:"main",fn:ib,effect:sb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fr(e){return e.split("-")[1]}var cb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lb(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ur(n*o)/o||0,y:ur(r*o)/o||0}}function kl(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,b=h===void 0?0:h,m=a.y,p=m===void 0?0:m,y=typeof d=="function"?d({x:b,y:p}):{x:b,y:p};b=y.x,p=y.y;var T=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),w=lt,E=ct,S=window;if(u){var O=ho(n),R="clientHeight",N="clientWidth";if(O===gt(n)&&(O=yn(n),Qt(O).position!=="static"&&c==="absolute"&&(R="scrollHeight",N="scrollWidth")),O=O,o===ct||(o===lt||o===Ct)&&i===Yr){E=Tt;var j=f&&O===S&&S.visualViewport?S.visualViewport.height:O[R];p-=j-r.height,p*=l?1:-1}if(o===lt||(o===ct||o===Tt)&&i===Yr){w=Ct;var x=f&&O===S&&S.visualViewport?S.visualViewport.width:O[N];b-=x-r.width,b*=l?1:-1}}var P=Object.assign({position:c},u&&cb),B=d===!0?lb({x:b,y:p},gt(n)):{x:b,y:p};if(b=B.x,p=B.y,l){var $;return Object.assign({},P,($={},$[E]=C?"0":"",$[w]=T?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+b+"px, "+p+"px)":"translate3d("+b+"px, "+p+"px, 0)",$))}return Object.assign({},P,(t={},t[E]=C?p+"px":"",t[w]=T?b+"px":"",t.transform="",t))}function ub(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c,u={placement:Ut(t.placement),variation:fr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const db={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ub,data:{}};var Ao={passive:!0};function fb(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,l=gt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ao)}),c&&l.addEventListener("resize",n.update,Ao),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ao)}),c&&l.removeEventListener("resize",n.update,Ao)}}const pb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fb,data:{}};var hb={left:"right",right:"left",bottom:"top",top:"bottom"};function Go(e){return e.replace(/left|right|bottom|top/g,function(t){return hb[t]})}var mb={start:"end",end:"start"};function Pl(e){return e.replace(/start|end/g,function(t){return mb[t]})}function La(e){var t=gt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ba(e){return dr(yn(e)).left+La(e).scrollLeft}function gb(e,t){var n=gt(e),r=yn(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var u=Ef();(u||!u&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+Ba(e),y:l}}function yb(e){var t,n=yn(e),r=La(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=kn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=kn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Ba(e),l=-r.scrollTop;return Qt(o||n).direction==="rtl"&&(c+=kn(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}function Fa(e){var t=Qt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Of(e){return["html","body","#document"].indexOf(Wt(e))>=0?e.ownerDocument.body:wt(e)&&Fa(e)?e:Of(Fi(e))}function Fr(e,t){var n;t===void 0&&(t=[]);var r=Of(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=gt(r),a=o?[i].concat(i.visualViewport||[],Fa(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(Fr(Fi(a)))}function Xs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vb(e,t){var n=dr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Nl(e,t,n){return t===bf?Xs(gb(e,n)):_n(t)?vb(t,n):Xs(yb(yn(e)))}function bb(e){var t=Fr(Fi(e)),n=["absolute","fixed"].indexOf(Qt(e).position)>=0,r=n&&wt(e)?ho(e):e;return _n(r)?t.filter(function(o){return _n(o)&&Sf(o,r)&&Wt(o)!=="body"}):[]}function xb(e,t,n,r){var o=t==="clippingParents"?bb(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(l,u){var d=Nl(e,u,r);return l.top=kn(d.top,l.top),l.right=ui(d.right,l.right),l.bottom=ui(d.bottom,l.bottom),l.left=kn(d.left,l.left),l},Nl(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Rf(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ut(r):null,i=r?fr(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(o){case ct:l={x:a,y:t.y-n.height};break;case Tt:l={x:a,y:t.y+t.height};break;case Ct:l={x:t.x+t.width,y:c};break;case lt:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var u=o?Da(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case lr:l[u]=l[u]-(t[d]/2-n[d]/2);break;case Yr:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function Kr(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,l=c===void 0?Fv:c,u=n.rootBoundary,d=u===void 0?bf:u,f=n.elementContext,h=f===void 0?Or:f,b=n.altBoundary,m=b===void 0?!1:b,p=n.padding,y=p===void 0?0:p,T=Tf(typeof y!="number"?y:Cf(y,po)),C=h===Or?Vv:Or,w=e.rects.popper,E=e.elements[m?C:h],S=xb(_n(E)?E:E.contextElement||yn(e.elements.popper),l,d,a),O=dr(e.elements.reference),R=Rf({reference:O,element:w,strategy:"absolute",placement:o}),N=Xs(Object.assign({},w,R)),j=h===Or?N:O,x={top:S.top-j.top+T.top,bottom:j.bottom-S.bottom+T.bottom,left:S.left-j.left+T.left,right:j.right-S.right+T.right},P=e.modifiersData.offset;if(h===Or&&P){var B=P[o];Object.keys(x).forEach(function($){var U=[Ct,Tt].indexOf($)>=0?1:-1,M=[ct,Tt].indexOf($)>=0?"y":"x";x[$]+=B[M]*U})}return x}function Eb(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?xf:l,d=fr(r),f=d?c?Ol:Ol.filter(function(m){return fr(m)===d}):po,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var b=h.reduce(function(m,p){return m[p]=Kr(e,{placement:p,boundary:o,rootBoundary:i,padding:a})[Ut(p)],m},{});return Object.keys(b).sort(function(m,p){return b[m]-b[p]})}function Sb(e){if(Ut(e)===_a)return[];var t=Go(e);return[Pl(e),t,Pl(t)]}function wb(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,m=b===void 0?!0:b,p=n.allowedAutoPlacements,y=t.options.placement,T=Ut(y),C=T===y,w=l||(C||!m?[Go(y)]:Sb(y)),E=[y].concat(w).reduce(function(G,J){return G.concat(Ut(J)===_a?Eb(t,{placement:J,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:p}):J)},[]),S=t.rects.reference,O=t.rects.popper,R=new Map,N=!0,j=E[0],x=0;x<E.length;x++){var P=E[x],B=Ut(P),$=fr(P)===lr,U=[ct,Tt].indexOf(B)>=0,M=U?"width":"height",L=Kr(t,{placement:P,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),H=U?$?Ct:lt:$?Tt:ct;S[M]>O[M]&&(H=Go(H));var q=Go(H),Z=[];if(i&&Z.push(L[B]<=0),c&&Z.push(L[H]<=0,L[q]<=0),Z.every(function(G){return G})){j=P,N=!1;break}R.set(P,Z)}if(N)for(var A=m?3:1,z=function(J){var V=E.find(function(Q){var ee=R.get(Q);if(ee)return ee.slice(0,J).every(function(oe){return oe})});if(V)return j=V,"break"},te=A;te>0;te--){var ne=z(te);if(ne==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const Tb={name:"flip",enabled:!0,phase:"main",fn:wb,requiresIfExists:["offset"],data:{_skip:!1}};function jl(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Al(e){return[ct,Ct,Tt,lt].some(function(t){return e[t]>=0})}function Cb(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Kr(t,{elementContext:"reference"}),c=Kr(t,{altBoundary:!0}),l=jl(a,r),u=jl(c,o,i),d=Al(l),f=Al(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Ob={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cb};function Rb(e,t,n){var r=Ut(e),o=[lt,ct].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[lt,Ct].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function kb(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=xf.reduce(function(d,f){return d[f]=Rb(f,t.rects,i),d},{}),c=a[t.placement],l=c.x,u=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Pb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kb};function Nb(e){var t=e.state,n=e.name;t.modifiersData[n]=Rf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const jb={name:"popperOffsets",enabled:!0,phase:"read",fn:Nb,data:{}};function Ab(e){return e==="x"?"y":"x"}function Ib(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,b=h===void 0?!0:h,m=n.tetherOffset,p=m===void 0?0:m,y=Kr(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),T=Ut(t.placement),C=fr(t.placement),w=!C,E=Da(T),S=Ab(E),O=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,j=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,x=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(O){if(i){var $,U=E==="y"?ct:lt,M=E==="y"?Tt:Ct,L=E==="y"?"height":"width",H=O[E],q=H+y[U],Z=H-y[M],A=b?-N[L]/2:0,z=C===lr?R[L]:N[L],te=C===lr?-N[L]:-R[L],ne=t.elements.arrow,G=b&&ne?Ma(ne):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wf(),V=J[U],Q=J[M],ee=Br(0,R[L],G[L]),oe=w?R[L]/2-A-ee-V-x.mainAxis:z-ee-V-x.mainAxis,K=w?-R[L]/2+A+ee+Q+x.mainAxis:te+ee+Q+x.mainAxis,ie=t.elements.arrow&&ho(t.elements.arrow),F=ie?E==="y"?ie.clientTop||0:ie.clientLeft||0:0,he=($=P==null?void 0:P[E])!=null?$:0,X=H+oe-he-F,ve=H+K-he,De=Br(b?ui(q,X):q,H,b?kn(Z,ve):Z);O[E]=De,B[E]=De-H}if(c){var ge,Le=E==="x"?ct:lt,Be=E==="x"?Tt:Ct,Je=O[S],$e=S==="y"?"height":"width",se=Je+y[Le],$t=Je-y[Be],Mt=[ct,lt].indexOf(T)!==-1,Dt=(ge=P==null?void 0:P[S])!=null?ge:0,Lt=Mt?se:Je-R[$e]-N[$e]-Dt+x.altAxis,je=Mt?Je+R[$e]+N[$e]-Dt-x.altAxis:$t,Ye=b&&Mt?rb(Lt,Je,je):Br(b?Lt:se,Je,b?je:$t);O[S]=Ye,B[S]=Ye-Je}t.modifiersData[r]=B}}const _b={name:"preventOverflow",enabled:!0,phase:"main",fn:Ib,requiresIfExists:["offset"]};function $b(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mb(e){return e===gt(e)||!wt(e)?La(e):$b(e)}function Db(e){var t=e.getBoundingClientRect(),n=ur(t.width)/e.offsetWidth||1,r=ur(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Lb(e,t,n){n===void 0&&(n=!1);var r=wt(t),o=wt(t)&&Db(t),i=yn(t),a=dr(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Wt(t)!=="body"||Fa(i))&&(c=Mb(t)),wt(t)?(l=dr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ba(i))),{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function Bb(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Fb(e){var t=Bb(e);return Jv.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Vb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ub(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Il={placement:"bottom",modifiers:[],strategy:"absolute"};function _l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function zb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Il:o;return function(c,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Il,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},f=[],h=!1,b={state:d,setOptions:function(T){var C=typeof T=="function"?T(d.options):T;p(),d.options=Object.assign({},i,d.options,C),d.scrollParents={reference:_n(c)?Fr(c):c.contextElement?Fr(c.contextElement):[],popper:Fr(l)};var w=Fb(Ub([].concat(r,d.options.modifiers)));return d.orderedModifiers=w.filter(function(E){return E.enabled}),m(),b.update()},forceUpdate:function(){if(!h){var T=d.elements,C=T.reference,w=T.popper;if(_l(C,w)){d.rects={reference:Lb(C,ho(w),d.options.strategy==="fixed"),popper:Ma(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(x){return d.modifiersData[x.name]=Object.assign({},x.data)});for(var E=0;E<d.orderedModifiers.length;E++){if(d.reset===!0){d.reset=!1,E=-1;continue}var S=d.orderedModifiers[E],O=S.fn,R=S.options,N=R===void 0?{}:R,j=S.name;typeof O=="function"&&(d=O({state:d,options:N,name:j,instance:b})||d)}}}},update:Vb(function(){return new Promise(function(y){b.forceUpdate(),y(d)})}),destroy:function(){p(),h=!0}};if(!_l(c,l))return b;b.setOptions(u).then(function(y){!h&&u.onFirstUpdate&&u.onFirstUpdate(y)});function m(){d.orderedModifiers.forEach(function(y){var T=y.name,C=y.options,w=C===void 0?{}:C,E=y.effect;if(typeof E=="function"){var S=E({state:d,name:T,instance:b,options:w}),O=function(){};f.push(S||O)}})}function p(){f.forEach(function(y){return y()}),f=[]}return b}}var Wb=[pb,jb,db,eb,Pb,Tb,_b,ab,Ob],Hb=zb({defaultModifiers:Wb});function qb(e){return typeof e=="function"?e():e}const Xr=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=v.useState(null),l=et(v.isValidElement(r)?gr(r):null,n);if(In(()=>{i||c(qb(o)||document.body)},[o,i]),In(()=>{if(a&&!i)return Vs(n,a),()=>{Vs(n,null)}},[n,a,i]),i){if(v.isValidElement(r)){const u={ref:l};return v.cloneElement(r,u)}return r}return a&&$h.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Xr.propTypes={children:s.node,container:s.oneOfType([Zt,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(Xr.propTypes=_i(Xr.propTypes));function Gb(e){return Te("MuiPopper",e)}Oe("MuiPopper",["root"]);function Yb(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function di(e){return typeof e=="function"?e():e}function Vi(e){return e.nodeType!==void 0}function Kb(e){return!Vi(e)}const Xb=e=>{const{classes:t}=e;return Ne({root:["root"]},Gb,t)},Jb={},Zb=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,slotProps:h={},slots:b={},TransitionProps:m,ownerState:p,...y}=t,T=v.useRef(null),C=et(T,n),w=v.useRef(null),E=et(w,f),S=v.useRef(E);In(()=>{S.current=E},[E]),v.useImperativeHandle(f,()=>w.current,[]);const O=Yb(u,i),[R,N]=v.useState(O),[j,x]=v.useState(di(r));v.useEffect(()=>{w.current&&w.current.forceUpdate()}),v.useEffect(()=>{r&&x(di(r))},[r]),In(()=>{if(!j||!l)return;const M=q=>{N(q.placement)};if(process.env.NODE_ENV!=="production"&&j&&Vi(j)&&j.nodeType===1){const q=j.getBoundingClientRect();process.env.NODE_ENV!=="test"&&q.top===0&&q.left===0&&q.right===0&&q.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
230
|
+
`))}let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:q})=>{M(q)}}];c!=null&&(L=L.concat(c)),d&&d.modifiers!=null&&(L=L.concat(d.modifiers));const H=Hb(j,T.current,{placement:O,...d,modifiers:L});return S.current(H),()=>{H.destroy(),S.current(null)}},[j,a,c,l,d,O]);const P={placement:R};m!==null&&(P.TransitionProps=m);const B=Xb(t),$=b.root??"div",U=Hd({elementType:$,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:B.root});return g.jsx($,{...U,children:typeof o=="function"?o(P):o})}),kf=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:l=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:h=Jb,popperRef:b,style:m,transition:p=!1,slotProps:y={},slots:T={},...C}=t,[w,E]=v.useState(!0),S=()=>{E(!1)},O=()=>{E(!0)};if(!l&&!d&&(!p||w))return null;let R;if(i)R=i;else if(r){const x=di(r);R=x&&Vi(x)?At(x).body:At(null).body}const N=!d&&l&&(!p||w)?"none":void 0,j=p?{in:d,onEnter:S,onExited:O}:void 0;return g.jsx(Xr,{disablePortal:c,container:R,children:g.jsx(Zb,{anchorEl:r,direction:a,disablePortal:c,modifiers:u,ref:n,open:p?!w:d,placement:f,popperOptions:h,popperRef:b,slotProps:y,slots:T,...C,style:{position:"fixed",top:0,left:0,display:N,...m},TransitionProps:j,children:o})})});process.env.NODE_ENV!=="production"&&(kf.propTypes={anchorEl:en(s.oneOfType([Zt,s.object,s.func]),e=>{if(e.open){const t=di(e.anchorEl);if(t&&Vi(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(`
|
|
231
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||Kb(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
232
|
+
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Zt,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:$i,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const Qb=ce(kf,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Va=v.forwardRef(function(t,n){const r=Ra(),o=Ce({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:c,componentsProps:l,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:b,placement:m,popperOptions:p,popperRef:y,transition:T,slots:C,slotProps:w,...E}=o,S=(C==null?void 0:C.root)??(c==null?void 0:c.Root),O={anchorEl:i,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:b,placement:m,popperOptions:p,popperRef:y,transition:T,...E};return g.jsx(Qb,{as:a,direction:r?"rtl":"ltr",slots:{root:S},slotProps:w??l,...O,ref:n})});process.env.NODE_ENV!=="production"&&(Va.propTypes={anchorEl:s.oneOfType([Zt,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Zt,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:$i,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});function ex(e){return Te("MuiListSubheader",e)}Oe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const tx=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${de(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ne(a,ex,t)},nx=ce("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Ve(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),fi=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:c=!1,disableSticky:l=!1,inset:u=!1,...d}=r,f={...r,color:i,component:a,disableGutters:c,disableSticky:l,inset:u},h=tx(f);return g.jsx(nx,{as:a,className:ae(h.root,o),ref:n,ownerState:f,...d})});fi&&(fi.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(fi.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOf(["default","inherit","primary"]),component:s.elementType,disableGutters:s.bool,disableSticky:s.bool,inset:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Js(e){return typeof e=="string"}const rx=Ge(g.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ox(e){return Te("MuiAvatar",e)}Oe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ix=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ne({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ox,t)},sx=ce("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ve(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),ax=ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),cx=ce(rx,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function lx({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=v.useState(!1);return v.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&i("loaded")},c.onerror=()=>{a&&i("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Ua=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:c="div",slots:l={},slotProps:u={},imgProps:d,sizes:f,src:h,srcSet:b,variant:m="circular",...p}=r;let y=null;const T={...r,component:c,variant:m},C=lx({...d,...typeof u.img=="function"?u.img(T):u.img,src:h,srcSet:b}),w=h||b,E=w&&C!=="error";T.colorDefault=!E,delete T.ownerState;const S=ix(T),[O,R]=ht("img",{className:S.img,elementType:ax,externalForwardedProps:{slots:l,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:o,src:h,srcSet:b,sizes:f},ownerState:T});return E?y=g.jsx(O,{...R}):i||i===0?y=i:w&&o?y=o[0]:y=g.jsx(cx,{ownerState:T,className:S.fallback}),g.jsx(sx,{as:c,className:ae(S.root,a),ref:n,...p,ownerState:T,children:y})});process.env.NODE_ENV!=="production"&&(Ua.propTypes={alt:s.string,children:s.node,classes:s.object,className:s.string,component:s.elementType,imgProps:s.object,sizes:s.string,slotProps:s.shape({img:s.oneOfType([s.func,s.object])}),slots:s.shape({img:s.elementType}),src:s.string,srcSet:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rounded","square"]),s.string])});function ux(e){return Te("MuiButton",e)}const Xn=Oe("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"]),Pf=v.createContext({});process.env.NODE_ENV!=="production"&&(Pf.displayName="ButtonGroupContext");const Nf=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(Nf.displayName="ButtonGroupButtonContext");const dx=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,c={root:["root",i,`${i}${de(t)}`,`size${de(o)}`,`${i}Size${de(o)}`,`color${de(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${de(o)}`],endIcon:["icon","endIcon",`iconSize${de(o)}`]},l=Ne(c,ux,a);return{...a,...l}},jf=[{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}}}],fx=ce(fo,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${de(n.color)}`],t[`size${de(n.size)}`],t[`${n.variant}Size${de(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Ve(({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"},[`&.${Xn.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]},[`&.${Xn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Xn.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)",[`&.${Xn.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(cr()).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)`:Ue(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})`:Ue(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})`:Ue(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})`:Ue(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(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"},[`&.${Xn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),px=ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${de(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...jf]}),hx=ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${de(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...jf]}),za=v.forwardRef(function(t,n){const r=v.useContext(Pf),o=v.useContext(Nf),i=Wr(r,t),a=Ce({props:i,name:"MuiButton"}),{children:c,color:l="primary",component:u="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:m,focusVisibleClassName:p,fullWidth:y=!1,size:T="medium",startIcon:C,type:w,variant:E="text",...S}=a,O={...a,color:l,component:u,disabled:f,disableElevation:h,disableFocusRipple:b,fullWidth:y,size:T,type:w,variant:E},R=dx(O),N=C&&g.jsx(px,{className:R.startIcon,ownerState:O,children:C}),j=m&&g.jsx(hx,{className:R.endIcon,ownerState:O,children:m}),x=o||"";return g.jsxs(fx,{ownerState:O,className:ae(r.className,R.root,d,x),component:u,disabled:f,focusRipple:!b,focusVisibleClassName:ae(R.focusVisible,p),ref:n,type:w,...S,classes:R,children:[N,c,j]})});process.env.NODE_ENV!=="production"&&(za.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});const Wa=e=>e.scrollTop;function pn(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 Zs(e){return`scale(${e}, ${e**2})`}const mx={entering:{opacity:1,transform:Zs(1)},entered:{opacity:1,transform:"none"}},ms=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jr=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:b,style:m,timeout:p="auto",TransitionComponent:y=Rt,...T}=t,C=Cn(),w=v.useRef(),E=gn(),S=v.useRef(null),O=et(S,gr(i),n),R=M=>L=>{if(M){const H=S.current;L===void 0?M(H):M(H,L)}},N=R(d),j=R((M,L)=>{Wa(M);const{duration:H,delay:q,easing:Z}=pn({style:m,timeout:p,easing:a},{mode:"enter"});let A;p==="auto"?(A=E.transitions.getAutoHeightDuration(M.clientHeight),w.current=A):A=H,M.style.transition=[E.transitions.create("opacity",{duration:A,delay:q}),E.transitions.create("transform",{duration:ms?A:A*.666,delay:q,easing:Z})].join(","),l&&l(M,L)}),x=R(u),P=R(b),B=R(M=>{const{duration:L,delay:H,easing:q}=pn({style:m,timeout:p,easing:a},{mode:"exit"});let Z;p==="auto"?(Z=E.transitions.getAutoHeightDuration(M.clientHeight),w.current=Z):Z=L,M.style.transition=[E.transitions.create("opacity",{duration:Z,delay:H}),E.transitions.create("transform",{duration:ms?Z:Z*.666,delay:ms?H:H||Z*.333,easing:q})].join(","),M.style.opacity=0,M.style.transform=Zs(.75),f&&f(M)}),$=R(h),U=M=>{p==="auto"&&C.start(w.current||0,M),r&&r(S.current,M)};return g.jsx(y,{appear:o,in:c,nodeRef:S,onEnter:j,onEntered:x,onEntering:N,onExit:B,onExited:$,onExiting:P,addEndListener:U,timeout:p==="auto"?null:p,...T,children:(M,{ownerState:L,...H})=>v.cloneElement(i,{style:{opacity:0,transform:Zs(.75),visibility:M==="exited"&&!c?"hidden":void 0,...mx[M],...m,...i.props.style},ref:O,...H})})});process.env.NODE_ENV!=="production"&&(Jr.propTypes={addEndListener:s.func,appear:s.bool,children:Ln.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})])});Jr&&(Jr.muiSupportAuto=!0);function gx(e){return Te("MuiTooltip",e)}const qe=Oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function yx(e){return Math.round(e*1e5)/1e5}const vx=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${de(i.split("-")[0])}`],arrow:["arrow"]};return Ne(a,gx,t)},bx=ce(Va,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${qe.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qe.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),xx=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${de(n.placement.split("-")[0])}`]]}})(Ve(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ue(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${qe.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${qe.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${yx(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Ex=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Ve(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ue(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Io=!1;const $l=new Mi;let Rr={x:0,y:0};function _o(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const mo=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:c={},componentsProps:l={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:b=!1,enterDelay:m=100,enterNextDelay:p=0,enterTouchDelay:y=700,followCursor:T=!1,id:C,leaveDelay:w=0,leaveTouchDelay:E=1500,onClose:S,onOpen:O,open:R,placement:N="bottom",PopperComponent:j,PopperProps:x={},slotProps:P={},slots:B={},title:$,TransitionComponent:U,TransitionProps:M,...L}=r,H=v.isValidElement(i)?i:g.jsx("span",{children:i}),q=gn(),Z=Ra(),[A,z]=v.useState(),[te,ne]=v.useState(null),G=v.useRef(!1),J=h||T,V=Cn(),Q=Cn(),ee=Cn(),oe=Cn(),[K,ie]=Pg({controlled:R,default:!1,name:"Tooltip",state:"open"});let F=K;if(process.env.NODE_ENV!=="production"){const{current:ue}=v.useRef(R!==void 0);v.useEffect(()=>{A&&A.disabled&&!ue&&$!==""&&A.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
233
|
+
`))},[$,A,ue])}const he=kg(C),X=v.useRef(),ve=cn(()=>{X.current!==void 0&&(document.body.style.WebkitUserSelect=X.current,X.current=void 0),oe.clear()});v.useEffect(()=>ve,[ve]);const De=ue=>{$l.clear(),Io=!0,ie(!0),O&&!F&&O(ue)},ge=cn(ue=>{$l.start(800+w,()=>{Io=!1}),ie(!1),S&&F&&S(ue),V.start(q.transitions.duration.shortest,()=>{G.current=!1})}),Le=ue=>{G.current&&ue.type!=="touchstart"||(A&&A.removeAttribute("title"),Q.clear(),ee.clear(),m||Io&&p?Q.start(Io?p:m,()=>{De(ue)}):De(ue))},Be=ue=>{Q.clear(),ee.start(w,()=>{ge(ue)})},[,Je]=v.useState(!1),$e=ue=>{ar(ue.target)||(Je(!1),Be(ue))},se=ue=>{A||z(ue.currentTarget),ar(ue.target)&&(Je(!0),Le(ue))},$t=ue=>{G.current=!0;const it=H.props;it.onTouchStart&&it.onTouchStart(ue)},Mt=ue=>{$t(ue),ee.clear(),V.clear(),ve(),X.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.start(y,()=>{document.body.style.WebkitUserSelect=X.current,Le(ue)})},Dt=ue=>{H.props.onTouchEnd&&H.props.onTouchEnd(ue),ve(),ee.start(E,()=>{ge(ue)})};v.useEffect(()=>{if(!F)return;function ue(it){it.key==="Escape"&&ge(it)}return document.addEventListener("keydown",ue),()=>{document.removeEventListener("keydown",ue)}},[ge,F]);const Lt=et(gr(H),z,n);!$&&$!==0&&(F=!1);const je=v.useRef(),Ye=ue=>{const it=H.props;it.onMouseMove&&it.onMouseMove(ue),Rr={x:ue.clientX,y:ue.clientY},je.current&&je.current.update()},ze={},yt=typeof $=="string";u?(ze.title=!F&&yt&&!f?$:null,ze["aria-describedby"]=F?he:null):(ze["aria-label"]=yt?$:null,ze["aria-labelledby"]=F&&!yt?he:null);const Me={...ze,...L,...H.props,className:ae(L.className,H.props.className),onTouchStart:$t,ref:Lt,...T?{onMouseMove:Ye}:{}};process.env.NODE_ENV!=="production"&&(Me["data-mui-internal-clone-element"]=!0,v.useEffect(()=>{A&&!A.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
234
|
+
`))},[A]));const tt={};b||(Me.onTouchStart=Mt,Me.onTouchEnd=Dt),f||(Me.onMouseOver=_o(Le,Me.onMouseOver),Me.onMouseLeave=_o(Be,Me.onMouseLeave),J||(tt.onMouseOver=Le,tt.onMouseLeave=Be)),d||(Me.onFocus=_o(se,Me.onFocus),Me.onBlur=_o($e,Me.onBlur),J||(tt.onFocus=se,tt.onBlur=$e)),process.env.NODE_ENV!=="production"&&H.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${H.props.title}\` or the Tooltip component.`].join(`
|
|
235
|
+
`));const qt={...r,isRtl:Z,arrow:o,disableInteractive:J,placement:N,PopperComponentProp:j,touch:G.current},ft=typeof P.popper=="function"?P.popper(qt):P.popper,Zi=v.useMemo(()=>{var it,ko;let ue=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(it=x.popperOptions)!=null&&it.modifiers&&(ue=ue.concat(x.popperOptions.modifiers)),(ko=ft==null?void 0:ft.popperOptions)!=null&&ko.modifiers&&(ue=ue.concat(ft.popperOptions.modifiers)),{...x.popperOptions,...ft==null?void 0:ft.popperOptions,modifiers:ue}},[te,x.popperOptions,ft==null?void 0:ft.popperOptions]),xr=vx(qt),Qi=typeof P.transition=="function"?P.transition(qt):P.transition,nn={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...B},slotProps:{arrow:P.arrow??l.arrow,popper:{...x,...ft??l.popper},tooltip:P.tooltip??l.tooltip,transition:{...M,...Qi??l.transition}}},[Co,rn]=ht("popper",{elementType:bx,externalForwardedProps:nn,ownerState:qt,className:ae(xr.popper,x==null?void 0:x.className)}),[Er,Sr]=ht("transition",{elementType:Jr,externalForwardedProps:nn,ownerState:qt}),[Oo,es]=ht("tooltip",{elementType:xx,className:xr.tooltip,externalForwardedProps:nn,ownerState:qt}),[Ro,ts]=ht("arrow",{elementType:Ex,className:xr.arrow,externalForwardedProps:nn,ownerState:qt,ref:ne});return g.jsxs(v.Fragment,{children:[v.cloneElement(H,Me),g.jsx(Co,{as:j??Va,placement:N,anchorEl:T?{getBoundingClientRect:()=>({top:Rr.y,left:Rr.x,right:Rr.x,bottom:Rr.y,width:0,height:0})}:A,popperRef:je,open:A?F:!1,id:he,transition:!0,...tt,...rn,popperOptions:Zi,children:({TransitionProps:ue})=>g.jsx(Er,{timeout:q.transitions.duration.shorter,...ue,...Sr,children:g.jsxs(Oo,{...es,children:[$,o?g.jsx(Ro,{...ts}):null]})})})]})});process.env.NODE_ENV!=="production"&&(mo.propTypes={arrow:s.bool,children:Ln.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.oneOfType([s.func,s.object]),popper:s.oneOfType([s.func,s.object]),tooltip:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});var Sx=function(e,t,n,r,o,i,a,c){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},wx=Sx;const Zr=ma(wx),Tx=v.createContext(null);function Cx(e){const{children:t,unmountAfter:n=1e3}=e,[r,o]=v.useState([]),i=v.useId(),a=v.useRef(0),c=v.useCallback(function(h,b,m={}){const{onClose:p=async()=>{}}=m;let y;const T=new Promise(E=>{y=E});Zr(y,"resolve not set");const C=`${i}-${a.current}`;a.current+=1;const w={key:C,open:!0,promise:T,Component:h,payload:b,onClose:p,resolve:y};return o(E=>[...E,w]),T},[i]),l=v.useCallback(function(h){o(b=>b.map(m=>m.promise===h?{...m,open:!1}:m)),setTimeout(()=>{o(b=>b.filter(m=>m.promise!==h))},n)},[n]),u=v.useCallback(async function(h,b){const m=r.find(p=>p.promise===h);return Zr(m,"dialog not found"),await m.onClose(b),m.resolve(b),l(h),h},[r,l]),d=v.useMemo(()=>({open:c,close:u}),[c,u]);return g.jsxs(Tx.Provider,{value:d,children:[t,r.map(({key:f,open:h,Component:b,payload:m,promise:p})=>g.jsx(b,{payload:m,open:h,onClose:async y=>{await u(p,y)}},f))]})}const Ha=v.createContext(null),qa=v.createContext([]),Ga=v.createContext({paletteMode:"light",setPaletteMode:()=>{},isDualTheme:!1}),Ui=v.createContext(null),Af=v.createContext(void 0),Qs=typeof df({})=="function",Ox=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Rx=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),If=(e,t=!1)=>{var i,a;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([c,l])=>{var d,f;const u=e.getColorSchemeSelector(c);u.startsWith("@")?n[u]={":root":{colorScheme:(d=l.palette)==null?void 0:d.mode}}:n[u.replace(/\s*&/,"")]={colorScheme:(f=l.palette)==null?void 0:f.mode}});let r={html:Ox(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Rx(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(a=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:a.styleOverrides;return o&&(r=[r,o]),r},Yo="mui-ecs",kx=e=>{const t=If(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Yo})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var a,c;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${Yo}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Yo}))`]:{colorScheme:(c=o.palette)==null?void 0:c.mode}}}),t},Px=df(Qs?({theme:e,enableColorScheme:t})=>If(e,t):({theme:e})=>kx(e));function Ya(e){const t=Ce({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return g.jsxs(v.Fragment,{children:[Qs&&g.jsx(Px,{enableColorScheme:r}),!Qs&&!r&&g.jsx("span",{className:Yo,style:{display:"none"}}),n]})}process.env.NODE_ENV!=="production"&&(Ya.propTypes={children:s.node,enableColorScheme:s.bool});const Nx={parse:e=>e,stringify:e=>e},Qr=new Map;function jx(e,t){let n=Qr.get(e);n||(n=new Set,Qr.set(e,n)),n.add(t)}function Ax(e,t){const n=Qr.get(e);n&&(n.delete(t),n.size===0&&Qr.delete(e))}function _f(e){const t=Qr.get(e);t&&t.forEach(n=>n())}if(typeof window<"u"){const e=window.localStorage.setItem;window.localStorage.setItem=function(n,r){const o=e.call(this,n,r);return _f(n),o}}function Ix(e,t,n){if(!t)return()=>{};const r=o=>{o.storageArea===e&&o.key===t&&n()};return window.addEventListener("storage",r),jx(t,n),()=>{window.removeEventListener("storage",r),Ax(t,n)}}function _x(e,t){if(!t)return null;try{return e.getItem(t)}catch{return null}}function $x(e,t,n){if(t){try{n===null?e.removeItem(t):e.setItem(t,String(n))}catch{return}_f(t)}}const Mx=[null,()=>{}];function Dx(){return Mx}function Ml(e,t){return t===null?null:e.stringify(t)}function Lx(e,t){return t===null?null:e.parse(t)}const Bx=()=>null;function Fx(e,t,n=null,r){const o=(r==null?void 0:r.codec)??Nx,[i]=v.useState(n),a=v.useMemo(()=>Ml(o,i),[o,i]),c=v.useCallback(m=>Ix(e,t,m),[e,t]),l=v.useCallback(()=>_x(e,t)??a,[e,a,t]),u=v.useSyncExternalStore(c,l,Bx),d=v.useMemo(()=>Lx(o,u),[o,u]),f=v.useCallback(m=>{const p=m instanceof Function?m(d):m,y=Ml(o,p);$x(e,t,y)},[e,o,d,t]),[h,b]=v.useState(i);return t?[d,f]:[h,b]}const Vx=(...e)=>Fx(window.localStorage,...e),Ux=typeof window>"u"?Dx:Vx;var Dl,Ll,Bl;const zx="data-toolpad-color-scheme",Fl="toolpad-color-scheme",ea="toolpad-mode";function $f(e){return Y.useMediaQuery("(prefers-color-scheme: dark)",e&&{matchMedia:e.matchMedia})?"dark":"light"}function Ka(e){return"vars"in e}function Wx(e){const{children:t,theme:n,window:r}=e;Zr(!Ka(n),"This provider only accepts legacy themes.");const o="light"in n||"dark"in n,i=$f(r),[a,c]=Ux(ea,"system"),l=!a||a==="system"?i:a,u=v.useMemo(()=>o?n[l==="dark"?"dark":"light"]??n[l==="dark"?"light":"dark"]:n,[o,l,n]),d=v.useMemo(()=>({paletteMode:l,setPaletteMode:c,isDualTheme:o}),[o,l,c]);return g.jsx(cf,{theme:u,children:g.jsxs(Ga.Provider,{value:d,children:[Dl||(Dl=g.jsx(Ya,{enableColorScheme:!0})),t]})})}function Hx(e){const{children:t,window:n}=e,r=$f(n),{mode:o,setMode:i,allColorSchemes:a}=Fy(),c=v.useMemo(()=>({paletteMode:!o||o==="system"?r:o,setPaletteMode:i,isDualTheme:a.length>1}),[a,o,r,i]);return g.jsx(Ga.Provider,{value:c,children:t})}function qx(e){const{children:t,theme:n,window:r}=e;return Zr(Ka(n),"This provider only accepts CSS vars themes."),g.jsxs(cf,{theme:n,documentNode:r==null?void 0:r.document,colorSchemeNode:r==null?void 0:r.document.documentElement,disableNestedContext:!0,colorSchemeStorageKey:Fl,modeStorageKey:ea,children:[Ll||(Ll=g.jsx(Ly,{attribute:zx,colorSchemeStorageKey:Fl,modeStorageKey:ea})),g.jsxs(Hx,{window:r,children:[Bl||(Bl=g.jsx(Ya,{enableColorScheme:!0})),t]})]})}function Gx(e){const{children:t,theme:n,...r}=e;return Ka(n)?g.jsx(qx,{theme:n,...r,children:t}):g.jsx(Wx,{theme:n,...r,children:t})}const zi=v.createContext(null),Xa=v.createContext(null);function Yx(){return Di({cssVariables:{colorSchemeSelector:"data-toolpad-color-scheme"},colorSchemes:{dark:!0}})}function Mf(e){const{children:t,theme:n=Yx(),branding:r=null,navigation:o=[],router:i=null,authentication:a=null,session:c=null,window:l}=e;return g.jsx(Af.Provider,{value:l,children:g.jsx(zi.Provider,{value:a,children:g.jsx(Xa.Provider,{value:c,children:g.jsx(Ui.Provider,{value:i,children:g.jsx(Gx,{theme:n,window:l,children:g.jsx(iv,{children:g.jsx(Cx,{children:g.jsx(Ha.Provider,{value:r,children:g.jsx(qa.Provider,{value:o,children:t})})})})})})})})})}process.env.NODE_ENV!=="production"&&(Mf.propTypes={authentication:s.shape({signIn:s.func.isRequired,signOut:s.func.isRequired}),branding:s.shape({logo:s.node,title:s.string}),children:s.node,navigation:s.arrayOf(s.oneOfType([s.shape({action:s.node,children:s.arrayOf(s.oneOfType([s.object,s.shape({kind:s.oneOf(["header"]).isRequired,title:s.string.isRequired}),s.shape({kind:s.oneOf(["divider"]).isRequired})]).isRequired),icon:s.node,kind:s.oneOf(["page"]),pattern:s.string,segment:s.string,title:s.string}),s.shape({kind:s.oneOf(["header"]).isRequired,title:s.string.isRequired}),s.shape({kind:s.oneOf(["divider"]).isRequired})]).isRequired),router:s.shape({navigate:s.func.isRequired,pathname:s.string.isRequired,searchParams:s.instanceOf(URLSearchParams).isRequired}),session:s.shape({user:s.shape({email:s.string,id:s.string,image:s.string,name:s.string})}),theme:s.object,window:s.object});function Kx(e){return Te("MuiAppBar",e)}Oe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Xx=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${de(t)}`,`position${de(n)}`]};return Ne(o,Kx,r)},Vl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Jx=ce(Bi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${de(n.position)}`],t[`color${de(n.color)}`]]}})(Ve(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(cr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?Vl(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?Vl(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Df=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:c="fixed",...l}=r,u={...r,color:i,position:c,enableColorOnDark:a},d=Xx(u);return g.jsx(Jx,{square:!0,component:"header",ownerState:u,elevation:4,className:ae(d.root,o,c==="fixed"&&"mui-fixed"),ref:n,...l})});process.env.NODE_ENV!=="production"&&(Df.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","inherit","primary","secondary","transparent","error","info","success","warning"]),s.string]),enableColorOnDark:s.bool,position:s.oneOf(["absolute","fixed","relative","static","sticky"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Zx=Oe("MuiBox",["root"]),Qx=Di(),on=wd({themeId:Nt,defaultTheme:Qx,defaultClassName:Zx.root,generateClassName:Ea.generate});process.env.NODE_ENV!=="production"&&(on.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function e0(e){const t=At(e);return t.body===e?fn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Vr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ul(e){return parseInt(fn(e).getComputedStyle(e).paddingRight,10)||0}function t0(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 zl(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const c=!i.includes(a),l=!t0(a);c&&l&&Vr(a,o)})}function gs(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function n0(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(e0(r)){const a=Ag(fn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ul(r)+a}px`;const c=At(r).querySelectorAll(".mui-fixed");[].forEach.call(c,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Ul(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=At(r).body;else{const a=r.parentElement,c=fn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&c.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:c})=>{i?a.style.setProperty(c,i):a.style.removeProperty(c)})}}function r0(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class o0{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&&Vr(t.modalRef,!1);const o=r0(n);zl(n,t.mount,t.modalRef,o,!0);const i=gs(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=gs(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=n0(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=gs(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&&Vr(t.modalRef,n),zl(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&&Vr(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const i0=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function s0(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function a0(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 c0(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||a0(e))}function l0(e){const t=[],n=[];return Array.from(e.querySelectorAll(i0)).forEach((r,o)=>{const i=s0(r);i===-1||!c0(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 u0(){return!0}function pi(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=l0,isEnabled:a=u0,open:c}=e,l=v.useRef(!1),u=v.useRef(null),d=v.useRef(null),f=v.useRef(null),h=v.useRef(null),b=v.useRef(!1),m=v.useRef(null),p=et(gr(t),m),y=v.useRef(null);v.useEffect(()=>{!c||!m.current||(b.current=!n)},[n,c]),v.useEffect(()=>{if(!c||!m.current)return;const w=At(m.current);return m.current.contains(w.activeElement)||(m.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(`
|
|
236
|
+
`)),m.current.setAttribute("tabIndex","-1")),b.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[c]),v.useEffect(()=>{if(!c||!m.current)return;const w=At(m.current),E=R=>{y.current=R,!(r||!a()||R.key!=="Tab")&&w.activeElement===m.current&&R.shiftKey&&(l.current=!0,d.current&&d.current.focus())},S=()=>{var j,x;const R=m.current;if(R===null)return;if(!w.hasFocus()||!a()||l.current){l.current=!1;return}if(R.contains(w.activeElement)||r&&w.activeElement!==u.current&&w.activeElement!==d.current)return;if(w.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let N=[];if((w.activeElement===u.current||w.activeElement===d.current)&&(N=i(m.current)),N.length>0){const P=!!((j=y.current)!=null&&j.shiftKey&&((x=y.current)==null?void 0:x.key)==="Tab"),B=N[0],$=N[N.length-1];typeof B!="string"&&typeof $!="string"&&(P?$.focus():B.focus())}else R.focus()};w.addEventListener("focusin",S),w.addEventListener("keydown",E,!0);const O=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(O),w.removeEventListener("focusin",S),w.removeEventListener("keydown",E,!0)}},[n,r,o,a,c,i]);const T=w=>{f.current===null&&(f.current=w.relatedTarget),b.current=!0,h.current=w.target;const E=t.props.onFocus;E&&E(w)},C=w=>{f.current===null&&(f.current=w.relatedTarget),b.current=!0};return g.jsxs(v.Fragment,{children:[g.jsx("div",{tabIndex:c?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:p,onFocus:T}),g.jsx("div",{tabIndex:c?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(pi.propTypes={children:Ln,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(pi.propTypes=_i(pi.propTypes));const d0={entering:{opacity:1},entered:{opacity:1}},Lf=v.forwardRef(function(t,n){const r=gn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:c,easing:l,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:b,onExited:m,onExiting:p,style:y,timeout:T=o,TransitionComponent:C=Rt,...w}=t,E=v.useRef(null),S=et(E,gr(c),n),O=U=>M=>{if(U){const L=E.current;M===void 0?U(L):U(L,M)}},R=O(h),N=O((U,M)=>{Wa(U);const L=pn({style:y,timeout:T,easing:l},{mode:"enter"});U.style.webkitTransition=r.transitions.create("opacity",L),U.style.transition=r.transitions.create("opacity",L),d&&d(U,M)}),j=O(f),x=O(p),P=O(U=>{const M=pn({style:y,timeout:T,easing:l},{mode:"exit"});U.style.webkitTransition=r.transitions.create("opacity",M),U.style.transition=r.transitions.create("opacity",M),b&&b(U)}),B=O(m),$=U=>{i&&i(E.current,U)};return g.jsx(C,{appear:a,in:u,nodeRef:E,onEnter:N,onEntered:j,onEntering:R,onExit:P,onExited:B,onExiting:x,addEndListener:$,timeout:T,...w,children:(U,{ownerState:M,...L})=>v.cloneElement(c,{style:{opacity:0,visibility:U==="exited"&&!u?"hidden":void 0,...d0[U],...y,...c.props.style},ref:S,...L})})});process.env.NODE_ENV!=="production"&&(Lf.propTypes={addEndListener:s.func,appear:s.bool,children:Ln.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 f0(e){return Te("MuiBackdrop",e)}Oe("MuiBackdrop",["root","invisible"]);const p0=e=>{const{classes:t,invisible:n}=e;return Ne({root:["root",n&&"invisible"]},f0,t)},h0=ce("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"}}]}),Bf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:c=!1,open:l,components:u={},componentsProps:d={},slotProps:f={},slots:h={},TransitionComponent:b,transitionDuration:m,...p}=r,y={...r,component:a,invisible:c},T=p0(y),C={transition:b,root:u.Root,...h},w={...d,...f},E={slots:C,slotProps:w},[S,O]=ht("root",{elementType:h0,externalForwardedProps:E,className:ae(T.root,i),ownerState:y}),[R,N]=ht("transition",{elementType:Lf,externalForwardedProps:E,ownerState:y});return g.jsx(R,{in:l,timeout:m,...p,...N,children:g.jsx(S,{"aria-hidden":!0,...O,classes:T,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(Bf.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 m0(e){return typeof e=="function"?e():e}function g0(e){return e?e.props.hasOwnProperty("in"):!1}const Wl=()=>{},$o=new o0;function y0(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:c,onClose:l,open:u,rootRef:d}=e,f=v.useRef({}),h=v.useRef(null),b=v.useRef(null),m=et(b,d),[p,y]=v.useState(!u),T=g0(c);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>At(h.current),E=()=>(f.current.modalRef=b.current,f.current.mount=h.current,f.current),S=()=>{$o.mount(E(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},O=cn(()=>{const M=m0(t)||w().body;$o.add(E(),M),b.current&&S()}),R=()=>$o.isTopModal(E()),N=cn(M=>{h.current=M,M&&(u&&R()?S():b.current&&Vr(b.current,C))}),j=v.useCallback(()=>{$o.remove(E(),C)},[C]);v.useEffect(()=>()=>{j()},[j]),v.useEffect(()=>{u?O():(!T||!o)&&j()},[u,j,T,o,O]);const x=M=>L=>{var H;(H=M.onKeyDown)==null||H.call(M,L),!(L.key!=="Escape"||L.which===229||!R())&&(n||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},P=M=>L=>{var H;(H=M.onClick)==null||H.call(M,L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(M={})=>{const L=Ud(e);delete L.onTransitionEnter,delete L.onTransitionExited;const H={...L,...M};return{role:"presentation",...H,onKeyDown:x(H),ref:m}},getBackdropProps:(M={})=>{const L=M;return{"aria-hidden":!0,...L,onClick:P(L),open:u}},getTransitionProps:()=>{const M=()=>{y(!1),i&&i()},L=()=>{y(!0),a&&a(),o&&j()};return{onEnter:el(M,(c==null?void 0:c.props.onEnter)??Wl),onExited:el(L,(c==null?void 0:c.props.onExited)??Wl)}},rootRef:m,portalRef:N,isTopModal:R,exited:p,hasTransition:T}}function v0(e){return Te("MuiModal",e)}Oe("MuiModal",["root","hidden","backdrop"]);const b0=e=>{const{open:t,exited:n,classes:r}=e;return Ne({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},v0,r)},x0=ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ve(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),E0=ce(Bf,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ja=v.forwardRef(function(t,n){const r=Ce({name:"MuiModal",props:t}),{BackdropComponent:o=E0,BackdropProps:i,classes:a,className:c,closeAfterTransition:l=!1,children:u,container:d,component:f,components:h={},componentsProps:b={},disableAutoFocus:m=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:y=!1,disablePortal:T=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:E=!1,keepMounted:S=!1,onBackdropClick:O,onClose:R,onTransitionEnter:N,onTransitionExited:j,open:x,slotProps:P={},slots:B={},theme:$,...U}=r,M={...r,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:p,disableEscapeKeyDown:y,disablePortal:T,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:E,keepMounted:S},{getRootProps:L,getBackdropProps:H,getTransitionProps:q,portalRef:Z,isTopModal:A,exited:z,hasTransition:te}=y0({...M,rootRef:n}),ne={...M,exited:z},G=b0(ne),J={};if(u.props.tabIndex===void 0&&(J.tabIndex="-1"),te){const{onEnter:F,onExited:he}=q();J.onEnter=F,J.onExited=he}const V={...U,slots:{root:h.Root,backdrop:h.Backdrop,...B},slotProps:{...b,...P}},[Q,ee]=ht("root",{elementType:x0,externalForwardedProps:V,getSlotProps:L,additionalProps:{ref:n,as:f},ownerState:ne,className:ae(c,G==null?void 0:G.root,!ne.open&&ne.exited&&(G==null?void 0:G.hidden))}),[oe,K]=ht("backdrop",{elementType:o,externalForwardedProps:V,additionalProps:i,getSlotProps:F=>H({...F,onClick:he=>{O&&O(he),F!=null&&F.onClick&&F.onClick(he)}}),className:ae(i==null?void 0:i.className,G==null?void 0:G.backdrop),ownerState:ne}),ie=et(i==null?void 0:i.ref,K.ref);return!S&&!x&&(!te||z)?null:g.jsx(Xr,{ref:Z,container:d,disablePortal:T,children:g.jsxs(Q,{...ee,children:[!E&&o?g.jsx(oe,{...K,ref:ie}):null,g.jsx(pi,{disableEnforceFocus:p,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:A,open:x,children:v.cloneElement(u,J)})]})})});process.env.NODE_ENV!=="production"&&(Ja.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Ln.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([Zt,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 S0(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=fn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=i.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let c=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");c=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+c-r.left}px)`:`translateX(${i.innerWidth+c-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-c}px)`:`translateX(-${r.left+r.width-c}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Ff(e){return typeof e=="function"?e():e}function Mo(e,t,n){const r=Ff(n),o=S0(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Vf=v.forwardRef(function(t,n){const r=gn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:c=!0,children:l,container:u,direction:d="down",easing:f=o,in:h,onEnter:b,onEntered:m,onEntering:p,onExit:y,onExited:T,onExiting:C,style:w,timeout:E=i,TransitionComponent:S=Rt,...O}=t,R=v.useRef(null),N=et(gr(l),R,n),j=q=>Z=>{q&&(Z===void 0?q(R.current):q(R.current,Z))},x=j((q,Z)=>{Mo(d,q,u),Wa(q),b&&b(q,Z)}),P=j((q,Z)=>{const A=pn({timeout:E,style:w,easing:f},{mode:"enter"});q.style.webkitTransition=r.transitions.create("-webkit-transform",{...A}),q.style.transition=r.transitions.create("transform",{...A}),q.style.webkitTransform="none",q.style.transform="none",p&&p(q,Z)}),B=j(m),$=j(C),U=j(q=>{const Z=pn({timeout:E,style:w,easing:f},{mode:"exit"});q.style.webkitTransition=r.transitions.create("-webkit-transform",Z),q.style.transition=r.transitions.create("transform",Z),Mo(d,q,u),y&&y(q)}),M=j(q=>{q.style.webkitTransition="",q.style.transition="",T&&T(q)}),L=q=>{a&&a(R.current,q)},H=v.useCallback(()=>{R.current&&Mo(d,R.current,u)},[d,u]);return v.useEffect(()=>{if(h||d==="down"||d==="right")return;const q=Md(()=>{R.current&&Mo(d,R.current,u)}),Z=fn(R.current);return Z.addEventListener("resize",q),()=>{q.clear(),Z.removeEventListener("resize",q)}},[d,h,u]),v.useEffect(()=>{h||H()},[h,H]),g.jsx(S,{nodeRef:R,onEnter:x,onEntered:B,onEntering:P,onExit:U,onExited:M,onExiting:$,addEndListener:L,appear:c,in:h,timeout:E,...O,children:(q,{ownerState:Z,...A})=>v.cloneElement(l,{ref:N,style:{visibility:q==="exited"&&!h?"hidden":void 0,...w,...l.props.style},...A})})});process.env.NODE_ENV!=="production"&&(Vf.propTypes={addEndListener:s.func,appear:s.bool,children:Ln.isRequired,container:en(s.oneOfType([Zt,s.func]),e=>{if(e.open){const t=Ff(e.container);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 `container` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
237
237
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `container` prop provided to the component is invalid.","It should be an HTML element instance."].join(`
|
|
238
|
-
`))}return null}),direction:s.oneOf(["down","left","right","up"]),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
|
|
239
|
-
`))}return{top:
|
|
240
|
-
`)),b!==null&&ve<b){const $e=ve-b;ve-=$e,
|
|
238
|
+
`))}return null}),direction:s.oneOf(["down","left","right","up"]),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 w0(e){return Te("MuiDrawer",e)}Oe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Uf=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},T0=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${de(n)}`,r!=="temporary"&&`paperAnchorDocked${de(n)}`]};return Ne(o,w0,t)},C0=ce(Ja,{name:"MuiDrawer",slot:"Root",overridesResolver:Uf})(Ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Hl=ce("div",{shouldForwardProp:Li,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Uf})({flex:"0 0 auto"}),O0=ce(Bi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${de(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${de(n.anchor)}`]]}})(Ve(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),zf={left:"right",right:"left",top:"down",bottom:"up"};function R0(e){return["left","right"].includes(e)}function k0({direction:e},t){return e==="rtl"&&R0(t)?zf[t]:t}const Ko=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDrawer"}),o=gn(),i=Ra(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:c="left",BackdropProps:l,children:u,className:d,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:b,...m}={},onClose:p,open:y=!1,PaperProps:T={},SlideProps:C,TransitionComponent:w=Vf,transitionDuration:E=a,variant:S="temporary",...O}=r,R=v.useRef(!1);v.useEffect(()=>{R.current=!0},[]);const N=k0({direction:i?"rtl":"ltr"},c),x={...r,anchor:c,elevation:f,open:y,variant:S,...O},P=T0(x),B=g.jsx(O0,{elevation:S==="temporary"?f:0,square:!0,...T,className:ae(P.paper,T.className),ownerState:x,children:u});if(S==="permanent")return g.jsx(Hl,{className:ae(P.root,P.docked,d),ownerState:x,ref:n,...O,children:B});const $=g.jsx(w,{in:y,direction:zf[N],timeout:E,appear:R.current,...C,children:B});return S==="persistent"?g.jsx(Hl,{className:ae(P.root,P.docked,d),ownerState:x,ref:n,...O,children:$}):g.jsx(C0,{BackdropProps:{...l,...b,transitionDuration:E},className:ae(P.root,P.modal,d),open:y,ownerState:x,onClose:p,hideBackdrop:h,ref:n,...O,...m,children:$})});process.env.NODE_ENV!=="production"&&(Ko.propTypes={anchor:s.oneOf(["bottom","left","right","top"]),BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,elevation:ir,hideBackdrop:s.bool,ModalProps:s.object,onClose:s.func,open:s.bool,PaperProps:s.object,SlideProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),variant:s.oneOf(["permanent","persistent","temporary"])});const at=Zd({createStyledComponent:ce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ce({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(at.propTypes={children:s.node,component:s.elementType,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),useFlexGap:s.bool});function P0(e){return Te("MuiToolbar",e)}Oe("MuiToolbar",["root","gutters","regular","dense"]);const N0=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ne({root:["root",!n&&"gutters",r]},P0,t)},j0=ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ve(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Xo=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:c="regular",...l}=r,u={...r,component:i,disableGutters:a,variant:c},d=N0(u);return g.jsx(j0,{as:i,className:ae(d.root,o),ref:n,ownerState:u,...l})});process.env.NODE_ENV!=="production"&&(Xo.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disableGutters:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["dense","regular"]),s.string])});const ql=vg({themeId:Nt}),A0=Ge(g.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),I0=Ge(g.jsx("path",{d:"M3 18h13v-2H3zm0-5h10v-2H3zm0-7v2h13V6zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5z"}),"MenuOpen"),Za=v.forwardRef(function(t,n){const{children:r,href:o,onClick:i,history:a,...c}=t,l=v.useContext(Ui),u=v.useMemo(()=>l?d=>{d.preventDefault();const f=new URL(d.currentTarget.href);l.navigate(f.pathname,{history:a}),i==null||i(d)}:i,[l,i,a]);return g.jsx("a",{ref:n,href:o,...c,onClick:u,children:r})});function _0(e){return Te("MuiPopover",e)}Oe("MuiPopover",["root","paper"]);function Gl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Yl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Kl(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Jo(e){return typeof e=="function"?e():e}const $0=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"]},_0,t)},M0=ce(Ja,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D0=ce(Bi,{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}),Wf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:l="anchorEl",children:u,className:d,container:f,elevation:h=8,marginThreshold:b=16,open:m,PaperProps:p={},slots:y={},slotProps:T={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=Jr,transitionDuration:E="auto",TransitionProps:{onEntering:S,...O}={},disableScrollLock:R=!1,...N}=r,j=(T==null?void 0:T.paper)??p,x=v.useRef(),P={...r,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:b,externalPaperSlotProps:j,transformOrigin:C,TransitionComponent:w,transitionDuration:E,TransitionProps:O},B=$0(P),$=v.useCallback(()=>{if(l==="anchorPosition")return process.env.NODE_ENV!=="production"&&(c||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),c;const K=Jo(i),ie=K&&K.nodeType===1?K:At(x.current).body,F=ie.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const he=ie.getBoundingClientRect();process.env.NODE_ENV!=="test"&&he.top===0&&he.left===0&&he.right===0&&he.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(`
|
|
239
|
+
`))}return{top:F.top+Gl(F,a.vertical),left:F.left+Yl(F,a.horizontal)}},[i,a.horizontal,a.vertical,c,l]),U=v.useCallback(K=>({vertical:Gl(K,C.vertical),horizontal:Yl(K,C.horizontal)}),[C.horizontal,C.vertical]),M=v.useCallback(K=>{const ie={width:K.offsetWidth,height:K.offsetHeight},F=U(ie);if(l==="none")return{top:null,left:null,transformOrigin:Kl(F)};const he=$();let X=he.top-F.vertical,ve=he.left-F.horizontal;const De=X+ie.height,ge=ve+ie.width,Le=fn(Jo(i)),Be=Le.innerHeight-b,Je=Le.innerWidth-b;if(b!==null&&X<b){const $e=X-b;X-=$e,F.vertical+=$e}else if(b!==null&&De>Be){const $e=De-Be;X-=$e,F.vertical+=$e}if(process.env.NODE_ENV!=="production"&&ie.height>Be&&ie.height&&Be&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ie.height-Be}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
240
|
+
`)),b!==null&&ve<b){const $e=ve-b;ve-=$e,F.horizontal+=$e}else if(ge>Je){const $e=ge-Je;ve-=$e,F.horizontal+=$e}return{top:`${Math.round(X)}px`,left:`${Math.round(ve)}px`,transformOrigin:Kl(F)}},[i,l,$,U,b]),[L,H]=v.useState(m),q=v.useCallback(()=>{const K=x.current;if(!K)return;const ie=M(K);ie.top!==null&&K.style.setProperty("top",ie.top),ie.left!==null&&(K.style.left=ie.left),K.style.transformOrigin=ie.transformOrigin,H(!0)},[M]);v.useEffect(()=>(R&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q)),[i,R,q]);const Z=(K,ie)=>{S&&S(K,ie),q()},A=()=>{H(!1)};v.useEffect(()=>{m&&q()}),v.useImperativeHandle(o,()=>m?{updatePosition:()=>{q()}}:null,[m,q]),v.useEffect(()=>{if(!m)return;const K=Md(()=>{q()}),ie=fn(i);return ie.addEventListener("resize",K),()=>{K.clear(),ie.removeEventListener("resize",K)}},[i,m,q]);let z=E;E==="auto"&&!w.muiSupportAuto&&(z=void 0);const te=f||(i?At(Jo(i)).body:void 0),ne={slots:y,slotProps:{...T,paper:j}},[G,J]=ht("paper",{elementType:D0,externalForwardedProps:ne,additionalProps:{elevation:h,className:ae(B.paper,j==null?void 0:j.className),style:L?j.style:{...j.style,opacity:0}},ownerState:P}),[V,{slotProps:Q,...ee}]=ht("root",{elementType:M0,externalForwardedProps:ne,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:te,open:m},ownerState:P,className:ae(B.root,d)}),oe=et(x,J.ref);return g.jsx(V,{...ee,...!Js(V)&&{slotProps:Q,disableScrollLock:R},...N,ref:n,children:g.jsx(w,{appear:!0,in:m,onEntering:Z,onExited:A,timeout:z,...O,children:g.jsx(G,{...J,ref:oe,children:u})})})});process.env.NODE_ENV!=="production"&&(Wf.propTypes={action:$i,anchorEl:en(s.oneOfType([Zt,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Jo(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(`
|
|
241
241
|
`))}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(`
|
|
242
|
-
`))}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([Jt,s.func]),disableScrollLock:s.bool,elevation:rr,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:ao}),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});function Tx(e){return Te("MuiDivider",e)}Oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Cx=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:c,variant:l}=e;return Ne({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",c==="right"&&a!=="vertical"&&"textAlignRight",c==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Tx,r)},Ox=ce("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ve(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ue(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Rx=ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ve(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Jr=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:c="horizontal",component:l=i||c==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth",...m}=r,p={...r,absolute:o,component:l,flexItem:u,light:d,orientation:c,role:f,textAlign:h,variant:b},g=Cx(p);return y.jsx(Ox,{as:l,className:ae(g.root,a),role:f,ref:n,ownerState:p,"aria-orientation":f==="separator"&&(l!=="hr"||c==="vertical")?c:void 0,...m,children:i?y.jsx(Rx,{className:g.wrapper,ownerState:p,children:i}):null})});Jr&&(Jr.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Jr.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});const Bf={signInLabel:"Sign In",signOutLabel:"Sign Out",iconButtonAriaLabel:"Current User"},Ff=v.createContext(Bf);function Wl({localeText:e,children:t}){const n=v.useMemo(()=>({...Bf,...e}),[e]);return y.jsx(Ff.Provider,{value:n,children:t})}function Ja(){return v.useContext(Ff)}function kx(e){const t=v.useContext(Vi),n=Ja();return y.jsx(Va,{disableElevation:!0,variant:"contained",size:"small",onClick:t==null?void 0:t.signIn,sx:{textTransform:"capitalize",filter:"opacity(0.9)",width:"50%",margin:r=>`${r.spacing(1)} auto`,transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},...e,children:(n==null?void 0:n.signInLabel)||"Sign In"})}const Vf=Ge(y.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var Hl;function Uf(e){const t=v.useContext(Vi),n=Ja();return y.jsx(Va,{disabled:!t,variant:"outlined",size:"small",disableElevation:!0,onClick:t==null?void 0:t.signOut,sx:{textTransform:"capitalize",fontWeight:"normal",filter:"opacity(0.9)",transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},startIcon:Hl||(Hl=y.jsx(Vf,{})),...e,children:n.signOutLabel})}const Px=Ge(y.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var ql;function fi(e){var d,f,h,b,m,p,g;const{slots:t,variant:n="condensed",slotProps:r,open:o,handleClick:i,sx:a}=e,c=v.useContext(Ya),l=Ja();if(!c||!c.user)return null;const u=t!=null&&t.avatar?y.jsx(t.avatar,{}):y.jsx(Fa,{src:((d=c.user)==null?void 0:d.image)||"",alt:((f=c.user)==null?void 0:f.name)||((h=c.user)==null?void 0:h.email)||"",sx:{height:n==="expanded"?48:32,width:n==="expanded"?48:32},...r==null?void 0:r.avatar});return n==="expanded"?y.jsxs(at,{direction:"row",justifyContent:"space-between",sx:{py:1,px:2,gap:2,...a},children:[y.jsxs(at,{direction:"row",justifyContent:"flex-start",spacing:2,children:[u,y.jsxs(at,{direction:"column",justifyContent:"space-evenly",children:[y.jsx(Et,{variant:"body2",fontWeight:"bolder",noWrap:!0,children:(b=c.user)==null?void 0:b.name}),y.jsx(Et,{variant:"caption",noWrap:!0,children:(m=c.user)==null?void 0:m.email})]})]}),i&&(t!=null&&t.moreIconButton?y.jsx(t.moreIconButton,{}):y.jsx(Wr,{size:"small",onClick:i,...r==null?void 0:r.moreIconButton,sx:{alignSelf:"center",...(p=r==null?void 0:r.moreIconButton)==null?void 0:p.sx},children:ql||(ql=y.jsx(Px,{fontSize:"small"}))}))]}):y.jsx(fo,{title:c.user.name??"Account",children:t!=null&&t.avatarIconButton?y.jsx(t.avatarIconButton,{...r==null?void 0:r.avatarIconButton}):y.jsx(at,{sx:{py:.5,...a},children:y.jsx(Wr,{onClick:i,"aria-label":l.iconButtonAriaLabel||"Current User",size:"small","aria-controls":o?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,...r==null?void 0:r.avatarIconButton,sx:{width:"fit-content",margin:"0 auto",...(g=r==null?void 0:r.avatarIconButton)==null?void 0:g.sx},children:u})})})}process.env.NODE_ENV!=="production"&&(fi.propTypes={handleClick:s.func,open:s.bool,slotProps:s.shape({avatar:s.object,avatarIconButton:s.object,moreIconButton:s.object}),slots:s.shape({avatar:s.elementType,avatarIconButton:s.elementType,moreIconButton:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["condensed","expanded"])});function Nx(e){const{children:t,...n}=e;return y.jsx(at,{...n,children:t})}function zf(e){const{children:t,...n}=e;return y.jsx(nn,{...n,sx:{display:"flex",flexDirection:"row",p:1,justifyContent:"flex-end",...n.sx},children:t})}var Gl,Yl;function Za(e){var f;const{localeText:t}=e,{slots:n,slotProps:r}=e,[o,i]=v.useState(null),a=v.useContext(Ya),c=v.useContext(Vi),l=!!o,u=h=>{i(h.currentTarget)},d=()=>{i(null)};return c?a!=null&&a.user?y.jsxs(Wl,{localeText:t,children:[n!=null&&n.preview?y.jsx(n.preview,{handleClick:u,open:l}):y.jsx(fi,{variant:"condensed",handleClick:u,open:l,...r==null?void 0:r.preview}),n!=null&&n.popover?y.jsx(n.popover,{open:l,onClick:u,onClose:d,...r==null?void 0:r.popover}):y.jsx(Lf,{anchorEl:o,id:"account-menu",open:l,onClose:d,onClick:d,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},...r==null?void 0:r.popover,slotProps:{paper:{elevation:0,sx:{overflow:"visible",filter:h=>`drop-shadow(0px 2px 8px ${h.palette.mode==="dark"?"rgba(255,255,255,0.10)":"rgba(0,0,0,0.32)"})`,mt:1,"&::before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},...(f=r==null?void 0:r.popover)==null?void 0:f.slotProps},children:n!=null&&n.popoverContent?y.jsx(n.popoverContent,{...r==null?void 0:r.popoverContent}):y.jsxs(at,{direction:"column",...r==null?void 0:r.popoverContent,children:[Gl||(Gl=y.jsx(Nx,{children:y.jsx(fi,{variant:"expanded"})})),Yl||(Yl=y.jsx(Jr,{})),y.jsx(zf,{children:y.jsx(Uf,{...r==null?void 0:r.signOutButton})})]})})]}):y.jsx(Wl,{localeText:t,children:n!=null&&n.signInButton?y.jsx(n.signInButton,{onClick:c.signIn}):y.jsx(kx,{...r==null?void 0:r.signInButton})}):null}process.env.NODE_ENV!=="production"&&(Za.propTypes={localeText:s.shape({iconButtonAriaLabel:s.string,signInLabel:s.string,signOutLabel:s.string}),slotProps:s.shape({popover:s.object,popoverContent:s.object,preview:s.shape({handleClick:s.func,open:s.bool,slotProps:s.shape({avatar:s.object,avatarIconButton:s.object,moreIconButton:s.object}),slots:s.shape({avatar:s.elementType,avatarIconButton:s.elementType,moreIconButton:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["condensed","expanded"])}),signInButton:s.object,signOutButton:s.object}),slots:s.shape({popover:s.elementType,popoverContent:s.elementType,preview:s.elementType,signInButton:s.elementType,signOutButton:s.elementType})});function jx(){const e=v.useContext(za);return(e==null?void 0:e.title)??"Toolpad"}function Ax(e){return Te("MuiCollapse",e)}Oe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Ix=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ne(r,Ax,n)},_x=ce("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ve(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),$x=ce("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Mx=ce("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),pi=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:c="0px",component:l,easing:u,in:d,onEnter:f,onEntered:h,onEntering:b,onExit:m,onExited:p,onExiting:g,orientation:T="vertical",style:C,timeout:w=Jd.standard,TransitionComponent:E=Rt,...S}=r,O={...r,orientation:T,collapsedSize:c},R=Ix(O),N=hn(),j=Tn(),x=v.useRef(null),P=v.useRef(),L=typeof c=="number"?`${c}px`:c,$=T==="horizontal",U=$?"width":"height",M=v.useRef(null),D=et(n,M),H=V=>Q=>{if(V){const ee=M.current;Q===void 0?V(ee):V(ee,Q)}},q=()=>x.current?x.current[$?"clientWidth":"clientHeight"]:0,Z=H((V,Q)=>{x.current&&$&&(x.current.style.position="absolute"),V.style[U]=L,f&&f(V,Q)}),A=H((V,Q)=>{const ee=q();x.current&&$&&(x.current.style.position="");const{duration:oe,easing:K}=dn({style:C,timeout:w,easing:u},{mode:"enter"});if(w==="auto"){const ie=N.transitions.getAutoHeightDuration(ee);V.style.transitionDuration=`${ie}ms`,P.current=ie}else V.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;V.style[U]=`${ee}px`,V.style.transitionTimingFunction=K,b&&b(V,Q)}),z=H((V,Q)=>{V.style[U]="auto",h&&h(V,Q)}),te=H(V=>{V.style[U]=`${q()}px`,m&&m(V)}),ne=H(p),G=H(V=>{const Q=q(),{duration:ee,easing:oe}=dn({style:C,timeout:w,easing:u},{mode:"exit"});if(w==="auto"){const K=N.transitions.getAutoHeightDuration(Q);V.style.transitionDuration=`${K}ms`,P.current=K}else V.style.transitionDuration=typeof ee=="string"?ee:`${ee}ms`;V.style[U]=L,V.style.transitionTimingFunction=oe,g&&g(V)}),J=V=>{w==="auto"&&j.start(P.current||0,V),o&&o(M.current,V)};return y.jsx(E,{in:d,onEnter:Z,onEntered:z,onEntering:A,onExit:te,onExited:ne,onExiting:G,addEndListener:J,nodeRef:M,timeout:w==="auto"?null:w,...S,children:(V,{ownerState:Q,...ee})=>y.jsx(_x,{as:l,className:ae(R.root,a,{entered:R.entered,exited:!d&&L==="0px"&&R.hidden}[V]),style:{[$?"minWidth":"minHeight"]:L,...C},ref:D,ownerState:{...O,state:V},...ee,children:y.jsx($x,{ownerState:{...O,state:V},className:R.wrapper,ref:x,children:y.jsx(Mx,{ownerState:{...O,state:V},className:R.wrapperInner,children:i})})})})});process.env.NODE_ENV!=="production"&&(pi.propTypes={addEndListener:s.func,children:s.node,classes:s.object,className:s.string,collapsedSize:s.oneOfType([s.number,s.string]),component:ao,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,orientation:s.oneOf(["horizontal","vertical"]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});pi&&(pi.muiSupportAuto=!0);const zt=v.createContext({});process.env.NODE_ENV!=="production"&&(zt.displayName="ListContext");function Dx(e){return Te("MuiList",e)}Oe("MuiList",["root","padding","dense","subheader"]);const Lx=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ne({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dx,t)},Bx=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Wf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:c=!1,disablePadding:l=!1,subheader:u,...d}=r,f=v.useMemo(()=>({dense:c}),[c]),h={...r,component:a,dense:c,disablePadding:l},b=Lx(h);return y.jsx(zt.Provider,{value:f,children:y.jsxs(Bx,{as:a,className:ae(b.root,i),ref:n,ownerState:h,...d,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(Wf.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Fx(e){return Te("MuiListItem",e)}Oe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function Vx(e){return Te("MuiListItemButton",e)}const Qn=Oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ux=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},zx=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:c}=e,u=Ne({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},Vx,n);return{...n,...u}},Wx=ce(co,{shouldForwardProp:e=>Mi(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Ux})(Ve(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Hf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:c,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:h=!1,className:b,...m}=r,p=v.useContext(zt),g=v.useMemo(()=>({dense:l||p.dense||!1,alignItems:o,disableGutters:u}),[o,p.dense,l,u]),T=v.useRef(null);An(()=>{i&&(T.current?T.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[i]);const C={...r,alignItems:o,dense:g.dense,disableGutters:u,divider:d,selected:h},w=zx(C),E=et(T,n);return y.jsx(zt.Provider,{value:g,children:y.jsx(Wx,{ref:E,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:ae(w.focusVisible,f),ownerState:C,className:ae(w.root,b),...m,classes:w,children:c})})});process.env.NODE_ENV!=="production"&&(Hf.propTypes={alignItems:s.oneOf(["center","flex-start"]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,href:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Hx(e){return Te("MuiListItemSecondaryAction",e)}Oe("MuiListItemSecondaryAction",["root","disableGutters"]);const qx=e=>{const{disableGutters:t,classes:n}=e;return Ne({root:["root",t&&"disableGutters"]},Hx,n)},Gx=ce("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Qa=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=v.useContext(zt),c={...r,disableGutters:a.disableGutters},l=qx(c);return y.jsx(Gx,{className:ae(l.root,o),ownerState:c,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Qa.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});Qa.muiName="ListItemSecondaryAction";const Yx=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Kx=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:c}=e;return Ne({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},Fx,n)},Xx=ce("div",{name:"MuiListItem",slot:"Root",overridesResolver:Yx})(Ve(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Qn.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Jx=ce("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),qf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:c,components:l={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...h}={},dense:b=!1,disableGutters:m=!1,disablePadding:p=!1,divider:g=!1,secondaryAction:T,slotProps:C={},slots:w={},...E}=r,S=v.useContext(zt),O=v.useMemo(()=>({dense:b||S.dense||!1,alignItems:o,disableGutters:m}),[o,S.dense,b,m]),R=v.useRef(null),N=v.Children.toArray(i),j=N.length&&jd(N[N.length-1],["ListItemSecondaryAction"]),x={...r,alignItems:o,dense:O.dense,disableGutters:m,disablePadding:p,divider:g,hasSecondaryAction:j},P=Kx(x),L=et(R,n),$=w.root||l.Root||Xx,U=C.root||u.root||{},M={className:ae(P.root,U.className,a),...E};let D=c||"li";return j?(D=!M.component&&!c?"div":D,d==="li"&&(D==="li"?D="div":M.component==="li"&&(M.component="div")),y.jsx(zt.Provider,{value:O,children:y.jsxs(Jx,{as:d,className:ae(P.container,f),ref:L,ownerState:x,...h,children:[y.jsx($,{...U,...!Ks($)&&{as:D,ownerState:{...x,...U.ownerState}},...M,children:N}),N.pop()]})})):y.jsx(zt.Provider,{value:O,children:y.jsxs($,{...U,as:D,ref:L,...!Ks($)&&{ownerState:{...x,...U.ownerState}},...M,children:[N,T&&y.jsx(Qa,{children:T})]})})});process.env.NODE_ENV!=="production"&&(qf.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Qt(s.node,e=>{const t=v.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const o=t[r];if(jd(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:ao,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Zx(e){return Te("MuiListItemIcon",e)}Oe("MuiListItemIcon",["root","alignItemsFlexStart"]);const Qx=e=>{const{alignItems:t,classes:n}=e;return Ne({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Zx,n)},eE=ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ve(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Gf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=v.useContext(zt),c={...r,alignItems:a.alignItems},l=Qx(c);return y.jsx(eE,{className:ae(l.root,o),ownerState:c,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Gf.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function tE(e){return Te("MuiListItemText",e)}const $o=Oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),nE=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Ne({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},tE,t)},rE=ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$o.primary}`]:t.primary},{[`& .${$o.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${vl.root}:where(& .${$o.primary})`]:{display:"block"},[`.${vl.root}:where(& .${$o.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Yf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:c=!1,primary:l,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f,slots:h={},slotProps:b={},...m}=r,{dense:p}=v.useContext(zt);let g=l??o,T=d;const C={...r,disableTypography:a,inset:c,primary:!!g,secondary:!!T,dense:p},w=nE(C),E={slots:h,slotProps:{primary:u,secondary:f,...b}},[S,O]=ht("primary",{className:w.primary,elementType:Et,externalForwardedProps:E,ownerState:C}),[R,N]=ht("secondary",{className:w.secondary,elementType:Et,externalForwardedProps:E,ownerState:C});return g!=null&&g.type!==Et&&!a&&(g=y.jsx(S,{variant:p?"body2":"body1",component:O!=null&&O.variant?void 0:"span",...O,children:g})),T!=null&&T.type!==Et&&!a&&(T=y.jsx(R,{variant:"body2",color:"textSecondary",...N,children:T})),y.jsxs(rE,{className:ae(w.root,i),ownerState:C,ref:n,...m,children:[g,T]})});process.env.NODE_ENV!=="production"&&(Yf.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,slotProps:s.shape({primary:s.oneOfType([s.func,s.object]),secondary:s.oneOfType([s.func,s.object])}),slots:s.shape({primary:s.elementType,secondary:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const oE=Ge(y.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),iE=Ge(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function sE(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var o="",i=n+1;i<e.length;){var a=e.charCodeAt(i);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:o}),n=i;continue}if(r==="("){var c=1,l="",i=n+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if(e[i]==="\\"){l+=e[i++]+e[i++];continue}if(e[i]===")"){if(c--,c===0){i++;break}}else if(e[i]==="("&&(c++,e[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));l+=e[i++]}if(c)throw new TypeError("Unbalanced pattern at ".concat(n));if(!l)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:l}),n=i;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function aE(e,t){t===void 0&&(t={});for(var n=sE(e),r=t.prefixes,o=r===void 0?"./":r,i=t.delimiter,a=i===void 0?"/#?":i,c=[],l=0,u=0,d="",f=function(j){if(u<n.length&&n[u].type===j)return n[u++].value},h=function(j){var x=f(j);if(x!==void 0)return x;var P=n[u],L=P.type,$=P.index;throw new TypeError("Unexpected ".concat(L," at ").concat($,", expected ").concat(j))},b=function(){for(var j="",x;x=f("CHAR")||f("ESCAPED_CHAR");)j+=x;return j},m=function(j){for(var x=0,P=a;x<P.length;x++){var L=P[x];if(j.indexOf(L)>-1)return!0}return!1},p=function(j){var x=c[c.length-1],P=j||(x&&typeof x=="string"?x:"");if(x&&!P)throw new TypeError('Must have text between two parameters, missing text after "'.concat(x.name,'"'));return!P||m(P)?"[^".concat(rn(a),"]+?"):"(?:(?!".concat(rn(P),")[^").concat(rn(a),"])+?")};u<n.length;){var g=f("CHAR"),T=f("NAME"),C=f("PATTERN");if(T||C){var w=g||"";o.indexOf(w)===-1&&(d+=w,w=""),d&&(c.push(d),d=""),c.push({name:T||l++,prefix:w,suffix:"",pattern:C||p(w),modifier:f("MODIFIER")||""});continue}var E=g||f("ESCAPED_CHAR");if(E){d+=E;continue}d&&(c.push(d),d="");var S=f("OPEN");if(S){var w=b(),O=f("NAME")||"",R=f("PATTERN")||"",N=b();h("CLOSE"),c.push({name:O||(R?l++:""),pattern:O&&!R?p(w):R,prefix:w,suffix:N,modifier:f("MODIFIER")||""});continue}h("END")}return c}function rn(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Kf(e){return e&&e.sensitive?"":"i"}function cE(e,t){return e}function lE(e,t,n){var r=e.map(function(o){return ec(o,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),Kf(n))}function uE(e,t,n){return dE(aE(e,n),t,n)}function dE(e,t,n){n===void 0&&(n={});for(var r=n.strict,o=r===void 0?!1:r,i=n.start,a=i===void 0?!0:i,c=n.end,l=c===void 0?!0:c,u=n.encode,d=u===void 0?function(x){return x}:u,f=n.delimiter,h=f===void 0?"/#?":f,b=n.endsWith,m=b===void 0?"":b,p="[".concat(rn(m),"]|$"),g="[".concat(rn(h),"]"),T=a?"^":"",C=0,w=e;C<w.length;C++){var E=w[C];if(typeof E=="string")T+=rn(d(E));else{var S=rn(d(E.prefix)),O=rn(d(E.suffix));if(E.pattern)if(S||O)if(E.modifier==="+"||E.modifier==="*"){var R=E.modifier==="*"?"?":"";T+="(?:".concat(S,"((?:").concat(E.pattern,")(?:").concat(O).concat(S,"(?:").concat(E.pattern,"))*)").concat(O,")").concat(R)}else T+="(?:".concat(S,"(").concat(E.pattern,")").concat(O,")").concat(E.modifier);else{if(E.modifier==="+"||E.modifier==="*")throw new TypeError('Can not repeat "'.concat(E.name,'" without a prefix and suffix'));T+="(".concat(E.pattern,")").concat(E.modifier)}else T+="(?:".concat(S).concat(O,")").concat(E.modifier)}}if(l)o||(T+="".concat(g,"?")),T+=n.endsWith?"(?=".concat(p,")"):"$";else{var N=e[e.length-1],j=typeof N=="string"?g.indexOf(N[N.length-1])>-1:N===void 0;o||(T+="(?:".concat(g,"(?=").concat(p,"))?")),j||(T+="(?=".concat(g,"|").concat(p,")"))}return new RegExp(T,Kf(n))}function ec(e,t,n){return e instanceof RegExp?cE(e):Array.isArray(e)?lE(e,t,n):uE(e,t,n)}const fE=e=>e.kind??"page",Zr=e=>fE(e)==="page",kn=e=>Zr(e)?e.title??e.segment??"":e.title;function tc(e,t){return`${e}${e&&!t.segment?"":"/"}${t.segment??""}`}function Xf(e,t,n){return e.pattern?ec(`${t}/${e.pattern}`).test(n):tc(t,e)===n}function Jf(e,t,n){if(Zr(e)&&e.children){const r=tc(t,e);return e.children.some(o=>Zr(o)?o.children?Jf(o,r,n):Xf(o,r,n):!1)}return!1}function pE(e){const t=new Map,n=(r,o)=>{if(Zr(r)){const i=`${o}${r.segment?`/${r.segment}`:""}`||"/";if(t.set(r,i),r.children)for(const a of r.children)n(a,i)}};for(const r of e)n(r,"");return t}const Kl=new WeakMap;function hE(e){let t=Kl.get(e);return t||(t=pE(e),Kl.set(e,t)),t}function mE(e){const t=new Map,n=r=>{if(Zr(r)){const o=Qs(e,r);if(t.has(o)&&console.warn(`Duplicate path in navigation: ${o}`),t.set(o,r),r.pattern){const i=r.segment?o.slice(0,-r.segment.length):o;t.set(ec(i+r.pattern),r)}if(r.children)for(const i of r.children)n(i)}};for(const r of e)n(r);return t}const Xl=new WeakMap;function gE(e){let t=Xl.get(e);return t||(t=mE(e),Xl.set(e,t)),t}function ms(e,t){const n=gE(e);for(const[r,o]of n.entries())if(typeof r=="string"&&r===t||r instanceof RegExp&&r.test(t))return o;return null}function Qs(e,t){const r=hE(e).get(t);return Kr(r,`Item not found in navigation: ${t.title}`),r}function hi(e,t){return{transition:n=>n.transitions.create(t,{easing:n.transitions.easing.sharp,duration:e?n.transitions.duration.enteringScreen:n.transitions.duration.leavingScreen})}}function Jl(e){return{...hi(e,"width"),overflowX:"hidden"}}var Zl,Ql;const yE=Y.styled(Hf)(({theme:e})=>({borderRadius:8,"&.Mui-selected":{"& .MuiListItemIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiTypography-root":{color:(e.vars??e).palette.text.primary},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.primary.dark},"& .MuiTouchRipple-child":{backgroundColor:(e.vars??e).palette.primary.dark}},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.action.active},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.action.active}}));function Zf({subNavigation:e,basePath:t="",depth:n=0,onLinkClick:r,isMini:o=!1,isFullyExpanded:i=!0,hasDrawerTransitions:a=!1,selectedItemId:c}){const l=v.useContext(Fi),u=(l==null?void 0:l.pathname)??"/",d=v.useMemo(()=>e.map((m,p)=>({navigationItem:m,originalIndex:p})).filter(({navigationItem:m})=>Jf(m,t,u)).map(({originalIndex:m})=>`${n}-${m}`),[t,n,u,e]),[f,h]=v.useState(d),b=v.useCallback(m=>()=>{h(p=>p.includes(m)?p.filter(g=>g!==m):[...p,m])},[]);return y.jsx(Wf,{sx:{padding:0,mb:n===0?4:1,pl:2*n},children:e.map((m,p)=>{if(m.kind==="header")return y.jsx(ui,{component:"div",sx:{fontSize:12,fontWeight:"700",height:o?0:40,...a?hi(i,"height"):{},px:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",zIndex:2},children:kn(m)},`subheader-${n}-${p}`);if(m.kind==="divider"){const N=e[p+1];return y.jsx(Jr,{sx:{borderBottomWidth:2,mx:1,mt:1,mb:(N==null?void 0:N.kind)==="header"&&!o?0:1,...a?hi(i,"margin"):{}}},`divider-${n}-${p}`)}const g=tc(t,m),T=`${n}-${p}`,C=kn(m),w=f.includes(T),E=w?Zl||(Zl=y.jsx(oE,{})):Ql||(Ql=y.jsx(iE,{})),S=34,O=Xf(m,t,u);process.env.NODE_ENV!=="production"&&O&&c&&console.warn(`Duplicate selected path in navigation: ${g}`),O&&!c&&(c=T);const R=y.jsx(qf,{sx:{py:0,px:1,overflowX:"hidden"},children:y.jsxs(yE,{selected:O&&(!m.children||o),sx:{px:1.4,height:48},...m.children&&!o?{onClick:b(T)}:{LinkComponent:Xa,href:g,onClick:r},children:[m.icon||o?y.jsxs(Gf,{sx:{minWidth:S,mr:1.2},children:[m.icon??null,!m.icon&&o?y.jsx(Fa,{sx:{width:S-7,height:S-7,fontSize:12,ml:"-2px"},children:C.split(" ").slice(0,2).map(N=>N.charAt(0).toUpperCase())}):null]}):null,y.jsx(Yf,{primary:C,sx:{whiteSpace:"nowrap",zIndex:1,"& .MuiTypography-root":{fontWeight:"500"}}}),m.action&&!o&&i?m.action:null,m.children&&!o&&i?E:null]})});return y.jsxs(v.Fragment,{children:[o?y.jsx(fo,{title:C,placement:"right",children:R}):R,m.children&&!o?y.jsx(pi,{in:w,timeout:"auto",unmountOnExit:!0,children:y.jsx(Zf,{subNavigation:m.children,basePath:g,depth:n+1,onLinkClick:r,selectedItemId:c})}):null]},T)})})}const eu=Ge(y.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),tu=Ge(y.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function vE(){return()=>{}}function bE(){return!1}function xE(){return!0}function EE(){return v.useSyncExternalStore(vE,bE,xE)}var nu,ru;function SE(){const e=EE(),t=Y.useTheme(),{paletteMode:n,setPaletteMode:r,isDualTheme:o}=v.useContext(Ha),i=v.useCallback(()=>{r(n==="dark"?"light":"dark")},[n,r]);return o?y.jsx(fo,{title:e?"Switch mode":`${n==="dark"?"Light":"Dark"} mode`,enterDelay:1e3,children:y.jsx("div",{children:y.jsx(Wr,{"aria-label":e?"Switch theme mode":`Switch to ${n==="dark"?"light":"dark"} mode`,onClick:i,sx:{color:(t.vars??t).palette.primary.dark},children:t.getColorSchemeSelector?y.jsxs(v.Fragment,{children:[y.jsx(eu,{sx:{display:"inline",[t.getColorSchemeSelector("dark")]:{display:"none"}}}),y.jsx(tu,{sx:{display:"none",[t.getColorSchemeSelector("dark")]:{display:"inline"}}})]}):y.jsx(v.Fragment,{children:e||n!=="dark"?nu||(nu=y.jsx(eu,{})):ru||(ru=y.jsx(tu,{}))})})})}):null}var ou;function Qf(){return ou||(ou=y.jsx(at,{direction:"row",alignItems:"center",children:y.jsx(SE,{})}))}var iu,su,au,cu,lu;function wE({size:e=40}){return y.jsxs("svg",{width:e,height:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[iu||(iu=y.jsxs("g",{mask:"url(#a)",children:[y.jsx("path",{d:"M22.74 27.73v-7.6l6.64-3.79v7.6l-6.64 3.79Z",fill:"#007FFF"}),y.jsx("path",{d:"M16.1 23.93v-7.59l6.64 3.8v7.59l-6.65-3.8Z",fill:"#39F"}),y.jsx("path",{d:"m16.1 16.34 6.64-3.8 6.64 3.8-6.64 3.8-6.65-3.8Z",fill:"#A5D8FF"})]})),y.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"17",width:"14",height:"15",children:su||(su=y.jsx("path",{d:"M8.5 22.3c0-1.05.56-2 1.46-2.53l3.75-2.14c.89-.5 1.98-.5 2.87 0l3.75 2.14a2.9 2.9 0 0 1 1.46 2.52v4.23c0 1.04-.56 2-1.46 2.52l-3.75 2.14c-.89.5-1.98.5-2.87 0l-3.75-2.14a2.9 2.9 0 0 1-1.46-2.52v-4.23Z",fill:"#D7DCE1"}))}),au||(au=y.jsxs("g",{mask:"url(#b)",children:[y.jsx("path",{d:"M15.14 32v-7.6l6.65-3.8v7.6L15.14 32Z",fill:"#007FFF"}),y.jsx("path",{d:"M8.5 28.2v-7.6l6.64 3.8V32L8.5 28.2Z",fill:"#39F"}),y.jsx("path",{d:"m8.5 20.6 6.64-3.79 6.65 3.8-6.65 3.8-6.64-3.8Z",fill:"#A5D8FF"})]})),y.jsx("mask",{id:"c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"4",width:"22",height:"20",children:cu||(cu=y.jsx("path",{d:"M24.17 4.82a2.9 2.9 0 0 0-2.87 0L9.97 11.22a2.9 2.9 0 0 0-1.47 2.53v4.22c0 1.04.56 2 1.46 2.52l3.75 2.14c.89.5 1.98.5 2.87 0l11.33-6.42a2.9 2.9 0 0 0 1.47-2.52V9.48c0-1.04-.56-2-1.46-2.52l-3.75-2.14Z",fill:"#D7DCE1"}))}),lu||(lu=y.jsxs("g",{mask:"url(#c)",children:[y.jsx("path",{d:"M15.14 23.46v-7.6L29.38 7.8v7.59l-14.24 8.07Z",fill:"#007FFF"}),y.jsx("path",{d:"M8.5 19.66v-7.6l6.64 3.8v7.6l-6.64-3.8Z",fill:"#39F"}),y.jsx("path",{d:"M8.5 12.07 22.74 4l6.64 3.8-14.24 8.06-6.64-3.8Z",fill:"#A5D8FF"})]}))]})}var uu,du,fu,pu;const TE=Y.styled(jf)(({theme:e})=>({borderWidth:0,borderBottomWidth:1,borderStyle:"solid",borderColor:(e.vars??e).palette.divider,boxShadow:"none",zIndex:e.zIndex.drawer+1})),CE=Y.styled("div")({position:"relative",height:40,"& img":{maxHeight:40}});function ep(e){const{children:t,branding:n,disableCollapsibleSidebar:r=!1,defaultSidebarCollapsed:o=!1,hideNavigation:i=!1,sidebarExpandedWidth:a=320,slots:c,slotProps:l,sx:u}=e,d=Y.useTheme(),f=v.useContext(za),h=v.useContext(Wa),b=v.useContext(Of),m=jx(),p=n??f,[g,T]=v.useState(!o),[C,w]=v.useState(!1),E=Fl(d.breakpoints.down("md"),b&&{matchMedia:b.matchMedia}),S=Fl(d.breakpoints.up("sm"),b&&{matchMedia:b.matchMedia}),O=E?C:g,R=v.useCallback(G=>{E?w(G):T(G)},[E]),[N,j]=v.useState(O);v.useEffect(()=>{if(O){const G=setTimeout(()=>{j(!0)},d.transitions.duration.enteringScreen);return()=>clearTimeout(G)}return j(!1),()=>{}},[O,d]);const x=v.useRef(""),P=v.useCallback(G=>()=>{R(G)},[R]),L=v.useCallback(()=>{R(!O)},[O,R]),$=v.useCallback(()=>{x.current="",w(!1)},[w]);v.useMemo(()=>{h&&(x.current="")},[h]);const U=!r&&!g,M=!r&&!C,D=v.useCallback(G=>{const J="Expand",V="Collapse";return y.jsx(fo,{title:`${G?V:J} menu`,enterDelay:1e3,children:y.jsx("div",{children:y.jsx(Wr,{"aria-label":`${G?V:J} navigation menu`,onClick:L,children:G?uu||(uu=y.jsx(bx,{})):du||(du=y.jsx(vx,{}))})})})},[L]),H=S&&(r||!E),q=(c==null?void 0:c.toolbarActions)??Qf,Z=(c==null?void 0:c.toolbarAccount)??Za,A=(c==null?void 0:c.sidebarFooter)??null,z=v.useCallback((G,J)=>{var V;return y.jsxs(v.Fragment,{children:[fu||(fu=y.jsx(Yo,{})),y.jsxs(nn,{component:"nav","aria-label":`${J.charAt(0).toUpperCase()}${J.slice(1)}`,sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",overflow:"auto",pt:((V=h[0])==null?void 0:V.kind)==="header"&&!G?0:2,...H?hi(N,"padding"):{}},children:[y.jsx(Zf,{subNavigation:h,onLinkClick:$,isMini:G,isFullyExpanded:N,hasDrawerTransitions:H,selectedItemId:x.current}),A?y.jsx(A,{mini:G,...l==null?void 0:l.sidebarFooter}):null]})]})},[A,$,H,N,h,l==null?void 0:l.sidebarFooter]),te=v.useCallback((G,J)=>{const V=G?64:a;return{displayPrint:"none",width:V,flexShrink:0,...Jl(O),...J?{position:"absolute"}:{},"& .MuiDrawer-paper":{position:"absolute",width:V,boxSizing:"border-box",backgroundImage:"none",...Jl(O)}}},[O,a]),ne=v.useRef(null);return y.jsxs(nn,{ref:ne,sx:{position:"relative",display:"flex",overflow:"hidden",height:"100vh",width:"100vw",...u},children:[y.jsx(TE,{color:"inherit",position:"absolute",sx:{displayPrint:"none"},children:y.jsx(Yo,{sx:{backgroundColor:"inherit",mx:{xs:-.75,sm:-1.5}},children:y.jsxs(at,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{flexWrap:"wrap",width:"100%"},children:[y.jsxs(at,{direction:"row",children:[i?null:y.jsxs(v.Fragment,{children:[y.jsx(nn,{sx:{mr:{sm:r?0:1},display:{md:"none"}},children:D(C)}),y.jsx(nn,{sx:{display:{xs:"none",md:r?"none":"block"},mr:r?0:1},children:D(g)})]}),y.jsx(Xa,{href:"/",style:{color:"inherit",textDecoration:"none"},children:y.jsxs(at,{direction:"row",alignItems:"center",children:[y.jsx(CE,{children:(p==null?void 0:p.logo)??(pu||(pu=y.jsx(wE,{size:40})))}),y.jsx(Et,{variant:"h6",sx:{color:(d.vars??d).palette.primary.main,fontWeight:"700",ml:1,whiteSpace:"nowrap"},children:m})]})})]}),y.jsxs(at,{direction:"row",alignItems:"center",spacing:1,sx:{marginLeft:"auto"},children:[y.jsx(q,{...l==null?void 0:l.toolbarActions}),y.jsx(Z,{...l==null?void 0:l.toolbarAccount})]})]})})}),i?null:y.jsxs(v.Fragment,{children:[y.jsx(Go,{container:ne.current,variant:"temporary",open:C,onClose:P(!1),ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:r?"block":"none",md:"none"},...te(!1,!0)},children:z(!1,"phone")}),y.jsx(Go,{variant:"permanent",sx:{display:{xs:"none",sm:r?"none":"block",md:"none"},...te(M,!1)},children:z(M,"tablet")}),y.jsx(Go,{variant:"permanent",sx:{display:{xs:"none",md:"block"},...te(U,!1)},children:z(U,"desktop")})]}),y.jsxs(nn,{sx:{display:"flex",flexDirection:"column",flex:1,minWidth:0},children:[y.jsx(Yo,{sx:{displayPrint:"none"}}),y.jsx(nn,{component:"main",sx:{display:"flex",flexDirection:"column",flex:1,overflow:"auto"},children:t})]})]})}process.env.NODE_ENV!=="production"&&(ep.propTypes={branding:s.shape({logo:s.node,title:s.string}),children:s.node,defaultSidebarCollapsed:s.bool,disableCollapsibleSidebar:s.bool,hideNavigation:s.bool,sidebarExpandedWidth:s.oneOfType([s.number,s.string]),slotProps:s.shape({sidebarFooter:s.shape({mini:s.bool.isRequired}),toolbarAccount:s.shape({localeText:s.shape({iconButtonAriaLabel:s.string,signInLabel:s.string,signOutLabel:s.string}),slotProps:s.shape({popover:s.object,popoverContent:s.object,preview:s.object,signInButton:s.object,signOutButton:s.object}),slots:s.shape({popover:s.elementType,popoverContent:s.elementType,preview:s.elementType,signInButton:s.elementType,signOutButton:s.elementType})}),toolbarActions:s.object}),slots:s.shape({sidebarFooter:s.elementType,toolbarAccount:s.elementType,toolbarActions:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const tp=Vg({createStyledComponent:ce("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ce({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(tp.propTypes={children:s.node,classes:s.object,component:s.elementType,disableGutters:s.bool,fixed:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});var hu=new Set;function OE(e){hu.has(e)||(hu.add(e),console.warn(e))}const RE=Ge(y.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),kE=ce(co)(Ve(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Ls(e.palette.grey[200],.12)}:{backgroundColor:Ls(e.palette.grey[600],.12)}}}))),PE=ce(RE)({width:24,height:16});function np(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return y.jsx("li",{children:y.jsx(kE,{focusRipple:!0,...r,ownerState:o,children:y.jsx(PE,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}process.env.NODE_ENV!=="production"&&(np.propTypes={slotProps:s.shape({collapsedIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({CollapsedIcon:s.elementType}),sx:s.object});function NE(e){return Te("MuiBreadcrumbs",e)}const jE=Oe("MuiBreadcrumbs",["root","ol","li","separator"]),AE=e=>{const{classes:t}=e;return Ne({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},NE,t)},IE=ce(Et,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${jE.li}`]:t.li},t.root]})({}),_E=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),$E=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function ME(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,y.jsx($E,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const rp=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:c={},slotProps:l={},expandText:u="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:b="/",...m}=r,[p,g]=v.useState(!1),T={...r,component:a,expanded:p,expandText:u,itemsAfterCollapse:d,itemsBeforeCollapse:f,maxItems:h,separator:b},C=AE(T),w=Bd({elementType:c.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:T}),E=v.useRef(null),S=R=>{const N=()=>{g(!0);const j=E.current.querySelector("a[href],button,[tabindex]");j&&j.focus()};return f+d>=R.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${d}} + itemsBeforeCollapse={${f}} >= maxItems={${h}}`].join(`
|
|
243
|
-
`)),R):[...R.slice(0,f),
|
|
244
|
-
`)),v.isValidElement(R))).map((R,N)=>
|
|
242
|
+
`))}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([Zt,s.func]),disableScrollLock:s.bool,elevation:ir,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:uo}),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});function L0(e){return Te("MuiDivider",e)}Oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const B0=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:c,variant:l}=e;return Ne({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",c==="right"&&a!=="vertical"&&"textAlignRight",c==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},L0,r)},F0=ce("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ve(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ue(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),V0=ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ve(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),eo=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:c="horizontal",component:l=i||c==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth",...m}=r,p={...r,absolute:o,component:l,flexItem:u,light:d,orientation:c,role:f,textAlign:h,variant:b},y=B0(p);return g.jsx(F0,{as:l,className:ae(y.root,a),role:f,ref:n,ownerState:p,"aria-orientation":f==="separator"&&(l!=="hr"||c==="vertical")?c:void 0,...m,children:i?g.jsx(V0,{className:y.wrapper,ownerState:p,children:i}):null})});eo&&(eo.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(eo.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});const Hf={signInLabel:"Sign In",signOutLabel:"Sign Out",iconButtonAriaLabel:"Current User"},qf=v.createContext(Hf);function Xl({localeText:e,children:t}){const n=v.useMemo(()=>({...Hf,...e}),[e]);return g.jsx(qf.Provider,{value:n,children:t})}function Qa(){return v.useContext(qf)}function U0(e){const t=v.useContext(zi),n=Qa();return g.jsx(za,{disableElevation:!0,variant:"contained",size:"small",onClick:t==null?void 0:t.signIn,sx:{textTransform:"capitalize",filter:"opacity(0.9)",width:"50%",margin:r=>`${r.spacing(1)} auto`,transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},...e,children:(n==null?void 0:n.signInLabel)||"Sign In"})}const Gf=Ge(g.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var Jl;function Yf(e){const t=v.useContext(zi),n=Qa();return g.jsx(za,{disabled:!t,variant:"outlined",size:"small",disableElevation:!0,onClick:t==null?void 0:t.signOut,sx:{textTransform:"capitalize",fontWeight:"normal",filter:"opacity(0.9)",transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},startIcon:Jl||(Jl=g.jsx(Gf,{})),...e,children:n.signOutLabel})}const z0=Ge(g.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var Zl;function hi(e){var d,f,h,b,m,p,y;const{slots:t,variant:n="condensed",slotProps:r,open:o,handleClick:i,sx:a}=e,c=v.useContext(Xa),l=Qa();if(!c||!c.user)return null;const u=t!=null&&t.avatar?g.jsx(t.avatar,{}):g.jsx(Ua,{src:((d=c.user)==null?void 0:d.image)||"",alt:((f=c.user)==null?void 0:f.name)||((h=c.user)==null?void 0:h.email)||"",sx:{height:n==="expanded"?48:32,width:n==="expanded"?48:32},...r==null?void 0:r.avatar});return n==="expanded"?g.jsxs(at,{direction:"row",justifyContent:"space-between",sx:{py:1,px:2,gap:2,...a},children:[g.jsxs(at,{direction:"row",justifyContent:"flex-start",spacing:2,children:[u,g.jsxs(at,{direction:"column",justifyContent:"space-evenly",children:[g.jsx(Et,{variant:"body2",fontWeight:"bolder",noWrap:!0,children:(b=c.user)==null?void 0:b.name}),g.jsx(Et,{variant:"caption",noWrap:!0,children:(m=c.user)==null?void 0:m.email})]})]}),i&&(t!=null&&t.moreIconButton?g.jsx(t.moreIconButton,{}):g.jsx(Gr,{size:"small",onClick:i,...r==null?void 0:r.moreIconButton,sx:{alignSelf:"center",...(p=r==null?void 0:r.moreIconButton)==null?void 0:p.sx},children:Zl||(Zl=g.jsx(z0,{fontSize:"small"}))}))]}):g.jsx(mo,{title:c.user.name??"Account",children:t!=null&&t.avatarIconButton?g.jsx(t.avatarIconButton,{...r==null?void 0:r.avatarIconButton}):g.jsx(at,{sx:{py:.5,...a},children:g.jsx(Gr,{onClick:i,"aria-label":l.iconButtonAriaLabel||"Current User",size:"small","aria-controls":o?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,...r==null?void 0:r.avatarIconButton,sx:{width:"fit-content",margin:"0 auto",...(y=r==null?void 0:r.avatarIconButton)==null?void 0:y.sx},children:u})})})}process.env.NODE_ENV!=="production"&&(hi.propTypes={handleClick:s.func,open:s.bool,slotProps:s.shape({avatar:s.object,avatarIconButton:s.object,moreIconButton:s.object}),slots:s.shape({avatar:s.elementType,avatarIconButton:s.elementType,moreIconButton:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["condensed","expanded"])});function W0(e){const{children:t,...n}=e;return g.jsx(at,{...n,children:t})}function Kf(e){const{children:t,...n}=e;return g.jsx(on,{...n,sx:{display:"flex",flexDirection:"row",p:1,justifyContent:"flex-end",...n.sx},children:t})}var Ql,eu;function ec(e){var f;const{localeText:t}=e,{slots:n,slotProps:r}=e,[o,i]=v.useState(null),a=v.useContext(Xa),c=v.useContext(zi),l=!!o,u=h=>{i(h.currentTarget)},d=()=>{i(null)};return c?a!=null&&a.user?g.jsxs(Xl,{localeText:t,children:[n!=null&&n.preview?g.jsx(n.preview,{handleClick:u,open:l}):g.jsx(hi,{variant:"condensed",handleClick:u,open:l,...r==null?void 0:r.preview}),n!=null&&n.popover?g.jsx(n.popover,{open:l,onClick:u,onClose:d,...r==null?void 0:r.popover}):g.jsx(Wf,{anchorEl:o,id:"account-menu",open:l,onClose:d,onClick:d,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},...r==null?void 0:r.popover,slotProps:{paper:{elevation:0,sx:{overflow:"visible",filter:h=>`drop-shadow(0px 2px 8px ${h.palette.mode==="dark"?"rgba(255,255,255,0.10)":"rgba(0,0,0,0.32)"})`,mt:1,"&::before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},...(f=r==null?void 0:r.popover)==null?void 0:f.slotProps},children:n!=null&&n.popoverContent?g.jsx(n.popoverContent,{...r==null?void 0:r.popoverContent}):g.jsxs(at,{direction:"column",...r==null?void 0:r.popoverContent,children:[Ql||(Ql=g.jsx(W0,{children:g.jsx(hi,{variant:"expanded"})})),eu||(eu=g.jsx(eo,{})),g.jsx(Kf,{children:g.jsx(Yf,{...r==null?void 0:r.signOutButton})})]})})]}):g.jsx(Xl,{localeText:t,children:n!=null&&n.signInButton?g.jsx(n.signInButton,{onClick:c.signIn}):g.jsx(U0,{...r==null?void 0:r.signInButton})}):null}process.env.NODE_ENV!=="production"&&(ec.propTypes={localeText:s.shape({iconButtonAriaLabel:s.string,signInLabel:s.string,signOutLabel:s.string}),slotProps:s.shape({popover:s.object,popoverContent:s.object,preview:s.shape({handleClick:s.func,open:s.bool,slotProps:s.shape({avatar:s.object,avatarIconButton:s.object,moreIconButton:s.object}),slots:s.shape({avatar:s.elementType,avatarIconButton:s.elementType,moreIconButton:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["condensed","expanded"])}),signInButton:s.object,signOutButton:s.object}),slots:s.shape({popover:s.elementType,popoverContent:s.elementType,preview:s.elementType,signInButton:s.elementType,signOutButton:s.elementType})});function H0(){const e=v.useContext(Ha);return(e==null?void 0:e.title)??"Toolpad"}function q0(e){return Te("MuiCollapse",e)}Oe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const G0=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ne(r,q0,n)},Y0=ce("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ve(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),K0=ce("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),X0=ce("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),mi=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:c="0px",component:l,easing:u,in:d,onEnter:f,onEntered:h,onEntering:b,onExit:m,onExited:p,onExiting:y,orientation:T="vertical",style:C,timeout:w=rf.standard,TransitionComponent:E=Rt,...S}=r,O={...r,orientation:T,collapsedSize:c},R=G0(O),N=gn(),j=Cn(),x=v.useRef(null),P=v.useRef(),B=typeof c=="number"?`${c}px`:c,$=T==="horizontal",U=$?"width":"height",M=v.useRef(null),L=et(n,M),H=V=>Q=>{if(V){const ee=M.current;Q===void 0?V(ee):V(ee,Q)}},q=()=>x.current?x.current[$?"clientWidth":"clientHeight"]:0,Z=H((V,Q)=>{x.current&&$&&(x.current.style.position="absolute"),V.style[U]=B,f&&f(V,Q)}),A=H((V,Q)=>{const ee=q();x.current&&$&&(x.current.style.position="");const{duration:oe,easing:K}=pn({style:C,timeout:w,easing:u},{mode:"enter"});if(w==="auto"){const ie=N.transitions.getAutoHeightDuration(ee);V.style.transitionDuration=`${ie}ms`,P.current=ie}else V.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;V.style[U]=`${ee}px`,V.style.transitionTimingFunction=K,b&&b(V,Q)}),z=H((V,Q)=>{V.style[U]="auto",h&&h(V,Q)}),te=H(V=>{V.style[U]=`${q()}px`,m&&m(V)}),ne=H(p),G=H(V=>{const Q=q(),{duration:ee,easing:oe}=pn({style:C,timeout:w,easing:u},{mode:"exit"});if(w==="auto"){const K=N.transitions.getAutoHeightDuration(Q);V.style.transitionDuration=`${K}ms`,P.current=K}else V.style.transitionDuration=typeof ee=="string"?ee:`${ee}ms`;V.style[U]=B,V.style.transitionTimingFunction=oe,y&&y(V)}),J=V=>{w==="auto"&&j.start(P.current||0,V),o&&o(M.current,V)};return g.jsx(E,{in:d,onEnter:Z,onEntered:z,onEntering:A,onExit:te,onExited:ne,onExiting:G,addEndListener:J,nodeRef:M,timeout:w==="auto"?null:w,...S,children:(V,{ownerState:Q,...ee})=>g.jsx(Y0,{as:l,className:ae(R.root,a,{entered:R.entered,exited:!d&&B==="0px"&&R.hidden}[V]),style:{[$?"minWidth":"minHeight"]:B,...C},ref:L,ownerState:{...O,state:V},...ee,children:g.jsx(K0,{ownerState:{...O,state:V},className:R.wrapper,ref:x,children:g.jsx(X0,{ownerState:{...O,state:V},className:R.wrapperInner,children:i})})})})});process.env.NODE_ENV!=="production"&&(mi.propTypes={addEndListener:s.func,children:s.node,classes:s.object,className:s.string,collapsedSize:s.oneOfType([s.number,s.string]),component:uo,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,orientation:s.oneOf(["horizontal","vertical"]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});mi&&(mi.muiSupportAuto=!0);const zt=v.createContext({});process.env.NODE_ENV!=="production"&&(zt.displayName="ListContext");function J0(e){return Te("MuiList",e)}Oe("MuiList",["root","padding","dense","subheader"]);const Z0=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ne({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},J0,t)},Q0=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Xf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:c=!1,disablePadding:l=!1,subheader:u,...d}=r,f=v.useMemo(()=>({dense:c}),[c]),h={...r,component:a,dense:c,disablePadding:l},b=Z0(h);return g.jsx(zt.Provider,{value:f,children:g.jsxs(Q0,{as:a,className:ae(b.root,i),ref:n,ownerState:h,...d,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(Xf.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function eE(e){return Te("MuiListItem",e)}Oe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function tE(e){return Te("MuiListItemButton",e)}const tr=Oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),nE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},rE=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:c}=e,u=Ne({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},tE,n);return{...n,...u}},oE=ce(fo,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:nE})(Ve(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tr.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Jf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:c,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:h=!1,className:b,...m}=r,p=v.useContext(zt),y=v.useMemo(()=>({dense:l||p.dense||!1,alignItems:o,disableGutters:u}),[o,p.dense,l,u]),T=v.useRef(null);In(()=>{i&&(T.current?T.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[i]);const C={...r,alignItems:o,dense:y.dense,disableGutters:u,divider:d,selected:h},w=rE(C),E=et(T,n);return g.jsx(zt.Provider,{value:y,children:g.jsx(oE,{ref:E,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:ae(w.focusVisible,f),ownerState:C,className:ae(w.root,b),...m,classes:w,children:c})})});process.env.NODE_ENV!=="production"&&(Jf.propTypes={alignItems:s.oneOf(["center","flex-start"]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,href:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function iE(e){return Te("MuiListItemSecondaryAction",e)}Oe("MuiListItemSecondaryAction",["root","disableGutters"]);const sE=e=>{const{disableGutters:t,classes:n}=e;return Ne({root:["root",t&&"disableGutters"]},iE,n)},aE=ce("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),tc=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=v.useContext(zt),c={...r,disableGutters:a.disableGutters},l=sE(c);return g.jsx(aE,{className:ae(l.root,o),ownerState:c,ref:n,...i})});process.env.NODE_ENV!=="production"&&(tc.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});tc.muiName="ListItemSecondaryAction";const cE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},lE=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:c}=e;return Ne({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},eE,n)},uE=ce("div",{name:"MuiListItem",slot:"Root",overridesResolver:cE})(Ve(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${tr.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),dE=ce("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Zf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:c,components:l={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...h}={},dense:b=!1,disableGutters:m=!1,disablePadding:p=!1,divider:y=!1,secondaryAction:T,slotProps:C={},slots:w={},...E}=r,S=v.useContext(zt),O=v.useMemo(()=>({dense:b||S.dense||!1,alignItems:o,disableGutters:m}),[o,S.dense,b,m]),R=v.useRef(null),N=v.Children.toArray(i),j=N.length&&Dd(N[N.length-1],["ListItemSecondaryAction"]),x={...r,alignItems:o,dense:O.dense,disableGutters:m,disablePadding:p,divider:y,hasSecondaryAction:j},P=lE(x),B=et(R,n),$=w.root||l.Root||uE,U=C.root||u.root||{},M={className:ae(P.root,U.className,a),...E};let L=c||"li";return j?(L=!M.component&&!c?"div":L,d==="li"&&(L==="li"?L="div":M.component==="li"&&(M.component="div")),g.jsx(zt.Provider,{value:O,children:g.jsxs(dE,{as:d,className:ae(P.container,f),ref:B,ownerState:x,...h,children:[g.jsx($,{...U,...!Js($)&&{as:L,ownerState:{...x,...U.ownerState}},...M,children:N}),N.pop()]})})):g.jsx(zt.Provider,{value:O,children:g.jsxs($,{...U,as:L,ref:B,...!Js($)&&{ownerState:{...x,...U.ownerState}},...M,children:[N,T&&g.jsx(tc,{children:T})]})})});process.env.NODE_ENV!=="production"&&(Zf.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:en(s.node,e=>{const t=v.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const o=t[r];if(Dd(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:uo,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function fE(e){return Te("MuiListItemIcon",e)}Oe("MuiListItemIcon",["root","alignItemsFlexStart"]);const pE=e=>{const{alignItems:t,classes:n}=e;return Ne({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},fE,n)},hE=ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ve(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Qf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=v.useContext(zt),c={...r,alignItems:a.alignItems},l=pE(c);return g.jsx(hE,{className:ae(l.root,o),ownerState:c,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Qf.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function mE(e){return Te("MuiListItemText",e)}const Do=Oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gE=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Ne({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},mE,t)},yE=ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Do.primary}`]:t.primary},{[`& .${Do.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Tl.root}:where(& .${Do.primary})`]:{display:"block"},[`.${Tl.root}:where(& .${Do.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ep=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:c=!1,primary:l,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f,slots:h={},slotProps:b={},...m}=r,{dense:p}=v.useContext(zt);let y=l??o,T=d;const C={...r,disableTypography:a,inset:c,primary:!!y,secondary:!!T,dense:p},w=gE(C),E={slots:h,slotProps:{primary:u,secondary:f,...b}},[S,O]=ht("primary",{className:w.primary,elementType:Et,externalForwardedProps:E,ownerState:C}),[R,N]=ht("secondary",{className:w.secondary,elementType:Et,externalForwardedProps:E,ownerState:C});return y!=null&&y.type!==Et&&!a&&(y=g.jsx(S,{variant:p?"body2":"body1",component:O!=null&&O.variant?void 0:"span",...O,children:y})),T!=null&&T.type!==Et&&!a&&(T=g.jsx(R,{variant:"body2",color:"textSecondary",...N,children:T})),g.jsxs(yE,{className:ae(w.root,i),ownerState:C,ref:n,...m,children:[y,T]})});process.env.NODE_ENV!=="production"&&(ep.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,slotProps:s.shape({primary:s.oneOfType([s.func,s.object]),secondary:s.oneOfType([s.func,s.object])}),slots:s.shape({primary:s.elementType,secondary:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const vE=Ge(g.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),bE=Ge(g.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function xE(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var o="",i=n+1;i<e.length;){var a=e.charCodeAt(i);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:o}),n=i;continue}if(r==="("){var c=1,l="",i=n+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if(e[i]==="\\"){l+=e[i++]+e[i++];continue}if(e[i]===")"){if(c--,c===0){i++;break}}else if(e[i]==="("&&(c++,e[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));l+=e[i++]}if(c)throw new TypeError("Unbalanced pattern at ".concat(n));if(!l)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:l}),n=i;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function EE(e,t){t===void 0&&(t={});for(var n=xE(e),r=t.prefixes,o=r===void 0?"./":r,i=t.delimiter,a=i===void 0?"/#?":i,c=[],l=0,u=0,d="",f=function(j){if(u<n.length&&n[u].type===j)return n[u++].value},h=function(j){var x=f(j);if(x!==void 0)return x;var P=n[u],B=P.type,$=P.index;throw new TypeError("Unexpected ".concat(B," at ").concat($,", expected ").concat(j))},b=function(){for(var j="",x;x=f("CHAR")||f("ESCAPED_CHAR");)j+=x;return j},m=function(j){for(var x=0,P=a;x<P.length;x++){var B=P[x];if(j.indexOf(B)>-1)return!0}return!1},p=function(j){var x=c[c.length-1],P=j||(x&&typeof x=="string"?x:"");if(x&&!P)throw new TypeError('Must have text between two parameters, missing text after "'.concat(x.name,'"'));return!P||m(P)?"[^".concat(sn(a),"]+?"):"(?:(?!".concat(sn(P),")[^").concat(sn(a),"])+?")};u<n.length;){var y=f("CHAR"),T=f("NAME"),C=f("PATTERN");if(T||C){var w=y||"";o.indexOf(w)===-1&&(d+=w,w=""),d&&(c.push(d),d=""),c.push({name:T||l++,prefix:w,suffix:"",pattern:C||p(w),modifier:f("MODIFIER")||""});continue}var E=y||f("ESCAPED_CHAR");if(E){d+=E;continue}d&&(c.push(d),d="");var S=f("OPEN");if(S){var w=b(),O=f("NAME")||"",R=f("PATTERN")||"",N=b();h("CLOSE"),c.push({name:O||(R?l++:""),pattern:O&&!R?p(w):R,prefix:w,suffix:N,modifier:f("MODIFIER")||""});continue}h("END")}return c}function sn(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function tp(e){return e&&e.sensitive?"":"i"}function SE(e,t){return e}function wE(e,t,n){var r=e.map(function(o){return nc(o,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),tp(n))}function TE(e,t,n){return CE(EE(e,n),t,n)}function CE(e,t,n){n===void 0&&(n={});for(var r=n.strict,o=r===void 0?!1:r,i=n.start,a=i===void 0?!0:i,c=n.end,l=c===void 0?!0:c,u=n.encode,d=u===void 0?function(x){return x}:u,f=n.delimiter,h=f===void 0?"/#?":f,b=n.endsWith,m=b===void 0?"":b,p="[".concat(sn(m),"]|$"),y="[".concat(sn(h),"]"),T=a?"^":"",C=0,w=e;C<w.length;C++){var E=w[C];if(typeof E=="string")T+=sn(d(E));else{var S=sn(d(E.prefix)),O=sn(d(E.suffix));if(E.pattern)if(S||O)if(E.modifier==="+"||E.modifier==="*"){var R=E.modifier==="*"?"?":"";T+="(?:".concat(S,"((?:").concat(E.pattern,")(?:").concat(O).concat(S,"(?:").concat(E.pattern,"))*)").concat(O,")").concat(R)}else T+="(?:".concat(S,"(").concat(E.pattern,")").concat(O,")").concat(E.modifier);else{if(E.modifier==="+"||E.modifier==="*")throw new TypeError('Can not repeat "'.concat(E.name,'" without a prefix and suffix'));T+="(".concat(E.pattern,")").concat(E.modifier)}else T+="(?:".concat(S).concat(O,")").concat(E.modifier)}}if(l)o||(T+="".concat(y,"?")),T+=n.endsWith?"(?=".concat(p,")"):"$";else{var N=e[e.length-1],j=typeof N=="string"?y.indexOf(N[N.length-1])>-1:N===void 0;o||(T+="(?:".concat(y,"(?=").concat(p,"))?")),j||(T+="(?=".concat(y,"|").concat(p,")"))}return new RegExp(T,tp(n))}function nc(e,t,n){return e instanceof RegExp?SE(e):Array.isArray(e)?wE(e,t,n):TE(e,t,n)}const OE=e=>e.kind??"page",to=e=>OE(e)==="page",Pn=e=>to(e)?e.title??e.segment??"":e.title;function rc(e,t){return`${e}${e&&!t.segment?"":"/"}${t.segment??""}`}function np(e,t,n){return e.pattern?nc(`${t}/${e.pattern}`).test(n):rc(t,e)===n}function rp(e,t,n){if(to(e)&&e.children){const r=rc(t,e);return e.children.some(o=>to(o)?o.children?rp(o,r,n):np(o,r,n):!1)}return!1}function RE(e){const t=new Map,n=(r,o)=>{if(to(r)){const i=`${o}${r.segment?`/${r.segment}`:""}`||"/";if(t.set(r,i),r.children)for(const a of r.children)n(a,i)}};for(const r of e)n(r,"");return t}const tu=new WeakMap;function kE(e){let t=tu.get(e);return t||(t=RE(e),tu.set(e,t)),t}function PE(e){const t=new Map,n=r=>{if(to(r)){const o=ta(e,r);if(t.has(o)&&console.warn(`Duplicate path in navigation: ${o}`),t.set(o,r),r.pattern){const i=r.segment?o.slice(0,-r.segment.length):o;t.set(nc(i+r.pattern),r)}if(r.children)for(const i of r.children)n(i)}};for(const r of e)n(r);return t}const nu=new WeakMap;function NE(e){let t=nu.get(e);return t||(t=PE(e),nu.set(e,t)),t}function ys(e,t){const n=NE(e);for(const[r,o]of n.entries())if(typeof r=="string"&&r===t||r instanceof RegExp&&r.test(t))return o;return null}function ta(e,t){const r=kE(e).get(t);return Zr(r,`Item not found in navigation: ${t.title}`),r}function gi(e,t){return{transition:n=>n.transitions.create(t,{easing:n.transitions.easing.sharp,duration:e?n.transitions.duration.enteringScreen:n.transitions.duration.leavingScreen})}}function ru(e){return{...gi(e,"width"),overflowX:"hidden"}}var ou,iu;const jE=Y.styled(Jf)(({theme:e})=>({borderRadius:8,"&.Mui-selected":{"& .MuiListItemIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiTypography-root":{color:(e.vars??e).palette.text.primary},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.primary.dark},"& .MuiTouchRipple-child":{backgroundColor:(e.vars??e).palette.primary.dark}},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.action.active},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.action.active}}));function op({subNavigation:e,basePath:t="",depth:n=0,onLinkClick:r,isMini:o=!1,isFullyExpanded:i=!0,hasDrawerTransitions:a=!1,selectedItemId:c}){const l=v.useContext(Ui),u=(l==null?void 0:l.pathname)??"/",d=v.useMemo(()=>e.map((m,p)=>({navigationItem:m,originalIndex:p})).filter(({navigationItem:m})=>rp(m,t,u)).map(({originalIndex:m})=>`${n}-${m}`),[t,n,u,e]),[f,h]=v.useState(d),b=v.useCallback(m=>()=>{h(p=>p.includes(m)?p.filter(y=>y!==m):[...p,m])},[]);return g.jsx(Xf,{sx:{padding:0,mb:n===0?4:1,pl:2*n},children:e.map((m,p)=>{if(m.kind==="header")return g.jsx(fi,{component:"div",sx:{fontSize:12,fontWeight:"700",height:o?0:40,...a?gi(i,"height"):{},px:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",zIndex:2},children:Pn(m)},`subheader-${n}-${p}`);if(m.kind==="divider"){const N=e[p+1];return g.jsx(eo,{sx:{borderBottomWidth:2,mx:1,mt:1,mb:(N==null?void 0:N.kind)==="header"&&!o?0:1,...a?gi(i,"margin"):{}}},`divider-${n}-${p}`)}const y=rc(t,m),T=`${n}-${p}`,C=Pn(m),w=f.includes(T),E=w?ou||(ou=g.jsx(vE,{})):iu||(iu=g.jsx(bE,{})),S=34,O=np(m,t,u);process.env.NODE_ENV!=="production"&&O&&c&&console.warn(`Duplicate selected path in navigation: ${y}`),O&&!c&&(c=T);const R=g.jsx(Zf,{sx:{py:0,px:1,overflowX:"hidden"},children:g.jsxs(jE,{selected:O&&(!m.children||o),sx:{px:1.4,height:48},...m.children&&!o?{onClick:b(T)}:{LinkComponent:Za,href:y,onClick:r},children:[m.icon||o?g.jsxs(Qf,{sx:{minWidth:S,mr:1.2},children:[m.icon??null,!m.icon&&o?g.jsx(Ua,{sx:{width:S-7,height:S-7,fontSize:12,ml:"-2px"},children:C.split(" ").slice(0,2).map(N=>N.charAt(0).toUpperCase())}):null]}):null,g.jsx(ep,{primary:C,sx:{whiteSpace:"nowrap",zIndex:1,"& .MuiTypography-root":{fontWeight:"500"}}}),m.action&&!o&&i?m.action:null,m.children&&!o&&i?E:null]})});return g.jsxs(v.Fragment,{children:[o?g.jsx(mo,{title:C,placement:"right",children:R}):R,m.children&&!o?g.jsx(mi,{in:w,timeout:"auto",unmountOnExit:!0,children:g.jsx(op,{subNavigation:m.children,basePath:y,depth:n+1,onLinkClick:r,selectedItemId:c})}):null]},T)})})}const su=Ge(g.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),au=Ge(g.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function AE(){return()=>{}}function IE(){return!1}function _E(){return!0}function $E(){return v.useSyncExternalStore(AE,IE,_E)}var cu,lu;function ME(){const e=$E(),t=Y.useTheme(),{paletteMode:n,setPaletteMode:r,isDualTheme:o}=v.useContext(Ga),i=v.useCallback(()=>{r(n==="dark"?"light":"dark")},[n,r]);return o?g.jsx(mo,{title:e?"Switch mode":`${n==="dark"?"Light":"Dark"} mode`,enterDelay:1e3,children:g.jsx("div",{children:g.jsx(Gr,{"aria-label":e?"Switch theme mode":`Switch to ${n==="dark"?"light":"dark"} mode`,onClick:i,sx:{color:(t.vars??t).palette.primary.dark},children:t.getColorSchemeSelector?g.jsxs(v.Fragment,{children:[g.jsx(su,{sx:{display:"inline",[t.getColorSchemeSelector("dark")]:{display:"none"}}}),g.jsx(au,{sx:{display:"none",[t.getColorSchemeSelector("dark")]:{display:"inline"}}})]}):g.jsx(v.Fragment,{children:e||n!=="dark"?cu||(cu=g.jsx(su,{})):lu||(lu=g.jsx(au,{}))})})})}):null}var uu;function ip(){return uu||(uu=g.jsx(at,{direction:"row",alignItems:"center",children:g.jsx(ME,{})}))}var du,fu,pu,hu,mu;function DE({size:e=40}){return g.jsxs("svg",{width:e,height:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[du||(du=g.jsxs("g",{mask:"url(#a)",children:[g.jsx("path",{d:"M22.74 27.73v-7.6l6.64-3.79v7.6l-6.64 3.79Z",fill:"#007FFF"}),g.jsx("path",{d:"M16.1 23.93v-7.59l6.64 3.8v7.59l-6.65-3.8Z",fill:"#39F"}),g.jsx("path",{d:"m16.1 16.34 6.64-3.8 6.64 3.8-6.64 3.8-6.65-3.8Z",fill:"#A5D8FF"})]})),g.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"17",width:"14",height:"15",children:fu||(fu=g.jsx("path",{d:"M8.5 22.3c0-1.05.56-2 1.46-2.53l3.75-2.14c.89-.5 1.98-.5 2.87 0l3.75 2.14a2.9 2.9 0 0 1 1.46 2.52v4.23c0 1.04-.56 2-1.46 2.52l-3.75 2.14c-.89.5-1.98.5-2.87 0l-3.75-2.14a2.9 2.9 0 0 1-1.46-2.52v-4.23Z",fill:"#D7DCE1"}))}),pu||(pu=g.jsxs("g",{mask:"url(#b)",children:[g.jsx("path",{d:"M15.14 32v-7.6l6.65-3.8v7.6L15.14 32Z",fill:"#007FFF"}),g.jsx("path",{d:"M8.5 28.2v-7.6l6.64 3.8V32L8.5 28.2Z",fill:"#39F"}),g.jsx("path",{d:"m8.5 20.6 6.64-3.79 6.65 3.8-6.65 3.8-6.64-3.8Z",fill:"#A5D8FF"})]})),g.jsx("mask",{id:"c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"4",width:"22",height:"20",children:hu||(hu=g.jsx("path",{d:"M24.17 4.82a2.9 2.9 0 0 0-2.87 0L9.97 11.22a2.9 2.9 0 0 0-1.47 2.53v4.22c0 1.04.56 2 1.46 2.52l3.75 2.14c.89.5 1.98.5 2.87 0l11.33-6.42a2.9 2.9 0 0 0 1.47-2.52V9.48c0-1.04-.56-2-1.46-2.52l-3.75-2.14Z",fill:"#D7DCE1"}))}),mu||(mu=g.jsxs("g",{mask:"url(#c)",children:[g.jsx("path",{d:"M15.14 23.46v-7.6L29.38 7.8v7.59l-14.24 8.07Z",fill:"#007FFF"}),g.jsx("path",{d:"M8.5 19.66v-7.6l6.64 3.8v7.6l-6.64-3.8Z",fill:"#39F"}),g.jsx("path",{d:"M8.5 12.07 22.74 4l6.64 3.8-14.24 8.06-6.64-3.8Z",fill:"#A5D8FF"})]}))]})}var gu,yu,vu,bu;const LE=Y.styled(Df)(({theme:e})=>({borderWidth:0,borderBottomWidth:1,borderStyle:"solid",borderColor:(e.vars??e).palette.divider,boxShadow:"none",zIndex:e.zIndex.drawer+1})),BE=Y.styled("div")({position:"relative",height:40,"& img":{maxHeight:40}});function oc(e){const{children:t,branding:n,disableCollapsibleSidebar:r=!1,defaultSidebarCollapsed:o=!1,hideNavigation:i=!1,sidebarExpandedWidth:a=320,slots:c,slotProps:l,sx:u}=e,d=Y.useTheme(),f=v.useContext(Ha),h=v.useContext(qa),b=v.useContext(Af),m=H0(),p=n??f,[y,T]=v.useState(!o),[C,w]=v.useState(!1),E=ql(d.breakpoints.down("md"),b&&{matchMedia:b.matchMedia}),S=ql(d.breakpoints.up("sm"),b&&{matchMedia:b.matchMedia}),O=E?C:y,R=v.useCallback(G=>{E?w(G):T(G)},[E]),[N,j]=v.useState(O);v.useEffect(()=>{if(O){const G=setTimeout(()=>{j(!0)},d.transitions.duration.enteringScreen);return()=>clearTimeout(G)}return j(!1),()=>{}},[O,d]);const x=v.useRef(""),P=v.useCallback(G=>()=>{R(G)},[R]),B=v.useCallback(()=>{R(!O)},[O,R]),$=v.useCallback(()=>{x.current="",w(!1)},[w]);v.useMemo(()=>{h&&(x.current="")},[h]);const U=!r&&!y,M=!r&&!C,L=v.useCallback(G=>{const J="Expand",V="Collapse";return g.jsx(mo,{title:`${G?V:J} menu`,enterDelay:1e3,children:g.jsx("div",{children:g.jsx(Gr,{"aria-label":`${G?V:J} navigation menu`,onClick:B,children:G?gu||(gu=g.jsx(I0,{})):yu||(yu=g.jsx(A0,{}))})})})},[B]),H=S&&(r||!E),q=(c==null?void 0:c.toolbarActions)??ip,Z=(c==null?void 0:c.toolbarAccount)??ec,A=(c==null?void 0:c.sidebarFooter)??null,z=v.useCallback((G,J)=>{var V;return g.jsxs(v.Fragment,{children:[vu||(vu=g.jsx(Xo,{})),g.jsxs(on,{component:"nav","aria-label":`${J.charAt(0).toUpperCase()}${J.slice(1)}`,sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",overflow:"auto",pt:((V=h[0])==null?void 0:V.kind)==="header"&&!G?0:2,...H?gi(N,"padding"):{}},children:[g.jsx(op,{subNavigation:h,onLinkClick:$,isMini:G,isFullyExpanded:N,hasDrawerTransitions:H,selectedItemId:x.current}),A?g.jsx(A,{mini:G,...l==null?void 0:l.sidebarFooter}):null]})]})},[A,$,H,N,h,l==null?void 0:l.sidebarFooter]),te=v.useCallback((G,J)=>{const V=G?64:a;return{displayPrint:"none",width:V,flexShrink:0,...ru(O),...J?{position:"absolute"}:{},"& .MuiDrawer-paper":{position:"absolute",width:V,boxSizing:"border-box",backgroundImage:"none",...ru(O)}}},[O,a]),ne=v.useRef(null);return g.jsxs(on,{ref:ne,sx:{position:"relative",display:"flex",overflow:"hidden",height:"100vh",width:"100vw",...u},children:[g.jsx(LE,{color:"inherit",position:"absolute",sx:{displayPrint:"none"},children:g.jsx(Xo,{sx:{backgroundColor:"inherit",mx:{xs:-.75,sm:-1.5}},children:g.jsxs(at,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{flexWrap:"wrap",width:"100%"},children:[g.jsxs(at,{direction:"row",children:[i?null:g.jsxs(v.Fragment,{children:[g.jsx(on,{sx:{mr:{sm:r?0:1},display:{md:"none"}},children:L(C)}),g.jsx(on,{sx:{display:{xs:"none",md:r?"none":"block"},mr:r?0:1},children:L(y)})]}),g.jsx(Za,{href:"/",style:{color:"inherit",textDecoration:"none"},children:g.jsxs(at,{direction:"row",alignItems:"center",children:[g.jsx(BE,{children:(p==null?void 0:p.logo)??(bu||(bu=g.jsx(DE,{size:40})))}),g.jsx(Et,{variant:"h6",sx:{color:(d.vars??d).palette.primary.main,fontWeight:"700",ml:1,whiteSpace:"nowrap"},children:m})]})})]}),g.jsxs(at,{direction:"row",alignItems:"center",spacing:1,sx:{marginLeft:"auto"},children:[g.jsx(q,{...l==null?void 0:l.toolbarActions}),g.jsx(Z,{...l==null?void 0:l.toolbarAccount})]})]})})}),i?null:g.jsxs(v.Fragment,{children:[g.jsx(Ko,{container:ne.current,variant:"temporary",open:C,onClose:P(!1),ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:r?"block":"none",md:"none"},...te(!1,!0)},children:z(!1,"phone")}),g.jsx(Ko,{variant:"permanent",sx:{display:{xs:"none",sm:r?"none":"block",md:"none"},...te(M,!1)},children:z(M,"tablet")}),g.jsx(Ko,{variant:"permanent",sx:{display:{xs:"none",md:"block"},...te(U,!1)},children:z(U,"desktop")})]}),g.jsxs(on,{sx:{display:"flex",flexDirection:"column",flex:1,minWidth:0},children:[g.jsx(Xo,{sx:{displayPrint:"none"}}),g.jsx(on,{component:"main",sx:{display:"flex",flexDirection:"column",flex:1,overflow:"auto"},children:t})]})]})}process.env.NODE_ENV!=="production"&&(oc.propTypes={branding:s.shape({logo:s.node,title:s.string}),children:s.node,defaultSidebarCollapsed:s.bool,disableCollapsibleSidebar:s.bool,hideNavigation:s.bool,sidebarExpandedWidth:s.oneOfType([s.number,s.string]),slotProps:s.shape({sidebarFooter:s.shape({mini:s.bool.isRequired}),toolbarAccount:s.shape({localeText:s.shape({iconButtonAriaLabel:s.string,signInLabel:s.string,signOutLabel:s.string}),slotProps:s.shape({popover:s.object,popoverContent:s.object,preview:s.object,signInButton:s.object,signOutButton:s.object}),slots:s.shape({popover:s.elementType,popoverContent:s.elementType,preview:s.elementType,signInButton:s.elementType,signOutButton:s.elementType})}),toolbarActions:s.object}),slots:s.shape({sidebarFooter:s.elementType,toolbarAccount:s.elementType,toolbarActions:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const sp=ty({createStyledComponent:ce("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ce({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(sp.propTypes={children:s.node,classes:s.object,component:s.elementType,disableGutters:s.bool,fixed:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});var xu=new Set;function FE(e){xu.has(e)||(xu.add(e),console.warn(e))}const VE=Ge(g.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),UE=ce(fo)(Ve(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Fs(e.palette.grey[200],.12)}:{backgroundColor:Fs(e.palette.grey[600],.12)}}}))),zE=ce(VE)({width:24,height:16});function ap(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return g.jsx("li",{children:g.jsx(UE,{focusRipple:!0,...r,ownerState:o,children:g.jsx(zE,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}process.env.NODE_ENV!=="production"&&(ap.propTypes={slotProps:s.shape({collapsedIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({CollapsedIcon:s.elementType}),sx:s.object});function WE(e){return Te("MuiBreadcrumbs",e)}const HE=Oe("MuiBreadcrumbs",["root","ol","li","separator"]),qE=e=>{const{classes:t}=e;return Ne({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},WE,t)},GE=ce(Et,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${HE.li}`]:t.li},t.root]})({}),YE=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),KE=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function XE(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,g.jsx(KE,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const cp=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:c={},slotProps:l={},expandText:u="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:b="/",...m}=r,[p,y]=v.useState(!1),T={...r,component:a,expanded:p,expandText:u,itemsAfterCollapse:d,itemsBeforeCollapse:f,maxItems:h,separator:b},C=qE(T),w=Hd({elementType:c.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:T}),E=v.useRef(null),S=R=>{const N=()=>{y(!0);const j=E.current.querySelector("a[href],button,[tabindex]");j&&j.focus()};return f+d>=R.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${d}} + itemsBeforeCollapse={${f}} >= maxItems={${h}}`].join(`
|
|
243
|
+
`)),R):[...R.slice(0,f),g.jsx(ap,{"aria-label":u,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:N},"ellipsis"),...R.slice(R.length-d,R.length)]},O=v.Children.toArray(o).filter(R=>(process.env.NODE_ENV!=="production"&&Ls.isFragment(R)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
244
|
+
`)),v.isValidElement(R))).map((R,N)=>g.jsx("li",{className:C.li,children:R},`child-${N}`));return g.jsx(GE,{ref:n,component:a,color:"textSecondary",className:ae(C.root,i),ownerState:T,...m,children:g.jsx(YE,{className:C.ol,ref:E,ownerState:T,children:XE(p||h&&O.length<=h?O:S(O),C.separator,b,T)})})});process.env.NODE_ENV!=="production"&&(cp.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,expandText:s.string,itemsAfterCollapse:ir,itemsBeforeCollapse:ir,maxItems:ir,separator:s.node,slotProps:s.shape({collapsedIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({CollapsedIcon:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function JE(e){return Te("MuiLink",e)}const ZE=Oe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),QE=({theme:e,ownerState:t})=>{const n=t.color,r=sr(e,`palette.${n}`,!1)||t.color,o=sr(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ue(r,.4)},Eu={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},eS=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${de(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Ne(i,JE,t)},tS=ce(Et,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${de(n.underline)}`],n.component==="button"&&t.button]}})(Ve(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(cr()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Ue(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ue(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Ue(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ZE.focusVisible}`]:{outline:"auto"}}}]}))),lp=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiLink"}),o=gn(),{className:i,color:a="primary",component:c="a",onBlur:l,onFocus:u,TypographyClasses:d,underline:f="always",variant:h="inherit",sx:b,...m}=r,[p,y]=v.useState(!1),T=S=>{ar(S.target)||y(!1),l&&l(S)},C=S=>{ar(S.target)&&y(!0),u&&u(S)},w={...r,color:a,component:c,focusVisible:p,underline:f,variant:h},E=eS(w);return g.jsx(tS,{color:a,className:ae(E.root,i),classes:d,component:c,onBlur:T,onFocus:C,ref:n,ownerState:w,variant:h,...m,sx:[...Eu[a]===void 0?[{color:a}]:[],...Array.isArray(b)?b:[b]],style:{...m.style,...f==="always"&&a!=="inherit"&&!Eu[a]&&{"--Link-underlineColor":QE({theme:o,ownerState:w})}}})});process.env.NODE_ENV!=="production"&&(lp.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:uo,onBlur:s.func,onFocus:s.func,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TypographyClasses:s.object,underline:s.oneOf(["always","hover","none"]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string])});const nS=Y.styled("div")(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing(1),marginLeft:"auto"}));function up(e){return g.jsx(nS,{...e})}function dp(){const e=v.useContext(qa),t=v.useContext(Ui),n=(t==null?void 0:t.pathname)??"/",r=ys(e,n),o=ys(e,"/");return v.useMemo(()=>{if(!r)return null;const i=[];o&&i.push({title:Pn(o),path:"/"});const a=n.split("/").filter(Boolean);let c="";for(const l of a){const u=`${c}/${l}`;c=u;const d=ys(e,u);if(!d)continue;const f=ta(e,d),h=i[i.length-1];(h==null?void 0:h.path)!==f&&i.push({title:Pn(d),path:f})}return{title:Pn(r),path:ta(e,r),breadcrumbs:i,breadCrumbs:i}},[r,o,n,e])}const rS=Y.styled("div")(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",gap:e.spacing(2)}));function fp(e){var h,b;const{children:t,slots:n,slotProps:r,breadcrumbs:o,breadCrumbs:i,...a}=e;process.env.NODE_ENV!=="production"&&i&&FE("The PageContainer `breadCrumbs` prop is deprecated. Use `breadcrumbs` instead.");const c=dp(),l=o??i??(c==null?void 0:c.breadcrumbs)??[],u=e.title??(c==null?void 0:c.title)??"",d=((h=e==null?void 0:e.slots)==null?void 0:h.toolbar)??up,f=pf({elementType:d,ownerState:e,externalSlotProps:(b=e==null?void 0:e.slotProps)==null?void 0:b.toolbar,additionalProps:{}});return g.jsx(sp,{...a,children:g.jsxs(at,{sx:{my:2},spacing:2,children:[g.jsxs(at,{children:[g.jsx(cp,{"aria-label":"breadcrumb",children:l?l.map((m,p)=>p<l.length-1?g.jsx(lp,{component:Za,underline:"hover",color:"inherit",href:m.path,children:Pn(m)},m.path):g.jsx(Et,{color:"text.primary",children:Pn(m)},m.path)):null}),g.jsxs(rS,{children:[u?g.jsx(Et,{variant:"h4",children:u}):null,g.jsx(d,{...f})]})]}),g.jsx("div",{children:t})]})})}process.env.NODE_ENV!=="production"&&(fp.propTypes={breadcrumbs:s.arrayOf(s.shape({path:s.string.isRequired,title:s.string.isRequired})),breadCrumbs:s.arrayOf(s.shape({path:s.string.isRequired,title:s.string.isRequired})),children:s.node,slotProps:s.shape({toolbar:s.shape({children:s.node}).isRequired}),slots:s.shape({toolbar:s.elementType}),title:s.string});/**
|
|
245
245
|
* @remix-run/router v1.21.0
|
|
246
246
|
*
|
|
247
247
|
* Copyright (c) Remix Software Inc.
|
|
@@ -250,7 +250,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
250
250
|
* LICENSE.md file in the root directory of this source tree.
|
|
251
251
|
*
|
|
252
252
|
* @license MIT
|
|
253
|
-
*/function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qr.apply(this,arguments)}var St;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(St||(St={}));const gu="popstate";function WE(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=!1}=e,o;o=t.map((b,m)=>d(b,typeof b=="string"?null:b.state,m===0?"default":void 0));let i=l(n??o.length-1),a=St.Pop,c=null;function l(b){return Math.min(Math.max(b,0),o.length-1)}function u(){return o[i]}function d(b,m,p){m===void 0&&(m=null);let g=eo(o?u().pathname:"/",b,m,p);return dt(g.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(b)),g}function f(b){return typeof b=="string"?b:_n(b)}return{get index(){return i},get action(){return a},get location(){return u()},createHref:f,createURL(b){return new URL(f(b),"http://localhost")},encodeLocation(b){let m=typeof b=="string"?gn(b):b;return{pathname:m.pathname||"",search:m.search||"",hash:m.hash||""}},push(b,m){a=St.Push;let p=d(b,m);i+=1,o.splice(i,o.length,p),r&&c&&c({action:a,location:p,delta:1})},replace(b,m){a=St.Replace;let p=d(b,m);o[i]=p,r&&c&&c({action:a,location:p,delta:0})},go(b){a=St.Pop;let m=l(i+b),p=o[m];i=m,c&&c({action:a,location:p,delta:b})},listen(b){return c=b,()=>{c=null}}}}function HE(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:c}=r.location;return eo("",{pathname:i,search:a,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:_n(o)}return cp(t,n,null,e)}function qE(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:c="",hash:l=""}=gn(o.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),eo("",{pathname:a,search:c,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),c="";if(a&&a.getAttribute("href")){let l=o.location.href,u=l.indexOf("#");c=u===-1?l:l.slice(0,u)}return c+"#"+(typeof i=="string"?i:_n(i))}function r(o,i){dt(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return cp(t,n,r,e)}function pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GE(){return Math.random().toString(36).substr(2,8)}function yu(e,t){return{usr:e.state,key:e.key,idx:t}}function eo(e,t,n,r){return n===void 0&&(n=null),Qr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gn(t):t,{state:n,key:t&&t.key||r||GE()})}function _n(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function gn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function cp(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,c=St.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(Qr({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){c=St.Pop;let g=d(),T=g==null?null:g-u;u=g,l&&l({action:c,location:p.location,delta:T})}function h(g,T){c=St.Push;let C=eo(p.location,g,T);n&&n(C,g),u=d()+1;let w=yu(C,u),E=p.createHref(C);try{a.pushState(w,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&l&&l({action:c,location:p.location,delta:1})}function b(g,T){c=St.Replace;let C=eo(p.location,g,T);n&&n(C,g),u=d();let w=yu(C,u),E=p.createHref(C);a.replaceState(w,"",E),i&&l&&l({action:c,location:p.location,delta:0})}function m(g){let T=o.location.origin!=="null"?o.location.origin:o.location.href,C=typeof g=="string"?g:_n(g);return C=C.replace(/ $/,"%20"),pe(T,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,T)}let p={get action(){return c},get location(){return e(o,a)},listen(g){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(gu,f),l=g,()=>{o.removeEventListener(gu,f),l=null}},createHref(g){return t(o,g)},createURL:m,encodeLocation(g){let T=m(g);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:h,replace:b,go(g){return a.go(g)}};return p}var vu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vu||(vu={}));function YE(e,t,n){return n===void 0&&(n="/"),KE(e,t,n)}function KE(e,t,n,r){let o=typeof t=="string"?gn(t):t,i=fn(o.pathname||"/",n);if(i==null)return null;let a=lp(e);XE(a);let c=null;for(let l=0;c==null&&l<a.length;++l){let u=aS(i);c=iS(a[l],u)}return c}function lp(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,c)=>{let l={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(pe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Xt([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),lp(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:rS(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))o(i,a);else for(let l of up(i.path))o(i,a,l)}),t}function up(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=up(r.join("/")),c=[];return c.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&c.push(...a),c.map(l=>e.startsWith("/")&&l===""?"/":l)}function XE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:oS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const JE=/^:[\w-]+$/,ZE=3,QE=2,eS=1,tS=10,nS=-2,bu=e=>e==="*";function rS(e,t){let n=e.split("/"),r=n.length;return n.some(bu)&&(r+=nS),t&&(r+=QE),n.filter(o=>!bu(o)).reduce((o,i)=>o+(JE.test(i)?ZE:i===""?eS:tS),r)}function oS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function iS(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let c=0;c<r.length;++c){let l=r[c],u=c===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=ea({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!f)return null;Object.assign(o,f.params),a.push({params:o,pathname:Xt([i,f.pathname]),pathnameBase:dS(Xt([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=Xt([i,f.pathnameBase]))}return a}function ea(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=sS(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:h,isOptional:b}=d;if(h==="*"){let p=c[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const m=c[f];return b&&!m?u[h]=void 0:u[h]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function sS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,l)=>(r.push({paramName:c,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function aS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function fn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function cS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?gn(e):e;return{pathname:n?n.startsWith("/")?n:lS(n,t):t,search:fS(r),hash:pS(o)}}function lS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function gs(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function uS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nc(e,t){let n=uS(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function rc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=gn(e):(o=Qr({},e),pe(!o.pathname||!o.pathname.includes("?"),gs("?","pathname","search",o)),pe(!o.pathname||!o.pathname.includes("#"),gs("#","pathname","hash",o)),pe(!o.search||!o.search.includes("#"),gs("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,c;if(a==null)c=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}c=f>=0?t[f]:"/"}let l=cS(o,c),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Xt=e=>e.join("/").replace(/\/\/+/g,"/"),dS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function hS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const dp=["post","put","patch","delete"];new Set(dp);const mS=["get",...dp];new Set(mS);/**
|
|
253
|
+
*/function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(this,arguments)}var St;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(St||(St={}));const Su="popstate";function oS(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=!1}=e,o;o=t.map((b,m)=>d(b,typeof b=="string"?null:b.state,m===0?"default":void 0));let i=l(n??o.length-1),a=St.Pop,c=null;function l(b){return Math.min(Math.max(b,0),o.length-1)}function u(){return o[i]}function d(b,m,p){m===void 0&&(m=null);let y=ro(o?u().pathname:"/",b,m,p);return dt(y.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(b)),y}function f(b){return typeof b=="string"?b:$n(b)}return{get index(){return i},get action(){return a},get location(){return u()},createHref:f,createURL(b){return new URL(f(b),"http://localhost")},encodeLocation(b){let m=typeof b=="string"?vn(b):b;return{pathname:m.pathname||"",search:m.search||"",hash:m.hash||""}},push(b,m){a=St.Push;let p=d(b,m);i+=1,o.splice(i,o.length,p),r&&c&&c({action:a,location:p,delta:1})},replace(b,m){a=St.Replace;let p=d(b,m);o[i]=p,r&&c&&c({action:a,location:p,delta:0})},go(b){a=St.Pop;let m=l(i+b),p=o[m];i=m,c&&c({action:a,location:p,delta:b})},listen(b){return c=b,()=>{c=null}}}}function iS(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:c}=r.location;return ro("",{pathname:i,search:a,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:$n(o)}return pp(t,n,null,e)}function sS(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:c="",hash:l=""}=vn(o.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),ro("",{pathname:a,search:c,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),c="";if(a&&a.getAttribute("href")){let l=o.location.href,u=l.indexOf("#");c=u===-1?l:l.slice(0,u)}return c+"#"+(typeof i=="string"?i:$n(i))}function r(o,i){dt(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return pp(t,n,r,e)}function pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aS(){return Math.random().toString(36).substr(2,8)}function wu(e,t){return{usr:e.state,key:e.key,idx:t}}function ro(e,t,n,r){return n===void 0&&(n=null),no({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vn(t):t,{state:n,key:t&&t.key||r||aS()})}function $n(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function vn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function pp(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,c=St.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(no({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){c=St.Pop;let y=d(),T=y==null?null:y-u;u=y,l&&l({action:c,location:p.location,delta:T})}function h(y,T){c=St.Push;let C=ro(p.location,y,T);n&&n(C,y),u=d()+1;let w=wu(C,u),E=p.createHref(C);try{a.pushState(w,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&l&&l({action:c,location:p.location,delta:1})}function b(y,T){c=St.Replace;let C=ro(p.location,y,T);n&&n(C,y),u=d();let w=wu(C,u),E=p.createHref(C);a.replaceState(w,"",E),i&&l&&l({action:c,location:p.location,delta:0})}function m(y){let T=o.location.origin!=="null"?o.location.origin:o.location.href,C=typeof y=="string"?y:$n(y);return C=C.replace(/ $/,"%20"),pe(T,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,T)}let p={get action(){return c},get location(){return e(o,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Su,f),l=y,()=>{o.removeEventListener(Su,f),l=null}},createHref(y){return t(o,y)},createURL:m,encodeLocation(y){let T=m(y);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:h,replace:b,go(y){return a.go(y)}};return p}var Tu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tu||(Tu={}));function cS(e,t,n){return n===void 0&&(n="/"),lS(e,t,n)}function lS(e,t,n,r){let o=typeof t=="string"?vn(t):t,i=hn(o.pathname||"/",n);if(i==null)return null;let a=hp(e);uS(a);let c=null;for(let l=0;c==null&&l<a.length;++l){let u=ES(i);c=bS(a[l],u)}return c}function hp(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,c)=>{let l={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(pe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Jt([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),hp(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:yS(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))o(i,a);else for(let l of mp(i.path))o(i,a,l)}),t}function mp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=mp(r.join("/")),c=[];return c.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&c.push(...a),c.map(l=>e.startsWith("/")&&l===""?"/":l)}function uS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dS=/^:[\w-]+$/,fS=3,pS=2,hS=1,mS=10,gS=-2,Cu=e=>e==="*";function yS(e,t){let n=e.split("/"),r=n.length;return n.some(Cu)&&(r+=gS),t&&(r+=pS),n.filter(o=>!Cu(o)).reduce((o,i)=>o+(dS.test(i)?fS:i===""?hS:mS),r)}function vS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function bS(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let c=0;c<r.length;++c){let l=r[c],u=c===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=na({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!f)return null;Object.assign(o,f.params),a.push({params:o,pathname:Jt([i,f.pathname]),pathnameBase:CS(Jt([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=Jt([i,f.pathnameBase]))}return a}function na(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xS(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:h,isOptional:b}=d;if(h==="*"){let p=c[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const m=c[f];return b&&!m?u[h]=void 0:u[h]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function xS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,l)=>(r.push({paramName:c,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function ES(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function SS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?vn(e):e;return{pathname:n?n.startsWith("/")?n:wS(n,t):t,search:OS(r),hash:RS(o)}}function wS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function vs(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function TS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ic(e,t){let n=TS(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function sc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=vn(e):(o=no({},e),pe(!o.pathname||!o.pathname.includes("?"),vs("?","pathname","search",o)),pe(!o.pathname||!o.pathname.includes("#"),vs("#","pathname","hash",o)),pe(!o.search||!o.search.includes("#"),vs("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,c;if(a==null)c=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}c=f>=0?t[f]:"/"}let l=SS(o,c),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Jt=e=>e.join("/").replace(/\/\/+/g,"/"),CS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const gp=["post","put","patch","delete"];new Set(gp);const PS=["get",...gp];new Set(PS);/**
|
|
254
254
|
* React Router v6.28.1
|
|
255
255
|
*
|
|
256
256
|
* Copyright (c) Remix Software Inc.
|
|
@@ -259,9 +259,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
259
259
|
* LICENSE.md file in the root directory of this source tree.
|
|
260
260
|
*
|
|
261
261
|
* @license MIT
|
|
262
|
-
*/function
|
|
262
|
+
*/function oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oo.apply(this,arguments)}const go=v.createContext(null);process.env.NODE_ENV!=="production"&&(go.displayName="DataRouter");const ac=v.createContext(null);process.env.NODE_ENV!=="production"&&(ac.displayName="DataRouterState");const NS=v.createContext(null);process.env.NODE_ENV!=="production"&&(NS.displayName="Await");const kt=v.createContext(null);process.env.NODE_ENV!=="production"&&(kt.displayName="Navigation");const yo=v.createContext(null);process.env.NODE_ENV!=="production"&&(yo.displayName="Location");const Pt=v.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Pt.displayName="Route");const cc=v.createContext(null);process.env.NODE_ENV!=="production"&&(cc.displayName="RouteError");function jS(e,t){let{relative:n}=t===void 0?{}:t;yr()||(process.env.NODE_ENV!=="production"?pe(!1,"useHref() may be used only in the context of a <Router> component."):pe(!1));let{basename:r,navigator:o}=v.useContext(kt),{hash:i,pathname:a,search:c}=vo(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Jt([r,a])),o.createHref({pathname:l,search:c,hash:i})}function yr(){return v.useContext(yo)!=null}function It(){return yr()||(process.env.NODE_ENV!=="production"?pe(!1,"useLocation() may be used only in the context of a <Router> component."):pe(!1)),v.useContext(yo).location}const yp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vp(e){v.useContext(kt).static||v.useLayoutEffect(e)}function tn(){let{isDataRoute:e}=v.useContext(Pt);return e?GS():AS()}function AS(){yr()||(process.env.NODE_ENV!=="production"?pe(!1,"useNavigate() may be used only in the context of a <Router> component."):pe(!1));let e=v.useContext(go),{basename:t,future:n,navigator:r}=v.useContext(kt),{matches:o}=v.useContext(Pt),{pathname:i}=It(),a=JSON.stringify(ic(o,n.v7_relativeSplatPath)),c=v.useRef(!1);return vp(()=>{c.current=!0}),v.useCallback(function(u,d){if(d===void 0&&(d={}),process.env.NODE_ENV!=="production"&&dt(c.current,yp),!c.current)return;if(typeof u=="number"){r.go(u);return}let f=sc(u,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Jt([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,i,e])}const IS=v.createContext(null);function _S(e){let t=v.useContext(Pt).outlet;return t&&v.createElement(IS.Provider,{value:e},t)}function lc(){let{matches:e}=v.useContext(Pt),t=e[e.length-1];return t?t.params:{}}function vo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(kt),{matches:o}=v.useContext(Pt),{pathname:i}=It(),a=JSON.stringify(ic(o,r.v7_relativeSplatPath));return v.useMemo(()=>sc(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function $S(e,t){return MS(e,t)}function MS(e,t,n,r){yr()||(process.env.NODE_ENV!=="production"?pe(!1,"useRoutes() may be used only in the context of a <Router> component."):pe(!1));let{navigator:o}=v.useContext(kt),{matches:i}=v.useContext(Pt),a=i[i.length-1],c=a?a.params:{},l=a?a.pathname:"/",u=a?a.pathnameBase:"/",d=a&&a.route;if(process.env.NODE_ENV!=="production"){let C=d&&d.path||"";xp(l,!d||C.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+l+'" (under <Route path="'+C+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
263
263
|
|
|
264
|
-
`+('Please change the parent <Route path="'+C+'"> to <Route ')+('path="'+(C==="/"?"*":C+"/*")+'">.'))}let f=It(),h;if(t){var b;let C=typeof t=="string"?gn(t):t;u==="/"||(b=C.pathname)!=null&&b.startsWith(u)||(process.env.NODE_ENV!=="production"?pe(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+u+'" ')+('but pathname "'+C.pathname+'" was given in the `location` prop.')):pe(!1)),h=C}else h=f;let m=h.pathname||"/",p=m;if(u!=="/"){let C=u.replace(/^\//,"").split("/");p="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let g=YE(e,{pathname:p});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&dt(d||g!=null,'No routes matched location "'+h.pathname+h.search+h.hash+'" '),process.env.NODE_ENV!=="production"&&dt(g==null||g[g.length-1].route.element!==void 0||g[g.length-1].route.Component!==void 0||g[g.length-1].route.lazy!==void 0,'Matched leaf route at location "'+h.pathname+h.search+h.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let T=RS(g&&g.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Xt([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Xt([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&T?v.createElement(ho.Provider,{value:{location:to({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:St.Pop}},T):T}function wS(){let e=AS(),t=hS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:i},"ErrorBoundary")," or"," ",v.createElement("code",{style:i},"errorElement")," prop on your route."))),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,a)}const TS=v.createElement(wS,null);class CS extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Pt.Provider,{value:this.props.routeContext},v.createElement(ic.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function OS(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(po);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Pt.Provider,{value:t},r)}function RS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,c=(o=n)==null?void 0:o.errors;if(c!=null){let d=a.findIndex(f=>f.route.id&&(c==null?void 0:c[f.route.id])!==void 0);d>=0||(process.env.NODE_ENV!=="production"?pe(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):pe(!1)),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:b}=n,m=f.route.loader&&h[f.route.id]===void 0&&(!b||b[f.route.id]===void 0);if(f.route.lazy||m){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,h)=>{let b,m=!1,p=null,g=null;n&&(b=c&&f.route.id?c[f.route.id]:void 0,p=f.route.errorElement||TS,l&&(u<0&&h===0?(gp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,g=null):u===h&&(m=!0,g=f.route.hydrateFallbackElement||null)));let T=t.concat(a.slice(0,h+1)),C=()=>{let w;return b?w=p:m?w=g:f.route.Component?w=v.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,v.createElement(OS,{match:f,routeContext:{outlet:d,matches:T,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?v.createElement(CS,{location:n.location,revalidation:n.revalidation,component:p,error:b,children:C(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):C()},null)}var mp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mp||{}),no=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(no||{});function sc(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function kS(e){let t=v.useContext(po);return t||(process.env.NODE_ENV!=="production"?pe(!1,sc(e)):pe(!1)),t}function PS(e){let t=v.useContext(oc);return t||(process.env.NODE_ENV!=="production"?pe(!1,sc(e)):pe(!1)),t}function NS(e){let t=v.useContext(Pt);return t||(process.env.NODE_ENV!=="production"?pe(!1,sc(e)):pe(!1)),t}function ac(e){let t=NS(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?pe(!1,e+' can only be used on routes that contain a unique "id"'):pe(!1)),n.route.id}function jS(){return ac(no.UseRouteId)}function AS(){var e;let t=v.useContext(ic),n=PS(no.UseRouteError),r=ac(no.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function IS(){let{router:e}=kS(mp.UseNavigateStable),t=ac(no.UseNavigateStable),n=v.useRef(!1);return pp(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&dt(n.current,fp),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,to({fromRouteId:t},i)))},[e,t])}const xu={};function gp(e,t,n){!t&&!xu[e]&&(xu[e]=!0,process.env.NODE_ENV!=="production"&&dt(!1,n))}const Eu={};function _S(e,t){Eu[t]||(Eu[t]=!0,console.warn(t))}const Su=(e,t,n)=>_S(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function cc(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&Su("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&!t&&Su("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}const $S="startTransition",wu=v[$S];function MS(e){let{basename:t,children:n,initialEntries:r,initialIndex:o,future:i}=e,a=v.useRef();a.current==null&&(a.current=WE({initialEntries:r,initialIndex:o,v5Compat:!0}));let c=a.current,[l,u]=v.useState({action:c.action,location:c.location}),{v7_startTransition:d}=i||{},f=v.useCallback(h=>{d&&wu?wu(()=>u(h)):u(h)},[u,d]);return v.useLayoutEffect(()=>c.listen(f),[c,f]),v.useEffect(()=>cc(i),[i]),v.createElement(lc,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:c,future:i})}function DS(e){let{to:t,replace:n,state:r,relative:o}=e;mr()||(process.env.NODE_ENV!=="production"?pe(!1,"<Navigate> may be used only in the context of a <Router> component."):pe(!1));let{future:i,static:a}=v.useContext(kt);process.env.NODE_ENV!=="production"&&dt(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=v.useContext(Pt),{pathname:l}=It(),u=yn(),d=rc(t,nc(c,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return v.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:o}),[u,f,o,n,r]),null}function LS(e){return xS(e.context)}function yp(e){process.env.NODE_ENV!=="production"?pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):pe(!1)}function lc(e){let{basename:t="/",children:n=null,location:r,navigationType:o=St.Pop,navigator:i,static:a=!1,future:c}=e;mr()&&(process.env.NODE_ENV!=="production"?pe(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):pe(!1));let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:a,future:to({v7_relativeSplatPath:!1},c)}),[l,c,i,a]);typeof r=="string"&&(r=gn(r));let{pathname:d="/",search:f="",hash:h="",state:b=null,key:m="default"}=r,p=v.useMemo(()=>{let g=fn(d,l);return g==null?null:{location:{pathname:g,search:f,hash:h,state:b,key:m},navigationType:o}},[l,d,f,h,b,m,o]);return process.env.NODE_ENV!=="production"&&dt(p!=null,'<Router basename="'+l+'"> is not able to match the URL '+('"'+d+f+h+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),p==null?null:v.createElement(kt.Provider,{value:u},v.createElement(ho.Provider,{children:n,value:p}))}function BS(e){let{children:t,location:n}=e;return ES(ta(t),n)}new Promise(()=>{});function ta(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,ta(r.props.children,i));return}r.type!==yp&&(process.env.NODE_ENV!=="production"?pe(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):pe(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?pe(!1,"An index route cannot have child routes."):pe(!1));let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ta(r.props.children,i)),n.push(a)}),n}/**
|
|
264
|
+
`+('Please change the parent <Route path="'+C+'"> to <Route ')+('path="'+(C==="/"?"*":C+"/*")+'">.'))}let f=It(),h;if(t){var b;let C=typeof t=="string"?vn(t):t;u==="/"||(b=C.pathname)!=null&&b.startsWith(u)||(process.env.NODE_ENV!=="production"?pe(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+u+'" ')+('but pathname "'+C.pathname+'" was given in the `location` prop.')):pe(!1)),h=C}else h=f;let m=h.pathname||"/",p=m;if(u!=="/"){let C=u.replace(/^\//,"").split("/");p="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=cS(e,{pathname:p});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&dt(d||y!=null,'No routes matched location "'+h.pathname+h.search+h.hash+'" '),process.env.NODE_ENV!=="production"&&dt(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,'Matched leaf route at location "'+h.pathname+h.search+h.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let T=VS(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Jt([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Jt([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&T?v.createElement(yo.Provider,{value:{location:oo({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:St.Pop}},T):T}function DS(){let e=qS(),t=kS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:i},"ErrorBoundary")," or"," ",v.createElement("code",{style:i},"errorElement")," prop on your route."))),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,a)}const LS=v.createElement(DS,null);class BS extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Pt.Provider,{value:this.props.routeContext},v.createElement(cc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function FS(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(go);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Pt.Provider,{value:t},r)}function VS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,c=(o=n)==null?void 0:o.errors;if(c!=null){let d=a.findIndex(f=>f.route.id&&(c==null?void 0:c[f.route.id])!==void 0);d>=0||(process.env.NODE_ENV!=="production"?pe(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):pe(!1)),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:b}=n,m=f.route.loader&&h[f.route.id]===void 0&&(!b||b[f.route.id]===void 0);if(f.route.lazy||m){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,h)=>{let b,m=!1,p=null,y=null;n&&(b=c&&f.route.id?c[f.route.id]:void 0,p=f.route.errorElement||LS,l&&(u<0&&h===0?(xp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,y=null):u===h&&(m=!0,y=f.route.hydrateFallbackElement||null)));let T=t.concat(a.slice(0,h+1)),C=()=>{let w;return b?w=p:m?w=y:f.route.Component?w=v.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,v.createElement(FS,{match:f,routeContext:{outlet:d,matches:T,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?v.createElement(BS,{location:n.location,revalidation:n.revalidation,component:p,error:b,children:C(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):C()},null)}var bp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bp||{}),io=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(io||{});function uc(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function US(e){let t=v.useContext(go);return t||(process.env.NODE_ENV!=="production"?pe(!1,uc(e)):pe(!1)),t}function zS(e){let t=v.useContext(ac);return t||(process.env.NODE_ENV!=="production"?pe(!1,uc(e)):pe(!1)),t}function WS(e){let t=v.useContext(Pt);return t||(process.env.NODE_ENV!=="production"?pe(!1,uc(e)):pe(!1)),t}function dc(e){let t=WS(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?pe(!1,e+' can only be used on routes that contain a unique "id"'):pe(!1)),n.route.id}function HS(){return dc(io.UseRouteId)}function qS(){var e;let t=v.useContext(cc),n=zS(io.UseRouteError),r=dc(io.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function GS(){let{router:e}=US(bp.UseNavigateStable),t=dc(io.UseNavigateStable),n=v.useRef(!1);return vp(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&dt(n.current,yp),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,oo({fromRouteId:t},i)))},[e,t])}const Ou={};function xp(e,t,n){!t&&!Ou[e]&&(Ou[e]=!0,process.env.NODE_ENV!=="production"&&dt(!1,n))}const Ru={};function YS(e,t){Ru[t]||(Ru[t]=!0,console.warn(t))}const ku=(e,t,n)=>YS(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function fc(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&ku("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&!t&&ku("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}const KS="startTransition",Pu=v[KS];function XS(e){let{basename:t,children:n,initialEntries:r,initialIndex:o,future:i}=e,a=v.useRef();a.current==null&&(a.current=oS({initialEntries:r,initialIndex:o,v5Compat:!0}));let c=a.current,[l,u]=v.useState({action:c.action,location:c.location}),{v7_startTransition:d}=i||{},f=v.useCallback(h=>{d&&Pu?Pu(()=>u(h)):u(h)},[u,d]);return v.useLayoutEffect(()=>c.listen(f),[c,f]),v.useEffect(()=>fc(i),[i]),v.createElement(pc,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:c,future:i})}function JS(e){let{to:t,replace:n,state:r,relative:o}=e;yr()||(process.env.NODE_ENV!=="production"?pe(!1,"<Navigate> may be used only in the context of a <Router> component."):pe(!1));let{future:i,static:a}=v.useContext(kt);process.env.NODE_ENV!=="production"&&dt(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=v.useContext(Pt),{pathname:l}=It(),u=tn(),d=sc(t,ic(c,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return v.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:o}),[u,f,o,n,r]),null}function Ep(e){return _S(e.context)}function Ur(e){process.env.NODE_ENV!=="production"?pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):pe(!1)}function pc(e){let{basename:t="/",children:n=null,location:r,navigationType:o=St.Pop,navigator:i,static:a=!1,future:c}=e;yr()&&(process.env.NODE_ENV!=="production"?pe(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):pe(!1));let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:a,future:oo({v7_relativeSplatPath:!1},c)}),[l,c,i,a]);typeof r=="string"&&(r=vn(r));let{pathname:d="/",search:f="",hash:h="",state:b=null,key:m="default"}=r,p=v.useMemo(()=>{let y=hn(d,l);return y==null?null:{location:{pathname:y,search:f,hash:h,state:b,key:m},navigationType:o}},[l,d,f,h,b,m,o]);return process.env.NODE_ENV!=="production"&&dt(p!=null,'<Router basename="'+l+'"> is not able to match the URL '+('"'+d+f+h+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),p==null?null:v.createElement(kt.Provider,{value:u},v.createElement(yo.Provider,{children:n,value:p}))}function Sp(e){let{children:t,location:n}=e;return $S(ra(t),n)}new Promise(()=>{});function ra(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,ra(r.props.children,i));return}r.type!==Ur&&(process.env.NODE_ENV!=="production"?pe(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):pe(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?pe(!1,"An index route cannot have child routes."):pe(!1));let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ra(r.props.children,i)),n.push(a)}),n}/**
|
|
265
265
|
* React Router DOM v6.28.1
|
|
266
266
|
*
|
|
267
267
|
* Copyright (c) Remix Software Inc.
|
|
@@ -270,7 +270,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
270
270
|
* LICENSE.md file in the root directory of this source tree.
|
|
271
271
|
*
|
|
272
272
|
* @license MIT
|
|
273
|
-
*/function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dr.apply(this,arguments)}function uc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const Xo="get",Jo="application/x-www-form-urlencoded";function Ui(e){return e!=null&&typeof e.tagName=="string"}function FS(e){return Ui(e)&&e.tagName.toLowerCase()==="button"}function VS(e){return Ui(e)&&e.tagName.toLowerCase()==="form"}function US(e){return Ui(e)&&e.tagName.toLowerCase()==="input"}function zS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function WS(e,t){return e.button===0&&(!t||t==="_self")&&!zS(e)}function na(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function HS(e,t){let n=na(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}let Mo=null;function qS(){if(Mo===null)try{new FormData(document.createElement("form"),0),Mo=!1}catch{Mo=!0}return Mo}const GS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ys(e){return e!=null&&!GS.has(e)?(process.env.NODE_ENV!=="production"&&dt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Jo+'"')),null):e}function YS(e,t){let n,r,o,i,a;if(VS(e)){let c=e.getAttribute("action");r=c?fn(c,t):null,n=e.getAttribute("method")||Xo,o=ys(e.getAttribute("enctype"))||Jo,i=new FormData(e)}else if(FS(e)||US(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(r=l?fn(l,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Xo,o=ys(e.getAttribute("formenctype"))||ys(c.getAttribute("enctype"))||Jo,i=new FormData(c,e),!qS()){let{name:u,type:d,value:f}=e;if(d==="image"){let h=u?u+".":"";i.append(h+"x","0"),i.append(h+"y","0")}else u&&i.append(u,f)}}else{if(Ui(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xo,r=null,o=Jo,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}const KS=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],XS=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],JS=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],ZS="6";try{window.__reactRouterVersion=ZS}catch{}const vp=v.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(vp.displayName="ViewTransition");const QS=v.createContext(new Map);process.env.NODE_ENV!=="production"&&(QS.displayName="Fetchers");const ew="startTransition",mi=v[ew];function tw(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=HE({window:o,v5Compat:!0}));let a=i.current,[c,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=v.useCallback(f=>{u&&mi?mi(()=>l(f)):l(f)},[l,u]);return v.useLayoutEffect(()=>a.listen(d),[a,d]),v.useEffect(()=>cc(r),[r]),v.createElement(lc,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}function nw(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=qE({window:o,v5Compat:!0}));let a=i.current,[c,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=v.useCallback(f=>{u&&mi?mi(()=>l(f)):l(f)},[l,u]);return v.useLayoutEffect(()=>a.listen(d),[a,d]),v.useEffect(()=>cc(r),[r]),v.createElement(lc,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}process.env.NODE_ENV;const rw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ow=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dc=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:c,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,h=uc(t,KS),{basename:b}=v.useContext(kt),m,p=!1;if(typeof u=="string"&&ow.test(u)&&(m=u,rw))try{let w=new URL(window.location.href),E=u.startsWith("//")?new URL(w.protocol+u):new URL(u),S=fn(E.pathname,b);E.origin===w.origin&&S!=null?u=S+E.search+E.hash:p=!0}catch{process.env.NODE_ENV!=="production"&&dt(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let g=yS(u,{relative:o}),T=cw(u,{replace:a,state:c,target:l,preventScrollReset:d,relative:o,viewTransition:f});function C(w){r&&r(w),w.defaultPrevented||T(w)}return v.createElement("a",dr({},h,{href:m||g,onClick:p||i?r:C,ref:n,target:l}))});process.env.NODE_ENV!=="production"&&(dc.displayName="Link");const iw=v.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:c,to:l,viewTransition:u,children:d}=t,f=uc(t,XS),h=mo(l,{relative:f.relative}),b=It(),m=v.useContext(oc),{navigator:p,basename:g}=v.useContext(kt),T=m!=null&&mw(h)&&u===!0,C=p.encodeLocation?p.encodeLocation(h).pathname:h.pathname,w=b.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;o||(w=w.toLowerCase(),E=E?E.toLowerCase():null,C=C.toLowerCase()),E&&g&&(E=fn(E,g)||E);const S=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let O=w===C||!a&&w.startsWith(C)&&w.charAt(S)==="/",R=E!=null&&(E===C||!a&&E.startsWith(C)&&E.charAt(C.length)==="/"),N={isActive:O,isPending:R,isTransitioning:T},j=O?r:void 0,x;typeof i=="function"?x=i(N):x=[i,O?"active":null,R?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let P=typeof c=="function"?c(N):c;return v.createElement(dc,dr({},f,{"aria-current":j,className:x,ref:n,style:P,to:l,viewTransition:u}),typeof d=="function"?d(N):d)});process.env.NODE_ENV!=="production"&&(iw.displayName="NavLink");const sw=v.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:a,method:c=Xo,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:h}=e,b=uc(e,JS),m=pw(),p=hw(l,{relative:d}),g=c.toLowerCase()==="get"?"get":"post",T=C=>{if(u&&u(C),C.defaultPrevented)return;C.preventDefault();let w=C.nativeEvent.submitter,E=(w==null?void 0:w.getAttribute("formmethod"))||c;m(w||C.currentTarget,{fetcherKey:n,method:E,navigate:r,replace:i,state:a,relative:d,preventScrollReset:f,viewTransition:h})};return v.createElement("form",dr({ref:t,method:g,action:p,onSubmit:o?u:T},b))});process.env.NODE_ENV!=="production"&&(sw.displayName="Form");process.env.NODE_ENV;var gi;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gi||(gi={}));var Tu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tu||(Tu={}));function aw(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function bp(e){let t=v.useContext(po);return t||(process.env.NODE_ENV!=="production"?pe(!1,aw(e)):pe(!1)),t}function cw(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:c}=t===void 0?{}:t,l=yn(),u=It(),d=mo(e,{relative:a});return v.useCallback(f=>{if(WS(f,n)){f.preventDefault();let h=r!==void 0?r:_n(u)===_n(d);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,viewTransition:c})}},[u,l,d,r,o,n,e,i,a,c])}function lw(e){process.env.NODE_ENV!=="production"&&dt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=v.useRef(na(e)),n=v.useRef(!1),r=It(),o=v.useMemo(()=>HS(r.search,n.current?null:t.current),[r.search]),i=yn(),a=v.useCallback((c,l)=>{const u=na(typeof c=="function"?c(o):c);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}function uw(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let dw=0,fw=()=>"__"+String(++dw)+"__";function pw(){let{router:e}=bp(gi.UseSubmit),{basename:t}=v.useContext(kt),n=jS();return v.useCallback(function(r,o){o===void 0&&(o={}),uw();let{action:i,method:a,encType:c,formData:l,body:u}=YS(r,t);if(o.navigate===!1){let d=o.fetcherKey||fw();e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function hw(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=v.useContext(kt),o=v.useContext(Pt);o||(process.env.NODE_ENV!=="production"?pe(!1,"useFormAction must be used inside a RouteContext"):pe(!1));let[i]=o.matches.slice(-1),a=dr({},mo(e||".",{relative:n})),c=It();if(e==null){a.search=c.search;let l=new URLSearchParams(a.search),u=l.getAll("index");if(u.some(f=>f==="")){l.delete("index"),u.filter(h=>h).forEach(h=>l.append("index",h));let f=l.toString();a.search=f?"?"+f:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Xt([r,a.pathname])),_n(a)}function mw(e,t){t===void 0&&(t={});let n=v.useContext(vp);n==null&&(process.env.NODE_ENV!=="production"?pe(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):pe(!1));let{basename:r}=bp(gi.useViewTransitionState),o=mo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=fn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=fn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ea(o.pathname,a)!=null||ea(o.pathname,i)!=null}function gw(e){const{pathname:t}=It(),[n]=lw(),r=yn(),o=v.useCallback((a,{history:c="auto"}={})=>{if(c==="auto"||c==="push")return r(a);if(c==="replace")return r(a,{replace:!0});throw new Error(`Invalid history option: ${c}`)},[r]),i=v.useMemo(()=>({pathname:t,searchParams:n,navigate:o}),[t,n,o]);return y.jsx(Nf,{router:i,...e})}const Cu=e=>{let t;const n=new Set,r=(d,f)=>{const h=typeof d=="function"?d(t):d;if(!Object.is(h,t)){const b=t;t=f??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(m=>m(t,b))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{n.clear()}},u=t=e(r,o,l);return l},yw=e=>e?Cu(e):Cu;var ra={exports:{}},vs={},Do={exports:{}},bs={};/**
|
|
273
|
+
*/function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pr.apply(this,arguments)}function hc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const Zo="get",Qo="application/x-www-form-urlencoded";function Wi(e){return e!=null&&typeof e.tagName=="string"}function ZS(e){return Wi(e)&&e.tagName.toLowerCase()==="button"}function QS(e){return Wi(e)&&e.tagName.toLowerCase()==="form"}function ew(e){return Wi(e)&&e.tagName.toLowerCase()==="input"}function tw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nw(e,t){return e.button===0&&(!t||t==="_self")&&!tw(e)}function oa(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function rw(e,t){let n=oa(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}let Lo=null;function ow(){if(Lo===null)try{new FormData(document.createElement("form"),0),Lo=!1}catch{Lo=!0}return Lo}const iw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bs(e){return e!=null&&!iw.has(e)?(process.env.NODE_ENV!=="production"&&dt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Qo+'"')),null):e}function sw(e,t){let n,r,o,i,a;if(QS(e)){let c=e.getAttribute("action");r=c?hn(c,t):null,n=e.getAttribute("method")||Zo,o=bs(e.getAttribute("enctype"))||Qo,i=new FormData(e)}else if(ZS(e)||ew(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(r=l?hn(l,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Zo,o=bs(e.getAttribute("formenctype"))||bs(c.getAttribute("enctype"))||Qo,i=new FormData(c,e),!ow()){let{name:u,type:d,value:f}=e;if(d==="image"){let h=u?u+".":"";i.append(h+"x","0"),i.append(h+"y","0")}else u&&i.append(u,f)}}else{if(Wi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Zo,r=null,o=Qo,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}const aw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],cw=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],lw=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],uw="6";try{window.__reactRouterVersion=uw}catch{}const wp=v.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(wp.displayName="ViewTransition");const dw=v.createContext(new Map);process.env.NODE_ENV!=="production"&&(dw.displayName="Fetchers");const fw="startTransition",yi=v[fw];function pw(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=iS({window:o,v5Compat:!0}));let a=i.current,[c,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=v.useCallback(f=>{u&&yi?yi(()=>l(f)):l(f)},[l,u]);return v.useLayoutEffect(()=>a.listen(d),[a,d]),v.useEffect(()=>fc(r),[r]),v.createElement(pc,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}function hw(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=sS({window:o,v5Compat:!0}));let a=i.current,[c,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=v.useCallback(f=>{u&&yi?yi(()=>l(f)):l(f)},[l,u]);return v.useLayoutEffect(()=>a.listen(d),[a,d]),v.useEffect(()=>fc(r),[r]),v.createElement(pc,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}process.env.NODE_ENV;const mw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mc=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:c,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,h=hc(t,aw),{basename:b}=v.useContext(kt),m,p=!1;if(typeof u=="string"&&gw.test(u)&&(m=u,mw))try{let w=new URL(window.location.href),E=u.startsWith("//")?new URL(w.protocol+u):new URL(u),S=hn(E.pathname,b);E.origin===w.origin&&S!=null?u=S+E.search+E.hash:p=!0}catch{process.env.NODE_ENV!=="production"&&dt(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let y=jS(u,{relative:o}),T=xw(u,{replace:a,state:c,target:l,preventScrollReset:d,relative:o,viewTransition:f});function C(w){r&&r(w),w.defaultPrevented||T(w)}return v.createElement("a",pr({},h,{href:m||y,onClick:p||i?r:C,ref:n,target:l}))});process.env.NODE_ENV!=="production"&&(mc.displayName="Link");const yw=v.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:c,to:l,viewTransition:u,children:d}=t,f=hc(t,cw),h=vo(l,{relative:f.relative}),b=It(),m=v.useContext(ac),{navigator:p,basename:y}=v.useContext(kt),T=m!=null&&Rw(h)&&u===!0,C=p.encodeLocation?p.encodeLocation(h).pathname:h.pathname,w=b.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;o||(w=w.toLowerCase(),E=E?E.toLowerCase():null,C=C.toLowerCase()),E&&y&&(E=hn(E,y)||E);const S=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let O=w===C||!a&&w.startsWith(C)&&w.charAt(S)==="/",R=E!=null&&(E===C||!a&&E.startsWith(C)&&E.charAt(C.length)==="/"),N={isActive:O,isPending:R,isTransitioning:T},j=O?r:void 0,x;typeof i=="function"?x=i(N):x=[i,O?"active":null,R?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let P=typeof c=="function"?c(N):c;return v.createElement(mc,pr({},f,{"aria-current":j,className:x,ref:n,style:P,to:l,viewTransition:u}),typeof d=="function"?d(N):d)});process.env.NODE_ENV!=="production"&&(yw.displayName="NavLink");const vw=v.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:a,method:c=Zo,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:h}=e,b=hc(e,lw),m=Cw(),p=Ow(l,{relative:d}),y=c.toLowerCase()==="get"?"get":"post",T=C=>{if(u&&u(C),C.defaultPrevented)return;C.preventDefault();let w=C.nativeEvent.submitter,E=(w==null?void 0:w.getAttribute("formmethod"))||c;m(w||C.currentTarget,{fetcherKey:n,method:E,navigate:r,replace:i,state:a,relative:d,preventScrollReset:f,viewTransition:h})};return v.createElement("form",pr({ref:t,method:y,action:p,onSubmit:o?u:T},b))});process.env.NODE_ENV!=="production"&&(vw.displayName="Form");process.env.NODE_ENV;var vi;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vi||(vi={}));var Nu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Nu||(Nu={}));function bw(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Tp(e){let t=v.useContext(go);return t||(process.env.NODE_ENV!=="production"?pe(!1,bw(e)):pe(!1)),t}function xw(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:c}=t===void 0?{}:t,l=tn(),u=It(),d=vo(e,{relative:a});return v.useCallback(f=>{if(nw(f,n)){f.preventDefault();let h=r!==void 0?r:$n(u)===$n(d);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,viewTransition:c})}},[u,l,d,r,o,n,e,i,a,c])}function Ew(e){process.env.NODE_ENV!=="production"&&dt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=v.useRef(oa(e)),n=v.useRef(!1),r=It(),o=v.useMemo(()=>rw(r.search,n.current?null:t.current),[r.search]),i=tn(),a=v.useCallback((c,l)=>{const u=oa(typeof c=="function"?c(o):c);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}function Sw(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let ww=0,Tw=()=>"__"+String(++ww)+"__";function Cw(){let{router:e}=Tp(vi.UseSubmit),{basename:t}=v.useContext(kt),n=HS();return v.useCallback(function(r,o){o===void 0&&(o={}),Sw();let{action:i,method:a,encType:c,formData:l,body:u}=sw(r,t);if(o.navigate===!1){let d=o.fetcherKey||Tw();e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function Ow(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=v.useContext(kt),o=v.useContext(Pt);o||(process.env.NODE_ENV!=="production"?pe(!1,"useFormAction must be used inside a RouteContext"):pe(!1));let[i]=o.matches.slice(-1),a=pr({},vo(e||".",{relative:n})),c=It();if(e==null){a.search=c.search;let l=new URLSearchParams(a.search),u=l.getAll("index");if(u.some(f=>f==="")){l.delete("index"),u.filter(h=>h).forEach(h=>l.append("index",h));let f=l.toString();a.search=f?"?"+f:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Jt([r,a.pathname])),$n(a)}function Rw(e,t){t===void 0&&(t={});let n=v.useContext(wp);n==null&&(process.env.NODE_ENV!=="production"?pe(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):pe(!1));let{basename:r}=Tp(vi.useViewTransitionState),o=vo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=hn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=hn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return na(o.pathname,a)!=null||na(o.pathname,i)!=null}function Cp(e){const{pathname:t}=It(),[n]=Ew(),r=tn(),o=v.useCallback((a,{history:c="auto"}={})=>{if(c==="auto"||c==="push")return r(a);if(c==="replace")return r(a,{replace:!0});throw new Error(`Invalid history option: ${c}`)},[r]),i=v.useMemo(()=>({pathname:t,searchParams:n,navigate:o}),[t,n,o]);return g.jsx(Mf,{router:i,...e})}const ju=e=>{let t;const n=new Set,r=(d,f)=>{const h=typeof d=="function"?d(t):d;if(!Object.is(h,t)){const b=t;t=f??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(m=>m(t,b))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{n.clear()}},u=t=e(r,o,l);return l},kw=e=>e?ju(e):ju;var ia={exports:{}},xs={},Bo={exports:{}},Es={};/**
|
|
274
274
|
* @license React
|
|
275
275
|
* use-sync-external-store-shim.production.min.js
|
|
276
276
|
*
|
|
@@ -278,7 +278,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
278
278
|
*
|
|
279
279
|
* This source code is licensed under the MIT license found in the
|
|
280
280
|
* LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/var
|
|
281
|
+
*/var Au;function Pw(){if(Au)return Es;Au=1;var e=D;function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function c(f,h){var b=h(),m=r({inst:{value:b,getSnapshot:h}}),p=m[0].inst,y=m[1];return i(function(){p.value=b,p.getSnapshot=h,l(p)&&y({inst:p})},[f,b,h]),o(function(){return l(p)&&y({inst:p}),f(function(){l(p)&&y({inst:p})})},[f]),a(b),b}function l(f){var h=f.getSnapshot;f=f.value;try{var b=h();return!n(f,b)}catch{return!0}}function u(f,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:c;return Es.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Es}var Ss={};/**
|
|
282
282
|
* @license React
|
|
283
283
|
* use-sync-external-store-shim.development.js
|
|
284
284
|
*
|
|
@@ -286,7 +286,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
286
286
|
*
|
|
287
287
|
* This source code is licensed under the MIT license found in the
|
|
288
288
|
* LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/var
|
|
289
|
+
*/var Iu;function Nw(){return Iu||(Iu=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=D,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var E=arguments.length,S=new Array(E>1?E-1:0),O=1;O<E;O++)S[O-1]=arguments[O];r("error",w,S)}}function r(w,E,S){{var O=t.ReactDebugCurrentFrame,R=O.getStackAddendum();R!==""&&(E+="%s",S=S.concat([R]));var N=S.map(function(j){return String(j)});N.unshift("Warning: "+E),Function.prototype.apply.call(console[w],console,N)}}function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,c=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue,d=!1,f=!1;function h(w,E,S){d||e.startTransition!==void 0&&(d=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var O=E();if(!f){var R=E();i(O,R)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var N=a({inst:{value:O,getSnapshot:E}}),j=N[0].inst,x=N[1];return l(function(){j.value=O,j.getSnapshot=E,b(j)&&x({inst:j})},[w,O,E]),c(function(){b(j)&&x({inst:j});var P=function(){b(j)&&x({inst:j})};return w(P)},[w]),u(O),O}function b(w){var E=w.getSnapshot,S=w.value;try{var O=E();return!i(S,O)}catch{return!0}}function m(w,E,S){return E()}var p=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!p,T=y?m:h,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:T;Ss.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ss}var _u;function Op(){return _u||(_u=1,process.env.NODE_ENV==="production"?Bo.exports=Pw():Bo.exports=Nw()),Bo.exports}/**
|
|
290
290
|
* @license React
|
|
291
291
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
292
292
|
*
|
|
@@ -294,7 +294,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
294
294
|
*
|
|
295
295
|
* This source code is licensed under the MIT license found in the
|
|
296
296
|
* LICENSE file in the root directory of this source tree.
|
|
297
|
-
*/var
|
|
297
|
+
*/var $u;function jw(){if($u)return xs;$u=1;var e=D,t=Op();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,c=e.useMemo,l=e.useDebugValue;return xs.useSyncExternalStoreWithSelector=function(u,d,f,h,b){var m=i(null);if(m.current===null){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=c(function(){function T(O){if(!C){if(C=!0,w=O,O=h(O),b!==void 0&&p.hasValue){var R=p.value;if(b(R,O))return E=R}return E=O}if(R=E,r(w,O))return R;var N=h(O);return b!==void 0&&b(R,N)?R:(w=O,E=N)}var C=!1,w,E,S=f===void 0?null:f;return[function(){return T(d())},S===null?void 0:function(){return T(S())}]},[d,f,h,b]);var y=o(u,m[0],m[1]);return a(function(){p.hasValue=!0,p.value=y},[y]),l(y),y},xs}var ws={};/**
|
|
298
298
|
* @license React
|
|
299
299
|
* use-sync-external-store-shim/with-selector.development.js
|
|
300
300
|
*
|
|
@@ -302,26 +302,26 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
302
302
|
*
|
|
303
303
|
* This source code is licensed under the MIT license found in the
|
|
304
304
|
* LICENSE file in the root directory of this source tree.
|
|
305
|
-
*/var Nu;function Ew(){return Nu||(Nu=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=F,t=xp();function n(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,c=e.useMemo,l=e.useDebugValue;function u(d,f,h,b,m){var p=i(null),g;p.current===null?(g={hasValue:!1,value:null},p.current=g):g=p.current;var T=c(function(){var S=!1,O,R,N=function(L){if(!S){S=!0,O=L;var $=b(L);if(m!==void 0&&g.hasValue){var U=g.value;if(m(U,$))return R=U,U}return R=$,$}var M=O,D=R;if(r(M,L))return D;var H=b(L);return m!==void 0&&m(D,H)?D:(O=L,R=H,H)},j=h===void 0?null:h,x=function(){return N(f())},P=j===null?void 0:function(){return N(j())};return[x,P]},[f,h,b,m]),C=T[0],w=T[1],E=o(d,C,w);return a(function(){g.hasValue=!0,g.value=E},[E]),l(E),E}Es.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Es}process.env.NODE_ENV==="production"?ra.exports=xw():ra.exports=Ew();var Sw=ra.exports;const ww=pa(Sw),{useDebugValue:Tw}=F,{useSyncExternalStoreWithSelector:Cw}=ww,Ow=e=>e;function Rw(e,t=Ow,n){const r=Cw(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Tw(r),r}const ju=e=>{const t=typeof e=="function"?yw(e):e,n=(r,o)=>Rw(t,r,o);return Object.assign(n,t),n},go=e=>e?ju(e):ju,fc=Ge(y.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),pc=Ge(y.jsx("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8zm-2 8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8H8v-.57c0-.81.48-1.53 1.22-1.85.85-.37 1.79-.58 2.78-.58s1.93.21 2.78.58c.74.32 1.22 1.04 1.22 1.85z"}),"ContactPage"),kw=Ge(y.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),Ep=e=>e.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,""),Zo=[{kind:"header",title:"Other"},{segment:"help",title:"Help",iconFC:fc,kind:"page"},{segment:"contact",title:"Contact",iconFC:pc,kind:"page"}],hc=go(e=>({navigation:Zo,baseSections:{header:{kind:"header",title:"Other"},contact:{segment:"contact",title:"Contact",iconFC:pc,kind:"page"},help:{segment:"help",title:"Help",iconFC:fc,kind:"page"}},sections:{},setNavigation:t=>e({navigation:t}),updateSection:(t,n,r)=>e(o=>{console.log("Updating section: ",t,n,r);const i=Ep(t.title),c=o.sections[i]||{kind:"page",segment:i,title:t.title,iconFC:kw,metadata:{description:t.description,forRoles:["student","teacher"],isRootTool:!0},children:[]};c.children=[...r];const l={...o.sections,[i]:c},u=[];for(const d in o.baseSections)u.push(o.baseSections[d]);for(const d in l)console.log("Item: ",l[d]),u.push(l[d]);return{sections:l,navigation:u}})})),Pw=e=>({teacher:Zo,student:Zo.filter(n=>n.kind!=="header"||n.title!=="Exercise Session manager"),guest:Zo.filter(n=>n.kind!=="header"||n.title!=="Exercise statistics")})[e]||[];function Sp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nw}=Object.prototype,{getPrototypeOf:mc}=Object,zi=(e=>t=>{const n=Nw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_t=e=>(e=e.toLowerCase(),t=>zi(t)===e),Wi=e=>t=>typeof t===e,{isArray:gr}=Array,ro=Wi("undefined");function jw(e){return e!==null&&!ro(e)&&e.constructor!==null&&!ro(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wp=_t("ArrayBuffer");function Aw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wp(e.buffer),t}const Iw=Wi("string"),mt=Wi("function"),Tp=Wi("number"),Hi=e=>e!==null&&typeof e=="object",_w=e=>e===!0||e===!1,Qo=e=>{if(zi(e)!=="object")return!1;const t=mc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$w=_t("Date"),Mw=_t("File"),Dw=_t("Blob"),Lw=_t("FileList"),Bw=e=>Hi(e)&&mt(e.pipe),Fw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=zi(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},Vw=_t("URLSearchParams"),[Uw,zw,Ww,Hw]=["ReadableStream","Request","Response","Headers"].map(_t),qw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),gr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let c;for(r=0;r<a;r++)c=i[r],t.call(null,e[c],c,e)}}function Cp(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const On=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Op=e=>!ro(e)&&e!==On;function oa(){const{caseless:e}=Op(this)&&this||{},t={},n=(r,o)=>{const i=e&&Cp(t,o)||o;Qo(t[i])&&Qo(r)?t[i]=oa(t[i],r):Qo(r)?t[i]=oa({},r):gr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&yo(arguments[r],n);return t}const Gw=(e,t,n,{allOwnKeys:r}={})=>(yo(t,(o,i)=>{n&&mt(o)?e[i]=Sp(o,n):e[i]=o},{allOwnKeys:r}),e),Yw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kw=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Xw=(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&mc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Jw=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Zw=e=>{if(!e)return null;if(gr(e))return e;let t=e.length;if(!Tp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Qw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&mc(Uint8Array)),eT=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},tT=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},nT=_t("HTMLFormElement"),rT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Au=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oT=_t("RegExp"),Rp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};yo(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},iT=e=>{Rp(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sT=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return gr(e)?r(e):r(String(e).split(t)),n},aT=()=>{},cT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ss="abcdefghijklmnopqrstuvwxyz",Iu="0123456789",kp={DIGIT:Iu,ALPHA:Ss,ALPHA_DIGIT:Ss+Ss.toUpperCase()+Iu},lT=(e=16,t=kp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function uT(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dT=e=>{const t=new Array(10),n=(r,o)=>{if(Hi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=gr(r)?[]:{};return yo(r,(a,c)=>{const l=n(a,o+1);!ro(l)&&(i[c]=l)}),t[o]=void 0,i}}return r};return n(e,0)},fT=_t("AsyncFunction"),pT=e=>e&&(Hi(e)||mt(e))&&mt(e.then)&&mt(e.catch),Pp=((e,t)=>e?setImmediate:t?((n,r)=>(On.addEventListener("message",({source:o,data:i})=>{o===On&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),On.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",mt(On.postMessage)),hT=typeof queueMicrotask<"u"?queueMicrotask.bind(On):typeof process<"u"&&process.nextTick||Pp,I={isArray:gr,isArrayBuffer:wp,isBuffer:jw,isFormData:Fw,isArrayBufferView:Aw,isString:Iw,isNumber:Tp,isBoolean:_w,isObject:Hi,isPlainObject:Qo,isReadableStream:Uw,isRequest:zw,isResponse:Ww,isHeaders:Hw,isUndefined:ro,isDate:$w,isFile:Mw,isBlob:Dw,isRegExp:oT,isFunction:mt,isStream:Bw,isURLSearchParams:Vw,isTypedArray:Qw,isFileList:Lw,forEach:yo,merge:oa,extend:Gw,trim:qw,stripBOM:Yw,inherits:Kw,toFlatObject:Xw,kindOf:zi,kindOfTest:_t,endsWith:Jw,toArray:Zw,forEachEntry:eT,matchAll:tT,isHTMLForm:nT,hasOwnProperty:Au,hasOwnProp:Au,reduceDescriptors:Rp,freezeMethods:iT,toObjectSet:sT,toCamelCase:rT,noop:aT,toFiniteNumber:cT,findKey:Cp,global:On,isContextDefined:Op,ALPHABET:kp,generateString:lT,isSpecCompliantForm:uT,toJSONObject:dT,isAsyncFn:fT,isThenable:pT,setImmediate:Pp,asap:hT};function fe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}I.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}});const Np=fe.prototype,jp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{jp[e]={value:e}});Object.defineProperties(fe,jp);Object.defineProperty(Np,"isAxiosError",{value:!0});fe.from=(e,t,n,r,o,i)=>{const a=Object.create(Np);return I.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),fe.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const mT=null;function ia(e){return I.isPlainObject(e)||I.isArray(e)}function Ap(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function _u(e,t,n){return e?e.concat(t).map(function(o,i){return o=Ap(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function gT(e){return I.isArray(e)&&!e.some(ia)}const yT=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function qi(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!I.isUndefined(g[p])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(I.isDate(m))return m.toISOString();if(!l&&I.isBlob(m))throw new fe("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(m)||I.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,p,g){let T=m;if(m&&!g&&typeof m=="object"){if(I.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(I.isArray(m)&&gT(m)||(I.isFileList(m)||I.endsWith(p,"[]"))&&(T=I.toArray(m)))return p=Ap(p),T.forEach(function(w,E){!(I.isUndefined(w)||w===null)&&t.append(a===!0?_u([p],E,i):a===null?p:p+"[]",u(w))}),!1}return ia(m)?!0:(t.append(_u(g,p,i),u(m)),!1)}const f=[],h=Object.assign(yT,{defaultVisitor:d,convertValue:u,isVisitable:ia});function b(m,p){if(!I.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),I.forEach(m,function(T,C){(!(I.isUndefined(T)||T===null)&&o.call(t,T,I.isString(C)?C.trim():C,p,h))===!0&&b(T,p?p.concat(C):[C])}),f.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return b(e),t}function $u(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function gc(e,t){this._pairs=[],e&&qi(e,this,t)}const Ip=gc.prototype;Ip.append=function(t,n){this._pairs.push([t,n])};Ip.toString=function(t){const n=t?function(r){return t.call(this,r,$u)}:$u;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function vT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _p(e,t,n){if(!t)return e;const r=n&&n.encode||vT;I.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=I.isURLSearchParams(t)?t.toString():new gc(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Mu{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $p={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bT=typeof URLSearchParams<"u"?URLSearchParams:gc,xT=typeof FormData<"u"?FormData:null,ET=typeof Blob<"u"?Blob:null,ST={isBrowser:!0,classes:{URLSearchParams:bT,FormData:xT,Blob:ET},protocols:["http","https","file","blob","url","data"]},yc=typeof window<"u"&&typeof document<"u",sa=typeof navigator=="object"&&navigator||void 0,wT=yc&&(!sa||["ReactNative","NativeScript","NS"].indexOf(sa.product)<0),TT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",CT=yc&&window.location.href||"http://localhost",OT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yc,hasStandardBrowserEnv:wT,hasStandardBrowserWebWorkerEnv:TT,navigator:sa,origin:CT},Symbol.toStringTag,{value:"Module"})),nt={...OT,...ST};function RT(e,t){return qi(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nt.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function kT(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function PT(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Mp(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=i>=n.length;return a=!a&&I.isArray(o)?o.length:a,l?(I.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!c):((!o[a]||!I.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&I.isArray(o[a])&&(o[a]=PT(o[a])),!c)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,o)=>{t(kT(r),o,n,0)}),n}return null}function NT(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const vo={transitional:$p,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(Mp(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return RT(t,this.formSerializer).toString();if((c=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return qi(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),NT(t)):t}],transformResponse:[function(t){const n=this.transitional||vo.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?fe.from(c,fe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{vo.headers[e]={}});const jT=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AT=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
306
|
-
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&
|
|
307
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Du]=this[Du]={accessors:{}}).accessors,o=this.prototype;function i(a){const c=Or(a);r[c]||(MT(o,a),r[c]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}}ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(ut.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(ut);function Ts(e,t){const n=this||vo,r=t||n,o=ut.from(r.headers);let i=r.data;return I.forEach(e,function(c){i=c.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Dp(e){return!!(e&&e.__CANCEL__)}function yr(e,t,n){fe.call(this,e??"canceled",fe.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(yr,fe,{__CANCEL__:!0});function Lp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function DT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LT(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[i];a||(a=u),n[o]=l,r[o]=u;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const b=d&&u-d;return b?Math.round(h*1e3/b):void 0}}function BT(e,t){let n=0,r=1e3/t,o,i;const a=(u,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?a(u,d):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const yi=(e,t,n=3)=>{let r=0;const o=LT(50,250);return BT(i=>{const a=i.loaded,c=i.lengthComputable?i.total:void 0,l=a-r,u=o(l),d=a<=c;r=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:l,rate:u||void 0,estimated:u&&c&&d?(c-a)/u:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},n)},Lu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Bu=e=>(...t)=>I.asap(()=>e(...t)),FT=nt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,nt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(nt.origin),nt.navigator&&/(msie|trident)/i.test(nt.navigator.userAgent)):()=>!0,VT=nt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),I.isString(r)&&a.push("path="+r),I.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function UT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zT(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bp(e,t){return e&&!UT(t)?zT(e,t):t}const Fu=e=>e instanceof ut?{...e}:e;function $n(e,t){t=t||{};const n={};function r(u,d,f,h){return I.isPlainObject(u)&&I.isPlainObject(d)?I.merge.call({caseless:h},u,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function o(u,d,f,h){if(I.isUndefined(d)){if(!I.isUndefined(u))return r(void 0,u,f,h)}else return r(u,d,f,h)}function i(u,d){if(!I.isUndefined(d))return r(void 0,d)}function a(u,d){if(I.isUndefined(d)){if(!I.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,d,f)=>o(Fu(u),Fu(d),f,!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||o,h=f(e[d],t[d],d);I.isUndefined(h)&&f!==c||(n[d]=h)}),n}const Fp=e=>{const t=$n({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:c}=t;t.headers=a=ut.from(a),t.url=_p(Bp(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(I.isFormData(n)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(nt.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&FT(t.url))){const u=o&&i&&VT.read(i);u&&a.set(o,u)}return t},WT=typeof XMLHttpRequest<"u",HT=WT&&function(e){return new Promise(function(n,r){const o=Fp(e);let i=o.data;const a=ut.from(o.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:u}=o,d,f,h,b,m;function p(){b&&b(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function T(){if(!g)return;const w=ut.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};Lp(function(R){n(R),p()},function(R){r(R),p()},S),g=null}"onloadend"in g?g.onloadend=T:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(T)},g.onabort=function(){g&&(r(new fe("Request aborted",fe.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||$p;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),r(new fe(E,S.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,g)),g=null},i===void 0&&a.setContentType(null),"setRequestHeader"in g&&I.forEach(a.toJSON(),function(E,S){g.setRequestHeader(S,E)}),I.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),c&&c!=="json"&&(g.responseType=o.responseType),u&&([h,m]=yi(u,!0),g.addEventListener("progress",h)),l&&g.upload&&([f,b]=yi(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=w=>{g&&(r(!w||w.type?new yr(null,e,g):w),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const C=DT(o.url);if(C&&nt.protocols.indexOf(C)===-1){r(new fe("Unsupported protocol "+C+":",fe.ERR_BAD_REQUEST,e));return}g.send(i||null)})},qT=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof fe?d:new yr(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new fe(`timeout ${t} of ms exceeded`,fe.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>I.asap(c),l}},GT=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},YT=async function*(e,t){for await(const n of KT(e))yield*GT(n,t)},KT=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Vu=(e,t,n,r)=>{const o=YT(e,t);let i=0,a,c=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await o.next();if(u){c(),l.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}l.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(l){return c(l),o.return()}},{highWaterMark:2})},Gi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vp=Gi&&typeof ReadableStream=="function",XT=Gi&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Up=(e,...t)=>{try{return!!e(...t)}catch{return!1}},JT=Vp&&Up(()=>{let e=!1;const t=new Request(nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Uu=64*1024,aa=Vp&&Up(()=>I.isReadableStream(new Response("").body)),vi={stream:aa&&(e=>e.body)};Gi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vi[t]&&(vi[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new fe(`Response type '${t}' is not supported`,fe.ERR_NOT_SUPPORT,r)})})})(new Response);const ZT=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(nt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await XT(e)).byteLength},QT=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??ZT(t)},eC=Gi&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:h}=Fp(e);u=u?(u+"").toLowerCase():"text";let b=qT([o,i&&i.toAbortSignal()],a),m;const p=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let g;try{if(l&&JT&&n!=="get"&&n!=="head"&&(g=await QT(d,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(I.isFormData(r)&&(O=S.headers.get("content-type"))&&d.setContentType(O),S.body){const[R,N]=Lu(g,yi(Bu(l)));r=Vu(S.body,Uu,R,N)}}I.isString(f)||(f=f?"include":"omit");const T="credentials"in Request.prototype;m=new Request(t,{...h,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:T?f:void 0});let C=await fetch(m);const w=aa&&(u==="stream"||u==="response");if(aa&&(c||w&&p)){const S={};["status","statusText","headers"].forEach(j=>{S[j]=C[j]});const O=I.toFiniteNumber(C.headers.get("content-length")),[R,N]=c&&Lu(O,yi(Bu(c),!0))||[];C=new Response(Vu(C.body,Uu,R,()=>{N&&N(),p&&p()}),S)}u=u||"text";let E=await vi[I.findKey(vi,u)||"text"](C,e);return!w&&p&&p(),await new Promise((S,O)=>{Lp(S,O,{data:E,headers:ut.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:m})})}catch(T){throw p&&p(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,e,m),{cause:T.cause||T}):fe.from(T,T&&T.code,e,m)}}),ca={http:mT,xhr:HT,fetch:eC};I.forEach(ca,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const zu=e=>`- ${e}`,tC=e=>I.isFunction(e)||e===null||e===!1,zp={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!tC(n)&&(r=ca[(a=String(n)).toLowerCase()],r===void 0))throw new fe(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
308
|
-
`+i.map(
|
|
309
|
-
`):" "+
|
|
310
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$n(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ti.assertOptions(r,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean)},!1),o!=null&&(I.isFunction(o)?n.paramsSerializer={serialize:o}:ti.assertOptions(o,{encode:Ft.function,serialize:Ft.function},!0)),ti.assertOptions(n,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&I.merge(i.common,i[n.method]);i&&I.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ut.concat(a,i);const c=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,c.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,f=0,h;if(!l){const m=[Wu.bind(this),void 0];for(m.unshift.apply(m,c),m.push.apply(m,u),h=m.length,d=Promise.resolve(n);f<h;)d=d.then(m[f++],m[f++]);return d}h=c.length;let b=n;for(f=0;f<h;){const m=c[f++],p=c[f++];try{b=m(b)}catch(g){p.call(this,g);break}}try{d=Wu.call(this,b)}catch(m){return Promise.reject(m)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=$n(this.defaults,t);const n=Bp(t.baseURL,t.url);return _p(n,t.params,t.paramsSerializer)}}I.forEach(["delete","get","head","options"],function(t){Pn.prototype[t]=function(n,r){return this.request($n(r||{},{method:t,url:n,data:(r||{}).data}))}});I.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,c){return this.request($n(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Pn.prototype[t]=n(),Pn.prototype[t+"Form"]=n(!0)});class vc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(c=>{r.subscribe(c),i=c}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,c){r.reason||(r.reason=new yr(i,a,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new vc(function(o){t=o}),cancel:t}}}function rC(e){return function(n){return e.apply(null,n)}}function oC(e){return I.isObject(e)&&e.isAxiosError===!0}const la={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(la).forEach(([e,t])=>{la[t]=e});function Hp(e){const t=new Pn(e),n=Sp(Pn.prototype.request,t);return I.extend(n,Pn.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Hp($n(e,o))},n}const Qe=Hp(vo);Qe.Axios=Pn;Qe.CanceledError=yr;Qe.CancelToken=vc;Qe.isCancel=Dp;Qe.VERSION=Wp;Qe.toFormData=qi;Qe.AxiosError=fe;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=rC;Qe.isAxiosError=oC;Qe.mergeConfig=$n;Qe.AxiosHeaders=ut;Qe.formToJSON=e=>Mp(I.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=zp.getAdapter;Qe.HttpStatusCode=la;Qe.default=Qe;const qp="/";function iC(e){let t=null;if(document.cookie&&document.cookie!==""){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const o=n[r].trim();if(o.substring(0,e.length+1)===e+"="){t=decodeURIComponent(o.substring(e.length+1));break}}}return t}const sC=iC("csrftoken"),vn=Qe.create({baseURL:qp,withCredentials:!0,headers:{"Content-Type":"application/json","X-CSRFToken":sC}}),aC=async e=>{try{return(await vn.get(`api/users/current/${e?`?course_id=${e}`:""}`)).data}catch(t){throw console.error("Error getting current user",t),t}},cC=async e=>{try{const t=await vn.get(`api/users/${e?`?course_id=${e}`:""}`);return console.log("response",t),t.data}catch(t){throw console.error("Error getting users",t),t}},lC=async()=>{try{await vn.post("/auth/lti_logout/")}catch(e){throw console.error("Error logging out user",e),e}},_r="/static/images/student.png",$r="/static/images/teacher.png",ua="/static/images/guest.png",Os=[{id:"1",name:"Teacher User",email:"teacher@edu.com",role:"teacher",image:$r,color:"#3f51b5"},{id:"2",name:"Student User",email:"student@edu.com",role:"student",image:_r,color:"#f50057"},{id:"3",name:"Guest User",email:"",role:"guest",image:ua,color:"#f50057"}],bo=go(e=>({fetchState:"idle",user:null,testUsers:Os,users:[],setTestUsers:t=>e({testUsers:t}),setUser:t=>e({user:t}),getUser:async t=>{try{e({fetchState:"loading"}),e({testUsers:Os});const n=await aC(t);if(n.image=n.role==="student"?_r:$r,n){let r;n.role==="student"?r=_r:n.role==="teacher"?r=$r:r=ua,e({user:{...n,image:r},fetchState:"idle",testUsers:Os.filter(o=>o.role!==n.role)})}}catch(n){console.log("Error getting user",n),e({fetchState:"error"})}},getUsers:async()=>{try{e({fetchState:"loading"});const t=await cC();t.forEach(n=>{n.image=n.role==="student"?_r:$r}),e(t?{users:t,fetchState:"idle"}:{fetchState:"error"})}catch{e({fetchState:"error"})}},changeRole:t=>e(n=>{if(n.user){let r;return t==="student"?r=_r:t==="teacher"?r=$r:r=ua,{user:{...n.user,role:t,image:r}}}return n}),clearUser:()=>e({user:null}),logout:async()=>{try{return await lC(),e({user:null}),Promise.resolve()}catch(t){return Promise.reject(t)}}})),uC=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,""),dC=e=>e.toLowerCase().replace(/_([a-z])/g,(t,n)=>n.toUpperCase()),Mn=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Mn(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=dC(n);t[o]=Mn(r)}),t},bi=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>bi(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=uC(n);t[o]=bi(r)}),t};async function fC(){try{const e=await vn.get("api/courses/current/");return Mn(e.data)}catch(e){throw new Error("Failed to retrieve current course: "+e)}}async function pC(){try{const e=await vn.get("api/courses/");return Mn(e.data)}catch(e){throw new Error("Failed to retrieve courses: "+e)}}async function hC(e){try{const t=btoa(e),n=await vn.get(`api/courses/?encoded_url=${t}`);return Mn(n.data[0])}catch(t){throw new Error("Failed to retrieve course by URL: "+t)}}async function mC(e){try{const t=await vn.put(`api/courses/${e.id}/`,bi(e)),n=Mn(t.data);if(n.ltiLoginUrl!==e.ltiLoginUrl)throw new Error("Update verification failed");return n}catch(t){throw new Error(`Failed to update the course: ${t}`)}}const Ln=go(e=>({fetchState:"loading",currentCourseUrl:"",currentCourse:null,courses:[],getCourseByUrl:async t=>{try{const n=await hC(t);e({currentCourse:n})}catch(n){console.error("Failed to fetch course by URL:",n)}},setCurrentCourseUrl:t=>e({currentCourseUrl:t}),setCurrentCourse:t=>e({currentCourse:t}),updateCurrentCourse:async t=>{try{const n=await mC(t);if(n&&n.id===t.id)return e({currentCourse:n}),n;throw new Error("Invalid response from server")}catch(n){throw console.error("Failed to update the course:",n),n}},getCurrentCourse:async()=>{try{const t=await fC();e({currentCourse:t})}catch(t){console.error("Failed to fetch current course:",t)}},getCourses:async()=>{try{e({fetchState:"loading"});const n=await pC();e({fetchState:"idle"}),e({courses:n})}catch(t){e({fetchState:"error"}),console.error("Failed to fetch courses:",t)}}}));function gC(){const e=yn(),t=It();return console.log("location",t,e),{pathname:t.pathname,searchParams:new URLSearchParams(t.search),navigate:e}}const yC=()=>{const{setCurrentCourse:e}=Ln(t=>t);return y.jsx(Y.Box,{onClick:()=>e(null),sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flex:"1"},children:y.jsx(Y.Typography,{variant:"h1",component:"h1",children:"EduML"})})},vC=Y.createTheme({cssVariables:{colorSchemeSelector:"data-toolpad-color-scheme"},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h1:{fontSize:"1.5rem",fontWeight:600,lineHeight:1.2},h2:{fontSize:"1.25rem",fontWeight:600},h3:{fontSize:"1.1rem",fontWeight:500},h4:{fontSize:"1rem",fontWeight:500},h5:{fontSize:"0.875rem",fontWeight:500},h6:{fontSize:"0.75rem",fontWeight:500},subtitle1:{fontSize:"0.875rem",lineHeight:1.5},subtitle2:{fontSize:"0.75rem",lineHeight:1.5},body1:{fontSize:"0.875rem",lineHeight:1.5},body2:{fontSize:"0.75rem",lineHeight:1.5},button:{textTransform:"none",fontWeight:500},caption:{fontSize:"0.75rem",lineHeight:1.66},overline:{fontSize:"0.75rem",textTransform:"uppercase"}},shape:{borderRadius:8},spacing:8,colorSchemes:{light:{palette:{mode:"light",background:{default:"#f5f5f5",paper:"#ffffff"},primary:{main:"#6a1b9a",light:"#9c4dcc",dark:"#38006b",contrastText:"#ffffff"},secondary:{main:"#ff4081",light:"#ff79b0",dark:"#c60055",contrastText:"#000000"},error:{main:"#e57373",light:"#ff8a80",dark:"#d32f2f",contrastText:"#ffffff"},warning:{main:"#ffb74d",light:"#ffe97d",dark:"#f57c00",contrastText:"#000000"},info:{main:"#64b5f6",light:"#9be7ff",dark:"#2286c3",contrastText:"#000000"},success:{main:"#81c784",light:"#b2fab4",dark:"#519657",contrastText:"#000000"},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)"}},dark:{palette:{mode:"dark",background:{default:"#303030",paper:"#424242"},primary:{main:"#9575cd",light:"#c7a4ff",dark:"#65499c",contrastText:"#ffffff"},secondary:{main:"#ff4081",light:"#ff79b0",dark:"#c60055",contrastText:"#ffffff"},error:{main:"#ef9a9a",light:"#ffcccb",dark:"#ba6b6c",contrastText:"#000000"},warning:{main:"#ffb74d",light:"#ffe97d",dark:"#f57c00",contrastText:"#000000"},info:{main:"#64b5f6",light:"#9be7ff",dark:"#2286c3",contrastText:"#000000"},success:{main:"#81c784",light:"#b2fab4",dark:"#519657",contrastText:"#000000"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)"}}},breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:8}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiDialog:{styleOverrides:{paper:{borderRadius:12}}},MuiCard:{styleOverrides:{root:{borderRadius:12}}}},transitions:{easing:{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)"},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}}),bC=({IconFC:e})=>{const t=n=>{n.preventDefault()};return e?y.jsx(Y.Box,{onClick:t,children:y.jsx(e,{fontSize:"small"})}):null},Gp=e=>e.map(t=>{if(t.kind==="page"){const n=t.iconFC?y.jsx(bC,{IconFC:t.iconFC}):void 0,r=t.children?Gp(t.children).filter(o=>o.kind==="page"):void 0;return{...t,icon:n,children:r}}return t}),xC=({ActionHandler:e,props:t})=>{const n=r=>(r.preventDefault(),y.jsx(e,{...t}));return y.jsx(vd,{onClick:n,"data-testid":"action-fc-wrapper",sx:{width:"100%"},children:y.jsx(e,{...t})})},Yp=(e,t)=>{var r;if(e.kind!=="page")return e;const n=(r=e.children)==null?void 0:r.map(o=>Yp(o)).filter(o=>o.kind==="page");return e!=null&&e.actionFC?{...e,action:y.jsx(xC,{ActionHandler:e.actionFC,props:{}}),children:n}:{...e,children:n}},EC=(e,t)=>e.map(n=>Yp(n));function Kp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Kp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Bn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Kp(e))&&(r&&(r+=" "),r+=t);return r}let SC={data:""},wC=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||SC,TC=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,CC=/\/\*[^]*?\*\/| +/g,qu=/\n+/g,wn=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?wn(a,i):i+"{"+wn(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=wn(a,t?t.replace(/([^,])+/g,c=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,c):c?c+" "+l:l)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=wn.p?wn.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Yt={},Xp=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Xp(e[n]);return t}return e},OC=(e,t,n,r,o)=>{let i=Xp(e),a=Yt[i]||(Yt[i]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(i));if(!Yt[a]){let l=i!==e?e:(u=>{let d,f,h=[{}];for(;d=TC.exec(u.replace(CC,""));)d[4]?h.shift():d[3]?(f=d[3].replace(qu," ").trim(),h.unshift(h[0][f]=h[0][f]||{})):h[0][d[1]]=d[2].replace(qu," ").trim();return h[0]})(e);Yt[a]=wn(o?{["@keyframes "+a]:l}:l,n?"":"."+a)}let c=n&&Yt.g?Yt.g:null;return n&&(Yt.g=Yt[a]),((l,u,d,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(Yt[a],t,r,c),a},RC=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let c=a(n),l=c&&c.props&&c.props.className||/^go/.test(c)&&c;a=l?"."+l:c&&typeof c=="object"?c.props?"":wn(c,""):c===!1?"":c}return r+o+(a??"")},"");function bc(e){let t=this||{},n=e.call?e(t.p):e;return OC(n.unshift?n.raw?RC(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,wC(t.target),t.g,t.o,t.k)}bc.bind({g:1});bc.bind({k:1});function kC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jp(e,t,n){return t&&kC(e.prototype,t),e}function Pe(){return Pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}function Zp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function xo(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Gu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Yu=function(){return""},Qp=F.createContext({enqueueSnackbar:Yu,closeSnackbar:Yu}),Sn={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},Ku=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},xc=function(t){return""+Ku(t.vertical)+Ku(t.horizontal)},Lo=function(t){return!!t||t===0},Bo="unmounted",Kn="exited",Xn="entering",Rr="entered",Xu="exiting",Ec=function(e){Zp(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,a;return o.appearStatus=null,r.in?i?(a=Kn,o.appearStatus=Xn):a=Rr:r.unmountOnExit||r.mountOnEnter?a=Bo:a=Kn,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Bo?{status:Kn}: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!==Xn&&a!==Rr&&(i=Xn):(a===Xn||a===Rr)&&(i=Xu)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,a=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(a=o.exit,i=o.enter),{exit:a,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===Xn?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Kn&&this.setState({status:Bo})},n.performEnter=function(o){var i=this,a=this.props.enter,c=o,l=this.getTimeouts();if(!o&&!a){this.safeSetState({status:Rr},function(){i.props.onEntered&&i.props.onEntered(i.node,c)});return}this.props.onEnter&&this.props.onEnter(this.node,c),this.safeSetState({status:Xn},function(){i.props.onEntering&&i.props.onEntering(i.node,c),i.onTransitionEnd(l.enter,function(){i.safeSetState({status:Rr},function(){i.props.onEntered&&i.props.onEntered(i.node,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:Kn},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Xu},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Kn},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(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(){a&&(a=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=o==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Bo)return null;var i=this.props,a=i.children,c=xo(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(o,c)},Jp(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(F.Component);function Jn(){}Ec.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Jn,onEntering:Jn,onEntered:Jn,onExit:Jn,onExiting:Jn,onExited:Jn};function Ju(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function da(e,t){return F.useMemo(function(){return e==null&&t==null?null:function(n){Ju(e,n),Ju(t,n)}},[e,t])}function xi(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var fa={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)"},eh=function(t){t.scrollTop=t.scrollTop},Zu=function(t){return Math.round(t)+"ms"};function tr(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,a=i===void 0?fa.easeInOut:i,c=n.delay,l=c===void 0?0:c,u=Array.isArray(e)?e:[e];return u.map(function(d){var f=typeof o=="string"?o:Zu(o),h=typeof l=="string"?l:Zu(l);return d+" "+f+" "+a+" "+h}).join(",")}function PC(e){return e&&e.ownerDocument||document}function th(e){var t=PC(e);return t.defaultView||window}function NC(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var l=function(){e.apply(o,a)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=function(){clearTimeout(n)},r}function jC(e,t){var n=t.getBoundingClientRect(),r=th(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,c=0;if(o&&o!=="none"&&typeof o=="string"){var l=o.split("(")[1].split(")")[0].split(",");a=parseInt(l[4],10),c=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+c-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-c)+"px)"}}function Fo(e,t){if(t){var n=jC(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var nh=F.forwardRef(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,a=e.style,c=e.timeout,l=c===void 0?0:c,u=e.onEnter,d=e.onEntered,f=e.onExit,h=e.onExited,b=xo(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=F.useRef(null),p=da(n.ref,m),g=da(p,t),T=function(R,N){Fo(o,R),eh(R),u&&u(R,N)},C=function(R){var N=(a==null?void 0:a.transitionTimingFunction)||fa.easeOut,j=xi({timeout:l,mode:"enter",style:Pe({},a,{transitionTimingFunction:N})});R.style.webkitTransition=tr("-webkit-transform",j),R.style.transition=tr("transform",j),R.style.webkitTransform="none",R.style.transform="none"},w=function(R){var N=(a==null?void 0:a.transitionTimingFunction)||fa.sharp,j=xi({timeout:l,mode:"exit",style:Pe({},a,{transitionTimingFunction:N})});R.style.webkitTransition=tr("-webkit-transform",j),R.style.transition=tr("transform",j),Fo(o,R),f&&f(R)},E=function(R){R.style.webkitTransition="",R.style.transition="",h&&h(R)},S=F.useCallback(function(){m.current&&Fo(o,m.current)},[o]);return F.useEffect(function(){if(!(i||o==="down"||o==="right")){var O=NC(function(){m.current&&Fo(o,m.current)}),R=th(m.current);return R.addEventListener("resize",O),function(){O.clear(),R.removeEventListener("resize",O)}}},[o,i]),F.useEffect(function(){i||S()},[i,S]),F.createElement(Ec,Object.assign({appear:!0,nodeRef:m,onEnter:T,onEntered:d,onEntering:C,onExit:w,onExited:E,in:i,timeout:l},b),function(O,R){return F.cloneElement(n,Pe({ref:g,style:Pe({visibility:O==="exited"&&!i?"hidden":void 0},a,{},n.props.style)},R))})});nh.displayName="Slide";var Ki=function(t){return F.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},AC=function(){return F.createElement(Ki,null,F.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
311
|
-
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},
|
|
305
|
+
*/var Mu;function Aw(){return Mu||(Mu=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=D,t=Op();function n(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,c=e.useMemo,l=e.useDebugValue;function u(d,f,h,b,m){var p=i(null),y;p.current===null?(y={hasValue:!1,value:null},p.current=y):y=p.current;var T=c(function(){var S=!1,O,R,N=function(B){if(!S){S=!0,O=B;var $=b(B);if(m!==void 0&&y.hasValue){var U=y.value;if(m(U,$))return R=U,U}return R=$,$}var M=O,L=R;if(r(M,B))return L;var H=b(B);return m!==void 0&&m(L,H)?L:(O=B,R=H,H)},j=h===void 0?null:h,x=function(){return N(f())},P=j===null?void 0:function(){return N(j())};return[x,P]},[f,h,b,m]),C=T[0],w=T[1],E=o(d,C,w);return a(function(){y.hasValue=!0,y.value=E},[E]),l(E),E}ws.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ws}process.env.NODE_ENV==="production"?ia.exports=jw():ia.exports=Aw();var Iw=ia.exports;const _w=ma(Iw),{useDebugValue:$w}=D,{useSyncExternalStoreWithSelector:Mw}=_w,Dw=e=>e;function Lw(e,t=Dw,n){const r=Mw(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return $w(r),r}const Du=e=>{const t=typeof e=="function"?kw(e):e,n=(r,o)=>Lw(t,r,o);return Object.assign(n,t),n},bo=e=>e?Du(e):Du,gc=Ge(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),yc=Ge(g.jsx("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8zm-2 8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8H8v-.57c0-.81.48-1.53 1.22-1.85.85-.37 1.79-.58 2.78-.58s1.93.21 2.78.58c.74.32 1.22 1.04 1.22 1.85z"}),"ContactPage"),Bw=Ge(g.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),vc=e=>e.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,""),ei=[{kind:"header",title:"Other"},{segment:"help",title:"Help",iconFC:gc,kind:"page"},{segment:"contact",title:"Contact",iconFC:yc,kind:"page"}],xo=bo(e=>({navigation:ei,baseSections:{header:{kind:"header",title:"Other"},contact:{segment:"contact",title:"Contact",iconFC:yc,kind:"page"},help:{segment:"help",title:"Help",iconFC:gc,kind:"page"}},sections:{},setNavigation:t=>e({navigation:t}),updateSection:(t,n,r)=>e(o=>{console.log("Updating section: ",t,n,r);const i=vc(t.title),c=o.sections[i]||{kind:"page",segment:i,title:t.title,iconFC:Bw,metadata:{description:t.description,forRoles:["student","teacher"],isRootTool:!0},children:[]};c.children=[...r];const l={...o.sections,[i]:c},u=[];for(const d in o.baseSections)u.push(o.baseSections[d]);for(const d in l)console.log("Item: ",l[d]),u.push(l[d]);return{sections:l,navigation:u}})})),Fw=e=>({teacher:ei,student:ei.filter(n=>n.kind!=="header"||n.title!=="Exercise Session manager"),guest:ei.filter(n=>n.kind!=="header"||n.title!=="Exercise statistics")})[e]||[];function Rp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vw}=Object.prototype,{getPrototypeOf:bc}=Object,Hi=(e=>t=>{const n=Vw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_t=e=>(e=e.toLowerCase(),t=>Hi(t)===e),qi=e=>t=>typeof t===e,{isArray:vr}=Array,so=qi("undefined");function Uw(e){return e!==null&&!so(e)&&e.constructor!==null&&!so(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kp=_t("ArrayBuffer");function zw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kp(e.buffer),t}const Ww=qi("string"),mt=qi("function"),Pp=qi("number"),Gi=e=>e!==null&&typeof e=="object",Hw=e=>e===!0||e===!1,ti=e=>{if(Hi(e)!=="object")return!1;const t=bc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qw=_t("Date"),Gw=_t("File"),Yw=_t("Blob"),Kw=_t("FileList"),Xw=e=>Gi(e)&&mt(e.pipe),Jw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=Hi(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},Zw=_t("URLSearchParams"),[Qw,eT,tT,nT]=["ReadableStream","Request","Response","Headers"].map(_t),rT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Eo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),vr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let c;for(r=0;r<a;r++)c=i[r],t.call(null,e[c],c,e)}}function Np(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Rn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jp=e=>!so(e)&&e!==Rn;function sa(){const{caseless:e}=jp(this)&&this||{},t={},n=(r,o)=>{const i=e&&Np(t,o)||o;ti(t[i])&&ti(r)?t[i]=sa(t[i],r):ti(r)?t[i]=sa({},r):vr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Eo(arguments[r],n);return t}const oT=(e,t,n,{allOwnKeys:r}={})=>(Eo(t,(o,i)=>{n&&mt(o)?e[i]=Rp(o,n):e[i]=o},{allOwnKeys:r}),e),iT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sT=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},aT=(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&bc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cT=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},lT=e=>{if(!e)return null;if(vr(e))return e;let t=e.length;if(!Pp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bc(Uint8Array)),dT=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},fT=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pT=_t("HTMLFormElement"),hT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Lu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),mT=_t("RegExp"),Ap=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Eo(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},gT=e=>{Ap(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},yT=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return vr(e)?r(e):r(String(e).split(t)),n},vT=()=>{},bT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ts="abcdefghijklmnopqrstuvwxyz",Bu="0123456789",Ip={DIGIT:Bu,ALPHA:Ts,ALPHA_DIGIT:Ts+Ts.toUpperCase()+Bu},xT=(e=16,t=Ip.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ET(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ST=e=>{const t=new Array(10),n=(r,o)=>{if(Gi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=vr(r)?[]:{};return Eo(r,(a,c)=>{const l=n(a,o+1);!so(l)&&(i[c]=l)}),t[o]=void 0,i}}return r};return n(e,0)},wT=_t("AsyncFunction"),TT=e=>e&&(Gi(e)||mt(e))&&mt(e.then)&&mt(e.catch),_p=((e,t)=>e?setImmediate:t?((n,r)=>(Rn.addEventListener("message",({source:o,data:i})=>{o===Rn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Rn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",mt(Rn.postMessage)),CT=typeof queueMicrotask<"u"?queueMicrotask.bind(Rn):typeof process<"u"&&process.nextTick||_p,I={isArray:vr,isArrayBuffer:kp,isBuffer:Uw,isFormData:Jw,isArrayBufferView:zw,isString:Ww,isNumber:Pp,isBoolean:Hw,isObject:Gi,isPlainObject:ti,isReadableStream:Qw,isRequest:eT,isResponse:tT,isHeaders:nT,isUndefined:so,isDate:qw,isFile:Gw,isBlob:Yw,isRegExp:mT,isFunction:mt,isStream:Xw,isURLSearchParams:Zw,isTypedArray:uT,isFileList:Kw,forEach:Eo,merge:sa,extend:oT,trim:rT,stripBOM:iT,inherits:sT,toFlatObject:aT,kindOf:Hi,kindOfTest:_t,endsWith:cT,toArray:lT,forEachEntry:dT,matchAll:fT,isHTMLForm:pT,hasOwnProperty:Lu,hasOwnProp:Lu,reduceDescriptors:Ap,freezeMethods:gT,toObjectSet:yT,toCamelCase:hT,noop:vT,toFiniteNumber:bT,findKey:Np,global:Rn,isContextDefined:jp,ALPHABET:Ip,generateString:xT,isSpecCompliantForm:ET,toJSONObject:ST,isAsyncFn:wT,isThenable:TT,setImmediate:_p,asap:CT};function fe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}I.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}});const $p=fe.prototype,Mp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Mp[e]={value:e}});Object.defineProperties(fe,Mp);Object.defineProperty($p,"isAxiosError",{value:!0});fe.from=(e,t,n,r,o,i)=>{const a=Object.create($p);return I.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),fe.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const OT=null;function aa(e){return I.isPlainObject(e)||I.isArray(e)}function Dp(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function Fu(e,t,n){return e?e.concat(t).map(function(o,i){return o=Dp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function RT(e){return I.isArray(e)&&!e.some(aa)}const kT=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Yi(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!I.isUndefined(y[p])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(I.isDate(m))return m.toISOString();if(!l&&I.isBlob(m))throw new fe("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(m)||I.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,p,y){let T=m;if(m&&!y&&typeof m=="object"){if(I.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(I.isArray(m)&&RT(m)||(I.isFileList(m)||I.endsWith(p,"[]"))&&(T=I.toArray(m)))return p=Dp(p),T.forEach(function(w,E){!(I.isUndefined(w)||w===null)&&t.append(a===!0?Fu([p],E,i):a===null?p:p+"[]",u(w))}),!1}return aa(m)?!0:(t.append(Fu(y,p,i),u(m)),!1)}const f=[],h=Object.assign(kT,{defaultVisitor:d,convertValue:u,isVisitable:aa});function b(m,p){if(!I.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),I.forEach(m,function(T,C){(!(I.isUndefined(T)||T===null)&&o.call(t,T,I.isString(C)?C.trim():C,p,h))===!0&&b(T,p?p.concat(C):[C])}),f.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Vu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function xc(e,t){this._pairs=[],e&&Yi(e,this,t)}const Lp=xc.prototype;Lp.append=function(t,n){this._pairs.push([t,n])};Lp.toString=function(t){const n=t?function(r){return t.call(this,r,Vu)}:Vu;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function PT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bp(e,t,n){if(!t)return e;const r=n&&n.encode||PT;I.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=I.isURLSearchParams(t)?t.toString():new xc(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Uu{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Fp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},NT=typeof URLSearchParams<"u"?URLSearchParams:xc,jT=typeof FormData<"u"?FormData:null,AT=typeof Blob<"u"?Blob:null,IT={isBrowser:!0,classes:{URLSearchParams:NT,FormData:jT,Blob:AT},protocols:["http","https","file","blob","url","data"]},Ec=typeof window<"u"&&typeof document<"u",ca=typeof navigator=="object"&&navigator||void 0,_T=Ec&&(!ca||["ReactNative","NativeScript","NS"].indexOf(ca.product)<0),$T=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",MT=Ec&&window.location.href||"http://localhost",DT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ec,hasStandardBrowserEnv:_T,hasStandardBrowserWebWorkerEnv:$T,navigator:ca,origin:MT},Symbol.toStringTag,{value:"Module"})),nt={...DT,...IT};function LT(e,t){return Yi(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nt.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function BT(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function FT(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Vp(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=i>=n.length;return a=!a&&I.isArray(o)?o.length:a,l?(I.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!c):((!o[a]||!I.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&I.isArray(o[a])&&(o[a]=FT(o[a])),!c)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,o)=>{t(BT(r),o,n,0)}),n}return null}function VT(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const So={transitional:Fp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(Vp(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return LT(t,this.formSerializer).toString();if((c=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Yi(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),VT(t)):t}],transformResponse:[function(t){const n=this.transitional||So.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?fe.from(c,fe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{So.headers[e]={}});const UT=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zT=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
306
|
+
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&UT[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zu=Symbol("internals");function kr(e){return e&&String(e).trim().toLowerCase()}function ni(e){return e===!1||e==null?e:I.isArray(e)?e.map(ni):String(e)}function WT(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const HT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cs(e,t,n,r,o){if(I.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function qT(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function GT(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class ut{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(c,l,u){const d=kr(l);if(!d)throw new Error("header name must be a non-empty string");const f=I.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=ni(c))}const a=(c,l)=>I.forEach(c,(u,d)=>i(u,d,l));if(I.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(I.isString(t)&&(t=t.trim())&&!HT(t))a(zT(t),n);else if(I.isHeaders(t))for(const[c,l]of t.entries())i(l,c,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=kr(t),t){const r=I.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return WT(o);if(I.isFunction(n))return n.call(this,o,r);if(I.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=kr(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Cs(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=kr(a),a){const c=I.findKey(r,a);c&&(!n||Cs(r,r[c],c,n))&&(delete r[c],o=!0)}}return I.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Cs(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return I.forEach(this,(o,i)=>{const a=I.findKey(r,i);if(a){n[a]=ni(o),delete n[i];return}const c=t?qT(i):String(i).trim();c!==i&&delete n[i],n[c]=ni(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&I.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
307
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[zu]=this[zu]={accessors:{}}).accessors,o=this.prototype;function i(a){const c=kr(a);r[c]||(GT(o,a),r[c]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}}ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(ut.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(ut);function Os(e,t){const n=this||So,r=t||n,o=ut.from(r.headers);let i=r.data;return I.forEach(e,function(c){i=c.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Up(e){return!!(e&&e.__CANCEL__)}function br(e,t,n){fe.call(this,e??"canceled",fe.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(br,fe,{__CANCEL__:!0});function zp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function YT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function KT(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[i];a||(a=u),n[o]=l,r[o]=u;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const b=d&&u-d;return b?Math.round(h*1e3/b):void 0}}function XT(e,t){let n=0,r=1e3/t,o,i;const a=(u,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?a(u,d):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const bi=(e,t,n=3)=>{let r=0;const o=KT(50,250);return XT(i=>{const a=i.loaded,c=i.lengthComputable?i.total:void 0,l=a-r,u=o(l),d=a<=c;r=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:l,rate:u||void 0,estimated:u&&c&&d?(c-a)/u:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},n)},Wu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Hu=e=>(...t)=>I.asap(()=>e(...t)),JT=nt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,nt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(nt.origin),nt.navigator&&/(msie|trident)/i.test(nt.navigator.userAgent)):()=>!0,ZT=nt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),I.isString(r)&&a.push("path="+r),I.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function QT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eC(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Wp(e,t){return e&&!QT(t)?eC(e,t):t}const qu=e=>e instanceof ut?{...e}:e;function Mn(e,t){t=t||{};const n={};function r(u,d,f,h){return I.isPlainObject(u)&&I.isPlainObject(d)?I.merge.call({caseless:h},u,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function o(u,d,f,h){if(I.isUndefined(d)){if(!I.isUndefined(u))return r(void 0,u,f,h)}else return r(u,d,f,h)}function i(u,d){if(!I.isUndefined(d))return r(void 0,d)}function a(u,d){if(I.isUndefined(d)){if(!I.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,d,f)=>o(qu(u),qu(d),f,!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||o,h=f(e[d],t[d],d);I.isUndefined(h)&&f!==c||(n[d]=h)}),n}const Hp=e=>{const t=Mn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:c}=t;t.headers=a=ut.from(a),t.url=Bp(Wp(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(I.isFormData(n)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(nt.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&JT(t.url))){const u=o&&i&&ZT.read(i);u&&a.set(o,u)}return t},tC=typeof XMLHttpRequest<"u",nC=tC&&function(e){return new Promise(function(n,r){const o=Hp(e);let i=o.data;const a=ut.from(o.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:u}=o,d,f,h,b,m;function p(){b&&b(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function T(){if(!y)return;const w=ut.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};zp(function(R){n(R),p()},function(R){r(R),p()},S),y=null}"onloadend"in y?y.onloadend=T:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(T)},y.onabort=function(){y&&(r(new fe("Request aborted",fe.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||Fp;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),r(new fe(E,S.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&I.forEach(a.toJSON(),function(E,S){y.setRequestHeader(S,E)}),I.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),c&&c!=="json"&&(y.responseType=o.responseType),u&&([h,m]=bi(u,!0),y.addEventListener("progress",h)),l&&y.upload&&([f,b]=bi(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=w=>{y&&(r(!w||w.type?new br(null,e,y):w),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const C=YT(o.url);if(C&&nt.protocols.indexOf(C)===-1){r(new fe("Unsupported protocol "+C+":",fe.ERR_BAD_REQUEST,e));return}y.send(i||null)})},rC=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof fe?d:new br(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new fe(`timeout ${t} of ms exceeded`,fe.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>I.asap(c),l}},oC=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},iC=async function*(e,t){for await(const n of sC(e))yield*oC(n,t)},sC=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Gu=(e,t,n,r)=>{const o=iC(e,t);let i=0,a,c=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await o.next();if(u){c(),l.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}l.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(l){return c(l),o.return()}},{highWaterMark:2})},Ki=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qp=Ki&&typeof ReadableStream=="function",aC=Ki&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},cC=qp&&Gp(()=>{let e=!1;const t=new Request(nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Yu=64*1024,la=qp&&Gp(()=>I.isReadableStream(new Response("").body)),xi={stream:la&&(e=>e.body)};Ki&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!xi[t]&&(xi[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new fe(`Response type '${t}' is not supported`,fe.ERR_NOT_SUPPORT,r)})})})(new Response);const lC=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(nt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await aC(e)).byteLength},uC=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??lC(t)},dC=Ki&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:h}=Hp(e);u=u?(u+"").toLowerCase():"text";let b=rC([o,i&&i.toAbortSignal()],a),m;const p=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let y;try{if(l&&cC&&n!=="get"&&n!=="head"&&(y=await uC(d,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(I.isFormData(r)&&(O=S.headers.get("content-type"))&&d.setContentType(O),S.body){const[R,N]=Wu(y,bi(Hu(l)));r=Gu(S.body,Yu,R,N)}}I.isString(f)||(f=f?"include":"omit");const T="credentials"in Request.prototype;m=new Request(t,{...h,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:T?f:void 0});let C=await fetch(m);const w=la&&(u==="stream"||u==="response");if(la&&(c||w&&p)){const S={};["status","statusText","headers"].forEach(j=>{S[j]=C[j]});const O=I.toFiniteNumber(C.headers.get("content-length")),[R,N]=c&&Wu(O,bi(Hu(c),!0))||[];C=new Response(Gu(C.body,Yu,R,()=>{N&&N(),p&&p()}),S)}u=u||"text";let E=await xi[I.findKey(xi,u)||"text"](C,e);return!w&&p&&p(),await new Promise((S,O)=>{zp(S,O,{data:E,headers:ut.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:m})})}catch(T){throw p&&p(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,e,m),{cause:T.cause||T}):fe.from(T,T&&T.code,e,m)}}),ua={http:OT,xhr:nC,fetch:dC};I.forEach(ua,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ku=e=>`- ${e}`,fC=e=>I.isFunction(e)||e===null||e===!1,Yp={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!fC(n)&&(r=ua[(a=String(n)).toLowerCase()],r===void 0))throw new fe(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
308
|
+
`+i.map(Ku).join(`
|
|
309
|
+
`):" "+Ku(i[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:ua};function Rs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new br(null,e)}function Xu(e){return Rs(e),e.headers=ut.from(e.headers),e.data=Os.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yp.getAdapter(e.adapter||So.adapter)(e).then(function(r){return Rs(e),r.data=Os.call(e,e.transformResponse,r),r.headers=ut.from(r.headers),r},function(r){return Up(r)||(Rs(e),r&&r.response&&(r.response.data=Os.call(e,e.transformResponse,r.response),r.response.headers=ut.from(r.response.headers))),Promise.reject(r)})}const Kp="1.7.9",Xi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xi[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ju={};Xi.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Kp+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,c)=>{if(t===!1)throw new fe(o(a," has been removed"+(n?" in "+n:"")),fe.ERR_DEPRECATED);return n&&!Ju[a]&&(Ju[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,c):!0}};Xi.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function pC(e,t,n){if(typeof e!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const c=e[i],l=c===void 0||a(c,i,e);if(l!==!0)throw new fe("option "+i+" must be "+l,fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new fe("Unknown option "+i,fe.ERR_BAD_OPTION)}}const ri={assertOptions:pC,validators:Xi},Ft=ri.validators;class Nn{constructor(t){this.defaults=t,this.interceptors={request:new Uu,response:new Uu}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
310
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ri.assertOptions(r,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean)},!1),o!=null&&(I.isFunction(o)?n.paramsSerializer={serialize:o}:ri.assertOptions(o,{encode:Ft.function,serialize:Ft.function},!0)),ri.assertOptions(n,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&I.merge(i.common,i[n.method]);i&&I.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ut.concat(a,i);const c=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,c.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,f=0,h;if(!l){const m=[Xu.bind(this),void 0];for(m.unshift.apply(m,c),m.push.apply(m,u),h=m.length,d=Promise.resolve(n);f<h;)d=d.then(m[f++],m[f++]);return d}h=c.length;let b=n;for(f=0;f<h;){const m=c[f++],p=c[f++];try{b=m(b)}catch(y){p.call(this,y);break}}try{d=Xu.call(this,b)}catch(m){return Promise.reject(m)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=Mn(this.defaults,t);const n=Wp(t.baseURL,t.url);return Bp(n,t.params,t.paramsSerializer)}}I.forEach(["delete","get","head","options"],function(t){Nn.prototype[t]=function(n,r){return this.request(Mn(r||{},{method:t,url:n,data:(r||{}).data}))}});I.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,c){return this.request(Mn(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Nn.prototype[t]=n(),Nn.prototype[t+"Form"]=n(!0)});class Sc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(c=>{r.subscribe(c),i=c}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,c){r.reason||(r.reason=new br(i,a,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Sc(function(o){t=o}),cancel:t}}}function hC(e){return function(n){return e.apply(null,n)}}function mC(e){return I.isObject(e)&&e.isAxiosError===!0}const da={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(da).forEach(([e,t])=>{da[t]=e});function Xp(e){const t=new Nn(e),n=Rp(Nn.prototype.request,t);return I.extend(n,Nn.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Xp(Mn(e,o))},n}const Qe=Xp(So);Qe.Axios=Nn;Qe.CanceledError=br;Qe.CancelToken=Sc;Qe.isCancel=Up;Qe.VERSION=Kp;Qe.toFormData=Yi;Qe.AxiosError=fe;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=hC;Qe.isAxiosError=mC;Qe.mergeConfig=Mn;Qe.AxiosHeaders=ut;Qe.formToJSON=e=>Vp(I.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=Yp.getAdapter;Qe.HttpStatusCode=da;Qe.default=Qe;const Jp="/";function gC(e){let t=null;if(document.cookie&&document.cookie!==""){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const o=n[r].trim();if(o.substring(0,e.length+1)===e+"="){t=decodeURIComponent(o.substring(e.length+1));break}}}return t}const yC=gC("csrftoken"),bn=Qe.create({baseURL:Jp,withCredentials:!0,headers:{"Content-Type":"application/json","X-CSRFToken":yC}}),vC=async e=>{try{return(await bn.get(`api/users/current/${e?`?course_id=${e}`:""}`)).data}catch(t){throw console.error("Error getting current user",t),t}},bC=async e=>{try{const t=await bn.get(`api/users/${e?`?course_id=${e}`:""}`);return console.log("response",t),t.data}catch(t){throw console.error("Error getting users",t),t}},xC=async()=>{try{await bn.post("/auth/lti_logout/")}catch(e){throw console.error("Error logging out user",e),e}},Mr="/static/images/student.png",Dr="/static/images/teacher.png",fa="/static/images/guest.png",ks=[{id:"1",name:"Teacher User",email:"teacher@edu.com",role:"teacher",image:Dr,color:"#3f51b5"},{id:"2",name:"Student User",email:"student@edu.com",role:"student",image:Mr,color:"#f50057"},{id:"3",name:"Guest User",email:"",role:"guest",image:fa,color:"#f50057"}],Bn=bo(e=>({fetchState:"idle",user:null,testUsers:ks,users:[],setTestUsers:t=>e({testUsers:t}),setUser:t=>e({user:t}),getUser:async t=>{try{e({fetchState:"loading"}),e({testUsers:ks});const n=await vC(t);if(n.image=n.role==="student"?Mr:Dr,n){let r;n.role==="student"?r=Mr:n.role==="teacher"?r=Dr:r=fa,e({user:{...n,image:r},fetchState:"idle",testUsers:ks.filter(o=>o.role!==n.role)})}}catch(n){console.log("Error getting user",n),e({fetchState:"error"})}},getUsers:async()=>{try{e({fetchState:"loading"});const t=await bC();t.forEach(n=>{n.image=n.role==="student"?Mr:Dr}),e(t?{users:t,fetchState:"idle"}:{fetchState:"error"})}catch{e({fetchState:"error"})}},changeRole:t=>e(n=>{if(n.user){let r;return t==="student"?r=Mr:t==="teacher"?r=Dr:r=fa,{user:{...n.user,role:t,image:r}}}return n}),clearUser:()=>e({user:null}),logout:async()=>{try{return await xC(),e({user:null}),Promise.resolve()}catch(t){return Promise.reject(t)}}})),EC=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,""),SC=e=>e.toLowerCase().replace(/_([a-z])/g,(t,n)=>n.toUpperCase()),Dn=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Dn(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=SC(n);t[o]=Dn(r)}),t},Ei=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Ei(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=EC(n);t[o]=Ei(r)}),t};async function wC(){try{const e=await bn.get("api/courses/current/");return Dn(e.data)}catch(e){throw new Error("Failed to retrieve current course: "+e)}}async function TC(){try{const e=await bn.get("api/courses/");return Dn(e.data)}catch(e){throw new Error("Failed to retrieve courses: "+e)}}async function CC(e){try{const t=btoa(e),n=await bn.get(`api/courses/?encoded_url=${t}`);return Dn(n.data[0])}catch(t){throw new Error("Failed to retrieve course by URL: "+t)}}async function OC(e){try{const t=await bn.put(`api/courses/${e.id}/`,Ei(e)),n=Dn(t.data);if(n.ltiLoginUrl!==e.ltiLoginUrl)throw new Error("Update verification failed");return n}catch(t){throw new Error(`Failed to update the course: ${t}`)}}const Ht=bo(e=>({fetchState:"loading",currentCourseUrl:"",currentCourse:null,courses:[],getCourseByUrl:async t=>{try{const n=await CC(t);e({currentCourse:n})}catch(n){console.error("Failed to fetch course by URL:",n)}},setCurrentCourseUrl:t=>e({currentCourseUrl:t}),setCurrentCourse:t=>e({currentCourse:t}),updateCurrentCourse:async t=>{try{const n=await OC(t);if(n&&n.id===t.id)return e({currentCourse:n}),n;throw new Error("Invalid response from server")}catch(n){throw console.error("Failed to update the course:",n),n}},getCurrentCourse:async()=>{try{const t=await wC();e({currentCourse:t})}catch(t){console.error("Failed to fetch current course:",t)}},getCourses:async()=>{try{e({fetchState:"loading"});const n=await TC();e({fetchState:"idle"}),e({courses:n})}catch(t){e({fetchState:"error"}),console.error("Failed to fetch courses:",t)}}}));function Zp(){const e=tn(),t=It();return console.log("location",t,e),{pathname:t.pathname,searchParams:new URLSearchParams(t.search),navigate:e}}const Qp=()=>{const{setCurrentCourse:e}=Ht(t=>t);return g.jsx(Y.Box,{onClick:()=>e(null),sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flex:"1"},children:g.jsx(Y.Typography,{variant:"h1",component:"h1",children:"EduML"})})},eh=Y.createTheme({cssVariables:{colorSchemeSelector:"data-toolpad-color-scheme"},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h1:{fontSize:"1.5rem",fontWeight:600,lineHeight:1.2},h2:{fontSize:"1.25rem",fontWeight:600},h3:{fontSize:"1.1rem",fontWeight:500},h4:{fontSize:"1rem",fontWeight:500},h5:{fontSize:"0.875rem",fontWeight:500},h6:{fontSize:"0.75rem",fontWeight:500},subtitle1:{fontSize:"0.875rem",lineHeight:1.5},subtitle2:{fontSize:"0.75rem",lineHeight:1.5},body1:{fontSize:"0.875rem",lineHeight:1.5},body2:{fontSize:"0.75rem",lineHeight:1.5},button:{textTransform:"none",fontWeight:500},caption:{fontSize:"0.75rem",lineHeight:1.66},overline:{fontSize:"0.75rem",textTransform:"uppercase"}},shape:{borderRadius:8},spacing:8,colorSchemes:{light:{palette:{mode:"light",background:{default:"#f5f5f5",paper:"#ffffff"},primary:{main:"#6a1b9a",light:"#9c4dcc",dark:"#38006b",contrastText:"#ffffff"},secondary:{main:"#ff4081",light:"#ff79b0",dark:"#c60055",contrastText:"#000000"},error:{main:"#e57373",light:"#ff8a80",dark:"#d32f2f",contrastText:"#ffffff"},warning:{main:"#ffb74d",light:"#ffe97d",dark:"#f57c00",contrastText:"#000000"},info:{main:"#64b5f6",light:"#9be7ff",dark:"#2286c3",contrastText:"#000000"},success:{main:"#81c784",light:"#b2fab4",dark:"#519657",contrastText:"#000000"},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)"}},dark:{palette:{mode:"dark",background:{default:"#303030",paper:"#424242"},primary:{main:"#9575cd",light:"#c7a4ff",dark:"#65499c",contrastText:"#ffffff"},secondary:{main:"#ff4081",light:"#ff79b0",dark:"#c60055",contrastText:"#ffffff"},error:{main:"#ef9a9a",light:"#ffcccb",dark:"#ba6b6c",contrastText:"#000000"},warning:{main:"#ffb74d",light:"#ffe97d",dark:"#f57c00",contrastText:"#000000"},info:{main:"#64b5f6",light:"#9be7ff",dark:"#2286c3",contrastText:"#000000"},success:{main:"#81c784",light:"#b2fab4",dark:"#519657",contrastText:"#000000"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)"}}},breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:8}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiDialog:{styleOverrides:{paper:{borderRadius:12}}},MuiCard:{styleOverrides:{root:{borderRadius:12}}}},transitions:{easing:{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)"},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}}),RC=({IconFC:e})=>{const t=n=>{n.preventDefault()};return e?g.jsx(Y.Box,{onClick:t,children:g.jsx(e,{fontSize:"small"})}):null},wc=e=>e.map(t=>{if(t.kind==="page"){const n=t.iconFC?g.jsx(RC,{IconFC:t.iconFC}):void 0,r=t.children?wc(t.children).filter(o=>o.kind==="page"):void 0;return{...t,icon:n,children:r}}return t}),kC=({ActionHandler:e,props:t})=>{const n=r=>(r.preventDefault(),g.jsx(e,{...t}));return g.jsx(Td,{onClick:n,"data-testid":"action-fc-wrapper",sx:{width:"100%"},children:g.jsx(e,{...t})})},th=(e,t)=>{var r;if(e.kind!=="page")return e;const n=(r=e.children)==null?void 0:r.map(o=>th(o)).filter(o=>o.kind==="page");return e!=null&&e.actionFC?{...e,action:g.jsx(kC,{ActionHandler:e.actionFC,props:{}}),children:n}:{...e,children:n}},nh=(e,t)=>e.map(n=>th(n));function rh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=rh(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Fn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=rh(e))&&(r&&(r+=" "),r+=t);return r}let PC={data:""},NC=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||PC,jC=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,AC=/\/\*[^]*?\*\/| +/g,Zu=/\n+/g,Tn=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?Tn(a,i):i+"{"+Tn(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=Tn(a,t?t.replace(/([^,])+/g,c=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,c):c?c+" "+l:l)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Tn.p?Tn.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Kt={},oh=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+oh(e[n]);return t}return e},IC=(e,t,n,r,o)=>{let i=oh(e),a=Kt[i]||(Kt[i]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(i));if(!Kt[a]){let l=i!==e?e:(u=>{let d,f,h=[{}];for(;d=jC.exec(u.replace(AC,""));)d[4]?h.shift():d[3]?(f=d[3].replace(Zu," ").trim(),h.unshift(h[0][f]=h[0][f]||{})):h[0][d[1]]=d[2].replace(Zu," ").trim();return h[0]})(e);Kt[a]=Tn(o?{["@keyframes "+a]:l}:l,n?"":"."+a)}let c=n&&Kt.g?Kt.g:null;return n&&(Kt.g=Kt[a]),((l,u,d,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(Kt[a],t,r,c),a},_C=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let c=a(n),l=c&&c.props&&c.props.className||/^go/.test(c)&&c;a=l?"."+l:c&&typeof c=="object"?c.props?"":Tn(c,""):c===!1?"":c}return r+o+(a??"")},"");function Tc(e){let t=this||{},n=e.call?e(t.p):e;return IC(n.unshift?n.raw?_C(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,NC(t.target),t.g,t.o,t.k)}Tc.bind({g:1});Tc.bind({k:1});function $C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ih(e,t,n){return t&&$C(e.prototype,t),e}function Pe(){return Pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}function sh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function wo(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Qu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ed=function(){return""},ah=D.createContext({enqueueSnackbar:ed,closeSnackbar:ed}),wn={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},td=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Cc=function(t){return""+td(t.vertical)+td(t.horizontal)},Fo=function(t){return!!t||t===0},Vo="unmounted",Jn="exited",Zn="entering",Pr="entered",nd="exiting",Oc=function(e){sh(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,a;return o.appearStatus=null,r.in?i?(a=Jn,o.appearStatus=Zn):a=Pr:r.unmountOnExit||r.mountOnEnter?a=Vo:a=Jn,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Vo?{status:Jn}: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!==Zn&&a!==Pr&&(i=Zn):(a===Zn||a===Pr)&&(i=nd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,a=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(a=o.exit,i=o.enter),{exit:a,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===Zn?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Jn&&this.setState({status:Vo})},n.performEnter=function(o){var i=this,a=this.props.enter,c=o,l=this.getTimeouts();if(!o&&!a){this.safeSetState({status:Pr},function(){i.props.onEntered&&i.props.onEntered(i.node,c)});return}this.props.onEnter&&this.props.onEnter(this.node,c),this.safeSetState({status:Zn},function(){i.props.onEntering&&i.props.onEntering(i.node,c),i.onTransitionEnd(l.enter,function(){i.safeSetState({status:Pr},function(){i.props.onEntered&&i.props.onEntered(i.node,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:Jn},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:nd},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Jn},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(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(){a&&(a=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=o==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Vo)return null;var i=this.props,a=i.children,c=wo(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(o,c)},ih(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(D.Component);function Qn(){}Oc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qn,onEntering:Qn,onEntered:Qn,onExit:Qn,onExiting:Qn,onExited:Qn};function rd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function pa(e,t){return D.useMemo(function(){return e==null&&t==null?null:function(n){rd(e,n),rd(t,n)}},[e,t])}function Si(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var ha={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)"},ch=function(t){t.scrollTop=t.scrollTop},od=function(t){return Math.round(t)+"ms"};function rr(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,a=i===void 0?ha.easeInOut:i,c=n.delay,l=c===void 0?0:c,u=Array.isArray(e)?e:[e];return u.map(function(d){var f=typeof o=="string"?o:od(o),h=typeof l=="string"?l:od(l);return d+" "+f+" "+a+" "+h}).join(",")}function MC(e){return e&&e.ownerDocument||document}function lh(e){var t=MC(e);return t.defaultView||window}function DC(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var l=function(){e.apply(o,a)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=function(){clearTimeout(n)},r}function LC(e,t){var n=t.getBoundingClientRect(),r=lh(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,c=0;if(o&&o!=="none"&&typeof o=="string"){var l=o.split("(")[1].split(")")[0].split(",");a=parseInt(l[4],10),c=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+c-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-c)+"px)"}}function Uo(e,t){if(t){var n=LC(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var uh=D.forwardRef(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,a=e.style,c=e.timeout,l=c===void 0?0:c,u=e.onEnter,d=e.onEntered,f=e.onExit,h=e.onExited,b=wo(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=D.useRef(null),p=pa(n.ref,m),y=pa(p,t),T=function(R,N){Uo(o,R),ch(R),u&&u(R,N)},C=function(R){var N=(a==null?void 0:a.transitionTimingFunction)||ha.easeOut,j=Si({timeout:l,mode:"enter",style:Pe({},a,{transitionTimingFunction:N})});R.style.webkitTransition=rr("-webkit-transform",j),R.style.transition=rr("transform",j),R.style.webkitTransform="none",R.style.transform="none"},w=function(R){var N=(a==null?void 0:a.transitionTimingFunction)||ha.sharp,j=Si({timeout:l,mode:"exit",style:Pe({},a,{transitionTimingFunction:N})});R.style.webkitTransition=rr("-webkit-transform",j),R.style.transition=rr("transform",j),Uo(o,R),f&&f(R)},E=function(R){R.style.webkitTransition="",R.style.transition="",h&&h(R)},S=D.useCallback(function(){m.current&&Uo(o,m.current)},[o]);return D.useEffect(function(){if(!(i||o==="down"||o==="right")){var O=DC(function(){m.current&&Uo(o,m.current)}),R=lh(m.current);return R.addEventListener("resize",O),function(){O.clear(),R.removeEventListener("resize",O)}}},[o,i]),D.useEffect(function(){i||S()},[i,S]),D.createElement(Oc,Object.assign({appear:!0,nodeRef:m,onEnter:T,onEntered:d,onEntering:C,onExit:w,onExited:E,in:i,timeout:l},b),function(O,R){return D.cloneElement(n,Pe({ref:y,style:Pe({visibility:O==="exited"&&!i?"hidden":void 0},a,{},n.props.style)},R))})});uh.displayName="Slide";var Ji=function(t){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},BC=function(){return D.createElement(Ji,null,D.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
311
|
+
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},FC=function(){return D.createElement(Ji,null,D.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},VC=function(){return D.createElement(Ji,null,D.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
312
312
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
313
|
-
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))}
|
|
314
|
-
0 22,12A10,10 0 0,0 12,2Z`}))},MC={default:void 0,success:F.createElement(AC,null),warning:F.createElement(IC,null),error:F.createElement(_C,null),info:F.createElement($C,null)},Nn={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:MC,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:nh,transitionDuration:{enter:225,exit:195}},DC=function(t,n){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(n)?n:Nn.autoHideDuration},LC=function(t,n){var r=function(i,a){return a.some(function(c){return typeof i===c})};return r(t,["string","number"])?t:r(t,["object"])?Pe({},Nn.transitionDuration,{},r(n,["object"])&&n,{},t):r(n,["string","number"])?n:r(n,["object"])?Pe({},Nn.transitionDuration,{},n):Nn.transitionDuration},BC=function(t,n){return function(r,o){return o===void 0&&(o=!1),o?Pe({},Nn[r],{},n[r],{},t[r]):r==="autoHideDuration"?DC(t.autoHideDuration,n.autoHideDuration):r==="transitionDuration"?LC(t.transitionDuration,n.transitionDuration):t[r]||n[r]||Nn[r]}};function Eo(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return Pe({},t,(r={},r[o]=bc(i),r))},{})}var fr={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},Qu=Eo({root:{height:0},entered:{height:"auto"}}),Rs="0px",ks=175,rh=F.forwardRef(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=F.useRef(null),a=F.useRef(null),c=da(t,a),l=function(){return i.current?i.current.clientHeight:0},u=function(p){p.style.height=Rs},d=function(p){var g=l(),T=xi({timeout:ks,mode:"enter"}),C=T.duration,w=T.easing;p.style.transitionDuration=typeof C=="string"?C:C+"ms",p.style.height=g+"px",p.style.transitionTimingFunction=w||""},f=function(p){p.style.height="auto"},h=function(p){p.style.height=l()+"px"},b=function(p){eh(p);var g=xi({timeout:ks,mode:"exit"}),T=g.duration,C=g.easing;p.style.transitionDuration=typeof T=="string"?T:T+"ms",p.style.height=Rs,p.style.transitionTimingFunction=C||""};return F.createElement(Ec,{in:r,unmountOnExit:!0,onEnter:u,onEntered:f,onEntering:d,onExit:h,onExited:o,onExiting:b,nodeRef:a,timeout:ks},function(m,p){return F.createElement("div",Object.assign({ref:c,className:Bn(Qu.root,m==="entered"&&Qu.entered),style:Pe({pointerEvents:"all",overflow:"hidden",minHeight:Rs,transition:tr("height")},m==="entered"&&{overflow:"visible"},{},m==="exited"&&!r&&{visibility:"hidden"})},p),F.createElement("div",{ref:i,className:fr.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});rh.displayName="Collapse";var ed={right:"left",left:"right",bottom:"up",top:"down"},FC=function(t){return t.horizontal!=="center"?ed[t.horizontal]:ed[t.vertical]},VC=function(t){return"anchorOrigin"+xc(t)},UC=function(t){t===void 0&&(t={});var n={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!n[r]}).reduce(function(r,o){var i;return Pe({},r,(i={},i[o]=t[o],i))},{})},zC=function(){};function Fr(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var l=[].concat(a);t&&l.indexOf(t)===-1&&l.push(t),n.apply(this,l),r.apply(this,l)}},zC)}var WC=typeof window<"u"?F.useLayoutEffect:F.useEffect;function td(e){var t=F.useRef(e);return WC(function(){t.current=e}),F.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var oh=F.forwardRef(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,a=i===void 0?!1:i,c=e.onClose,l=e.id,u=e.open,d=e.SnackbarProps,f=d===void 0?{}:d,h=F.useRef(),b=td(function(){c&&c.apply(void 0,arguments)}),m=td(function(w){!c||w==null||(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){b(null,"timeout",l)},w))});F.useEffect(function(){return u&&m(o),function(){h.current&&clearTimeout(h.current)}},[u,o,m]);var p=function(){h.current&&clearTimeout(h.current)},g=F.useCallback(function(){o!=null&&m(o*.5)},[o,m]),T=function(E){f.onMouseEnter&&f.onMouseEnter(E),p()},C=function(E){f.onMouseLeave&&f.onMouseLeave(E),g()};return F.useEffect(function(){if(!a&&u)return window.addEventListener("focus",g),window.addEventListener("blur",p),function(){window.removeEventListener("focus",g),window.removeEventListener("blur",p)}},[a,g,u]),F.createElement("div",Object.assign({ref:t},f,{className:Bn(fr.Snackbar,r),onMouseEnter:T,onMouseLeave:C}),n)});oh.displayName="Snackbar";var Ps,HC=Eo({root:(Ps={display:"flex",flexWrap:"wrap",flexGrow:1},Ps[Sn.upSm]={flexGrow:"initial",minWidth:"288px"},Ps)}),ih=F.forwardRef(function(e,t){var n=e.className,r=xo(e,["className"]);return F.createElement("div",Object.assign({ref:t,className:Bn(HC.root,n)},r))});ih.displayName="SnackbarContent";var kr=Eo({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),nd="notistack-snackbar",sh=F.forwardRef(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,a=e.variant,c=e.hideIconVariant,l=e.style,u=e.className,d=i[a],f=o;return typeof f=="function"&&(f=f(n)),F.createElement(ih,{ref:t,role:"alert","aria-describedby":nd,style:l,className:Bn(fr.MuiContent,fr.MuiContentVariant(a),kr.root,kr[a],u,!c&&d&&kr.lessPadding)},F.createElement("div",{id:nd,className:kr.message},c?null:d,r),f&&F.createElement("div",{className:kr.action},f))});sh.displayName="MaterialDesignContent";var qC=F.memo(sh),GC=Eo({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),YC=function(t){var n=F.useRef(),r=F.useState(!0),o=r[0],i=r[1],a=Fr([t.snack.onClose,t.onClose]),c=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},l=F.useCallback(function(){n.current=setTimeout(function(){i(function(j){return!j})},125)},[]);F.useEffect(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var u=t.snack,d=t.classes,f=t.Component,h=f===void 0?qC:f,b=F.useMemo(function(){return UC(d)},[d]),m=u.open,p=u.SnackbarProps,g=u.TransitionComponent,T=u.TransitionProps,C=u.transitionDuration,w=u.disableWindowBlurListener,E=u.content,S=xo(u,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),O=Pe({direction:FC(S.anchorOrigin),timeout:C},T),R=E;typeof R=="function"&&(R=R(S.id,S.message));var N=["onEnter","onEntered","onExit","onExited"].reduce(function(j,x){var P;return Pe({},j,(P={},P[x]=Fr([t.snack[x],t[x]],S.id),P))},{});return F.createElement(rh,{in:o,onExited:N.onExited},F.createElement(oh,{open:m,id:S.id,disableWindowBlurListener:w,autoHideDuration:S.autoHideDuration,className:Bn(GC.wrappedRoot,b.root,b[VC(S.anchorOrigin)]),SnackbarProps:p,onClose:a},F.createElement(g,Object.assign({},O,{appear:!0,in:m,onExit:N.onExit,onExited:l,onEnter:N.onEnter,onEntered:Fr([N.onEntered,c],S.id)}),R||F.createElement(h,Object.assign({},S)))))},Pr,Ns,Vo,Uo,js,Kt={view:{default:20,dense:4},snackbar:{default:6,dense:2}},rd="."+fr.CollapseWrapper,As=16,zo=Eo({root:(Pr={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:tr(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Pr[rd]={padding:Kt.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Pr.maxWidth="calc(100% - "+Kt.view.default*2+"px)",Pr[Sn.downXs]={width:"100%",maxWidth:"calc(100% - "+As*2+"px)"},Pr),rootDense:(Ns={},Ns[rd]={padding:Kt.snackbar.dense+"px 0px"},Ns),top:{top:Kt.view.default-Kt.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Kt.view.default-Kt.snackbar.default+"px",flexDirection:"column-reverse"},left:(Vo={left:Kt.view.default+"px"},Vo[Sn.upSm]={alignItems:"flex-start"},Vo[Sn.downXs]={left:As+"px"},Vo),right:(Uo={right:Kt.view.default+"px"},Uo[Sn.upSm]={alignItems:"flex-end"},Uo[Sn.downXs]={right:As+"px"},Uo),center:(js={left:"50%",transform:"translateX(-50%)"},js[Sn.upSm]={alignItems:"center"},js)}),KC=function(t){var n=t.classes,r=n===void 0?{}:n,o=t.anchorOrigin,i=t.dense,a=t.children,c=Bn(fr.SnackbarContainer,zo[o.vertical],zo[o.horizontal],zo.root,r.containerRoot,r["containerAnchorOrigin"+xc(o)],i&&zo.rootDense);return F.createElement("div",{className:c},a)},XC=F.memo(KC),JC=process.env.NODE_ENV!=="production",ZC={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},QC=function(e){if(JC){var t=ZC[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}},od=function(t){var n=typeof t=="string"||F.isValidElement(t);return!n},ah,e1=function(e){Zp(t,e);function t(r){var o;return o=e.call(this,r)||this,o.enqueueSnackbar=function(i,a){if(a===void 0&&(a={}),i==null)throw new Error("enqueueSnackbar called with invalid argument");var c=od(i)?i:a,l=od(i)?i.message:i,u=c.key,d=c.preventDuplicate,f=xo(c,["key","preventDuplicate"]),h=Lo(u),b=h?u:new Date().getTime()+Math.random(),m=BC(f,o.props),p=Pe({id:b},f,{message:l,open:!0,entered:!1,requestClose:!1,persist:m("persist"),action:m("action"),content:m("content"),variant:m("variant"),anchorOrigin:m("anchorOrigin"),disableWindowBlurListener:m("disableWindowBlurListener"),autoHideDuration:m("autoHideDuration"),hideIconVariant:m("hideIconVariant"),TransitionComponent:m("TransitionComponent"),transitionDuration:m("transitionDuration"),TransitionProps:m("TransitionProps",!0),iconVariant:m("iconVariant",!0),style:m("style",!0),SnackbarProps:m("SnackbarProps",!0),className:Bn(o.props.className,f.className)});return p.persist&&(p.autoHideDuration=void 0),o.setState(function(g){if(d===void 0&&o.props.preventDuplicate||d){var T=function(S){return h?S.id===b:S.message===l},C=g.queue.findIndex(T)>-1,w=g.snacks.findIndex(T)>-1;if(C||w)return g}return o.handleDisplaySnack(Pe({},g,{queue:[].concat(g.queue,[p])}))}),b},o.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var a=i.queue,c=i.snacks;return a.length>0?Pe({},i,{snacks:[].concat(c,[a[0]]),queue:a.slice(1,a.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(d){return!d.open||d.requestClose}))return i;var a=!1,c=!1,l=i.snacks.reduce(function(d,f){return d+(f.open&&f.persist?1:0)},0);l===o.maxSnack&&(process.env.NODE_ENV!=="production"&&QC("NO_PERSIST_ALL"),c=!0);var u=i.snacks.map(function(d){return!a&&(!d.persist||c)?(a=!0,d.entered?(d.onClose&&d.onClose(null,"maxsnack",d.id),o.props.onClose&&o.props.onClose(null,"maxsnack",d.id),Pe({},d,{open:!1})):Pe({},d,{requestClose:!0})):Pe({},d)});return Pe({},i,{snacks:u})},o.handleEnteredSnack=function(i,a,c){if(!Lo(c))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(l){var u=l.snacks;return{snacks:u.map(function(d){return d.id===c?Pe({},d,{entered:!0}):Pe({},d)})}})},o.handleCloseSnack=function(i,a,c){o.props.onClose&&o.props.onClose(i,a,c);var l=c===void 0;o.setState(function(u){var d=u.snacks,f=u.queue;return{snacks:d.map(function(h){return!l&&h.id!==c?Pe({},h):h.entered?Pe({},h,{open:!1}):Pe({},h,{requestClose:!0})}),queue:f.filter(function(h){return h.id!==c})}})},o.closeSnackbar=function(i){var a=o.state.snacks.find(function(c){return c.id===i});Lo(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),o.handleCloseSnack(null,"instructed",i)},o.handleExitedSnack=function(i,a){if(!Lo(a))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(c){var l=o.processQueue(Pe({},c,{snacks:c.snacks.filter(function(u){return u.id!==a})}));return l.queue.length===0?l:o.handleDismissOldest(l)})},o.enqueueSnackbar,ah=o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(Gu(o)),closeSnackbar:o.closeSnackbar.bind(Gu(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,a=this.props,c=a.domRoot,l=a.children,u=a.dense,d=u===void 0?!1:u,f=a.Components,h=f===void 0?{}:f,b=a.classes,m=this.state.snacks.reduce(function(g,T){var C,w=xc(T.anchorOrigin),E=g[w]||[];return Pe({},g,(C={},C[w]=[].concat(E,[T]),C))},{}),p=Object.keys(m).map(function(g){var T=m[g],C=T[0];return F.createElement(XC,{key:g,dense:d,anchorOrigin:C.anchorOrigin,classes:b},T.map(function(w){return F.createElement(YC,{key:w.id,snack:w,classes:b,Component:h[w.variant],onClose:o.handleCloseSnack,onEnter:o.props.onEnter,onExit:o.props.onExit,onExited:Fr([o.handleExitedSnack,o.props.onExited],w.id),onEntered:Fr([o.handleEnteredSnack,o.props.onEntered],w.id)})}))});return F.createElement(Qp.Provider,{value:i},l,c?er.createPortal(p,c):p)},Jp(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Nn.maxSnack}}]),t}(F.Component),t1=function(){return F.useContext(Qp)};const n1=e=>{if(!e)return!0;const t=`notification_shown_${e}`;return localStorage.getItem(t)?!1:(localStorage.setItem(t,"true"),!0)},So=go(e=>({notifications:[],addNotificationData:t=>{t.singular&&!n1(t.singularId)||e(n=>({notifications:[...n.notifications,{...t,id:`${Date.now()*Math.random()}`}]}))},removeNotificationData:t=>{e(n=>({notifications:n.notifications.filter(r=>r.id!==`${t}`)}))}})),r1=e=>y.jsx(Y.IconButton,{onClick:()=>{ah(e)},children:y.jsx(sf,{})}),o1=()=>{const{notifications:e,removeNotificationData:t}=So(),{enqueueSnackbar:n}=t1();return F.useEffect(()=>{e.length>0&&e.forEach(r=>{n(r.message,{variant:r.type,action:r1}),t(Number(r.id))})},[e,n,t]),y.jsx(y.Fragment,{})},i1=()=>y.jsx(ip,{children:y.jsx(Y.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"right",width:"100%"}})}),s1=()=>{var o;const e=sp(),t=Y.useTheme(),n=Y.useMediaQuery(t.breakpoints.down("sm"));let r=(e==null?void 0:e.breadcrumbs)||[];return n&&(r=((o=e==null?void 0:e.breadcrumbs)==null?void 0:o.slice(-2))||[]),y.jsx(ap,{title:"",breadcrumbs:r,sx:{display:"flex",flexDirection:"row",justifyContent:"left",alignItems:"center","& .MuiBreadcrumbs-root":{...n&&{fontSize:"0.575rem","& .MuiBreadcrumbs-li":{fontSize:"inherit"},"& .MuiBreadcrumbs-separator":{fontSize:"inherit"},"& .MuiBreadcrumbs-li:last-child":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"inherit","& .MuiTypography-root":{fontSize:"inherit",fontWeight:"bold"}}}},"& .MuiStack-root":{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",margin:0,padding:0,alignItems:"center",flex:1}},slots:{toolbar:i1}})},a1="/static/images/tuni/face-purple-small.png",c1="/static/images/tuni/Tampere_University_logo.svg";function l1({mini:e}){return y.jsxs(Gd,{direction:"column",alignItems:"center",spacing:1,children:[y.jsxs(Y.Typography,{variant:"caption",color:"primary",sx:{m:1},children:["BETA ",e?"":"VERSION 0.1.0"]}),e?y.jsxs(y.Fragment,{children:[y.jsx("img",{style:{height:"3rem",width:"auto"},alt:"Tampere University",src:a1}),y.jsxs(Y.Typography,{variant:"caption",sx:{m:1},children:["© ",new Date().getFullYear()]})]}):y.jsxs(y.Fragment,{children:[y.jsx("img",{style:{height:"3rem",width:"auto"},alt:"Tampere University",src:c1}),y.jsxs(Y.Typography,{variant:"caption",sx:{m:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["© ",new Date().getFullYear()," Made with 💜 The EduML Team"]})]})]})}const u1=()=>{const{user:e,setUser:t,testUsers:n,setTestUsers:r}=bo(),o=i=>{const a=n.filter(c=>c.id!==i.id);r([...a,e]),t(i)};return y.jsx(y.Fragment,{children:n.map(i=>y.jsxs(Y.MenuItem,{component:"button",onClick:()=>o(i),sx:{justifyContent:"flex-start",width:"100%",columnGap:2},children:[y.jsx(Y.ListItemIcon,{children:y.jsx(Y.Avatar,{sx:{width:32,height:32,fontSize:"0.95rem",bgcolor:i.color},src:i.image??"",alt:(i==null?void 0:i.name)??"",children:i.name[0]})}),y.jsx(Y.ListItemText,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%"},primary:i.name,secondary:i.email,primaryTypographyProps:{variant:"body2"},secondaryTypographyProps:{variant:"caption"}})]},i.id))})},d1=Ge(y.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),f1=()=>window.location.hostname==="localhost"?y.jsxs(y.Fragment,{children:[" ",y.jsxs(Y.Paper,{elevation:3,sx:{margin:2,p:2,maxWidth:300,backgroundColor:"warning.light"},children:[y.jsxs(Y.Typography,{variant:"h6",color:"warning.dark",sx:{fontWeight:"bold",display:"flex",alignItems:"center",fontSize:"1rem"},children:[y.jsx(d1,{}),"Development Tools"]}),y.jsx(Y.Typography,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.6rem"},children:"Note: Switching between users only affects the view. All backend requests (GET, POST, PUT, DELETE) will still be made with the original authenticated user."})]}),y.jsx(Y.MenuList,{id:"dev-menu",children:y.jsx(u1,{})})]}):null,p1=()=>y.jsx(Za,{slots:{popoverContent:h1}}),h1=()=>y.jsxs(Y.Stack,{direction:"column",children:[y.jsx(fi,{variant:"expanded"}),y.jsx(Y.Divider,{}),y.jsx(f1,{}),y.jsx(Y.Divider,{}),y.jsx(zf,{children:y.jsx(Uf,{})})]});function m1(){return y.jsx(Y.Stack,{direction:"row",alignItems:"center",spacing:2,children:y.jsx(Qf,{})})}const g1=({children:e})=>{const[t,n]=F.useState(!1),{user:r,getUser:o,logout:i}=bo(),{currentCourse:a,getCourses:c,setCurrentCourseUrl:l,getCourseByUrl:u}=Ln(),{navigation:d}=hc(),f=gC(),[h,b]=F.useState(null),[m,p]=F.useState(null),{addNotificationData:g}=So();F.useEffect(()=>{o(a==null?void 0:a.id)},[t,a==null?void 0:a.id,o]),F.useEffect(()=>{c()},[c]),F.useEffect(()=>{d&&(a!=null&&a.id)&&b(EC(Gp(d),(r==null?void 0:r.role)||""))},[d,r,a]),F.useEffect(()=>{const E=async S=>{const{url:O}=S.data;if(O&&(p(O),l(O),!(r!=null&&r.id)))try{await u(O)}catch(R){console.error("Failed to fetch course by URL:",R)}};return window.addEventListener("message",E),()=>window.removeEventListener("message",E)},[r,u,l]),F.useEffect(()=>{if(r!=null&&r.id){const E=localStorage.getItem("returnLocation");E&&(localStorage.removeItem("returnLocation"),window.location.href=E)}},[r,f]);const T=()=>{const E=(window==null?void 0:window.top)||window;n(!0),localStorage.setItem("returnLocation",m||window.location.href);const S=a==null?void 0:a.ltiLoginUrl;S?E.location.href=S:(a!=null&&a.id?g({type:"error",message:"Login is not available. Please contact the course staff."}):g({type:"error",message:"Failed to login. Please select a course first so that the login URL can be retrieved."}),n(!1))},C=async()=>{try{await i()}catch(E){console.error("Failed to logout:",E),g({type:"error",message:"Failed to logout. Please try again."})}},w={user:(r==null?void 0:r.id)&&r||void 0};return y.jsx(e1,{maxSnack:6,autoHideDuration:1e4,children:y.jsx(gw,{branding:{logo:y.jsx(yC,{}),title:""},navigation:a&&h||[],theme:vC,router:f,session:w,authentication:{signIn:T,signOut:C},children:y.jsxs(ep,{maxWidth:!0,slots:{toolbarAccount:p1,toolbarActions:m1,sidebarFooter:l1},children:[y.jsx(s1,{}),e,y.jsx(o1,{})]})})})},Sc=go(e=>({openDialog:null,setOpenDialog:t=>e({openDialog:t}),closeDialog:()=>e({openDialog:null})})),y1=({course:e,isSelected:t,onSelect:n})=>y.jsx(Y.ListItem,{onClick:()=>n(e),sx:{maxWidth:300,mb:1,borderRadius:1,cursor:"pointer",transition:"all 0.2s ease-in-out",bgcolor:t?r=>Ue(r.palette.primary.main,.1):"background.paper","&:hover":{bgcolor:r=>Ue(r.palette.primary.main,.05),transform:"translateX(8px)"},"&:active":{transform:"scale(0.98)"}},children:y.jsx(Y.ListItemText,{primary:y.jsx(Y.Typography,{variant:"h6",color:"primary",sx:{fontWeight:t?"bold":"medium"},children:e.title}),secondary:y.jsx(Y.Typography,{variant:"body2",color:"text.secondary",sx:{mt:.5,opacity:.8},children:e.description})})}),v1=()=>y.jsx(Y.ListItem,{children:y.jsx(Y.ListItemText,{primary:y.jsx(Y.Typography,{variant:"h6",color:"primary",children:"No Courses Found"}),secondary:y.jsx(Y.Typography,{variant:"body2",color:"text.secondary",children:"You must link a course to EduML to get started."})})}),b1=({courses:e,selectedCourse:t,onSelectCourse:n})=>y.jsx(Y.Paper,{elevation:3,children:y.jsx(Y.List,{sx:{p:2,display:"flex",flexDirection:"row",flex:1,gap:2},children:e.length===0?y.jsx(v1,{}):e.map(r=>y.jsx(y1,{course:r,isSelected:(t==null?void 0:t.id)===r.id,onSelect:n},r.id))})}),x1=()=>{const{courses:e,currentCourse:t}=Ln(),[n,r]=F.useState(!1),o=yn();return F.useEffect(()=>(r(!0),()=>r(!1)),[]),y.jsx(Y.Fade,{in:n,timeout:500,children:y.jsxs(Y.Box,{sx:{p:3,display:"flex",flexDirection:"column",gap:2},children:[y.jsx(Y.Typography,{variant:"h4",sx:{mb:3,fontWeight:"medium",color:"primary.main"},children:"Courses"}),y.jsx(b1,{courses:e,selectedCourse:t,onSelectCourse:i=>o(`${Ep(i.title)}`)})]})})},E1=Y.keyframes`
|
|
313
|
+
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},UC=function(){return D.createElement(Ji,null,D.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
314
|
+
0 22,12A10,10 0 0,0 12,2Z`}))},zC={default:void 0,success:D.createElement(BC,null),warning:D.createElement(FC,null),error:D.createElement(VC,null),info:D.createElement(UC,null)},jn={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:zC,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:uh,transitionDuration:{enter:225,exit:195}},WC=function(t,n){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(n)?n:jn.autoHideDuration},HC=function(t,n){var r=function(i,a){return a.some(function(c){return typeof i===c})};return r(t,["string","number"])?t:r(t,["object"])?Pe({},jn.transitionDuration,{},r(n,["object"])&&n,{},t):r(n,["string","number"])?n:r(n,["object"])?Pe({},jn.transitionDuration,{},n):jn.transitionDuration},qC=function(t,n){return function(r,o){return o===void 0&&(o=!1),o?Pe({},jn[r],{},n[r],{},t[r]):r==="autoHideDuration"?WC(t.autoHideDuration,n.autoHideDuration):r==="transitionDuration"?HC(t.transitionDuration,n.transitionDuration):t[r]||n[r]||jn[r]}};function To(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return Pe({},t,(r={},r[o]=Tc(i),r))},{})}var hr={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},id=To({root:{height:0},entered:{height:"auto"}}),Ps="0px",Ns=175,dh=D.forwardRef(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=D.useRef(null),a=D.useRef(null),c=pa(t,a),l=function(){return i.current?i.current.clientHeight:0},u=function(p){p.style.height=Ps},d=function(p){var y=l(),T=Si({timeout:Ns,mode:"enter"}),C=T.duration,w=T.easing;p.style.transitionDuration=typeof C=="string"?C:C+"ms",p.style.height=y+"px",p.style.transitionTimingFunction=w||""},f=function(p){p.style.height="auto"},h=function(p){p.style.height=l()+"px"},b=function(p){ch(p);var y=Si({timeout:Ns,mode:"exit"}),T=y.duration,C=y.easing;p.style.transitionDuration=typeof T=="string"?T:T+"ms",p.style.height=Ps,p.style.transitionTimingFunction=C||""};return D.createElement(Oc,{in:r,unmountOnExit:!0,onEnter:u,onEntered:f,onEntering:d,onExit:h,onExited:o,onExiting:b,nodeRef:a,timeout:Ns},function(m,p){return D.createElement("div",Object.assign({ref:c,className:Fn(id.root,m==="entered"&&id.entered),style:Pe({pointerEvents:"all",overflow:"hidden",minHeight:Ps,transition:rr("height")},m==="entered"&&{overflow:"visible"},{},m==="exited"&&!r&&{visibility:"hidden"})},p),D.createElement("div",{ref:i,className:hr.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});dh.displayName="Collapse";var sd={right:"left",left:"right",bottom:"up",top:"down"},GC=function(t){return t.horizontal!=="center"?sd[t.horizontal]:sd[t.vertical]},YC=function(t){return"anchorOrigin"+Cc(t)},KC=function(t){t===void 0&&(t={});var n={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!n[r]}).reduce(function(r,o){var i;return Pe({},r,(i={},i[o]=t[o],i))},{})},XC=function(){};function zr(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var l=[].concat(a);t&&l.indexOf(t)===-1&&l.push(t),n.apply(this,l),r.apply(this,l)}},XC)}var JC=typeof window<"u"?D.useLayoutEffect:D.useEffect;function ad(e){var t=D.useRef(e);return JC(function(){t.current=e}),D.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var fh=D.forwardRef(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,a=i===void 0?!1:i,c=e.onClose,l=e.id,u=e.open,d=e.SnackbarProps,f=d===void 0?{}:d,h=D.useRef(),b=ad(function(){c&&c.apply(void 0,arguments)}),m=ad(function(w){!c||w==null||(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){b(null,"timeout",l)},w))});D.useEffect(function(){return u&&m(o),function(){h.current&&clearTimeout(h.current)}},[u,o,m]);var p=function(){h.current&&clearTimeout(h.current)},y=D.useCallback(function(){o!=null&&m(o*.5)},[o,m]),T=function(E){f.onMouseEnter&&f.onMouseEnter(E),p()},C=function(E){f.onMouseLeave&&f.onMouseLeave(E),y()};return D.useEffect(function(){if(!a&&u)return window.addEventListener("focus",y),window.addEventListener("blur",p),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",p)}},[a,y,u]),D.createElement("div",Object.assign({ref:t},f,{className:Fn(hr.Snackbar,r),onMouseEnter:T,onMouseLeave:C}),n)});fh.displayName="Snackbar";var js,ZC=To({root:(js={display:"flex",flexWrap:"wrap",flexGrow:1},js[wn.upSm]={flexGrow:"initial",minWidth:"288px"},js)}),ph=D.forwardRef(function(e,t){var n=e.className,r=wo(e,["className"]);return D.createElement("div",Object.assign({ref:t,className:Fn(ZC.root,n)},r))});ph.displayName="SnackbarContent";var Nr=To({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),cd="notistack-snackbar",hh=D.forwardRef(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,a=e.variant,c=e.hideIconVariant,l=e.style,u=e.className,d=i[a],f=o;return typeof f=="function"&&(f=f(n)),D.createElement(ph,{ref:t,role:"alert","aria-describedby":cd,style:l,className:Fn(hr.MuiContent,hr.MuiContentVariant(a),Nr.root,Nr[a],u,!c&&d&&Nr.lessPadding)},D.createElement("div",{id:cd,className:Nr.message},c?null:d,r),f&&D.createElement("div",{className:Nr.action},f))});hh.displayName="MaterialDesignContent";var QC=D.memo(hh),e1=To({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),t1=function(t){var n=D.useRef(),r=D.useState(!0),o=r[0],i=r[1],a=zr([t.snack.onClose,t.onClose]),c=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},l=D.useCallback(function(){n.current=setTimeout(function(){i(function(j){return!j})},125)},[]);D.useEffect(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var u=t.snack,d=t.classes,f=t.Component,h=f===void 0?QC:f,b=D.useMemo(function(){return KC(d)},[d]),m=u.open,p=u.SnackbarProps,y=u.TransitionComponent,T=u.TransitionProps,C=u.transitionDuration,w=u.disableWindowBlurListener,E=u.content,S=wo(u,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),O=Pe({direction:GC(S.anchorOrigin),timeout:C},T),R=E;typeof R=="function"&&(R=R(S.id,S.message));var N=["onEnter","onEntered","onExit","onExited"].reduce(function(j,x){var P;return Pe({},j,(P={},P[x]=zr([t.snack[x],t[x]],S.id),P))},{});return D.createElement(dh,{in:o,onExited:N.onExited},D.createElement(fh,{open:m,id:S.id,disableWindowBlurListener:w,autoHideDuration:S.autoHideDuration,className:Fn(e1.wrappedRoot,b.root,b[YC(S.anchorOrigin)]),SnackbarProps:p,onClose:a},D.createElement(y,Object.assign({},O,{appear:!0,in:m,onExit:N.onExit,onExited:l,onEnter:N.onEnter,onEntered:zr([N.onEntered,c],S.id)}),R||D.createElement(h,Object.assign({},S)))))},jr,As,zo,Wo,Is,Xt={view:{default:20,dense:4},snackbar:{default:6,dense:2}},ld="."+hr.CollapseWrapper,_s=16,Ho=To({root:(jr={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:rr(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},jr[ld]={padding:Xt.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},jr.maxWidth="calc(100% - "+Xt.view.default*2+"px)",jr[wn.downXs]={width:"100%",maxWidth:"calc(100% - "+_s*2+"px)"},jr),rootDense:(As={},As[ld]={padding:Xt.snackbar.dense+"px 0px"},As),top:{top:Xt.view.default-Xt.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Xt.view.default-Xt.snackbar.default+"px",flexDirection:"column-reverse"},left:(zo={left:Xt.view.default+"px"},zo[wn.upSm]={alignItems:"flex-start"},zo[wn.downXs]={left:_s+"px"},zo),right:(Wo={right:Xt.view.default+"px"},Wo[wn.upSm]={alignItems:"flex-end"},Wo[wn.downXs]={right:_s+"px"},Wo),center:(Is={left:"50%",transform:"translateX(-50%)"},Is[wn.upSm]={alignItems:"center"},Is)}),n1=function(t){var n=t.classes,r=n===void 0?{}:n,o=t.anchorOrigin,i=t.dense,a=t.children,c=Fn(hr.SnackbarContainer,Ho[o.vertical],Ho[o.horizontal],Ho.root,r.containerRoot,r["containerAnchorOrigin"+Cc(o)],i&&Ho.rootDense);return D.createElement("div",{className:c},a)},r1=D.memo(n1),o1=process.env.NODE_ENV!=="production",i1={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},s1=function(e){if(o1){var t=i1[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}},ud=function(t){var n=typeof t=="string"||D.isValidElement(t);return!n},mh,gh=function(e){sh(t,e);function t(r){var o;return o=e.call(this,r)||this,o.enqueueSnackbar=function(i,a){if(a===void 0&&(a={}),i==null)throw new Error("enqueueSnackbar called with invalid argument");var c=ud(i)?i:a,l=ud(i)?i.message:i,u=c.key,d=c.preventDuplicate,f=wo(c,["key","preventDuplicate"]),h=Fo(u),b=h?u:new Date().getTime()+Math.random(),m=qC(f,o.props),p=Pe({id:b},f,{message:l,open:!0,entered:!1,requestClose:!1,persist:m("persist"),action:m("action"),content:m("content"),variant:m("variant"),anchorOrigin:m("anchorOrigin"),disableWindowBlurListener:m("disableWindowBlurListener"),autoHideDuration:m("autoHideDuration"),hideIconVariant:m("hideIconVariant"),TransitionComponent:m("TransitionComponent"),transitionDuration:m("transitionDuration"),TransitionProps:m("TransitionProps",!0),iconVariant:m("iconVariant",!0),style:m("style",!0),SnackbarProps:m("SnackbarProps",!0),className:Fn(o.props.className,f.className)});return p.persist&&(p.autoHideDuration=void 0),o.setState(function(y){if(d===void 0&&o.props.preventDuplicate||d){var T=function(S){return h?S.id===b:S.message===l},C=y.queue.findIndex(T)>-1,w=y.snacks.findIndex(T)>-1;if(C||w)return y}return o.handleDisplaySnack(Pe({},y,{queue:[].concat(y.queue,[p])}))}),b},o.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var a=i.queue,c=i.snacks;return a.length>0?Pe({},i,{snacks:[].concat(c,[a[0]]),queue:a.slice(1,a.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(d){return!d.open||d.requestClose}))return i;var a=!1,c=!1,l=i.snacks.reduce(function(d,f){return d+(f.open&&f.persist?1:0)},0);l===o.maxSnack&&(process.env.NODE_ENV!=="production"&&s1("NO_PERSIST_ALL"),c=!0);var u=i.snacks.map(function(d){return!a&&(!d.persist||c)?(a=!0,d.entered?(d.onClose&&d.onClose(null,"maxsnack",d.id),o.props.onClose&&o.props.onClose(null,"maxsnack",d.id),Pe({},d,{open:!1})):Pe({},d,{requestClose:!0})):Pe({},d)});return Pe({},i,{snacks:u})},o.handleEnteredSnack=function(i,a,c){if(!Fo(c))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(l){var u=l.snacks;return{snacks:u.map(function(d){return d.id===c?Pe({},d,{entered:!0}):Pe({},d)})}})},o.handleCloseSnack=function(i,a,c){o.props.onClose&&o.props.onClose(i,a,c);var l=c===void 0;o.setState(function(u){var d=u.snacks,f=u.queue;return{snacks:d.map(function(h){return!l&&h.id!==c?Pe({},h):h.entered?Pe({},h,{open:!1}):Pe({},h,{requestClose:!0})}),queue:f.filter(function(h){return h.id!==c})}})},o.closeSnackbar=function(i){var a=o.state.snacks.find(function(c){return c.id===i});Fo(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),o.handleCloseSnack(null,"instructed",i)},o.handleExitedSnack=function(i,a){if(!Fo(a))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(c){var l=o.processQueue(Pe({},c,{snacks:c.snacks.filter(function(u){return u.id!==a})}));return l.queue.length===0?l:o.handleDismissOldest(l)})},o.enqueueSnackbar,mh=o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(Qu(o)),closeSnackbar:o.closeSnackbar.bind(Qu(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,a=this.props,c=a.domRoot,l=a.children,u=a.dense,d=u===void 0?!1:u,f=a.Components,h=f===void 0?{}:f,b=a.classes,m=this.state.snacks.reduce(function(y,T){var C,w=Cc(T.anchorOrigin),E=y[w]||[];return Pe({},y,(C={},C[w]=[].concat(E,[T]),C))},{}),p=Object.keys(m).map(function(y){var T=m[y],C=T[0];return D.createElement(r1,{key:y,dense:d,anchorOrigin:C.anchorOrigin,classes:b},T.map(function(w){return D.createElement(t1,{key:w.id,snack:w,classes:b,Component:h[w.variant],onClose:o.handleCloseSnack,onEnter:o.props.onEnter,onExit:o.props.onExit,onExited:zr([o.handleExitedSnack,o.props.onExited],w.id),onEntered:zr([o.handleEnteredSnack,o.props.onEntered],w.id)})}))});return D.createElement(ah.Provider,{value:i},l,c?nr.createPortal(p,c):p)},ih(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||jn.maxSnack}}]),t}(D.Component),a1=function(){return D.useContext(ah)};const c1=e=>{if(!e)return!0;const t=`notification_shown_${e}`;return localStorage.getItem(t)?!1:(localStorage.setItem(t,"true"),!0)},Vn=bo(e=>({notifications:[],addNotificationData:t=>{t.singular&&!c1(t.singularId)||e(n=>({notifications:[...n.notifications,{...t,id:`${Date.now()*Math.random()}`}]}))},removeNotificationData:t=>{e(n=>({notifications:n.notifications.filter(r=>r.id!==`${t}`)}))}})),l1=e=>g.jsx(Y.IconButton,{onClick:()=>{mh(e)},children:g.jsx(ff,{})}),yh=()=>{const{notifications:e,removeNotificationData:t}=Vn(),{enqueueSnackbar:n}=a1();return D.useEffect(()=>{e.length>0&&e.forEach(r=>{n(r.message,{variant:r.type,action:l1}),t(Number(r.id))})},[e,n,t]),g.jsx(g.Fragment,{})},u1=()=>g.jsx(up,{children:g.jsx(Y.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"right",width:"100%"}})}),vh=()=>{var o;const e=dp(),t=Y.useTheme(),n=Y.useMediaQuery(t.breakpoints.down("sm"));let r=(e==null?void 0:e.breadcrumbs)||[];return n&&(r=((o=e==null?void 0:e.breadcrumbs)==null?void 0:o.slice(-2))||[]),g.jsx(fp,{title:"",breadcrumbs:r,sx:{display:"flex",flexDirection:"row",justifyContent:"left",alignItems:"center","& .MuiBreadcrumbs-root":{...n&&{fontSize:"0.575rem","& .MuiBreadcrumbs-li":{fontSize:"inherit"},"& .MuiBreadcrumbs-separator":{fontSize:"inherit"},"& .MuiBreadcrumbs-li:last-child":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"inherit","& .MuiTypography-root":{fontSize:"inherit",fontWeight:"bold"}}}},"& .MuiStack-root":{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",margin:0,padding:0,alignItems:"center",flex:1}},slots:{toolbar:u1}})},d1="/static/images/tuni/face-purple-small.png",f1="/static/images/tuni/Tampere_University_logo.svg";function bh({mini:e}){return g.jsxs(Qd,{direction:"column",alignItems:"center",spacing:1,children:[g.jsxs(Y.Typography,{variant:"caption",color:"primary",sx:{m:1},children:["BETA ",e?"":"VERSION 0.1.0"]}),e?g.jsxs(g.Fragment,{children:[g.jsx("img",{style:{height:"3rem",width:"auto"},alt:"Tampere University",src:d1}),g.jsxs(Y.Typography,{variant:"caption",sx:{m:1},children:["© ",new Date().getFullYear()]})]}):g.jsxs(g.Fragment,{children:[g.jsx("img",{style:{height:"3rem",width:"auto"},alt:"Tampere University",src:f1}),g.jsxs(Y.Typography,{variant:"caption",sx:{m:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["© ",new Date().getFullYear()," Made with 💜 The EduML Team"]})]})]})}const p1=()=>{const{user:e,setUser:t,testUsers:n,setTestUsers:r}=Bn(),o=i=>{const a=n.filter(c=>c.id!==i.id);r([...a,e]),t(i)};return g.jsx(g.Fragment,{children:n.map(i=>g.jsxs(Y.MenuItem,{component:"button",onClick:()=>o(i),sx:{justifyContent:"flex-start",width:"100%",columnGap:2},children:[g.jsx(Y.ListItemIcon,{children:g.jsx(Y.Avatar,{sx:{width:32,height:32,fontSize:"0.95rem",bgcolor:i.color},src:i.image??"",alt:(i==null?void 0:i.name)??"",children:i.name[0]})}),g.jsx(Y.ListItemText,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%"},primary:i.name,secondary:i.email,primaryTypographyProps:{variant:"body2"},secondaryTypographyProps:{variant:"caption"}})]},i.id))})},h1=Ge(g.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),m1=()=>window.location.hostname==="localhost"?g.jsxs(g.Fragment,{children:[" ",g.jsxs(Y.Paper,{elevation:3,sx:{margin:2,p:2,maxWidth:300,backgroundColor:"warning.light"},children:[g.jsxs(Y.Typography,{variant:"h6",color:"warning.dark",sx:{fontWeight:"bold",display:"flex",alignItems:"center",fontSize:"1rem"},children:[g.jsx(h1,{}),"Development Tools"]}),g.jsx(Y.Typography,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.6rem"},children:"Note: Switching between users only affects the view. All backend requests (GET, POST, PUT, DELETE) will still be made with the original authenticated user."})]}),g.jsx(Y.MenuList,{id:"dev-menu",children:g.jsx(p1,{})})]}):null,xh=()=>g.jsx(ec,{slots:{popoverContent:g1}}),g1=()=>g.jsxs(Y.Stack,{direction:"column",children:[g.jsx(hi,{variant:"expanded"}),g.jsx(Y.Divider,{}),g.jsx(m1,{}),g.jsx(Y.Divider,{}),g.jsx(Kf,{children:g.jsx(Yf,{})})]});function Eh(){return g.jsx(Y.Stack,{direction:"row",alignItems:"center",spacing:2,children:g.jsx(ip,{})})}const y1=({children:e})=>{const[t,n]=D.useState(!1),{user:r,getUser:o,logout:i}=Bn(),{currentCourse:a,getCourses:c,setCurrentCourseUrl:l,getCourseByUrl:u}=Ht(),{navigation:d}=xo(),f=Zp(),[h,b]=D.useState(null),[m,p]=D.useState(null),{addNotificationData:y}=Vn();D.useEffect(()=>{o(a==null?void 0:a.id)},[t,a==null?void 0:a.id,o]),D.useEffect(()=>{c()},[c]),D.useEffect(()=>{d&&(a!=null&&a.id)&&b(nh(wc(d),(r==null?void 0:r.role)||""))},[d,r,a]),D.useEffect(()=>{const E=async S=>{const{url:O}=S.data;if(O&&(p(O),l(O),!(r!=null&&r.id)))try{await u(O)}catch(R){console.error("Failed to fetch course by URL:",R)}};return window.addEventListener("message",E),()=>window.removeEventListener("message",E)},[r,u,l]),D.useEffect(()=>{if(r!=null&&r.id){const E=localStorage.getItem("returnLocation");E&&(localStorage.removeItem("returnLocation"),window.location.href=E)}},[r,f]);const T=()=>{const E=(window==null?void 0:window.top)||window;n(!0),localStorage.setItem("returnLocation",m||window.location.href);const S=a==null?void 0:a.ltiLoginUrl;S?E.location.href=S:(a!=null&&a.id?y({type:"error",message:"Login is not available. Please contact the course staff."}):y({type:"error",message:"Failed to login. Please select a course first so that the login URL can be retrieved."}),n(!1))},C=async()=>{try{await i()}catch(E){console.error("Failed to logout:",E),y({type:"error",message:"Failed to logout. Please try again."})}},w={user:(r==null?void 0:r.id)&&r||void 0};return g.jsx(gh,{maxSnack:6,autoHideDuration:1e4,children:g.jsx(Cp,{branding:{logo:g.jsx(Qp,{}),title:""},navigation:a&&h||[],theme:eh,router:f,session:w,authentication:{signIn:T,signOut:C},children:g.jsxs(oc,{maxWidth:!0,slots:{toolbarAccount:xh,toolbarActions:Eh,sidebarFooter:bh},children:[g.jsx(vh,{}),e,g.jsx(yh,{})]})})})},v1=({children:e})=>{const[t,n]=D.useState(!1),{user:r,getUser:o,logout:i}=Bn(),{currentCourse:a,getCourses:c,setCurrentCourseUrl:l,getCourseByUrl:u}=Ht(),{navigation:d}=xo(),f=Zp(),[h,b]=D.useState(null),[m,p]=D.useState(null),{addNotificationData:y}=Vn();D.useEffect(()=>{o(a==null?void 0:a.id)},[t,a==null?void 0:a.id,o]),D.useEffect(()=>{c()},[c]),D.useEffect(()=>{d&&(a!=null&&a.id)&&b(nh(wc(d),(r==null?void 0:r.role)||""))},[d,r,a]),D.useEffect(()=>{const E=async S=>{const{url:O}=S.data;if(O&&(p(O),l(O),!(r!=null&&r.id)))try{await u(O)}catch(R){console.error("Failed to fetch course by URL:",R)}};return window.addEventListener("message",E),()=>window.removeEventListener("message",E)},[r,u,l]),D.useEffect(()=>{if(r!=null&&r.id){const E=localStorage.getItem("returnLocation");E&&(localStorage.removeItem("returnLocation"),window.location.href=E)}},[r,f]);const T=()=>{const E=(window==null?void 0:window.top)||window;n(!0),localStorage.setItem("returnLocation",m||window.location.href);const S=a==null?void 0:a.ltiLoginUrl;S?E.location.href=S:(a!=null&&a.id?y({type:"error",message:"Login is not available. Please contact the course staff."}):y({type:"error",message:"Failed to login. Please select a course first so that the login URL can be retrieved."}),n(!1))},C=async()=>{try{await i()}catch(E){console.error("Failed to logout:",E),y({type:"error",message:"Failed to logout. Please try again."})}},w={user:(r==null?void 0:r.id)&&r||void 0};return g.jsx(gh,{maxSnack:6,autoHideDuration:1e4,children:g.jsx(Cp,{branding:{logo:g.jsx(Qp,{}),title:""},navigation:a&&h||[],theme:eh,router:f,session:w,authentication:{signIn:T,signOut:C},children:g.jsxs(oc,{maxWidth:!0,slots:{toolbarAccount:xh,toolbarActions:Eh,sidebarFooter:bh},children:[g.jsx(vh,{}),e,g.jsx(yh,{})]})})})},Rc=bo(e=>({openDialog:null,setOpenDialog:t=>e({openDialog:t}),closeDialog:()=>e({openDialog:null})})),b1=({course:e,isSelected:t,onSelect:n})=>g.jsx(Y.ListItem,{onClick:()=>n(e),sx:{maxWidth:300,mb:1,borderRadius:1,cursor:"pointer",transition:"all 0.2s ease-in-out",bgcolor:t?r=>Ue(r.palette.primary.main,.1):"background.paper","&:hover":{bgcolor:r=>Ue(r.palette.primary.main,.05),transform:"translateX(8px)"},"&:active":{transform:"scale(0.98)"}},children:g.jsx(Y.ListItemText,{primary:g.jsx(Y.Typography,{variant:"h6",color:"primary",sx:{fontWeight:t?"bold":"medium"},children:e.title}),secondary:g.jsx(Y.Typography,{variant:"body2",color:"text.secondary",sx:{mt:.5,opacity:.8},children:e.description})})}),x1=()=>g.jsx(Y.ListItem,{children:g.jsx(Y.ListItemText,{primary:g.jsx(Y.Typography,{variant:"h6",color:"primary",children:"No Courses Found"}),secondary:g.jsx(Y.Typography,{variant:"body2",color:"text.secondary",children:"You must link a course to EduML to get started."})})}),E1=({courses:e,selectedCourse:t,onSelectCourse:n})=>g.jsx(Y.Paper,{elevation:3,children:g.jsx(Y.List,{sx:{p:2,display:"flex",flexDirection:"row",flex:1,gap:2},children:e.length===0?g.jsx(x1,{}):e.map(r=>g.jsx(b1,{course:r,isSelected:(t==null?void 0:t.id)===r.id,onSelect:n},r.id))})}),S1=()=>{const{courses:e,currentCourse:t}=Ht(),[n,r]=D.useState(!1),o=tn();return D.useEffect(()=>(r(!0),()=>r(!1)),[]),g.jsx(Y.Fade,{in:n,timeout:500,children:g.jsxs(Y.Box,{sx:{p:3,display:"flex",flexDirection:"column",gap:2},children:[g.jsx(Y.Typography,{variant:"h4",sx:{mb:3,fontWeight:"medium",color:"primary.main"},children:"Courses"}),g.jsx(E1,{courses:e,selectedCourse:t,onSelectCourse:i=>o(`${vc(i.title)}`)})]})})},w1=Y.keyframes`
|
|
315
315
|
0% { transform: scale(0.95); opacity: 0.5; }
|
|
316
316
|
50% { transform: scale(1.05); opacity: 0.8; }
|
|
317
317
|
100% { transform: scale(0.95); opacity: 0.5; }
|
|
318
|
-
`,
|
|
318
|
+
`,T1=Y.keyframes`
|
|
319
319
|
0% { content: ''; }
|
|
320
320
|
25% { content: '.'; }
|
|
321
321
|
50% { content: '..'; }
|
|
322
322
|
75% { content: '...'; }
|
|
323
323
|
100% { content: ''; }
|
|
324
|
-
`,
|
|
324
|
+
`,C1=Y.keyframes`
|
|
325
325
|
from { opacity: 0; }
|
|
326
326
|
to { opacity: 1; }
|
|
327
|
-
`,ch=()=>y.jsxs(Y.Box,{"data-testid":"loading-screen",sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"100%",gap:3,backdropFilter:"blur(8px)",animation:`${w1} 0.5s ease-in`},children:[y.jsx(Y.Box,{sx:{position:"relative",animation:`${E1} 2s ease-in-out infinite`},children:y.jsx(Y.CircularProgress,{size:60,thickness:4,sx:{opacity:.8}})}),y.jsxs(Y.Typography,{variant:"h6",sx:{fontWeight:300,letterSpacing:1,display:"flex",alignItems:"center",gap:"2px"},children:["Loading",y.jsx(Y.Box,{sx:{display:"inline-block",width:"24px",position:"relative","&::after":{content:"''",left:0,animation:`${S1} 1.5s steps(4) infinite`}}})]})]}),T1=()=>{const{currentCourse:e,fetchState:t}=Ln();return y.jsxs(y.Fragment,{children:[y.jsx(x1,{}),!e&&t!=="loading"&&y.jsx(Y.Typography,{variant:"h1",sx:{textAlign:"center",mt:5,color:"text.secondary"},children:"Select a course to get started"}),t==="loading"&&y.jsx(ch,{})]})},lh=({show:e,title:t,navigationItems:n,navItems:r,roleCheck:o})=>{const{user:i}=bo(),a=r?r.filter(c=>{var l;return c.kind==="page"&&!!((l=c.metadata)!=null&&l.isRootTool)}).map(c=>{var u,d;const l=c.iconFC;return{path:`${c.segment}`,icon:l?y.jsx(l,{fontSize:"large"}):y.jsx(y.Fragment,{}),label:c.title,description:((u=c.metadata)==null?void 0:u.description)||"",forRoles:(d=c.metadata)==null?void 0:d.forRoles}}):n||[];return y.jsx(Y.Box,{sx:{p:3},"data-testid":"tool-selector",children:y.jsx(Y.Fade,{in:e,timeout:500,children:y.jsxs(Y.Box,{children:[y.jsx(Y.Typography,{variant:"h5",sx:{mb:4,color:"primary.main"},children:t}),y.jsx(Y.Box,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"stretch",justifyContent:"center",height:"fit-content",width:"100%",gap:4},children:a.map(c=>{var l;return!o||o&&((l=c.forRoles)!=null&&l.includes((i==null?void 0:i.role)||""))?y.jsx(C1,{item:c},c.path):null})})]})})})},C1=({item:e})=>{const t=Y.useTheme(),n=yn();return y.jsx(Y.Card,{"data-testid":"tool-card",sx:{height:"auto",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"stretch",transition:"all 0.2s ease-in-out",transform:"scale(1)",bgcolor:"background.paper","&:hover":{transform:"scale(1.02)",boxShadow:t.shadows[8],bgcolor:r=>r.palette.primary.main+"20",color:"primary.main"}},children:y.jsx(Y.CardActionArea,{sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"top"},onClick:()=>n(e.path),children:y.jsxs(Y.CardContent,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2,p:3,maxWidth:300,flex:1},children:[y.jsx(Y.Box,{sx:{color:"inherit"},children:e.icon}),y.jsx(Y.Typography,{variant:"h6",children:e.label}),y.jsx(Y.Typography,{variant:"body2",color:"text.secondary",align:"center",children:e.description})]})})})},O1=()=>{const{currentCourse:e,updateCurrentCourse:t}=Ln(),{addNotificationData:n}=So(),[r,o]=F.useState((e==null?void 0:e.ltiLoginUrl)||""),[i,a]=F.useState(!1),c=async l=>{if(l.preventDefault(),!e)return;const u=r.trim();if(!u){n({type:"error",message:"Please provide a valid URL"});return}a(!0);try{if((await t({...e,ltiLoginUrl:u})).ltiLoginUrl===u)n({type:"success",message:"LTI Login URL updated successfully."});else throw new Error("Failed to verify update")}catch(d){console.error("Failed to update LTI Login URL:",d),n({type:"error",message:"Failed to update LTI Login URL. Please try again."})}finally{a(!1)}};return y.jsxs(Y.Paper,{elevation:3,sx:{p:3,mt:4,mx:"auto",maxWidth:600,borderRadius:2,backgroundColor:"background.paper"},children:[y.jsx(Y.Typography,{variant:"h6",color:"primary",gutterBottom:!0,sx:{mb:2},children:"Update LTI Login URL"}),y.jsx(Y.Typography,{variant:"body2",color:"text.secondary",sx:{mb:3},children:"Please provide the LTI Login URL for this course. Students will be redirected to this URL when they need to authenticate."}),y.jsxs("form",{onSubmit:c,children:[y.jsx(Y.TextField,{label:"LTI Login URL",variant:"outlined",fullWidth:!0,required:!0,value:r,onChange:l=>o(l.target.value),sx:{mb:3,"& .MuiOutlinedInput-root":{"&:hover fieldset":{borderColor:"primary.main"}}},helperText:"The URL where students will be redirected for LTI authentication"}),y.jsx(Y.Box,{sx:{display:"flex",justifyContent:"flex-end"},children:y.jsx(Y.Button,{type:"submit",variant:"contained",color:"primary",disabled:i,sx:{px:4,py:1,textTransform:"none",fontWeight:500},children:i?"Updating...":"Update URL"})})]})]})},R1=()=>{const{courseSlug:e}=hp(),{currentCourse:t}=Ln(),{addNotificationData:n}=So(),{user:r}=bo(),{sections:o}=hc(),[i,a]=F.useState(!0);return F.useEffect(()=>{a(!1);const c=setTimeout(()=>a(!0),300);return()=>clearTimeout(c)},[t]),F.useEffect(()=>{t&&(r==null?void 0:r.role)==="teacher"&&!t.ltiLoginUrl&&n({type:"info",message:"The LTI Login URL is missing for this course."})},[t,r,n]),e?(console.log("sections",o),o[e]?y.jsxs(y.Fragment,{children:[(r==null?void 0:r.role)==="teacher"&&!(t!=null&&t.ltiLoginUrl)&&y.jsx(O1,{}),y.jsx(lh,{show:i,title:t!=null&&t.title?`${t.title} - Select a Tool`:"Select a Tool",navItems:o[e].children,roleCheck:!0})]}):y.jsx("h1",{children:"No sections found!"})):y.jsx("h1",{children:"No course selected!"})},k1=Ge(y.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 9h12v2H6zm8 5H6v-2h8zm4-6H6V6h12z"}),"Chat"),P1=Ge(y.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),N1=Ge(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}),"Assessment"),j1=Ge([y.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"},"0"),y.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"},"1")],"ReportGmailerrorred"),A1=Ge(y.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People"),I1=Ge(y.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),_1=Ge(y.jsx("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy"),$1={edit:y.jsx(I1,{}),chat:y.jsx(k1,{}),help:y.jsx(fc,{}),stats:y.jsx(N1,{}),reports:y.jsx(j1,{}),contact:y.jsx(pc,{}),logout:y.jsx(Vf,{}),instructions:y.jsx(P1,{}),chatbot:y.jsx(_1,{}),"es-manager":y.jsx(A1,{})},M1=({title:e,dialogId:t,callOnOpen:n,showTitle:r=!0})=>{const{setOpenDialog:o}=Sc(),i=a=>{a.stopPropagation(),a.preventDefault(),o(t),n&&n(a)};return y.jsxs(Y.MenuItem,{component:Y.Button,onClick:i,style:{marginLeft:"auto",zIndex:1e3,width:"100%",display:"flex",justifyContent:"left",columnGap:2},children:[$1[e.toLowerCase()]," ",r&&e]})},uh=({children:e,open:t,onClose:n,...r})=>{const o=window.innerWidth<600;return y.jsx(Y.Dialog,{sx:{"& .MuiDialog-paper":{borderRadius:o?"0px !important":"14px"}},open:t,onClose:n,fullScreen:o,...r,children:e})},D1=({onSubmit:e,title:t,children:n,submitText:r="Submit",disableSubmit:o=!1,...i})=>{const{closeDialog:a}=Sc();return y.jsxs(uh,{open:!0,onClose:a,...i,children:[y.jsx(Y.DialogTitle,{children:t}),y.jsx(Y.DialogContent,{children:y.jsxs("form",{onSubmit:e,children:[n,y.jsxs(Y.DialogActions,{children:[y.jsx(Y.Button,{onClick:a,children:"Cancel"}),y.jsx(Y.Button,{type:"submit",disabled:o,children:r})]})]})})]})},L1=({Icon:e,size:t,title:n,sx:r})=>y.jsx(Y.Tooltip,{title:t+" "+n,children:y.jsx(Y.Badge,{sx:{fontSize:"0.5rem",...r,"& .MuiBadge-badge":{top:"0.3rem",padding:0,margin:0,height:"15px",minWidth:"15px"}},badgeContent:t,color:"error",children:y.jsx(e,{})})});class B1 extends F.Component{constructor(){super(...arguments);Vn(this,"state",{hasError:!1})}static getDerivedStateFromError(n){return console.log(n),{hasError:!0}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){return this.state.hasError?y.jsxs(Y.Box,{sx:{p:3,textAlign:"center"},children:[y.jsx(Y.Typography,{variant:"h6",children:"Something went wrong"}),y.jsx(Y.Button,{variant:"contained",onClick:()=>this.setState({hasError:!1}),sx:{mt:2},children:"Try again"})]}):this.props.children}}const F1=({states:e,children:t})=>{const n=e.filter(r=>r===null||Object.values(r).includes(null)||Object.values(r).includes(void 0));return n.length>0?y.jsx("div",{children:y.jsxs("p",{children:["Warning: The following states are null:"," ",n.map((r,o)=>y.jsxs("span",{children:[Object.keys(r)[0]," "]},o))]})}):y.jsx(y.Fragment,{children:t})};exports.BrowserRouter=tw;exports.CourseTools=R1;exports.DialogOpener=M1;exports.EduMLProvider=g1;exports.ErrorBoundary=B1;exports.ExtendedDialog=uh;exports.FormDialog=D1;exports.HashRouter=nw;exports.Home=T1;exports.IconWithBadge=L1;exports.Link=dc;exports.LoadingScreen=ch;exports.MemoryRouter=MS;exports.Navigate=DS;exports.NullStateWarning=F1;exports.Outlet=LS;exports.Route=yp;exports.Routes=BS;exports.ToolSelector=lh;exports.axios=vn;exports.baseUrl=qp;exports.convertObjectKeysToCamelCase=Mn;exports.convertObjectKeysToUnderscore=bi;exports.filterNavigationByRole=Pw;exports.useCourseStore=Ln;exports.useDialogStore=Sc;exports.useLocation=It;exports.useNavigate=yn;exports.useNavigationStore=hc;exports.useNotificationStore=So;exports.useParams=hp;exports.useUserStore=bo;
|
|
327
|
+
`,kc=()=>g.jsxs(Y.Box,{"data-testid":"loading-screen",sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"100%",gap:3,backdropFilter:"blur(8px)",animation:`${C1} 0.5s ease-in`},children:[g.jsx(Y.Box,{sx:{position:"relative",animation:`${w1} 2s ease-in-out infinite`},children:g.jsx(Y.CircularProgress,{size:60,thickness:4,sx:{opacity:.8}})}),g.jsxs(Y.Typography,{variant:"h6",sx:{fontWeight:300,letterSpacing:1,display:"flex",alignItems:"center",gap:"2px"},children:["Loading",g.jsx(Y.Box,{sx:{display:"inline-block",width:"24px",position:"relative","&::after":{content:"''",left:0,animation:`${T1} 1.5s steps(4) infinite`}}})]})]}),O1=()=>{const{currentCourse:e,fetchState:t}=Ht();return g.jsxs(g.Fragment,{children:[g.jsx(S1,{}),!e&&t!=="loading"&&g.jsx(Y.Typography,{variant:"h1",sx:{textAlign:"center",mt:5,color:"text.secondary"},children:"Select a course to get started"}),t==="loading"&&g.jsx(kc,{})]})},Sh=({show:e,title:t,navigationItems:n,navItems:r,roleCheck:o})=>{const{user:i}=Bn(),a=r?r.filter(c=>{var l;return c.kind==="page"&&!!((l=c.metadata)!=null&&l.isRootTool)}).map(c=>{var u,d;const l=c.iconFC;return{path:`${c.segment}`,icon:l?g.jsx(l,{fontSize:"large"}):g.jsx(g.Fragment,{}),label:c.title,description:((u=c.metadata)==null?void 0:u.description)||"",forRoles:(d=c.metadata)==null?void 0:d.forRoles}}):n||[];return g.jsx(Y.Box,{sx:{p:3},"data-testid":"tool-selector",children:g.jsx(Y.Fade,{in:e,timeout:500,children:g.jsxs(Y.Box,{children:[g.jsx(Y.Typography,{variant:"h5",sx:{mb:4,color:"primary.main"},children:t}),g.jsx(Y.Box,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"stretch",justifyContent:"center",height:"fit-content",width:"100%",gap:4},children:a.map(c=>{var l;return!o||o&&((l=c.forRoles)!=null&&l.includes((i==null?void 0:i.role)||""))?g.jsx(R1,{item:c},c.path):null})})]})})})},R1=({item:e})=>{const t=Y.useTheme(),n=tn();return g.jsx(Y.Card,{"data-testid":"tool-card",sx:{height:"auto",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"stretch",transition:"all 0.2s ease-in-out",transform:"scale(1)",bgcolor:"background.paper","&:hover":{transform:"scale(1.02)",boxShadow:t.shadows[8],bgcolor:r=>r.palette.primary.main+"20",color:"primary.main"}},children:g.jsx(Y.CardActionArea,{sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"top"},onClick:()=>n(e.path),children:g.jsxs(Y.CardContent,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2,p:3,maxWidth:300,flex:1},children:[g.jsx(Y.Box,{sx:{color:"inherit"},children:e.icon}),g.jsx(Y.Typography,{variant:"h6",children:e.label}),g.jsx(Y.Typography,{variant:"body2",color:"text.secondary",align:"center",children:e.description})]})})})},k1=()=>{const{currentCourse:e,updateCurrentCourse:t}=Ht(),{addNotificationData:n}=Vn(),[r,o]=D.useState((e==null?void 0:e.ltiLoginUrl)||""),[i,a]=D.useState(!1),c=async l=>{if(l.preventDefault(),!e)return;const u=r.trim();if(!u){n({type:"error",message:"Please provide a valid URL"});return}a(!0);try{if((await t({...e,ltiLoginUrl:u})).ltiLoginUrl===u)n({type:"success",message:"LTI Login URL updated successfully."});else throw new Error("Failed to verify update")}catch(d){console.error("Failed to update LTI Login URL:",d),n({type:"error",message:"Failed to update LTI Login URL. Please try again."})}finally{a(!1)}};return g.jsxs(Y.Paper,{elevation:3,sx:{p:3,mt:4,mx:"auto",maxWidth:600,borderRadius:2,backgroundColor:"background.paper"},children:[g.jsx(Y.Typography,{variant:"h6",color:"primary",gutterBottom:!0,sx:{mb:2},children:"Update LTI Login URL"}),g.jsx(Y.Typography,{variant:"body2",color:"text.secondary",sx:{mb:3},children:"Please provide the LTI Login URL for this course. Students will be redirected to this URL when they need to authenticate."}),g.jsxs("form",{onSubmit:c,children:[g.jsx(Y.TextField,{label:"LTI Login URL",variant:"outlined",fullWidth:!0,required:!0,value:r,onChange:l=>o(l.target.value),sx:{mb:3,"& .MuiOutlinedInput-root":{"&:hover fieldset":{borderColor:"primary.main"}}},helperText:"The URL where students will be redirected for LTI authentication"}),g.jsx(Y.Box,{sx:{display:"flex",justifyContent:"flex-end"},children:g.jsx(Y.Button,{type:"submit",variant:"contained",color:"primary",disabled:i,sx:{px:4,py:1,textTransform:"none",fontWeight:500},children:i?"Updating...":"Update URL"})})]})]})},wh=()=>{const{courseSlug:e}=lc(),{currentCourse:t}=Ht(),{addNotificationData:n}=Vn(),{user:r}=Bn(),{sections:o}=xo(),[i,a]=D.useState(!0);return D.useEffect(()=>{a(!1);const c=setTimeout(()=>a(!0),300);return()=>clearTimeout(c)},[t]),D.useEffect(()=>{t&&(r==null?void 0:r.role)==="teacher"&&!t.ltiLoginUrl&&n({type:"info",message:"The LTI Login URL is missing for this course."})},[t,r,n]),e?(console.log("sections",o),o[e]?g.jsxs(g.Fragment,{children:[(r==null?void 0:r.role)==="teacher"&&!(t!=null&&t.ltiLoginUrl)&&g.jsx(k1,{}),g.jsx(Sh,{show:i,title:t!=null&&t.title?`${t.title} - Select a Tool`:"Select a Tool",navItems:o[e].children,roleCheck:!0})]}):g.jsx("h1",{children:"No sections found!"})):g.jsx("h1",{children:"No course selected!"})},P1=Ge(g.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 9h12v2H6zm8 5H6v-2h8zm4-6H6V6h12z"}),"Chat"),N1=Ge(g.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),j1=Ge(g.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}),"Assessment"),A1=Ge([g.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"},"0"),g.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"},"1")],"ReportGmailerrorred"),I1=Ge(g.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People"),_1=Ge(g.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),$1=Ge(g.jsx("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy"),M1={edit:g.jsx(_1,{}),chat:g.jsx(P1,{}),help:g.jsx(gc,{}),stats:g.jsx(j1,{}),reports:g.jsx(A1,{}),contact:g.jsx(yc,{}),logout:g.jsx(Gf,{}),instructions:g.jsx(N1,{}),chatbot:g.jsx($1,{}),"es-manager":g.jsx(I1,{})},D1=({title:e,dialogId:t,callOnOpen:n,showTitle:r=!0})=>{const{setOpenDialog:o}=Rc(),i=a=>{a.stopPropagation(),a.preventDefault(),o(t),n&&n(a)};return g.jsxs(Y.MenuItem,{component:Y.Button,onClick:i,style:{marginLeft:"auto",zIndex:1e3,width:"100%",display:"flex",justifyContent:"left",columnGap:2},children:[M1[e.toLowerCase()]," ",r&&e]})},Th=({children:e,open:t,onClose:n,...r})=>{const o=window.innerWidth<600;return g.jsx(Y.Dialog,{sx:{"& .MuiDialog-paper":{borderRadius:o?"0px !important":"14px"}},open:t,onClose:n,fullScreen:o,...r,children:e})},L1=({onSubmit:e,title:t,children:n,submitText:r="Submit",disableSubmit:o=!1,...i})=>{const{closeDialog:a}=Rc();return g.jsxs(Th,{open:!0,onClose:a,...i,children:[g.jsx(Y.DialogTitle,{children:t}),g.jsx(Y.DialogContent,{children:g.jsxs("form",{onSubmit:e,children:[n,g.jsxs(Y.DialogActions,{children:[g.jsx(Y.Button,{onClick:a,children:"Cancel"}),g.jsx(Y.Button,{type:"submit",disabled:o,children:r})]})]})})]})},B1=({Icon:e,size:t,title:n,sx:r})=>g.jsx(Y.Tooltip,{title:t+" "+n,children:g.jsx(Y.Badge,{sx:{fontSize:"0.5rem",...r,"& .MuiBadge-badge":{top:"0.3rem",padding:0,margin:0,height:"15px",minWidth:"15px"}},badgeContent:t,color:"error",children:g.jsx(e,{})})});class F1 extends D.Component{constructor(){super(...arguments);zn(this,"state",{hasError:!1})}static getDerivedStateFromError(n){return console.log(n),{hasError:!0}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){return this.state.hasError?g.jsxs(Y.Box,{sx:{p:3,textAlign:"center"},children:[g.jsx(Y.Typography,{variant:"h6",children:"Something went wrong"}),g.jsx(Y.Button,{variant:"contained",onClick:()=>this.setState({hasError:!1}),sx:{mt:2},children:"Try again"})]}):this.props.children}}const V1=({states:e,children:t})=>{const n=e.filter(r=>r===null||Object.values(r).includes(null)||Object.values(r).includes(void 0));return n.length>0?g.jsx("div",{children:g.jsxs("p",{children:["Warning: The following states are null:"," ",n.map((r,o)=>g.jsxs("span",{children:[Object.keys(r)[0]," "]},o))]})}):g.jsx(g.Fragment,{children:t})},U1=()=>{const{courseSlug:e}=lc(),{fetchState:t,courses:n,setCurrentCourse:r}=Ht(),{addNotificationData:o}=Vn(),i=tn();return D.useEffect(()=>{const a=n.find(c=>vc(c.title)===e);a?r(a):t!=="loading"&&(o({type:"error",message:"Course not found"}),i("/"))},[e,r,n,t,o,i]),t==="loading"?g.jsx(kc,{}):g.jsx(Ep,{})},z1=({microservices:e})=>{const{currentCourse:t}=Ht(),{user:n}=Bn(),{updateSection:r}=xo();return D.useEffect(()=>{t!=null&&t.id&&e.forEach(o=>{var i;(i=o.fetchHooks)==null||i.forEach(a=>a(t.id))})},[t,e]),D.useEffect(()=>{if(!(t!=null&&t.id)||!n)return;const o=n.role==="teacher";e.forEach(i=>{if(i.buildNavigation){const a=i.buildNavigation(t.id,o);r(t,i.path,a)}})},[t,n,e,r]),g.jsx(Sp,{children:g.jsxs(Ur,{path:":courseSlug",element:g.jsx(U1,{}),children:[g.jsx(Ur,{Component:wh,index:!0}),e.map(o=>g.jsx(Ur,{path:`${o.path}/*`,element:g.jsx(o.Component,{})},o.path))]})})};exports.BrowserRouter=pw;exports.CourseTools=wh;exports.DialogOpener=D1;exports.EduMLProvider=y1;exports.ErrorBoundary=F1;exports.ExtendedDialog=Th;exports.FormDialog=L1;exports.HashRouter=hw;exports.Home=O1;exports.IconWithBadge=B1;exports.LMSProvider=v1;exports.Link=mc;exports.LoadingScreen=kc;exports.MemoryRouter=XS;exports.MicroserviceRoutes=z1;exports.Navigate=JS;exports.NullStateWarning=V1;exports.Outlet=Ep;exports.Route=Ur;exports.Routes=Sp;exports.ToolSelector=Sh;exports.axios=bn;exports.baseUrl=Jp;exports.convertObjectKeysToCamelCase=Dn;exports.convertObjectKeysToUnderscore=Ei;exports.filterNavigationByRole=Fw;exports.useCourseStore=Ht;exports.useDialogStore=Rc;exports.useLocation=It;exports.useNavigate=tn;exports.useNavigationStore=xo;exports.useNotificationStore=Vn;exports.useParams=lc;exports.useUserStore=Bn;
|