omnieye-theme-studio 1.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/.claude/launch.json +11 -0
- package/.github/workflows/ci.yml +88 -0
- package/.github/workflows/promote.yml +48 -0
- package/Dockerfile +20 -0
- package/README.md +52 -0
- package/dist/assets/index-B0UK7Lt_.js +200 -0
- package/dist/index.html +18 -0
- package/index.html +18 -0
- package/nginx.conf +15 -0
- package/package.json +26 -0
- package/src/App.tsx +79 -0
- package/src/chrome/Footer.tsx +21 -0
- package/src/chrome/IconRail.tsx +49 -0
- package/src/chrome/StudioSubHeader.tsx +14 -0
- package/src/chrome/TopBar.tsx +35 -0
- package/src/main.tsx +23 -0
- package/src/panels/CardsPanel.tsx +75 -0
- package/src/panels/ColourPanel.tsx +175 -0
- package/src/panels/LoginPanel.tsx +62 -0
- package/src/panels/NotificationsPanel.tsx +37 -0
- package/src/panels/SurfacePanel.tsx +66 -0
- package/src/panels/TablesPanel.tsx +57 -0
- package/src/panels/ThemeManagement.tsx +178 -0
- package/src/panels/TypographyPanel.tsx +154 -0
- package/src/preview/CamerasPreview.tsx +140 -0
- package/src/preview/ComponentsPreview.tsx +146 -0
- package/src/preview/DashboardPreview.tsx +138 -0
- package/src/preview/LoginPreview.tsx +111 -0
- package/src/preview/OperationsPreview.tsx +103 -0
- package/src/preview/OrdersPreview.tsx +108 -0
- package/src/preview/PreviewPane.tsx +111 -0
- package/src/preview/ReportsPreview.tsx +140 -0
- package/src/preview/ToastLayer.tsx +34 -0
- package/src/preview/useFitCount.ts +68 -0
- package/src/shared/ChipGroup.tsx +52 -0
- package/src/shared/CropModal.tsx +73 -0
- package/src/shared/InfoBadge.tsx +13 -0
- package/src/shared/SectionAccordion.tsx +89 -0
- package/src/shared/StudioSlider.tsx +103 -0
- package/src/shared/SwatchPicker.tsx +44 -0
- package/src/shared/TabStrip.tsx +51 -0
- package/src/store/useStudioUi.ts +47 -0
- package/src/store/useThemeStore.ts +103 -0
- package/src/studio/StudioRail.tsx +167 -0
- package/src/theme/buildMuiTheme.ts +53 -0
- package/src/theme/color.ts +68 -0
- package/src/theme/presets.ts +17 -0
- package/src/theme/settings.ts +158 -0
- package/src/theme/studioTokens.ts +24 -0
- package/src/theme/tokens.ts +243 -0
- package/src/theme/useTokens.ts +10 -0
- package/tsconfig.json +23 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +7 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
var IS=Object.defineProperty;var FS=(t,a,o)=>a in t?IS(t,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[a]=o;var Cl=(t,a,o)=>FS(t,typeof a!="symbol"?a+"":a,o);function WS(t,a){for(var o=0;o<a.length;o++){const i=a[o];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function o(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=o(s);fetch(s.href,c)}})();function qp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gf={exports:{}},wl={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Sy;function VS(){if(Sy)return wl;Sy=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function o(i,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var h in s)h!=="key"&&(c[h]=s[h])}else c=s;return s=c.ref,{$$typeof:t,type:i,key:f,ref:s!==void 0?s:null,props:c}}return wl.Fragment=a,wl.jsx=o,wl.jsxs=o,wl}var Cy;function qS(){return Cy||(Cy=1,Gf.exports=VS()),Gf.exports}var d=qS(),Yf={exports:{}},Ke={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var wy;function GS(){if(wy)return Ke;wy=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),T=Symbol.iterator;function v(E){return E===null||typeof E!="object"?null:(E=T&&E[T]||E["@@iterator"],typeof E=="function"?E:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,R={};function z(E,W,Q){this.props=E,this.context=W,this.refs=R,this.updater=Q||w}z.prototype.isReactComponent={},z.prototype.setState=function(E,W){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,W,"setState")},z.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function D(){}D.prototype=z.prototype;function O(E,W,Q){this.props=E,this.context=W,this.refs=R,this.updater=Q||w}var j=O.prototype=new D;j.constructor=O,S(j,z.prototype),j.isPureReactComponent=!0;var k=Array.isArray;function H(){}var N={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function q(E,W,Q){var ie=Q.ref;return{$$typeof:t,type:E,key:W,ref:ie!==void 0?ie:null,props:Q}}function I(E,W){return q(E.type,W,E.props)}function Y(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function C(E){var W={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return W[Q]})}var $=/\/+/g;function P(E,W){return typeof E=="object"&&E!==null&&E.key!=null?C(""+E.key):W.toString(36)}function X(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(H,H):(E.status="pending",E.then(function(W){E.status==="pending"&&(E.status="fulfilled",E.value=W)},function(W){E.status==="pending"&&(E.status="rejected",E.reason=W)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function B(E,W,Q,ie,J){var pe=typeof E;(pe==="undefined"||pe==="boolean")&&(E=null);var fe=!1;if(E===null)fe=!0;else switch(pe){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(E.$$typeof){case t:case a:fe=!0;break;case y:return fe=E._init,B(fe(E._payload),W,Q,ie,J)}}if(fe)return J=J(E),fe=ie===""?"."+P(E,0):ie,k(J)?(Q="",fe!=null&&(Q=fe.replace($,"$&/")+"/"),B(J,W,Q,"",function(we){return we})):J!=null&&(Y(J)&&(J=I(J,Q+(J.key==null||E&&E.key===J.key?"":(""+J.key).replace($,"$&/")+"/")+fe)),W.push(J)),1;fe=0;var le=ie===""?".":ie+":";if(k(E))for(var ve=0;ve<E.length;ve++)ie=E[ve],pe=le+P(ie,ve),fe+=B(ie,W,Q,pe,J);else if(ve=v(E),typeof ve=="function")for(E=ve.call(E),ve=0;!(ie=E.next()).done;)ie=ie.value,pe=le+P(ie,ve++),fe+=B(ie,W,Q,pe,J);else if(pe==="object"){if(typeof E.then=="function")return B(X(E),W,Q,ie,J);throw W=String(E),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return fe}function F(E,W,Q){if(E==null)return E;var ie=[],J=0;return B(E,ie,"","",function(pe){return W.call(Q,pe,J++)}),ie}function _(E){if(E._status===-1){var W=E._result;W=W(),W.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=W)}if(E._status===1)return E._result.default;throw E._result}var V=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ce={map:F,forEach:function(E,W,Q){F(E,function(){W.apply(this,arguments)},Q)},count:function(E){var W=0;return F(E,function(){W++}),W},toArray:function(E){return F(E,function(W){return W})||[]},only:function(E){if(!Y(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return Ke.Activity=x,Ke.Children=ce,Ke.Component=z,Ke.Fragment=o,Ke.Profiler=s,Ke.PureComponent=O,Ke.StrictMode=i,Ke.Suspense=m,Ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ke.__COMPILER_RUNTIME={__proto__:null,c:function(E){return N.H.useMemoCache(E)}},Ke.cache=function(E){return function(){return E.apply(null,arguments)}},Ke.cacheSignal=function(){return null},Ke.cloneElement=function(E,W,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var ie=S({},E.props),J=E.key;if(W!=null)for(pe in W.key!==void 0&&(J=""+W.key),W)!L.call(W,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&W.ref===void 0||(ie[pe]=W[pe]);var pe=arguments.length-2;if(pe===1)ie.children=Q;else if(1<pe){for(var fe=Array(pe),le=0;le<pe;le++)fe[le]=arguments[le+2];ie.children=fe}return q(E.type,J,ie)},Ke.createContext=function(E){return E={$$typeof:f,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:c,_context:E},E},Ke.createElement=function(E,W,Q){var ie,J={},pe=null;if(W!=null)for(ie in W.key!==void 0&&(pe=""+W.key),W)L.call(W,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(J[ie]=W[ie]);var fe=arguments.length-2;if(fe===1)J.children=Q;else if(1<fe){for(var le=Array(fe),ve=0;ve<fe;ve++)le[ve]=arguments[ve+2];J.children=le}if(E&&E.defaultProps)for(ie in fe=E.defaultProps,fe)J[ie]===void 0&&(J[ie]=fe[ie]);return q(E,pe,J)},Ke.createRef=function(){return{current:null}},Ke.forwardRef=function(E){return{$$typeof:h,render:E}},Ke.isValidElement=Y,Ke.lazy=function(E){return{$$typeof:y,_payload:{_status:-1,_result:E},_init:_}},Ke.memo=function(E,W){return{$$typeof:g,type:E,compare:W===void 0?null:W}},Ke.startTransition=function(E){var W=N.T,Q={};N.T=Q;try{var ie=E(),J=N.S;J!==null&&J(Q,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(H,V)}catch(pe){V(pe)}finally{W!==null&&Q.types!==null&&(W.types=Q.types),N.T=W}},Ke.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ke.use=function(E){return N.H.use(E)},Ke.useActionState=function(E,W,Q){return N.H.useActionState(E,W,Q)},Ke.useCallback=function(E,W){return N.H.useCallback(E,W)},Ke.useContext=function(E){return N.H.useContext(E)},Ke.useDebugValue=function(){},Ke.useDeferredValue=function(E,W){return N.H.useDeferredValue(E,W)},Ke.useEffect=function(E,W){return N.H.useEffect(E,W)},Ke.useEffectEvent=function(E){return N.H.useEffectEvent(E)},Ke.useId=function(){return N.H.useId()},Ke.useImperativeHandle=function(E,W,Q){return N.H.useImperativeHandle(E,W,Q)},Ke.useInsertionEffect=function(E,W){return N.H.useInsertionEffect(E,W)},Ke.useLayoutEffect=function(E,W){return N.H.useLayoutEffect(E,W)},Ke.useMemo=function(E,W){return N.H.useMemo(E,W)},Ke.useOptimistic=function(E,W){return N.H.useOptimistic(E,W)},Ke.useReducer=function(E,W,Q){return N.H.useReducer(E,W,Q)},Ke.useRef=function(E){return N.H.useRef(E)},Ke.useState=function(E){return N.H.useState(E)},Ke.useSyncExternalStore=function(E,W,Q){return N.H.useSyncExternalStore(E,W,Q)},Ke.useTransition=function(){return N.H.useTransition()},Ke.version="19.2.8",Ke}var Ty;function Gp(){return Ty||(Ty=1,Yf.exports=GS()),Yf.exports}var M=Gp();const bn=qp(M),vp=WS({__proto__:null,default:bn},[M]);var Xf={exports:{}},Tl={},Kf={exports:{}},Qf={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Ry;function YS(){return Ry||(Ry=1,(function(t){function a(B,F){var _=B.length;B.push(F);e:for(;0<_;){var V=_-1>>>1,ce=B[V];if(0<s(ce,F))B[V]=F,B[_]=ce,_=V;else break e}}function o(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var F=B[0],_=B.pop();if(_!==F){B[0]=_;e:for(var V=0,ce=B.length,E=ce>>>1;V<E;){var W=2*(V+1)-1,Q=B[W],ie=W+1,J=B[ie];if(0>s(Q,_))ie<ce&&0>s(J,Q)?(B[V]=J,B[ie]=_,V=ie):(B[V]=Q,B[W]=_,V=W);else if(ie<ce&&0>s(J,_))B[V]=J,B[ie]=_,V=ie;else break e}}return F}function s(B,F){var _=B.sortIndex-F.sortIndex;return _!==0?_:B.id-F.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}var m=[],g=[],y=1,x=null,T=3,v=!1,w=!1,S=!1,R=!1,z=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function j(B){for(var F=o(g);F!==null;){if(F.callback===null)i(g);else if(F.startTime<=B)i(g),F.sortIndex=F.expirationTime,a(m,F);else break;F=o(g)}}function k(B){if(S=!1,j(B),!w)if(o(m)!==null)w=!0,H||(H=!0,C());else{var F=o(g);F!==null&&X(k,F.startTime-B)}}var H=!1,N=-1,L=5,q=-1;function I(){return R?!0:!(t.unstable_now()-q<L)}function Y(){if(R=!1,H){var B=t.unstable_now();q=B;var F=!0;try{e:{w=!1,S&&(S=!1,D(N),N=-1),v=!0;var _=T;try{t:{for(j(B),x=o(m);x!==null&&!(x.expirationTime>B&&I());){var V=x.callback;if(typeof V=="function"){x.callback=null,T=x.priorityLevel;var ce=V(x.expirationTime<=B);if(B=t.unstable_now(),typeof ce=="function"){x.callback=ce,j(B),F=!0;break t}x===o(m)&&i(m),j(B)}else i(m);x=o(m)}if(x!==null)F=!0;else{var E=o(g);E!==null&&X(k,E.startTime-B),F=!1}}break e}finally{x=null,T=_,v=!1}F=void 0}}finally{F?C():H=!1}}}var C;if(typeof O=="function")C=function(){O(Y)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,P=$.port2;$.port1.onmessage=Y,C=function(){P.postMessage(null)}}else C=function(){z(Y,0)};function X(B,F){N=z(function(){B(t.unstable_now())},F)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.callback=null},t.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_next=function(B){switch(T){case 1:case 2:case 3:var F=3;break;default:F=T}var _=T;T=F;try{return B()}finally{T=_}},t.unstable_requestPaint=function(){R=!0},t.unstable_runWithPriority=function(B,F){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var _=T;T=B;try{return F()}finally{T=_}},t.unstable_scheduleCallback=function(B,F,_){var V=t.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?V+_:V):_=V,B){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=_+ce,B={id:y++,callback:F,priorityLevel:B,startTime:_,expirationTime:ce,sortIndex:-1},_>V?(B.sortIndex=_,a(g,B),o(m)===null&&B===o(g)&&(S?(D(N),N=-1):S=!0,X(k,_-V))):(B.sortIndex=ce,a(m,B),w||v||(w=!0,H||(H=!0,C()))),B},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(B){var F=T;return function(){var _=T;T=F;try{return B.apply(this,arguments)}finally{T=_}}}})(Qf)),Qf}var jy;function XS(){return jy||(jy=1,Kf.exports=YS()),Kf.exports}var Zf={exports:{}},gn={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Ey;function KS(){if(Ey)return gn;Ey=1;var t=Gp();function a(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(a(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(m,g,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:x==null?null:""+x,children:m,containerInfo:g,implementation:y}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return gn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,gn.createPortal=function(m,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return c(m,g,null,y)},gn.flushSync=function(m){var g=f.T,y=i.p;try{if(f.T=null,i.p=2,m)return m()}finally{f.T=g,i.p=y,i.d.f()}},gn.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(m,g))},gn.prefetchDNS=function(m){typeof m=="string"&&i.d.D(m)},gn.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,x=h(y,g.crossOrigin),T=typeof g.integrity=="string"?g.integrity:void 0,v=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?i.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:T,fetchPriority:v}):y==="script"&&i.d.X(m,{crossOrigin:x,integrity:T,fetchPriority:v,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},gn.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);i.d.M(m,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(m)},gn.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,x=h(y,g.crossOrigin);i.d.L(m,y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},gn.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=h(g.as,g.crossOrigin);i.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(m)},gn.requestFormReset=function(m){i.d.r(m)},gn.unstable_batchedUpdates=function(m,g){return m(g)},gn.useFormState=function(m,g,y){return f.H.useFormState(m,g,y)},gn.useFormStatus=function(){return f.H.useHostTransitionStatus()},gn.version="19.2.8",gn}var My;function lx(){if(My)return Zf.exports;My=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Zf.exports=KS(),Zf.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Ay;function QS(){if(Ay)return Tl;Ay=1;var t=XS(),a=Gp(),o=lx();function i(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,r=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(r=n.return),e=n.return;while(e)}return n.tag===3?r:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(i(188))}function g(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(i(188));return n!==e?null:e}for(var r=e,l=n;;){var u=r.return;if(u===null)break;var p=u.alternate;if(p===null){if(l=u.return,l!==null){r=l;continue}break}if(u.child===p.child){for(p=u.child;p;){if(p===r)return m(u),e;if(p===l)return m(u),n;p=p.sibling}throw Error(i(188))}if(r.return!==l.return)r=u,l=p;else{for(var b=!1,A=u.child;A;){if(A===r){b=!0,r=u,l=p;break}if(A===l){b=!0,l=u,r=p;break}A=A.sibling}if(!b){for(A=p.child;A;){if(A===r){b=!0,r=p,l=u;break}if(A===l){b=!0,l=p,r=u;break}A=A.sibling}if(!b)throw Error(i(189))}}if(r.alternate!==l)throw Error(i(190))}if(r.tag!==3)throw Error(i(188));return r.stateNode.current===r?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var x=Object.assign,T=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),O=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function C(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var $=Symbol.for("react.client.reference");function P(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case z:return"Profiler";case R:return"StrictMode";case k:return"Suspense";case H:return"SuspenseList";case q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case O:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case j:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case N:return n=e.displayName||null,n!==null?n:P(e.type)||"Memo";case L:n=e._payload,e=e._init;try{return P(e(n))}catch{}}return null}var X=Array.isArray,B=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_={pending:!1,data:null,method:null,action:null},V=[],ce=-1;function E(e){return{current:e}}function W(e){0>ce||(e.current=V[ce],V[ce]=null,ce--)}function Q(e,n){ce++,V[ce]=e.current,e.current=n}var ie=E(null),J=E(null),pe=E(null),fe=E(null);function le(e,n){switch(Q(pe,n),Q(J,e),Q(ie,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?W0(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=W0(n),e=V0(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(ie),Q(ie,e)}function ve(){W(ie),W(J),W(pe)}function we(e){e.memoizedState!==null&&Q(fe,e);var n=ie.current,r=V0(n,e.type);n!==r&&(Q(J,e),Q(ie,r))}function je(e){J.current===e&&(W(ie),W(J)),fe.current===e&&(W(fe),bl._currentValue=_)}var Me,_e;function me(e){if(Me===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);Me=n&&n[1]||"",_e=-1<r.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Me+e+_e}var Le=!1;function He(e,n){if(!e||Le)return"";Le=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(ae){var ne=ae}Reflect.construct(e,[],de)}else{try{de.call()}catch(ae){ne=ae}e.call(de.prototype)}}else{try{throw Error()}catch(ae){ne=ae}(de=e())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(ae){if(ae&&ne&&typeof ae.stack=="string")return[ae.stack,ne.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=l.DetermineComponentFrameRoot(),b=p[0],A=p[1];if(b&&A){var U=b.split(`
|
|
44
|
+
`),ee=A.split(`
|
|
45
|
+
`);for(u=l=0;l<U.length&&!U[l].includes("DetermineComponentFrameRoot");)l++;for(;u<ee.length&&!ee[u].includes("DetermineComponentFrameRoot");)u++;if(l===U.length||u===ee.length)for(l=U.length-1,u=ee.length-1;1<=l&&0<=u&&U[l]!==ee[u];)u--;for(;1<=l&&0<=u;l--,u--)if(U[l]!==ee[u]){if(l!==1||u!==1)do if(l--,u--,0>u||U[l]!==ee[u]){var re=`
|
|
46
|
+
`+U[l].replace(" at new "," at ");return e.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",e.displayName)),re}while(1<=l&&0<=u);break}}}finally{Le=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?me(r):""}function Ee(e,n){switch(e.tag){case 26:case 27:case 5:return me(e.type);case 16:return me("Lazy");case 13:return e.child!==n&&n!==null?me("Suspense Fallback"):me("Suspense");case 19:return me("SuspenseList");case 0:case 15:return He(e.type,!1);case 11:return He(e.type.render,!1);case 1:return He(e.type,!0);case 31:return me("Activity");default:return""}}function Pe(e){try{var n="",r=null;do n+=Ee(e,r),r=e,e=e.return;while(e);return n}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var Xe=Object.prototype.hasOwnProperty,Ye=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,ct=t.unstable_requestPaint,Te=t.unstable_now,ue=t.unstable_getCurrentPriorityLevel,he=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Ie=t.unstable_LowPriority,Se=t.unstable_IdlePriority,be=t.log,qe=t.unstable_setDisableYieldValue,Ne=null,Oe=null;function Bt(e){if(typeof be=="function"&&qe(e),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(Ne,e)}catch{}}var kt=Math.clz32?Math.clz32:Kn,Ca=Math.log,Hn=Math.LN2;function Kn(e){return e>>>=0,e===0?32:31-(Ca(e)/Hn|0)|0}var vn=256,Nn=262144,dt=4194304;function ge(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $e(e,n,r){var l=e.pendingLanes;if(l===0)return 0;var u=0,p=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var A=l&134217727;return A!==0?(l=A&~p,l!==0?u=ge(l):(b&=A,b!==0?u=ge(b):r||(r=A&~e,r!==0&&(u=ge(r))))):(A=l&~p,A!==0?u=ge(A):b!==0?u=ge(b):r||(r=l&~e,r!==0&&(u=ge(r)))),u===0?0:n!==0&&n!==u&&(n&p)===0&&(p=u&-u,r=n&-n,p>=r||p===32&&(r&4194048)!==0)?n:u}function ut(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function $t(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function We(){var e=dt;return dt<<=1,(dt&62914560)===0&&(dt=4194304),e}function Nt(e){for(var n=[],r=0;31>r;r++)n.push(e);return n}function hn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Du(e,n,r,l,u,p){var b=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var A=e.entanglements,U=e.expirationTimes,ee=e.hiddenUpdates;for(r=b&~r;0<r;){var re=31-kt(r),de=1<<re;A[re]=0,U[re]=-1;var ne=ee[re];if(ne!==null)for(ee[re]=null,re=0;re<ne.length;re++){var ae=ne[re];ae!==null&&(ae.lane&=-536870913)}r&=~de}l!==0&&ss(e,l,0),p!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=p&~(b&~n))}function ss(e,n,r){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-kt(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|r&261930}function cs(e,n){var r=e.entangledLanes|=n;for(e=e.entanglements;r;){var l=31-kt(r),u=1<<l;u&n|e[l]&n&&(e[l]|=n),r&=~u}}function Hu(e,n){var r=n&-n;return r=(r&42)!==0?1:Oi(r),(r&(e.suspendedLanes|n))!==0?0:r}function Oi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function us(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:hy(e.type))}function ds(e,n){var r=F.p;try{return F.p=e,n()}finally{F.p=r}}var wa=Math.random().toString(36).slice(2),Yt="__reactFiber$"+wa,mn="__reactProps$"+wa,_a="__reactContainer$"+wa,ur="__reactEvents$"+wa,Nu="__reactListeners$"+wa,Lu="__reactHandles$"+wa,fs="__reactResources$"+wa,Gr="__reactMarker$"+wa;function Di(e){delete e[Yt],delete e[mn],delete e[ur],delete e[Nu],delete e[Lu]}function dr(e){var n=e[Yt];if(n)return n;for(var r=e.parentNode;r;){if(n=r[_a]||r[Yt]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(e=Z0(e);e!==null;){if(r=e[Yt])return r;e=Z0(e)}return n}e=r,r=e.parentNode}return null}function fr(e){if(e=e[Yt]||e[_a]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Yr(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function pr(e){var n=e[fs];return n||(n=e[fs]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Xt(e){e[Gr]=!0}var ps=new Set,hs={};function Ua(e,n){hr(e,n),hr(e+"Capture",n)}function hr(e,n){for(hs[e]=n,e=0;e<n.length;e++)ps.add(n[e])}var Hh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ms={},gs={};function $u(e){return Xe.call(gs,e)?!0:Xe.call(ms,e)?!1:Hh.test(e)?gs[e]=!0:(ms[e]=!0,!1)}function jo(e,n,r){if($u(n))if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+r)}}function Eo(e,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+r)}}function Ct(e,n,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(n,r,""+l)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Hv(e,n,r){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,p=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(b){r=""+b,p.call(this,b)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return r},setValue:function(b){r=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function _u(e){if(!e._valueTracker){var n=Nh(e)?"checked":"value";e._valueTracker=Hv(e,n,""+e[n])}}function Lh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),l="";return e&&(l=Nh(e)?e.checked?"true":"false":e.value),e=l,e!==r?(n.setValue(e),!0):!1}function ys(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Nv=/[\n"\\]/g;function Qn(e){return e.replace(Nv,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Uu(e,n,r,l,u,p,b,A){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+_t(n)):e.value!==""+_t(n)&&(e.value=""+_t(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Pu(e,b,_t(n)):r!=null?Pu(e,b,_t(r)):l!=null&&e.removeAttribute("value"),u==null&&p!=null&&(e.defaultChecked=!!p),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+_t(A):e.removeAttribute("name")}function $h(e,n,r,l,u,p,b,A){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),n!=null||r!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){_u(e);return}r=r!=null?""+_t(r):"",n=n!=null?""+_t(n):r,A||n===e.value||(e.value=n),e.defaultValue=n}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=A?e.checked:!!l,e.defaultChecked=!!l,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),_u(e)}function Pu(e,n,r){n==="number"&&ys(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Mo(e,n,r,l){if(e=e.options,n){n={};for(var u=0;u<r.length;u++)n["$"+r[u]]=!0;for(r=0;r<e.length;r++)u=n.hasOwnProperty("$"+e[r].value),e[r].selected!==u&&(e[r].selected=u),u&&l&&(e[r].defaultSelected=!0)}else{for(r=""+_t(r),n=null,u=0;u<e.length;u++){if(e[u].value===r){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function _h(e,n,r){if(n!=null&&(n=""+_t(n),n!==e.value&&(e.value=n),r==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=r!=null?""+_t(r):""}function Uh(e,n,r,l){if(n==null){if(l!=null){if(r!=null)throw Error(i(92));if(X(l)){if(1<l.length)throw Error(i(93));l=l[0]}r=l}r==null&&(r=""),n=r}r=_t(n),e.defaultValue=r,l=e.textContent,l===r&&l!==""&&l!==null&&(e.value=l),_u(e)}function Ao(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var Lv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ph(e,n,r){var l=n.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,r):typeof r!="number"||r===0||Lv.has(n)?n==="float"?e.cssFloat=r:e[n]=(""+r).trim():e[n]=r+"px"}function Ih(e,n,r){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in n)l=n[u],n.hasOwnProperty(u)&&r[u]!==l&&Ph(e,u,l)}else for(var p in n)n.hasOwnProperty(p)&&Ph(e,p,n[p])}function Iu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $v=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_v=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bs(e){return _v.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Pa(){}var Fu=null;function Wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ko=null,zo=null;function Fh(e){var n=fr(e);if(n&&(e=n.stateNode)){var r=e[mn]||null;e:switch(e=n.stateNode,n.type){case"input":if(Uu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Qn(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var l=r[n];if(l!==e&&l.form===e.form){var u=l[mn]||null;if(!u)throw Error(i(90));Uu(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<r.length;n++)l=r[n],l.form===e.form&&Lh(l)}break e;case"textarea":_h(e,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&Mo(e,!!r.multiple,n,!1)}}}var Vu=!1;function Wh(e,n,r){if(Vu)return e(n,r);Vu=!0;try{var l=e(n);return l}finally{if(Vu=!1,(ko!==null||zo!==null)&&(oc(),ko&&(n=ko,e=zo,zo=ko=null,Fh(n),e)))for(n=0;n<e.length;n++)Fh(e[n])}}function Hi(e,n){var r=e.stateNode;if(r===null)return null;var l=r[mn]||null;if(l===null)return null;r=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(i(231,n,typeof r));return r}var Ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=!1;if(Ia)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){qu=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{qu=!1}var mr=null,Gu=null,xs=null;function Vh(){if(xs)return xs;var e,n=Gu,r=n.length,l,u="value"in mr?mr.value:mr.textContent,p=u.length;for(e=0;e<r&&n[e]===u[e];e++);var b=r-e;for(l=1;l<=b&&n[r-l]===u[p-l];l++);return xs=u.slice(e,1<l?1-l:void 0)}function vs(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Ss(){return!0}function qh(){return!1}function Tn(e){function n(r,l,u,p,b){this._reactName=r,this._targetInst=u,this.type=l,this.nativeEvent=p,this.target=b,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(r=e[A],this[A]=r?r(p):p[A]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Ss:qh,this.isPropagationStopped=qh,this}return x(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ss)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ss)},persist:function(){},isPersistent:Ss}),n}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cs=Tn(Xr),Li=x({},Xr,{view:0,detail:0}),Uv=Tn(Li),Yu,Xu,$i,ws=x({},Li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$i&&($i&&e.type==="mousemove"?(Yu=e.screenX-$i.screenX,Xu=e.screenY-$i.screenY):Xu=Yu=0,$i=e),Yu)},movementY:function(e){return"movementY"in e?e.movementY:Xu}}),Gh=Tn(ws),Pv=x({},ws,{dataTransfer:0}),Iv=Tn(Pv),Fv=x({},Li,{relatedTarget:0}),Ku=Tn(Fv),Wv=x({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Vv=Tn(Wv),qv=x({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gv=Tn(qv),Yv=x({},Xr,{data:0}),Yh=Tn(Yv),Xv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Qv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zv(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Qv[e])?!!n[e]:!1}function Qu(){return Zv}var Jv=x({},Li,{key:function(e){if(e.key){var n=Xv[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(e){return e.type==="keypress"?vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),e1=Tn(Jv),t1=x({},ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xh=Tn(t1),n1=x({},Li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),a1=Tn(n1),r1=x({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),o1=Tn(r1),i1=x({},ws,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),l1=Tn(i1),s1=x({},Xr,{newState:0,oldState:0}),c1=Tn(s1),u1=[9,13,27,32],Zu=Ia&&"CompositionEvent"in window,_i=null;Ia&&"documentMode"in document&&(_i=document.documentMode);var d1=Ia&&"TextEvent"in window&&!_i,Kh=Ia&&(!Zu||_i&&8<_i&&11>=_i),Qh=" ",Zh=!1;function Jh(e,n){switch(e){case"keyup":return u1.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oo=!1;function f1(e,n){switch(e){case"compositionend":return em(n);case"keypress":return n.which!==32?null:(Zh=!0,Qh);case"textInput":return e=n.data,e===Qh&&Zh?null:e;default:return null}}function p1(e,n){if(Oo)return e==="compositionend"||!Zu&&Jh(e,n)?(e=Vh(),xs=Gu=mr=null,Oo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Kh&&n.locale!=="ko"?null:n.data;default:return null}}var h1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!h1[e.type]:n==="textarea"}function nm(e,n,r,l){ko?zo?zo.push(l):zo=[l]:ko=l,n=fc(n,"onChange"),0<n.length&&(r=new Cs("onChange","change",null,r,l),e.push({event:r,listeners:n}))}var Ui=null,Pi=null;function m1(e){$0(e,0)}function Ts(e){var n=Yr(e);if(Lh(n))return e}function am(e,n){if(e==="change")return n}var rm=!1;if(Ia){var Ju;if(Ia){var ed="oninput"in document;if(!ed){var om=document.createElement("div");om.setAttribute("oninput","return;"),ed=typeof om.oninput=="function"}Ju=ed}else Ju=!1;rm=Ju&&(!document.documentMode||9<document.documentMode)}function im(){Ui&&(Ui.detachEvent("onpropertychange",lm),Pi=Ui=null)}function lm(e){if(e.propertyName==="value"&&Ts(Pi)){var n=[];nm(n,Pi,e,Wu(e)),Wh(m1,n)}}function g1(e,n,r){e==="focusin"?(im(),Ui=n,Pi=r,Ui.attachEvent("onpropertychange",lm)):e==="focusout"&&im()}function y1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(Pi)}function b1(e,n){if(e==="click")return Ts(n)}function x1(e,n){if(e==="input"||e==="change")return Ts(n)}function v1(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Ln=typeof Object.is=="function"?Object.is:v1;function Ii(e,n){if(Ln(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var r=Object.keys(e),l=Object.keys(n);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var u=r[l];if(!Xe.call(n,u)||!Ln(e[u],n[u]))return!1}return!0}function sm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cm(e,n){var r=sm(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=n&&l>=n)return{node:r,offset:n-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sm(r)}}function um(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?um(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function dm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ys(e.document);n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)e=n.contentWindow;else break;n=ys(e.document)}return n}function td(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var S1=Ia&&"documentMode"in document&&11>=document.documentMode,Bo=null,nd=null,Fi=null,ad=!1;function fm(e,n,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ad||Bo==null||Bo!==ys(l)||(l=Bo,"selectionStart"in l&&td(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Fi&&Ii(Fi,l)||(Fi=l,l=fc(nd,"onSelect"),0<l.length&&(n=new Cs("onSelect","select",null,n,r),e.push({event:n,listeners:l}),n.target=Bo)))}function Kr(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit"+e]="webkit"+n,r["Moz"+e]="moz"+n,r}var Do={animationend:Kr("Animation","AnimationEnd"),animationiteration:Kr("Animation","AnimationIteration"),animationstart:Kr("Animation","AnimationStart"),transitionrun:Kr("Transition","TransitionRun"),transitionstart:Kr("Transition","TransitionStart"),transitioncancel:Kr("Transition","TransitionCancel"),transitionend:Kr("Transition","TransitionEnd")},rd={},pm={};Ia&&(pm=document.createElement("div").style,"AnimationEvent"in window||(delete Do.animationend.animation,delete Do.animationiteration.animation,delete Do.animationstart.animation),"TransitionEvent"in window||delete Do.transitionend.transition);function Qr(e){if(rd[e])return rd[e];if(!Do[e])return e;var n=Do[e],r;for(r in n)if(n.hasOwnProperty(r)&&r in pm)return rd[e]=n[r];return e}var hm=Qr("animationend"),mm=Qr("animationiteration"),gm=Qr("animationstart"),C1=Qr("transitionrun"),w1=Qr("transitionstart"),T1=Qr("transitioncancel"),ym=Qr("transitionend"),bm=new Map,od="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");od.push("scrollEnd");function ma(e,n){bm.set(e,n),Ua(n,[e])}var Rs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Zn=[],Ho=0,id=0;function js(){for(var e=Ho,n=id=Ho=0;n<e;){var r=Zn[n];Zn[n++]=null;var l=Zn[n];Zn[n++]=null;var u=Zn[n];Zn[n++]=null;var p=Zn[n];if(Zn[n++]=null,l!==null&&u!==null){var b=l.pending;b===null?u.next=u:(u.next=b.next,b.next=u),l.pending=u}p!==0&&xm(r,u,p)}}function Es(e,n,r,l){Zn[Ho++]=e,Zn[Ho++]=n,Zn[Ho++]=r,Zn[Ho++]=l,id|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function ld(e,n,r,l){return Es(e,n,r,l),Ms(e)}function Zr(e,n){return Es(e,null,null,n),Ms(e)}function xm(e,n,r){e.lanes|=r;var l=e.alternate;l!==null&&(l.lanes|=r);for(var u=!1,p=e.return;p!==null;)p.childLanes|=r,l=p.alternate,l!==null&&(l.childLanes|=r),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(u=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,u&&n!==null&&(u=31-kt(r),e=p.hiddenUpdates,l=e[u],l===null?e[u]=[n]:l.push(n),n.lane=r|536870912),p):null}function Ms(e){if(50<dl)throw dl=0,yf=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var No={};function R1(e,n,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(e,n,r,l){return new R1(e,n,r,l)}function sd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fa(e,n){var r=e.alternate;return r===null?(r=$n(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function vm(e,n){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,n=r.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function As(e,n,r,l,u,p){var b=0;if(l=e,typeof e=="function")sd(e)&&(b=1);else if(typeof e=="string")b=kS(e,r,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case q:return e=$n(31,r,n,u),e.elementType=q,e.lanes=p,e;case S:return Jr(r.children,u,p,n);case R:b=8,u|=24;break;case z:return e=$n(12,r,n,u|2),e.elementType=z,e.lanes=p,e;case k:return e=$n(13,r,n,u),e.elementType=k,e.lanes=p,e;case H:return e=$n(19,r,n,u),e.elementType=H,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:b=10;break e;case D:b=9;break e;case j:b=11;break e;case N:b=14;break e;case L:b=16,l=null;break e}b=29,r=Error(i(130,e===null?"null":typeof e,"")),l=null}return n=$n(b,r,n,u),n.elementType=e,n.type=l,n.lanes=p,n}function Jr(e,n,r,l){return e=$n(7,e,l,n),e.lanes=r,e}function cd(e,n,r){return e=$n(6,e,null,n),e.lanes=r,e}function Sm(e){var n=$n(18,null,null,0);return n.stateNode=e,n}function ud(e,n,r){return n=$n(4,e.children!==null?e.children:[],e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Cm=new WeakMap;function Jn(e,n){if(typeof e=="object"&&e!==null){var r=Cm.get(e);return r!==void 0?r:(n={value:e,source:n,stack:Pe(n)},Cm.set(e,n),n)}return{value:e,source:n,stack:Pe(n)}}var Lo=[],$o=0,ks=null,Wi=0,ea=[],ta=0,gr=null,Ta=1,Ra="";function Wa(e,n){Lo[$o++]=Wi,Lo[$o++]=ks,ks=e,Wi=n}function wm(e,n,r){ea[ta++]=Ta,ea[ta++]=Ra,ea[ta++]=gr,gr=e;var l=Ta;e=Ra;var u=32-kt(l)-1;l&=~(1<<u),r+=1;var p=32-kt(n)+u;if(30<p){var b=u-u%5;p=(l&(1<<b)-1).toString(32),l>>=b,u-=b,Ta=1<<32-kt(n)+u|r<<u|l,Ra=p+e}else Ta=1<<p|r<<u|l,Ra=e}function dd(e){e.return!==null&&(Wa(e,1),wm(e,1,0))}function fd(e){for(;e===ks;)ks=Lo[--$o],Lo[$o]=null,Wi=Lo[--$o],Lo[$o]=null;for(;e===gr;)gr=ea[--ta],ea[ta]=null,Ra=ea[--ta],ea[ta]=null,Ta=ea[--ta],ea[ta]=null}function Tm(e,n){ea[ta++]=Ta,ea[ta++]=Ra,ea[ta++]=gr,Ta=n.id,Ra=n.overflow,gr=e}var sn=null,zt=null,st=!1,yr=null,na=!1,pd=Error(i(519));function br(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vi(Jn(n,e)),pd}function Rm(e){var n=e.stateNode,r=e.type,l=e.memoizedProps;switch(n[Yt]=e,n[mn]=l,r){case"dialog":ot("cancel",n),ot("close",n);break;case"iframe":case"object":case"embed":ot("load",n);break;case"video":case"audio":for(r=0;r<pl.length;r++)ot(pl[r],n);break;case"source":ot("error",n);break;case"img":case"image":case"link":ot("error",n),ot("load",n);break;case"details":ot("toggle",n);break;case"input":ot("invalid",n),$h(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ot("invalid",n);break;case"textarea":ot("invalid",n),Uh(n,l.value,l.defaultValue,l.children)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||l.suppressHydrationWarning===!0||I0(n.textContent,r)?(l.popover!=null&&(ot("beforetoggle",n),ot("toggle",n)),l.onScroll!=null&&ot("scroll",n),l.onScrollEnd!=null&&ot("scrollend",n),l.onClick!=null&&(n.onclick=Pa),n=!0):n=!1,n||br(e,!0)}function jm(e){for(sn=e.return;sn;)switch(sn.tag){case 5:case 31:case 13:na=!1;return;case 27:case 3:na=!0;return;default:sn=sn.return}}function _o(e){if(e!==sn)return!1;if(!st)return jm(e),st=!0,!1;var n=e.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Of(e.type,e.memoizedProps)),r=!r),r&&zt&&br(e),jm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));zt=Q0(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));zt=Q0(e)}else n===27?(n=zt,Or(e.type)?(e=Lf,Lf=null,zt=e):zt=n):zt=sn?ra(e.stateNode.nextSibling):null;return!0}function eo(){zt=sn=null,st=!1}function hd(){var e=yr;return e!==null&&(Mn===null?Mn=e:Mn.push.apply(Mn,e),yr=null),e}function Vi(e){yr===null?yr=[e]:yr.push(e)}var md=E(null),to=null,Va=null;function xr(e,n,r){Q(md,n._currentValue),n._currentValue=r}function qa(e){e._currentValue=md.current,W(md)}function gd(e,n,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===r)break;e=e.return}}function yd(e,n,r,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var p=u.dependencies;if(p!==null){var b=u.child;p=p.firstContext;e:for(;p!==null;){var A=p;p=u;for(var U=0;U<n.length;U++)if(A.context===n[U]){p.lanes|=r,A=p.alternate,A!==null&&(A.lanes|=r),gd(p.return,r,e),l||(b=null);break e}p=A.next}}else if(u.tag===18){if(b=u.return,b===null)throw Error(i(341));b.lanes|=r,p=b.alternate,p!==null&&(p.lanes|=r),gd(b,r,e),b=null}else b=u.child;if(b!==null)b.return=u;else for(b=u;b!==null;){if(b===e){b=null;break}if(u=b.sibling,u!==null){u.return=b.return,b=u;break}b=b.return}u=b}}function Uo(e,n,r,l){e=null;for(var u=n,p=!1;u!==null;){if(!p){if((u.flags&524288)!==0)p=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var b=u.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var A=u.type;Ln(u.pendingProps.value,b.value)||(e!==null?e.push(A):e=[A])}}else if(u===fe.current){if(b=u.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(bl):e=[bl])}u=u.return}e!==null&&yd(n,e,r,l),n.flags|=262144}function zs(e){for(e=e.firstContext;e!==null;){if(!Ln(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function no(e){to=e,Va=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function cn(e){return Em(to,e)}function Os(e,n){return to===null&&no(e),Em(e,n)}function Em(e,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},Va===null){if(e===null)throw Error(i(308));Va=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Va=Va.next=n;return r}var j1=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(r,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(r){return r()})}},E1=t.unstable_scheduleCallback,M1=t.unstable_NormalPriority,Kt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bd(){return{controller:new j1,data:new Map,refCount:0}}function qi(e){e.refCount--,e.refCount===0&&E1(M1,function(){e.controller.abort()})}var Gi=null,xd=0,Po=0,Io=null;function A1(e,n){if(Gi===null){var r=Gi=[];xd=0,Po=wf(),Io={status:"pending",value:void 0,then:function(l){r.push(l)}}}return xd++,n.then(Mm,Mm),n}function Mm(){if(--xd===0&&Gi!==null){Io!==null&&(Io.status="fulfilled");var e=Gi;Gi=null,Po=0,Io=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function k1(e,n){var r=[],l={status:"pending",value:null,reason:null,then:function(u){r.push(u)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var u=0;u<r.length;u++)(0,r[u])(n)},function(u){for(l.status="rejected",l.reason=u,u=0;u<r.length;u++)(0,r[u])(void 0)}),l}var Am=B.S;B.S=function(e,n){f0=Te(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&A1(e,n),Am!==null&&Am(e,n)};var ao=E(null);function vd(){var e=ao.current;return e!==null?e:Mt.pooledCache}function Bs(e,n){n===null?Q(ao,ao.current):Q(ao,n.pool)}function km(){var e=vd();return e===null?null:{parent:Kt._currentValue,pool:e}}var Fo=Error(i(460)),Sd=Error(i(474)),Ds=Error(i(542)),Hs={then:function(){}};function zm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Om(e,n,r){switch(r=e[r],r===void 0?e.push(n):r!==n&&(n.then(Pa,Pa),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Dm(e),e;default:if(typeof n.status=="string")n.then(Pa,Pa);else{if(e=Mt,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=l}},function(l){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Dm(e),e}throw oo=n,Fo}}function ro(e){try{var n=e._init;return n(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(oo=r,Fo):r}}var oo=null;function Bm(){if(oo===null)throw Error(i(459));var e=oo;return oo=null,e}function Dm(e){if(e===Fo||e===Ds)throw Error(i(483))}var Wo=null,Yi=0;function Ns(e){var n=Yi;return Yi+=1,Wo===null&&(Wo=[]),Om(Wo,e,n)}function Xi(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Ls(e,n){throw n.$$typeof===T?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Hm(e){function n(K,G){if(e){var Z=K.deletions;Z===null?(K.deletions=[G],K.flags|=16):Z.push(G)}}function r(K,G){if(!e)return null;for(;G!==null;)n(K,G),G=G.sibling;return null}function l(K){for(var G=new Map;K!==null;)K.key!==null?G.set(K.key,K):G.set(K.index,K),K=K.sibling;return G}function u(K,G){return K=Fa(K,G),K.index=0,K.sibling=null,K}function p(K,G,Z){return K.index=Z,e?(Z=K.alternate,Z!==null?(Z=Z.index,Z<G?(K.flags|=67108866,G):Z):(K.flags|=67108866,G)):(K.flags|=1048576,G)}function b(K){return e&&K.alternate===null&&(K.flags|=67108866),K}function A(K,G,Z,se){return G===null||G.tag!==6?(G=cd(Z,K.mode,se),G.return=K,G):(G=u(G,Z),G.return=K,G)}function U(K,G,Z,se){var Ue=Z.type;return Ue===S?re(K,G,Z.props.children,se,Z.key):G!==null&&(G.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===L&&ro(Ue)===G.type)?(G=u(G,Z.props),Xi(G,Z),G.return=K,G):(G=As(Z.type,Z.key,Z.props,null,K.mode,se),Xi(G,Z),G.return=K,G)}function ee(K,G,Z,se){return G===null||G.tag!==4||G.stateNode.containerInfo!==Z.containerInfo||G.stateNode.implementation!==Z.implementation?(G=ud(Z,K.mode,se),G.return=K,G):(G=u(G,Z.children||[]),G.return=K,G)}function re(K,G,Z,se,Ue){return G===null||G.tag!==7?(G=Jr(Z,K.mode,se,Ue),G.return=K,G):(G=u(G,Z),G.return=K,G)}function de(K,G,Z){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=cd(""+G,K.mode,Z),G.return=K,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case v:return Z=As(G.type,G.key,G.props,null,K.mode,Z),Xi(Z,G),Z.return=K,Z;case w:return G=ud(G,K.mode,Z),G.return=K,G;case L:return G=ro(G),de(K,G,Z)}if(X(G)||C(G))return G=Jr(G,K.mode,Z,null),G.return=K,G;if(typeof G.then=="function")return de(K,Ns(G),Z);if(G.$$typeof===O)return de(K,Os(K,G),Z);Ls(K,G)}return null}function ne(K,G,Z,se){var Ue=G!==null?G.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Ue!==null?null:A(K,G,""+Z,se);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case v:return Z.key===Ue?U(K,G,Z,se):null;case w:return Z.key===Ue?ee(K,G,Z,se):null;case L:return Z=ro(Z),ne(K,G,Z,se)}if(X(Z)||C(Z))return Ue!==null?null:re(K,G,Z,se,null);if(typeof Z.then=="function")return ne(K,G,Ns(Z),se);if(Z.$$typeof===O)return ne(K,G,Os(K,Z),se);Ls(K,Z)}return null}function ae(K,G,Z,se,Ue){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return K=K.get(Z)||null,A(G,K,""+se,Ue);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case v:return K=K.get(se.key===null?Z:se.key)||null,U(G,K,se,Ue);case w:return K=K.get(se.key===null?Z:se.key)||null,ee(G,K,se,Ue);case L:return se=ro(se),ae(K,G,Z,se,Ue)}if(X(se)||C(se))return K=K.get(Z)||null,re(G,K,se,Ue,null);if(typeof se.then=="function")return ae(K,G,Z,Ns(se),Ue);if(se.$$typeof===O)return ae(K,G,Z,Os(G,se),Ue);Ls(G,se)}return null}function Ae(K,G,Z,se){for(var Ue=null,ft=null,Be=G,Je=G=0,lt=null;Be!==null&&Je<Z.length;Je++){Be.index>Je?(lt=Be,Be=null):lt=Be.sibling;var pt=ne(K,Be,Z[Je],se);if(pt===null){Be===null&&(Be=lt);break}e&&Be&&pt.alternate===null&&n(K,Be),G=p(pt,G,Je),ft===null?Ue=pt:ft.sibling=pt,ft=pt,Be=lt}if(Je===Z.length)return r(K,Be),st&&Wa(K,Je),Ue;if(Be===null){for(;Je<Z.length;Je++)Be=de(K,Z[Je],se),Be!==null&&(G=p(Be,G,Je),ft===null?Ue=Be:ft.sibling=Be,ft=Be);return st&&Wa(K,Je),Ue}for(Be=l(Be);Je<Z.length;Je++)lt=ae(Be,K,Je,Z[Je],se),lt!==null&&(e&<.alternate!==null&&Be.delete(lt.key===null?Je:lt.key),G=p(lt,G,Je),ft===null?Ue=lt:ft.sibling=lt,ft=lt);return e&&Be.forEach(function(Lr){return n(K,Lr)}),st&&Wa(K,Je),Ue}function Fe(K,G,Z,se){if(Z==null)throw Error(i(151));for(var Ue=null,ft=null,Be=G,Je=G=0,lt=null,pt=Z.next();Be!==null&&!pt.done;Je++,pt=Z.next()){Be.index>Je?(lt=Be,Be=null):lt=Be.sibling;var Lr=ne(K,Be,pt.value,se);if(Lr===null){Be===null&&(Be=lt);break}e&&Be&&Lr.alternate===null&&n(K,Be),G=p(Lr,G,Je),ft===null?Ue=Lr:ft.sibling=Lr,ft=Lr,Be=lt}if(pt.done)return r(K,Be),st&&Wa(K,Je),Ue;if(Be===null){for(;!pt.done;Je++,pt=Z.next())pt=de(K,pt.value,se),pt!==null&&(G=p(pt,G,Je),ft===null?Ue=pt:ft.sibling=pt,ft=pt);return st&&Wa(K,Je),Ue}for(Be=l(Be);!pt.done;Je++,pt=Z.next())pt=ae(Be,K,Je,pt.value,se),pt!==null&&(e&&pt.alternate!==null&&Be.delete(pt.key===null?Je:pt.key),G=p(pt,G,Je),ft===null?Ue=pt:ft.sibling=pt,ft=pt);return e&&Be.forEach(function(PS){return n(K,PS)}),st&&Wa(K,Je),Ue}function Rt(K,G,Z,se){if(typeof Z=="object"&&Z!==null&&Z.type===S&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case v:e:{for(var Ue=Z.key;G!==null;){if(G.key===Ue){if(Ue=Z.type,Ue===S){if(G.tag===7){r(K,G.sibling),se=u(G,Z.props.children),se.return=K,K=se;break e}}else if(G.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===L&&ro(Ue)===G.type){r(K,G.sibling),se=u(G,Z.props),Xi(se,Z),se.return=K,K=se;break e}r(K,G);break}else n(K,G);G=G.sibling}Z.type===S?(se=Jr(Z.props.children,K.mode,se,Z.key),se.return=K,K=se):(se=As(Z.type,Z.key,Z.props,null,K.mode,se),Xi(se,Z),se.return=K,K=se)}return b(K);case w:e:{for(Ue=Z.key;G!==null;){if(G.key===Ue)if(G.tag===4&&G.stateNode.containerInfo===Z.containerInfo&&G.stateNode.implementation===Z.implementation){r(K,G.sibling),se=u(G,Z.children||[]),se.return=K,K=se;break e}else{r(K,G);break}else n(K,G);G=G.sibling}se=ud(Z,K.mode,se),se.return=K,K=se}return b(K);case L:return Z=ro(Z),Rt(K,G,Z,se)}if(X(Z))return Ae(K,G,Z,se);if(C(Z)){if(Ue=C(Z),typeof Ue!="function")throw Error(i(150));return Z=Ue.call(Z),Fe(K,G,Z,se)}if(typeof Z.then=="function")return Rt(K,G,Ns(Z),se);if(Z.$$typeof===O)return Rt(K,G,Os(K,Z),se);Ls(K,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,G!==null&&G.tag===6?(r(K,G.sibling),se=u(G,Z),se.return=K,K=se):(r(K,G),se=cd(Z,K.mode,se),se.return=K,K=se),b(K)):r(K,G)}return function(K,G,Z,se){try{Yi=0;var Ue=Rt(K,G,Z,se);return Wo=null,Ue}catch(Be){if(Be===Fo||Be===Ds)throw Be;var ft=$n(29,Be,null,K.mode);return ft.lanes=se,ft.return=K,ft}finally{}}}var io=Hm(!0),Nm=Hm(!1),vr=!1;function Cd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wd(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Sr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Cr(e,n,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ht&2)!==0){var u=l.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),l.pending=n,n=Ms(e),xm(e,null,r),n}return Es(e,l,n,r),Ms(e)}function Ki(e,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,r|=l,n.lanes=r,cs(e,r)}}function Td(e,n){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var u=null,p=null;if(r=r.firstBaseUpdate,r!==null){do{var b={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};p===null?u=p=b:p=p.next=b,r=r.next}while(r!==null);p===null?u=p=n:p=p.next=n}else u=p=n;r={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:p,shared:l.shared,callbacks:l.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=n:e.next=n,r.lastBaseUpdate=n}var Rd=!1;function Qi(){if(Rd){var e=Io;if(e!==null)throw e}}function Zi(e,n,r,l){Rd=!1;var u=e.updateQueue;vr=!1;var p=u.firstBaseUpdate,b=u.lastBaseUpdate,A=u.shared.pending;if(A!==null){u.shared.pending=null;var U=A,ee=U.next;U.next=null,b===null?p=ee:b.next=ee,b=U;var re=e.alternate;re!==null&&(re=re.updateQueue,A=re.lastBaseUpdate,A!==b&&(A===null?re.firstBaseUpdate=ee:A.next=ee,re.lastBaseUpdate=U))}if(p!==null){var de=u.baseState;b=0,re=ee=U=null,A=p;do{var ne=A.lane&-536870913,ae=ne!==A.lane;if(ae?(it&ne)===ne:(l&ne)===ne){ne!==0&&ne===Po&&(Rd=!0),re!==null&&(re=re.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Ae=e,Fe=A;ne=n;var Rt=r;switch(Fe.tag){case 1:if(Ae=Fe.payload,typeof Ae=="function"){de=Ae.call(Rt,de,ne);break e}de=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Fe.payload,ne=typeof Ae=="function"?Ae.call(Rt,de,ne):Ae,ne==null)break e;de=x({},de,ne);break e;case 2:vr=!0}}ne=A.callback,ne!==null&&(e.flags|=64,ae&&(e.flags|=8192),ae=u.callbacks,ae===null?u.callbacks=[ne]:ae.push(ne))}else ae={lane:ne,tag:A.tag,payload:A.payload,callback:A.callback,next:null},re===null?(ee=re=ae,U=de):re=re.next=ae,b|=ne;if(A=A.next,A===null){if(A=u.shared.pending,A===null)break;ae=A,A=ae.next,ae.next=null,u.lastBaseUpdate=ae,u.shared.pending=null}}while(!0);re===null&&(U=de),u.baseState=U,u.firstBaseUpdate=ee,u.lastBaseUpdate=re,p===null&&(u.shared.lanes=0),Er|=b,e.lanes=b,e.memoizedState=de}}function Lm(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function $m(e,n){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Lm(r[e],n)}var Vo=E(null),$s=E(0);function _m(e,n){e=tr,Q($s,e),Q(Vo,n),tr=e|n.baseLanes}function jd(){Q($s,tr),Q(Vo,Vo.current)}function Ed(){tr=$s.current,W(Vo),W($s)}var _n=E(null),aa=null;function wr(e){var n=e.alternate;Q(Vt,Vt.current&1),Q(_n,e),aa===null&&(n===null||Vo.current!==null||n.memoizedState!==null)&&(aa=e)}function Md(e){Q(Vt,Vt.current),Q(_n,e),aa===null&&(aa=e)}function Um(e){e.tag===22?(Q(Vt,Vt.current),Q(_n,e),aa===null&&(aa=e)):Tr()}function Tr(){Q(Vt,Vt.current),Q(_n,_n.current)}function Un(e){W(_n),aa===e&&(aa=null),W(Vt)}var Vt=E(0);function _s(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Hf(r)||Nf(r)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ga=0,Ze=null,wt=null,Qt=null,Us=!1,qo=!1,lo=!1,Ps=0,Ji=0,Go=null,z1=0;function Ut(){throw Error(i(321))}function Ad(e,n){if(n===null)return!1;for(var r=0;r<n.length&&r<e.length;r++)if(!Ln(e[r],n[r]))return!1;return!0}function kd(e,n,r,l,u,p){return Ga=p,Ze=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,B.H=e===null||e.memoizedState===null?wg:Vd,lo=!1,p=r(l,u),lo=!1,qo&&(p=Im(n,r,l,u)),Pm(e),p}function Pm(e){B.H=nl;var n=wt!==null&&wt.next!==null;if(Ga=0,Qt=wt=Ze=null,Us=!1,Ji=0,Go=null,n)throw Error(i(300));e===null||Zt||(e=e.dependencies,e!==null&&zs(e)&&(Zt=!0))}function Im(e,n,r,l){Ze=e;var u=0;do{if(qo&&(Go=null),Ji=0,qo=!1,25<=u)throw Error(i(301));if(u+=1,Qt=wt=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}B.H=Tg,p=n(r,l)}while(qo);return p}function O1(){var e=B.H,n=e.useState()[0];return n=typeof n.then=="function"?el(n):n,e=e.useState()[0],(wt!==null?wt.memoizedState:null)!==e&&(Ze.flags|=1024),n}function zd(){var e=Ps!==0;return Ps=0,e}function Od(e,n,r){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~r}function Bd(e){if(Us){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Us=!1}Ga=0,Qt=wt=Ze=null,qo=!1,Ji=Ps=0,Go=null}function Sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?Ze.memoizedState=Qt=e:Qt=Qt.next=e,Qt}function qt(){if(wt===null){var e=Ze.alternate;e=e!==null?e.memoizedState:null}else e=wt.next;var n=Qt===null?Ze.memoizedState:Qt.next;if(n!==null)Qt=n,wt=e;else{if(e===null)throw Ze.alternate===null?Error(i(467)):Error(i(310));wt=e,e={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Qt===null?Ze.memoizedState=Qt=e:Qt=Qt.next=e}return Qt}function Is(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function el(e){var n=Ji;return Ji+=1,Go===null&&(Go=[]),e=Om(Go,e,n),n=Ze,(Qt===null?n.memoizedState:Qt.next)===null&&(n=n.alternate,B.H=n===null||n.memoizedState===null?wg:Vd),e}function Fs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return el(e);if(e.$$typeof===O)return cn(e)}throw Error(i(438,String(e)))}function Dd(e){var n=null,r=Ze.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var l=Ze.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=Is(),Ze.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0)for(r=n.data[n.index]=Array(e),l=0;l<e;l++)r[l]=I;return n.index++,r}function Ya(e,n){return typeof n=="function"?n(e):n}function Ws(e){var n=qt();return Hd(n,wt,e)}function Hd(e,n,r){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var u=e.baseQueue,p=l.pending;if(p!==null){if(u!==null){var b=u.next;u.next=p.next,p.next=b}n.baseQueue=u=p,l.pending=null}if(p=e.baseState,u===null)e.memoizedState=p;else{n=u.next;var A=b=null,U=null,ee=n,re=!1;do{var de=ee.lane&-536870913;if(de!==ee.lane?(it&de)===de:(Ga&de)===de){var ne=ee.revertLane;if(ne===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),de===Po&&(re=!0);else if((Ga&ne)===ne){ee=ee.next,ne===Po&&(re=!0);continue}else de={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(A=U=de,b=p):U=U.next=de,Ze.lanes|=ne,Er|=ne;de=ee.action,lo&&r(p,de),p=ee.hasEagerState?ee.eagerState:r(p,de)}else ne={lane:de,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(A=U=ne,b=p):U=U.next=ne,Ze.lanes|=de,Er|=de;ee=ee.next}while(ee!==null&&ee!==n);if(U===null?b=p:U.next=A,!Ln(p,e.memoizedState)&&(Zt=!0,re&&(r=Io,r!==null)))throw r;e.memoizedState=p,e.baseState=b,e.baseQueue=U,l.lastRenderedState=p}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Nd(e){var n=qt(),r=n.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var l=r.dispatch,u=r.pending,p=n.memoizedState;if(u!==null){r.pending=null;var b=u=u.next;do p=e(p,b.action),b=b.next;while(b!==u);Ln(p,n.memoizedState)||(Zt=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),r.lastRenderedState=p}return[p,l]}function Fm(e,n,r){var l=Ze,u=qt(),p=st;if(p){if(r===void 0)throw Error(i(407));r=r()}else r=n();var b=!Ln((wt||u).memoizedState,r);if(b&&(u.memoizedState=r,Zt=!0),u=u.queue,_d(qm.bind(null,l,u,e),[e]),u.getSnapshot!==n||b||Qt!==null&&Qt.memoizedState.tag&1){if(l.flags|=2048,Yo(9,{destroy:void 0},Vm.bind(null,l,u,r,n),null),Mt===null)throw Error(i(349));p||(Ga&127)!==0||Wm(l,n,r)}return r}function Wm(e,n,r){e.flags|=16384,e={getSnapshot:n,value:r},n=Ze.updateQueue,n===null?(n=Is(),Ze.updateQueue=n,n.stores=[e]):(r=n.stores,r===null?n.stores=[e]:r.push(e))}function Vm(e,n,r,l){n.value=r,n.getSnapshot=l,Gm(n)&&Ym(e)}function qm(e,n,r){return r(function(){Gm(n)&&Ym(e)})}function Gm(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!Ln(e,r)}catch{return!0}}function Ym(e){var n=Zr(e,2);n!==null&&An(n,e,2)}function Ld(e){var n=Sn();if(typeof e=="function"){var r=e;if(e=r(),lo){Bt(!0);try{r()}finally{Bt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:e},n}function Xm(e,n,r,l){return e.baseState=r,Hd(e,wt,typeof l=="function"?l:Ya)}function B1(e,n,r,l,u){if(Gs(e))throw Error(i(485));if(e=n.action,e!==null){var p={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){p.listeners.push(b)}};B.T!==null?r(!0):p.isTransition=!1,l(p),r=n.pending,r===null?(p.next=n.pending=p,Km(n,p)):(p.next=r.next,n.pending=r.next=p)}}function Km(e,n){var r=n.action,l=n.payload,u=e.state;if(n.isTransition){var p=B.T,b={};B.T=b;try{var A=r(u,l),U=B.S;U!==null&&U(b,A),Qm(e,n,A)}catch(ee){$d(e,n,ee)}finally{p!==null&&b.types!==null&&(p.types=b.types),B.T=p}}else try{p=r(u,l),Qm(e,n,p)}catch(ee){$d(e,n,ee)}}function Qm(e,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){Zm(e,n,l)},function(l){return $d(e,n,l)}):Zm(e,n,r)}function Zm(e,n,r){n.status="fulfilled",n.value=r,Jm(n),e.state=r,n=e.pending,n!==null&&(r=n.next,r===n?e.pending=null:(r=r.next,n.next=r,Km(e,r)))}function $d(e,n,r){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=r,Jm(n),n=n.next;while(n!==l)}e.action=null}function Jm(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function eg(e,n){return n}function tg(e,n){if(st){var r=Mt.formState;if(r!==null){e:{var l=Ze;if(st){if(zt){t:{for(var u=zt,p=na;u.nodeType!==8;){if(!p){u=null;break t}if(u=ra(u.nextSibling),u===null){u=null;break t}}p=u.data,u=p==="F!"||p==="F"?u:null}if(u){zt=ra(u.nextSibling),l=u.data==="F!";break e}}br(l)}l=!1}l&&(n=r[0])}}return r=Sn(),r.memoizedState=r.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eg,lastRenderedState:n},r.queue=l,r=vg.bind(null,Ze,l),l.dispatch=r,l=Ld(!1),p=Wd.bind(null,Ze,!1,l.queue),l=Sn(),u={state:n,dispatch:null,action:e,pending:null},l.queue=u,r=B1.bind(null,Ze,u,p,r),u.dispatch=r,l.memoizedState=e,[n,r,!1]}function ng(e){var n=qt();return ag(n,wt,e)}function ag(e,n,r){if(n=Hd(e,n,eg)[0],e=Ws(Ya)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=el(n)}catch(b){throw b===Fo?Ds:b}else l=n;n=qt();var u=n.queue,p=u.dispatch;return r!==n.memoizedState&&(Ze.flags|=2048,Yo(9,{destroy:void 0},D1.bind(null,u,r),null)),[l,p,e]}function D1(e,n){e.action=n}function rg(e){var n=qt(),r=wt;if(r!==null)return ag(n,r,e);qt(),n=n.memoizedState,r=qt();var l=r.queue.dispatch;return r.memoizedState=e,[n,l,!1]}function Yo(e,n,r,l){return e={tag:e,create:r,deps:l,inst:n,next:null},n=Ze.updateQueue,n===null&&(n=Is(),Ze.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,n.lastEffect=e),e}function og(){return qt().memoizedState}function Vs(e,n,r,l){var u=Sn();Ze.flags|=e,u.memoizedState=Yo(1|n,{destroy:void 0},r,l===void 0?null:l)}function qs(e,n,r,l){var u=qt();l=l===void 0?null:l;var p=u.memoizedState.inst;wt!==null&&l!==null&&Ad(l,wt.memoizedState.deps)?u.memoizedState=Yo(n,p,r,l):(Ze.flags|=e,u.memoizedState=Yo(1|n,p,r,l))}function ig(e,n){Vs(8390656,8,e,n)}function _d(e,n){qs(2048,8,e,n)}function H1(e){Ze.flags|=4;var n=Ze.updateQueue;if(n===null)n=Is(),Ze.updateQueue=n,n.events=[e];else{var r=n.events;r===null?n.events=[e]:r.push(e)}}function lg(e){var n=qt().memoizedState;return H1({ref:n,nextImpl:e}),function(){if((ht&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function sg(e,n){return qs(4,2,e,n)}function cg(e,n){return qs(4,4,e,n)}function ug(e,n){if(typeof n=="function"){e=e();var r=n(e);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function dg(e,n,r){r=r!=null?r.concat([e]):null,qs(4,4,ug.bind(null,n,e),r)}function Ud(){}function fg(e,n){var r=qt();n=n===void 0?null:n;var l=r.memoizedState;return n!==null&&Ad(n,l[1])?l[0]:(r.memoizedState=[e,n],e)}function pg(e,n){var r=qt();n=n===void 0?null:n;var l=r.memoizedState;if(n!==null&&Ad(n,l[1]))return l[0];if(l=e(),lo){Bt(!0);try{e()}finally{Bt(!1)}}return r.memoizedState=[l,n],l}function Pd(e,n,r){return r===void 0||(Ga&1073741824)!==0&&(it&261930)===0?e.memoizedState=n:(e.memoizedState=r,e=h0(),Ze.lanes|=e,Er|=e,r)}function hg(e,n,r,l){return Ln(r,n)?r:Vo.current!==null?(e=Pd(e,r,l),Ln(e,n)||(Zt=!0),e):(Ga&42)===0||(Ga&1073741824)!==0&&(it&261930)===0?(Zt=!0,e.memoizedState=r):(e=h0(),Ze.lanes|=e,Er|=e,n)}function mg(e,n,r,l,u){var p=F.p;F.p=p!==0&&8>p?p:8;var b=B.T,A={};B.T=A,Wd(e,!1,n,r);try{var U=u(),ee=B.S;if(ee!==null&&ee(A,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var re=k1(U,l);tl(e,n,re,Fn(e))}else tl(e,n,l,Fn(e))}catch(de){tl(e,n,{then:function(){},status:"rejected",reason:de},Fn())}finally{F.p=p,b!==null&&A.types!==null&&(b.types=A.types),B.T=b}}function N1(){}function Id(e,n,r,l){if(e.tag!==5)throw Error(i(476));var u=gg(e).queue;mg(e,u,n,_,r===null?N1:function(){return yg(e),r(l)})}function gg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:_},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:r},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function yg(e){var n=gg(e);n.next===null&&(n=e.alternate.memoizedState),tl(e,n.next.queue,{},Fn())}function Fd(){return cn(bl)}function bg(){return qt().memoizedState}function xg(){return qt().memoizedState}function L1(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=Fn();e=Sr(r);var l=Cr(n,e,r);l!==null&&(An(l,n,r),Ki(l,n,r)),n={cache:bd()},e.payload=n;return}n=n.return}}function $1(e,n,r){var l=Fn();r={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Gs(e)?Sg(n,r):(r=ld(e,n,r,l),r!==null&&(An(r,e,l),Cg(r,n,l)))}function vg(e,n,r){var l=Fn();tl(e,n,r,l)}function tl(e,n,r,l){var u={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Gs(e))Sg(n,u);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var b=n.lastRenderedState,A=p(b,r);if(u.hasEagerState=!0,u.eagerState=A,Ln(A,b))return Es(e,n,u,0),Mt===null&&js(),!1}catch{}finally{}if(r=ld(e,n,u,l),r!==null)return An(r,e,l),Cg(r,n,l),!0}return!1}function Wd(e,n,r,l){if(l={lane:2,revertLane:wf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Gs(e)){if(n)throw Error(i(479))}else n=ld(e,r,l,2),n!==null&&An(n,e,2)}function Gs(e){var n=e.alternate;return e===Ze||n!==null&&n===Ze}function Sg(e,n){qo=Us=!0;var r=e.pending;r===null?n.next=n:(n.next=r.next,r.next=n),e.pending=n}function Cg(e,n,r){if((r&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,r|=l,n.lanes=r,cs(e,r)}}var nl={readContext:cn,use:Fs,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};nl.useEffectEvent=Ut;var wg={readContext:cn,use:Fs,useCallback:function(e,n){return Sn().memoizedState=[e,n===void 0?null:n],e},useContext:cn,useEffect:ig,useImperativeHandle:function(e,n,r){r=r!=null?r.concat([e]):null,Vs(4194308,4,ug.bind(null,n,e),r)},useLayoutEffect:function(e,n){return Vs(4194308,4,e,n)},useInsertionEffect:function(e,n){Vs(4,2,e,n)},useMemo:function(e,n){var r=Sn();n=n===void 0?null:n;var l=e();if(lo){Bt(!0);try{e()}finally{Bt(!1)}}return r.memoizedState=[l,n],l},useReducer:function(e,n,r){var l=Sn();if(r!==void 0){var u=r(n);if(lo){Bt(!0);try{r(n)}finally{Bt(!1)}}}else u=n;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=$1.bind(null,Ze,e),[l.memoizedState,e]},useRef:function(e){var n=Sn();return e={current:e},n.memoizedState=e},useState:function(e){e=Ld(e);var n=e.queue,r=vg.bind(null,Ze,n);return n.dispatch=r,[e.memoizedState,r]},useDebugValue:Ud,useDeferredValue:function(e,n){var r=Sn();return Pd(r,e,n)},useTransition:function(){var e=Ld(!1);return e=mg.bind(null,Ze,e.queue,!0,!1),Sn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,r){var l=Ze,u=Sn();if(st){if(r===void 0)throw Error(i(407));r=r()}else{if(r=n(),Mt===null)throw Error(i(349));(it&127)!==0||Wm(l,n,r)}u.memoizedState=r;var p={value:r,getSnapshot:n};return u.queue=p,ig(qm.bind(null,l,p,e),[e]),l.flags|=2048,Yo(9,{destroy:void 0},Vm.bind(null,l,p,r,n),null),r},useId:function(){var e=Sn(),n=Mt.identifierPrefix;if(st){var r=Ra,l=Ta;r=(l&~(1<<32-kt(l)-1)).toString(32)+r,n="_"+n+"R_"+r,r=Ps++,0<r&&(n+="H"+r.toString(32)),n+="_"}else r=z1++,n="_"+n+"r_"+r.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Fd,useFormState:tg,useActionState:tg,useOptimistic:function(e){var n=Sn();n.memoizedState=n.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=Wd.bind(null,Ze,!0,r),r.dispatch=n,[e,n]},useMemoCache:Dd,useCacheRefresh:function(){return Sn().memoizedState=L1.bind(null,Ze)},useEffectEvent:function(e){var n=Sn(),r={impl:e};return n.memoizedState=r,function(){if((ht&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}},Vd={readContext:cn,use:Fs,useCallback:fg,useContext:cn,useEffect:_d,useImperativeHandle:dg,useInsertionEffect:sg,useLayoutEffect:cg,useMemo:pg,useReducer:Ws,useRef:og,useState:function(){return Ws(Ya)},useDebugValue:Ud,useDeferredValue:function(e,n){var r=qt();return hg(r,wt.memoizedState,e,n)},useTransition:function(){var e=Ws(Ya)[0],n=qt().memoizedState;return[typeof e=="boolean"?e:el(e),n]},useSyncExternalStore:Fm,useId:bg,useHostTransitionStatus:Fd,useFormState:ng,useActionState:ng,useOptimistic:function(e,n){var r=qt();return Xm(r,wt,e,n)},useMemoCache:Dd,useCacheRefresh:xg};Vd.useEffectEvent=lg;var Tg={readContext:cn,use:Fs,useCallback:fg,useContext:cn,useEffect:_d,useImperativeHandle:dg,useInsertionEffect:sg,useLayoutEffect:cg,useMemo:pg,useReducer:Nd,useRef:og,useState:function(){return Nd(Ya)},useDebugValue:Ud,useDeferredValue:function(e,n){var r=qt();return wt===null?Pd(r,e,n):hg(r,wt.memoizedState,e,n)},useTransition:function(){var e=Nd(Ya)[0],n=qt().memoizedState;return[typeof e=="boolean"?e:el(e),n]},useSyncExternalStore:Fm,useId:bg,useHostTransitionStatus:Fd,useFormState:rg,useActionState:rg,useOptimistic:function(e,n){var r=qt();return wt!==null?Xm(r,wt,e,n):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Dd,useCacheRefresh:xg};Tg.useEffectEvent=lg;function qd(e,n,r,l){n=e.memoizedState,r=r(l,n),r=r==null?n:x({},n,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Gd={enqueueSetState:function(e,n,r){e=e._reactInternals;var l=Fn(),u=Sr(l);u.payload=n,r!=null&&(u.callback=r),n=Cr(e,u,l),n!==null&&(An(n,e,l),Ki(n,e,l))},enqueueReplaceState:function(e,n,r){e=e._reactInternals;var l=Fn(),u=Sr(l);u.tag=1,u.payload=n,r!=null&&(u.callback=r),n=Cr(e,u,l),n!==null&&(An(n,e,l),Ki(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var r=Fn(),l=Sr(r);l.tag=2,n!=null&&(l.callback=n),n=Cr(e,l,r),n!==null&&(An(n,e,r),Ki(n,e,r))}};function Rg(e,n,r,l,u,p,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,p,b):n.prototype&&n.prototype.isPureReactComponent?!Ii(r,l)||!Ii(u,p):!0}function jg(e,n,r,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,l),n.state!==e&&Gd.enqueueReplaceState(n,n.state,null)}function so(e,n){var r=n;if("ref"in n){r={};for(var l in n)l!=="ref"&&(r[l]=n[l])}if(e=e.defaultProps){r===n&&(r=x({},r));for(var u in e)r[u]===void 0&&(r[u]=e[u])}return r}function Eg(e){Rs(e)}function Mg(e){console.error(e)}function Ag(e){Rs(e)}function Ys(e,n){try{var r=e.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function kg(e,n,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Yd(e,n,r){return r=Sr(r),r.tag=3,r.payload={element:null},r.callback=function(){Ys(e,n)},r}function zg(e){return e=Sr(e),e.tag=3,e}function Og(e,n,r,l){var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var p=l.value;e.payload=function(){return u(p)},e.callback=function(){kg(n,r,l)}}var b=r.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){kg(n,r,l),typeof u!="function"&&(Mr===null?Mr=new Set([this]):Mr.add(this));var A=l.stack;this.componentDidCatch(l.value,{componentStack:A!==null?A:""})})}function _1(e,n,r,l,u){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=r.alternate,n!==null&&Uo(n,r,u,!0),r=_n.current,r!==null){switch(r.tag){case 31:case 13:return aa===null?ic():r.alternate===null&&Pt===0&&(Pt=3),r.flags&=-257,r.flags|=65536,r.lanes=u,l===Hs?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([l]):n.add(l),vf(e,l,u)),!1;case 22:return r.flags|=65536,l===Hs?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([l]):r.add(l)),vf(e,l,u)),!1}throw Error(i(435,r.tag))}return vf(e,l,u),ic(),!1}if(st)return n=_n.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,l!==pd&&(e=Error(i(422),{cause:l}),Vi(Jn(e,r)))):(l!==pd&&(n=Error(i(423),{cause:l}),Vi(Jn(n,r))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=Jn(l,r),u=Yd(e.stateNode,l,u),Td(e,u),Pt!==4&&(Pt=2)),!1;var p=Error(i(520),{cause:l});if(p=Jn(p,r),ul===null?ul=[p]:ul.push(p),Pt!==4&&(Pt=2),n===null)return!0;l=Jn(l,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,e=u&-u,r.lanes|=e,e=Yd(r.stateNode,l,e),Td(r,e),!1;case 1:if(n=r.type,p=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Mr===null||!Mr.has(p))))return r.flags|=65536,u&=-u,r.lanes|=u,u=zg(u),Og(u,e,r,l),Td(r,u),!1}r=r.return}while(r!==null);return!1}var Xd=Error(i(461)),Zt=!1;function un(e,n,r,l){n.child=e===null?Nm(n,null,r,l):io(n,e.child,r,l)}function Bg(e,n,r,l,u){r=r.render;var p=n.ref;if("ref"in l){var b={};for(var A in l)A!=="ref"&&(b[A]=l[A])}else b=l;return no(n),l=kd(e,n,r,b,p,u),A=zd(),e!==null&&!Zt?(Od(e,n,u),Xa(e,n,u)):(st&&A&&dd(n),n.flags|=1,un(e,n,l,u),n.child)}function Dg(e,n,r,l,u){if(e===null){var p=r.type;return typeof p=="function"&&!sd(p)&&p.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=p,Hg(e,n,p,l,u)):(e=As(r.type,null,l,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,!af(e,u)){var b=p.memoizedProps;if(r=r.compare,r=r!==null?r:Ii,r(b,l)&&e.ref===n.ref)return Xa(e,n,u)}return n.flags|=1,e=Fa(p,l),e.ref=n.ref,e.return=n,n.child=e}function Hg(e,n,r,l,u){if(e!==null){var p=e.memoizedProps;if(Ii(p,l)&&e.ref===n.ref)if(Zt=!1,n.pendingProps=l=p,af(e,u))(e.flags&131072)!==0&&(Zt=!0);else return n.lanes=e.lanes,Xa(e,n,u)}return Kd(e,n,r,l,u)}function Ng(e,n,r,l){var u=l.children,p=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|r:r,e!==null){for(l=n.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~p}else l=0,n.child=null;return Lg(e,n,p,r,l)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bs(n,p!==null?p.cachePool:null),p!==null?_m(n,p):jd(),Um(n);else return l=n.lanes=536870912,Lg(e,n,p!==null?p.baseLanes|r:r,r,l)}else p!==null?(Bs(n,p.cachePool),_m(n,p),Tr(),n.memoizedState=null):(e!==null&&Bs(n,null),jd(),Tr());return un(e,n,u,r),n.child}function al(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Lg(e,n,r,l,u){var p=vd();return p=p===null?null:{parent:Kt._currentValue,pool:p},n.memoizedState={baseLanes:r,cachePool:p},e!==null&&Bs(n,null),jd(),Um(n),e!==null&&Uo(e,n,l,!0),n.childLanes=u,null}function Xs(e,n){return n=Qs({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function $g(e,n,r){return io(n,e.child,null,r),e=Xs(n,n.pendingProps),e.flags|=2,Un(n),n.memoizedState=null,e}function U1(e,n,r){var l=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(st){if(l.mode==="hidden")return e=Xs(n,l),n.lanes=536870912,al(null,e);if(Md(n),(e=zt)?(e=K0(e,na),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:gr!==null?{id:Ta,overflow:Ra}:null,retryLane:536870912,hydrationErrors:null},r=Sm(e),r.return=n,n.child=r,sn=n,zt=null)):e=null,e===null)throw br(n);return n.lanes=536870912,null}return Xs(n,l)}var p=e.memoizedState;if(p!==null){var b=p.dehydrated;if(Md(n),u)if(n.flags&256)n.flags&=-257,n=$g(e,n,r);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(Zt||Uo(e,n,r,!1),u=(r&e.childLanes)!==0,Zt||u){if(l=Mt,l!==null&&(b=Hu(l,r),b!==0&&b!==p.retryLane))throw p.retryLane=b,Zr(e,b),An(l,e,b),Xd;ic(),n=$g(e,n,r)}else e=p.treeContext,zt=ra(b.nextSibling),sn=n,st=!0,yr=null,na=!1,e!==null&&Tm(n,e),n=Xs(n,l),n.flags|=4096;return n}return e=Fa(e.child,{mode:l.mode,children:l.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Ks(e,n){var r=n.ref;if(r===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(i(284));(e===null||e.ref!==r)&&(n.flags|=4194816)}}function Kd(e,n,r,l,u){return no(n),r=kd(e,n,r,l,void 0,u),l=zd(),e!==null&&!Zt?(Od(e,n,u),Xa(e,n,u)):(st&&l&&dd(n),n.flags|=1,un(e,n,r,u),n.child)}function _g(e,n,r,l,u,p){return no(n),n.updateQueue=null,r=Im(n,l,r,u),Pm(e),l=zd(),e!==null&&!Zt?(Od(e,n,p),Xa(e,n,p)):(st&&l&&dd(n),n.flags|=1,un(e,n,r,p),n.child)}function Ug(e,n,r,l,u){if(no(n),n.stateNode===null){var p=No,b=r.contextType;typeof b=="object"&&b!==null&&(p=cn(b)),p=new r(l,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Gd,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=l,p.state=n.memoizedState,p.refs={},Cd(n),b=r.contextType,p.context=typeof b=="object"&&b!==null?cn(b):No,p.state=n.memoizedState,b=r.getDerivedStateFromProps,typeof b=="function"&&(qd(n,r,b,l),p.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(b=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),b!==p.state&&Gd.enqueueReplaceState(p,p.state,null),Zi(n,l,p,u),Qi(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){p=n.stateNode;var A=n.memoizedProps,U=so(r,A);p.props=U;var ee=p.context,re=r.contextType;b=No,typeof re=="object"&&re!==null&&(b=cn(re));var de=r.getDerivedStateFromProps;re=typeof de=="function"||typeof p.getSnapshotBeforeUpdate=="function",A=n.pendingProps!==A,re||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(A||ee!==b)&&jg(n,p,l,b),vr=!1;var ne=n.memoizedState;p.state=ne,Zi(n,l,p,u),Qi(),ee=n.memoizedState,A||ne!==ee||vr?(typeof de=="function"&&(qd(n,r,de,l),ee=n.memoizedState),(U=vr||Rg(n,r,U,l,ne,ee,b))?(re||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=ee),p.props=l,p.state=ee,p.context=b,l=U):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{p=n.stateNode,wd(e,n),b=n.memoizedProps,re=so(r,b),p.props=re,de=n.pendingProps,ne=p.context,ee=r.contextType,U=No,typeof ee=="object"&&ee!==null&&(U=cn(ee)),A=r.getDerivedStateFromProps,(ee=typeof A=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==de||ne!==U)&&jg(n,p,l,U),vr=!1,ne=n.memoizedState,p.state=ne,Zi(n,l,p,u),Qi();var ae=n.memoizedState;b!==de||ne!==ae||vr||e!==null&&e.dependencies!==null&&zs(e.dependencies)?(typeof A=="function"&&(qd(n,r,A,l),ae=n.memoizedState),(re=vr||Rg(n,r,re,l,ne,ae,U)||e!==null&&e.dependencies!==null&&zs(e.dependencies))?(ee||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(l,ae,U),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(l,ae,U)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||b===e.memoizedProps&&ne===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&ne===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=ae),p.props=l,p.state=ae,p.context=U,l=re):(typeof p.componentDidUpdate!="function"||b===e.memoizedProps&&ne===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&ne===e.memoizedState||(n.flags|=1024),l=!1)}return p=l,Ks(e,n),l=(n.flags&128)!==0,p||l?(p=n.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,e!==null&&l?(n.child=io(n,e.child,null,u),n.child=io(n,null,r,u)):un(e,n,r,u),n.memoizedState=p.state,e=n.child):e=Xa(e,n,u),e}function Pg(e,n,r,l){return eo(),n.flags|=256,un(e,n,r,l),n.child}var Qd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zd(e){return{baseLanes:e,cachePool:km()}}function Jd(e,n,r){return e=e!==null?e.childLanes&~r:0,n&&(e|=In),e}function Ig(e,n,r){var l=n.pendingProps,u=!1,p=(n.flags&128)!==0,b;if((b=p)||(b=e!==null&&e.memoizedState===null?!1:(Vt.current&2)!==0),b&&(u=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(st){if(u?wr(n):Tr(),(e=zt)?(e=K0(e,na),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:gr!==null?{id:Ta,overflow:Ra}:null,retryLane:536870912,hydrationErrors:null},r=Sm(e),r.return=n,n.child=r,sn=n,zt=null)):e=null,e===null)throw br(n);return Nf(e)?n.lanes=32:n.lanes=536870912,null}var A=l.children;return l=l.fallback,u?(Tr(),u=n.mode,A=Qs({mode:"hidden",children:A},u),l=Jr(l,u,r,null),A.return=n,l.return=n,A.sibling=l,n.child=A,l=n.child,l.memoizedState=Zd(r),l.childLanes=Jd(e,b,r),n.memoizedState=Qd,al(null,l)):(wr(n),ef(n,A))}var U=e.memoizedState;if(U!==null&&(A=U.dehydrated,A!==null)){if(p)n.flags&256?(wr(n),n.flags&=-257,n=tf(e,n,r)):n.memoizedState!==null?(Tr(),n.child=e.child,n.flags|=128,n=null):(Tr(),A=l.fallback,u=n.mode,l=Qs({mode:"visible",children:l.children},u),A=Jr(A,u,r,null),A.flags|=2,l.return=n,A.return=n,l.sibling=A,n.child=l,io(n,e.child,null,r),l=n.child,l.memoizedState=Zd(r),l.childLanes=Jd(e,b,r),n.memoizedState=Qd,n=al(null,l));else if(wr(n),Nf(A)){if(b=A.nextSibling&&A.nextSibling.dataset,b)var ee=b.dgst;b=ee,l=Error(i(419)),l.stack="",l.digest=b,Vi({value:l,source:null,stack:null}),n=tf(e,n,r)}else if(Zt||Uo(e,n,r,!1),b=(r&e.childLanes)!==0,Zt||b){if(b=Mt,b!==null&&(l=Hu(b,r),l!==0&&l!==U.retryLane))throw U.retryLane=l,Zr(e,l),An(b,e,l),Xd;Hf(A)||ic(),n=tf(e,n,r)}else Hf(A)?(n.flags|=192,n.child=e.child,n=null):(e=U.treeContext,zt=ra(A.nextSibling),sn=n,st=!0,yr=null,na=!1,e!==null&&Tm(n,e),n=ef(n,l.children),n.flags|=4096);return n}return u?(Tr(),A=l.fallback,u=n.mode,U=e.child,ee=U.sibling,l=Fa(U,{mode:"hidden",children:l.children}),l.subtreeFlags=U.subtreeFlags&65011712,ee!==null?A=Fa(ee,A):(A=Jr(A,u,r,null),A.flags|=2),A.return=n,l.return=n,l.sibling=A,n.child=l,al(null,l),l=n.child,A=e.child.memoizedState,A===null?A=Zd(r):(u=A.cachePool,u!==null?(U=Kt._currentValue,u=u.parent!==U?{parent:U,pool:U}:u):u=km(),A={baseLanes:A.baseLanes|r,cachePool:u}),l.memoizedState=A,l.childLanes=Jd(e,b,r),n.memoizedState=Qd,al(e.child,l)):(wr(n),r=e.child,e=r.sibling,r=Fa(r,{mode:"visible",children:l.children}),r.return=n,r.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=r,n.memoizedState=null,r)}function ef(e,n){return n=Qs({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Qs(e,n){return e=$n(22,e,null,n),e.lanes=0,e}function tf(e,n,r){return io(n,e.child,null,r),e=ef(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Fg(e,n,r){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),gd(e.return,n,r)}function nf(e,n,r,l,u,p){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:u,treeForkCount:p}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=l,b.tail=r,b.tailMode=u,b.treeForkCount=p)}function Wg(e,n,r){var l=n.pendingProps,u=l.revealOrder,p=l.tail;l=l.children;var b=Vt.current,A=(b&2)!==0;if(A?(b=b&1|2,n.flags|=128):b&=1,Q(Vt,b),un(e,n,l,r),l=st?Wi:0,!A&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fg(e,r,n);else if(e.tag===19)Fg(e,r,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(r=n.child,u=null;r!==null;)e=r.alternate,e!==null&&_s(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=n.child,n.child=null):(u=r.sibling,r.sibling=null),nf(n,!1,u,r,p,l);break;case"backwards":case"unstable_legacy-backwards":for(r=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&_s(e)===null){n.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}nf(n,!0,r,null,p,l);break;case"together":nf(n,!1,null,null,void 0,l);break;default:n.memoizedState=null}return n.child}function Xa(e,n,r){if(e!==null&&(n.dependencies=e.dependencies),Er|=n.lanes,(r&n.childLanes)===0)if(e!==null){if(Uo(e,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,r=Fa(e,e.pendingProps),n.child=r,r.return=n;e.sibling!==null;)e=e.sibling,r=r.sibling=Fa(e,e.pendingProps),r.return=n;r.sibling=null}return n.child}function af(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&zs(e)))}function P1(e,n,r){switch(n.tag){case 3:le(n,n.stateNode.containerInfo),xr(n,Kt,e.memoizedState.cache),eo();break;case 27:case 5:we(n);break;case 4:le(n,n.stateNode.containerInfo);break;case 10:xr(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Md(n),null;break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(wr(n),n.flags|=128,null):(r&n.child.childLanes)!==0?Ig(e,n,r):(wr(n),e=Xa(e,n,r),e!==null?e.sibling:null);wr(n);break;case 19:var u=(e.flags&128)!==0;if(l=(r&n.childLanes)!==0,l||(Uo(e,n,r,!1),l=(r&n.childLanes)!==0),u){if(l)return Wg(e,n,r);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Q(Vt,Vt.current),l)break;return null;case 22:return n.lanes=0,Ng(e,n,r,n.pendingProps);case 24:xr(n,Kt,e.memoizedState.cache)}return Xa(e,n,r)}function Vg(e,n,r){if(e!==null)if(e.memoizedProps!==n.pendingProps)Zt=!0;else{if(!af(e,r)&&(n.flags&128)===0)return Zt=!1,P1(e,n,r);Zt=(e.flags&131072)!==0}else Zt=!1,st&&(n.flags&1048576)!==0&&wm(n,Wi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var l=n.pendingProps;if(e=ro(n.elementType),n.type=e,typeof e=="function")sd(e)?(l=so(e,l),n.tag=1,n=Ug(null,n,e,l,r)):(n.tag=0,n=Kd(null,n,e,l,r));else{if(e!=null){var u=e.$$typeof;if(u===j){n.tag=11,n=Bg(null,n,e,l,r);break e}else if(u===N){n.tag=14,n=Dg(null,n,e,l,r);break e}}throw n=P(e)||e,Error(i(306,n,""))}}return n;case 0:return Kd(e,n,n.type,n.pendingProps,r);case 1:return l=n.type,u=so(l,n.pendingProps),Ug(e,n,l,u,r);case 3:e:{if(le(n,n.stateNode.containerInfo),e===null)throw Error(i(387));l=n.pendingProps;var p=n.memoizedState;u=p.element,wd(e,n),Zi(n,l,null,r);var b=n.memoizedState;if(l=b.cache,xr(n,Kt,l),l!==p.cache&&yd(n,[Kt],r,!0),Qi(),l=b.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=Pg(e,n,l,r);break e}else if(l!==u){u=Jn(Error(i(424)),n),Vi(u),n=Pg(e,n,l,r);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(zt=ra(e.firstChild),sn=n,st=!0,yr=null,na=!0,r=Nm(n,null,l,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(eo(),l===u){n=Xa(e,n,r);break e}un(e,n,l,r)}n=n.child}return n;case 26:return Ks(e,n),e===null?(r=ny(n.type,null,n.pendingProps,null))?n.memoizedState=r:st||(r=n.type,e=n.pendingProps,l=pc(pe.current).createElement(r),l[Yt]=n,l[mn]=e,dn(l,r,e),Xt(l),n.stateNode=l):n.memoizedState=ny(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return we(n),e===null&&st&&(l=n.stateNode=J0(n.type,n.pendingProps,pe.current),sn=n,na=!0,u=zt,Or(n.type)?(Lf=u,zt=ra(l.firstChild)):zt=u),un(e,n,n.pendingProps.children,r),Ks(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&st&&((u=l=zt)&&(l=yS(l,n.type,n.pendingProps,na),l!==null?(n.stateNode=l,sn=n,zt=ra(l.firstChild),na=!1,u=!0):u=!1),u||br(n)),we(n),u=n.type,p=n.pendingProps,b=e!==null?e.memoizedProps:null,l=p.children,Of(u,p)?l=null:b!==null&&Of(u,b)&&(n.flags|=32),n.memoizedState!==null&&(u=kd(e,n,O1,null,null,r),bl._currentValue=u),Ks(e,n),un(e,n,l,r),n.child;case 6:return e===null&&st&&((e=r=zt)&&(r=bS(r,n.pendingProps,na),r!==null?(n.stateNode=r,sn=n,zt=null,e=!0):e=!1),e||br(n)),null;case 13:return Ig(e,n,r);case 4:return le(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=io(n,null,l,r):un(e,n,l,r),n.child;case 11:return Bg(e,n,n.type,n.pendingProps,r);case 7:return un(e,n,n.pendingProps,r),n.child;case 8:return un(e,n,n.pendingProps.children,r),n.child;case 12:return un(e,n,n.pendingProps.children,r),n.child;case 10:return l=n.pendingProps,xr(n,n.type,l.value),un(e,n,l.children,r),n.child;case 9:return u=n.type._context,l=n.pendingProps.children,no(n),u=cn(u),l=l(u),n.flags|=1,un(e,n,l,r),n.child;case 14:return Dg(e,n,n.type,n.pendingProps,r);case 15:return Hg(e,n,n.type,n.pendingProps,r);case 19:return Wg(e,n,r);case 31:return U1(e,n,r);case 22:return Ng(e,n,r,n.pendingProps);case 24:return no(n),l=cn(Kt),e===null?(u=vd(),u===null&&(u=Mt,p=bd(),u.pooledCache=p,p.refCount++,p!==null&&(u.pooledCacheLanes|=r),u=p),n.memoizedState={parent:l,cache:u},Cd(n),xr(n,Kt,u)):((e.lanes&r)!==0&&(wd(e,n),Zi(n,null,null,r),Qi()),u=e.memoizedState,p=n.memoizedState,u.parent!==l?(u={parent:l,cache:l},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),xr(n,Kt,l)):(l=p.cache,xr(n,Kt,l),l!==u.cache&&yd(n,[Kt],r,!0))),un(e,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function Ka(e){e.flags|=4}function rf(e,n,r,l,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(b0())e.flags|=8192;else throw oo=Hs,Sd}else e.flags&=-16777217}function qg(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ly(n))if(b0())e.flags|=8192;else throw oo=Hs,Sd}function Zs(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?We():536870912,e.lanes|=n,Zo|=n)}function rl(e,n){if(!st)switch(e.tailMode){case"hidden":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ot(e){var n=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(n)for(var u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=r,n}function I1(e,n,r){var l=n.pendingProps;switch(fd(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(n),null;case 1:return Ot(n),null;case 3:return r=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),qa(Kt),ve(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(_o(n)?Ka(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,hd())),Ot(n),null;case 26:var u=n.type,p=n.memoizedState;return e===null?(Ka(n),p!==null?(Ot(n),qg(n,p)):(Ot(n),rf(n,u,null,l,r))):p?p!==e.memoizedState?(Ka(n),Ot(n),qg(n,p)):(Ot(n),n.flags&=-16777217):(e=e.memoizedProps,e!==l&&Ka(n),Ot(n),rf(n,u,e,l,r)),null;case 27:if(je(n),r=pe.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&Ka(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Ot(n),null}e=ie.current,_o(n)?Rm(n):(e=J0(u,l,r),n.stateNode=e,Ka(n))}return Ot(n),null;case 5:if(je(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&Ka(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Ot(n),null}if(p=ie.current,_o(n))Rm(n);else{var b=pc(pe.current);switch(p){case 1:p=b.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:p=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":p=b.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":p=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":p=b.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof l.is=="string"?b.createElement("select",{is:l.is}):b.createElement("select"),l.multiple?p.multiple=!0:l.size&&(p.size=l.size);break;default:p=typeof l.is=="string"?b.createElement(u,{is:l.is}):b.createElement(u)}}p[Yt]=n,p[mn]=l;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)p.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=p;e:switch(dn(p,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ka(n)}}return Ot(n),rf(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,r),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&Ka(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(i(166));if(e=pe.current,_o(n)){if(e=n.stateNode,r=n.memoizedProps,l=null,u=sn,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[Yt]=n,e=!!(e.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||I0(e.nodeValue,r)),e||br(n,!0)}else e=pc(e).createTextNode(l),e[Yt]=n,n.stateNode=e}return Ot(n),null;case 31:if(r=n.memoizedState,e===null||e.memoizedState!==null){if(l=_o(n),r!==null){if(e===null){if(!l)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[Yt]=n}else eo(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ot(n),e=!1}else r=hd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return n.flags&256?(Un(n),n):(Un(n),null);if((n.flags&128)!==0)throw Error(i(558))}return Ot(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=_o(n),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[Yt]=n}else eo(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ot(n),u=!1}else u=hd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(Un(n),n):(Un(n),null)}return Un(n),(n.flags&128)!==0?(n.lanes=r,n):(r=l!==null,e=e!==null&&e.memoizedState!==null,r&&(l=n.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==u&&(l.flags|=2048)),r!==e&&r&&(n.child.flags|=8192),Zs(n,n.updateQueue),Ot(n),null);case 4:return ve(),e===null&&Ef(n.stateNode.containerInfo),Ot(n),null;case 10:return qa(n.type),Ot(n),null;case 19:if(W(Vt),l=n.memoizedState,l===null)return Ot(n),null;if(u=(n.flags&128)!==0,p=l.rendering,p===null)if(u)rl(l,!1);else{if(Pt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=_s(e),p!==null){for(n.flags|=128,rl(l,!1),e=p.updateQueue,n.updateQueue=e,Zs(n,e),n.subtreeFlags=0,e=r,r=n.child;r!==null;)vm(r,e),r=r.sibling;return Q(Vt,Vt.current&1|2),st&&Wa(n,l.treeForkCount),n.child}e=e.sibling}l.tail!==null&&Te()>ac&&(n.flags|=128,u=!0,rl(l,!1),n.lanes=4194304)}else{if(!u)if(e=_s(p),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,Zs(n,e),rl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!p.alternate&&!st)return Ot(n),null}else 2*Te()-l.renderingStartTime>ac&&r!==536870912&&(n.flags|=128,u=!0,rl(l,!1),n.lanes=4194304);l.isBackwards?(p.sibling=n.child,n.child=p):(e=l.last,e!==null?e.sibling=p:n.child=p,l.last=p)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Te(),e.sibling=null,r=Vt.current,Q(Vt,u?r&1|2:r&1),st&&Wa(n,l.treeForkCount),e):(Ot(n),null);case 22:case 23:return Un(n),Ed(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(r&536870912)!==0&&(n.flags&128)===0&&(Ot(n),n.subtreeFlags&6&&(n.flags|=8192)):Ot(n),r=n.updateQueue,r!==null&&Zs(n,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==r&&(n.flags|=2048),e!==null&&W(ao),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),qa(Kt),Ot(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function F1(e,n){switch(fd(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return qa(Kt),ve(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return je(n),null;case 31:if(n.memoizedState!==null){if(Un(n),n.alternate===null)throw Error(i(340));eo()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Un(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));eo()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return W(Vt),null;case 4:return ve(),null;case 10:return qa(n.type),null;case 22:case 23:return Un(n),Ed(),e!==null&&W(ao),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return qa(Kt),null;case 25:return null;default:return null}}function Gg(e,n){switch(fd(n),n.tag){case 3:qa(Kt),ve();break;case 26:case 27:case 5:je(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&Un(n);break;case 13:Un(n);break;case 19:W(Vt);break;case 10:qa(n.type);break;case 22:case 23:Un(n),Ed(),e!==null&&W(ao);break;case 24:qa(Kt)}}function ol(e,n){try{var r=n.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var u=l.next;r=u;do{if((r.tag&e)===e){l=void 0;var p=r.create,b=r.inst;l=p(),b.destroy=l}r=r.next}while(r!==u)}}catch(A){xt(n,n.return,A)}}function Rr(e,n,r){try{var l=n.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var p=u.next;l=p;do{if((l.tag&e)===e){var b=l.inst,A=b.destroy;if(A!==void 0){b.destroy=void 0,u=n;var U=r,ee=A;try{ee()}catch(re){xt(u,U,re)}}}l=l.next}while(l!==p)}}catch(re){xt(n,n.return,re)}}function Yg(e){var n=e.updateQueue;if(n!==null){var r=e.stateNode;try{$m(n,r)}catch(l){xt(e,e.return,l)}}}function Xg(e,n,r){r.props=so(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(l){xt(e,n,l)}}function il(e,n){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof r=="function"?e.refCleanup=r(l):r.current=l}}catch(u){xt(e,n,u)}}function ja(e,n){var r=e.ref,l=e.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(u){xt(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(u){xt(e,n,u)}else r.current=null}function Kg(e){var n=e.type,r=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(u){xt(e,e.return,u)}}function of(e,n,r){try{var l=e.stateNode;dS(l,e.type,r,n),l[mn]=n}catch(u){xt(e,e.return,u)}}function Qg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Or(e.type)||e.tag===4}function lf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Or(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sf(e,n,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,n):(n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(e),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=Pa));else if(l!==4&&(l===27&&Or(e.type)&&(r=e.stateNode,n=null),e=e.child,e!==null))for(sf(e,n,r),e=e.sibling;e!==null;)sf(e,n,r),e=e.sibling}function Js(e,n,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?r.insertBefore(e,n):r.appendChild(e);else if(l!==4&&(l===27&&Or(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Js(e,n,r),e=e.sibling;e!==null;)Js(e,n,r),e=e.sibling}function Zg(e){var n=e.stateNode,r=e.memoizedProps;try{for(var l=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);dn(n,l,r),n[Yt]=e,n[mn]=r}catch(p){xt(e,e.return,p)}}var Qa=!1,Jt=!1,cf=!1,Jg=typeof WeakSet=="function"?WeakSet:Set,on=null;function W1(e,n){if(e=e.containerInfo,kf=vc,e=dm(e),td(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var u=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{r.nodeType,p.nodeType}catch{r=null;break e}var b=0,A=-1,U=-1,ee=0,re=0,de=e,ne=null;t:for(;;){for(var ae;de!==r||u!==0&&de.nodeType!==3||(A=b+u),de!==p||l!==0&&de.nodeType!==3||(U=b+l),de.nodeType===3&&(b+=de.nodeValue.length),(ae=de.firstChild)!==null;)ne=de,de=ae;for(;;){if(de===e)break t;if(ne===r&&++ee===u&&(A=b),ne===p&&++re===l&&(U=b),(ae=de.nextSibling)!==null)break;de=ne,ne=de.parentNode}de=ae}r=A===-1||U===-1?null:{start:A,end:U}}else r=null}r=r||{start:0,end:0}}else r=null;for(zf={focusedElem:e,selectionRange:r},vc=!1,on=n;on!==null;)if(n=on,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,on=e;else for(;on!==null;){switch(n=on,p=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)u=e[r],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,r=n,u=p.memoizedProps,p=p.memoizedState,l=r.stateNode;try{var Ae=so(r.type,u);e=l.getSnapshotBeforeUpdate(Ae,p),l.__reactInternalSnapshotBeforeUpdate=e}catch(Fe){xt(r,r.return,Fe)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,r=e.nodeType,r===9)Df(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Df(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=n.sibling,e!==null){e.return=n.return,on=e;break}on=n.return}}function e0(e,n,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:Ja(e,r),l&4&&ol(5,r);break;case 1:if(Ja(e,r),l&4)if(e=r.stateNode,n===null)try{e.componentDidMount()}catch(b){xt(r,r.return,b)}else{var u=so(r.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){xt(r,r.return,b)}}l&64&&Yg(r),l&512&&il(r,r.return);break;case 3:if(Ja(e,r),l&64&&(e=r.updateQueue,e!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{$m(e,n)}catch(b){xt(r,r.return,b)}}break;case 27:n===null&&l&4&&Zg(r);case 26:case 5:Ja(e,r),n===null&&l&4&&Kg(r),l&512&&il(r,r.return);break;case 12:Ja(e,r);break;case 31:Ja(e,r),l&4&&a0(e,r);break;case 13:Ja(e,r),l&4&&r0(e,r),l&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=J1.bind(null,r),xS(e,r))));break;case 22:if(l=r.memoizedState!==null||Qa,!l){n=n!==null&&n.memoizedState!==null||Jt,u=Qa;var p=Jt;Qa=l,(Jt=n)&&!p?er(e,r,(r.subtreeFlags&8772)!==0):Ja(e,r),Qa=u,Jt=p}break;case 30:break;default:Ja(e,r)}}function t0(e){var n=e.alternate;n!==null&&(e.alternate=null,t0(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Di(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Dt=null,Rn=!1;function Za(e,n,r){for(r=r.child;r!==null;)n0(e,n,r),r=r.sibling}function n0(e,n,r){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(Ne,r)}catch{}switch(r.tag){case 26:Jt||ja(r,n),Za(e,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Jt||ja(r,n);var l=Dt,u=Rn;Or(r.type)&&(Dt=r.stateNode,Rn=!1),Za(e,n,r),ml(r.stateNode),Dt=l,Rn=u;break;case 5:Jt||ja(r,n);case 6:if(l=Dt,u=Rn,Dt=null,Za(e,n,r),Dt=l,Rn=u,Dt!==null)if(Rn)try{(Dt.nodeType===9?Dt.body:Dt.nodeName==="HTML"?Dt.ownerDocument.body:Dt).removeChild(r.stateNode)}catch(p){xt(r,n,p)}else try{Dt.removeChild(r.stateNode)}catch(p){xt(r,n,p)}break;case 18:Dt!==null&&(Rn?(e=Dt,Y0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),ii(e)):Y0(Dt,r.stateNode));break;case 4:l=Dt,u=Rn,Dt=r.stateNode.containerInfo,Rn=!0,Za(e,n,r),Dt=l,Rn=u;break;case 0:case 11:case 14:case 15:Rr(2,r,n),Jt||Rr(4,r,n),Za(e,n,r);break;case 1:Jt||(ja(r,n),l=r.stateNode,typeof l.componentWillUnmount=="function"&&Xg(r,n,l)),Za(e,n,r);break;case 21:Za(e,n,r);break;case 22:Jt=(l=Jt)||r.memoizedState!==null,Za(e,n,r),Jt=l;break;default:Za(e,n,r)}}function a0(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ii(e)}catch(r){xt(n,n.return,r)}}}function r0(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ii(e)}catch(r){xt(n,n.return,r)}}function V1(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Jg),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Jg),n;default:throw Error(i(435,e.tag))}}function ec(e,n){var r=V1(e);n.forEach(function(l){if(!r.has(l)){r.add(l);var u=eS.bind(null,e,l);l.then(u,u)}})}function jn(e,n){var r=n.deletions;if(r!==null)for(var l=0;l<r.length;l++){var u=r[l],p=e,b=n,A=b;e:for(;A!==null;){switch(A.tag){case 27:if(Or(A.type)){Dt=A.stateNode,Rn=!1;break e}break;case 5:Dt=A.stateNode,Rn=!1;break e;case 3:case 4:Dt=A.stateNode.containerInfo,Rn=!0;break e}A=A.return}if(Dt===null)throw Error(i(160));n0(p,b,u),Dt=null,Rn=!1,p=u.alternate,p!==null&&(p.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)o0(n,e),n=n.sibling}var ga=null;function o0(e,n){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jn(n,e),En(e),l&4&&(Rr(3,e,e.return),ol(3,e),Rr(5,e,e.return));break;case 1:jn(n,e),En(e),l&512&&(Jt||r===null||ja(r,r.return)),l&64&&Qa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var u=ga;if(jn(n,e),En(e),l&512&&(Jt||r===null||ja(r,r.return)),l&4){var p=r!==null?r.memoizedState:null;if(l=e.memoizedState,r===null)if(l===null)if(e.stateNode===null){e:{l=e.type,r=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":p=u.getElementsByTagName("title")[0],(!p||p[Gr]||p[Yt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=u.createElement(l),u.head.insertBefore(p,u.querySelector("head > title"))),dn(p,l,r),p[Yt]=e,Xt(p),l=p;break e;case"link":var b=oy("link","href",u).get(l+(r.href||""));if(b){for(var A=0;A<b.length;A++)if(p=b[A],p.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&p.getAttribute("rel")===(r.rel==null?null:r.rel)&&p.getAttribute("title")===(r.title==null?null:r.title)&&p.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){b.splice(A,1);break t}}p=u.createElement(l),dn(p,l,r),u.head.appendChild(p);break;case"meta":if(b=oy("meta","content",u).get(l+(r.content||""))){for(A=0;A<b.length;A++)if(p=b[A],p.getAttribute("content")===(r.content==null?null:""+r.content)&&p.getAttribute("name")===(r.name==null?null:r.name)&&p.getAttribute("property")===(r.property==null?null:r.property)&&p.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&p.getAttribute("charset")===(r.charSet==null?null:r.charSet)){b.splice(A,1);break t}}p=u.createElement(l),dn(p,l,r),u.head.appendChild(p);break;default:throw Error(i(468,l))}p[Yt]=e,Xt(p),l=p}e.stateNode=l}else iy(u,e.type,e.stateNode);else e.stateNode=ry(u,l,e.memoizedProps);else p!==l?(p===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):p.count--,l===null?iy(u,e.type,e.stateNode):ry(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&of(e,e.memoizedProps,r.memoizedProps)}break;case 27:jn(n,e),En(e),l&512&&(Jt||r===null||ja(r,r.return)),r!==null&&l&4&&of(e,e.memoizedProps,r.memoizedProps);break;case 5:if(jn(n,e),En(e),l&512&&(Jt||r===null||ja(r,r.return)),e.flags&32){u=e.stateNode;try{Ao(u,"")}catch(Ae){xt(e,e.return,Ae)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,of(e,u,r!==null?r.memoizedProps:u)),l&1024&&(cf=!0);break;case 6:if(jn(n,e),En(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,r=e.stateNode;try{r.nodeValue=l}catch(Ae){xt(e,e.return,Ae)}}break;case 3:if(gc=null,u=ga,ga=hc(n.containerInfo),jn(n,e),ga=u,En(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{ii(n.containerInfo)}catch(Ae){xt(e,e.return,Ae)}cf&&(cf=!1,i0(e));break;case 4:l=ga,ga=hc(e.stateNode.containerInfo),jn(n,e),En(e),ga=l;break;case 12:jn(n,e),En(e);break;case 31:jn(n,e),En(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ec(e,l)));break;case 13:jn(n,e),En(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(nc=Te()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ec(e,l)));break;case 22:u=e.memoizedState!==null;var U=r!==null&&r.memoizedState!==null,ee=Qa,re=Jt;if(Qa=ee||u,Jt=re||U,jn(n,e),Jt=re,Qa=ee,En(e),l&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(r===null||U||Qa||Jt||co(e)),r=null,n=e;;){if(n.tag===5||n.tag===26){if(r===null){U=r=n;try{if(p=U.stateNode,u)b=p.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{A=U.stateNode;var de=U.memoizedProps.style,ne=de!=null&&de.hasOwnProperty("display")?de.display:null;A.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Ae){xt(U,U.return,Ae)}}}else if(n.tag===6){if(r===null){U=n;try{U.stateNode.nodeValue=u?"":U.memoizedProps}catch(Ae){xt(U,U.return,Ae)}}}else if(n.tag===18){if(r===null){U=n;try{var ae=U.stateNode;u?X0(ae,!0):X0(U.stateNode,!1)}catch(Ae){xt(U,U.return,Ae)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;r===n&&(r=null),n=n.return}r===n&&(r=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,ec(e,r))));break;case 19:jn(n,e),En(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ec(e,l)));break;case 30:break;case 21:break;default:jn(n,e),En(e)}}function En(e){var n=e.flags;if(n&2){try{for(var r,l=e.return;l!==null;){if(Qg(l)){r=l;break}l=l.return}if(r==null)throw Error(i(160));switch(r.tag){case 27:var u=r.stateNode,p=lf(e);Js(e,p,u);break;case 5:var b=r.stateNode;r.flags&32&&(Ao(b,""),r.flags&=-33);var A=lf(e);Js(e,A,b);break;case 3:case 4:var U=r.stateNode.containerInfo,ee=lf(e);sf(e,ee,U);break;default:throw Error(i(161))}}catch(re){xt(e,e.return,re)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function i0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;i0(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Ja(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)e0(e,n.alternate,n),n=n.sibling}function co(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Rr(4,n,n.return),co(n);break;case 1:ja(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&Xg(n,n.return,r),co(n);break;case 27:ml(n.stateNode);case 26:case 5:ja(n,n.return),co(n);break;case 22:n.memoizedState===null&&co(n);break;case 30:co(n);break;default:co(n)}e=e.sibling}}function er(e,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,u=e,p=n,b=p.flags;switch(p.tag){case 0:case 11:case 15:er(u,p,r),ol(4,p);break;case 1:if(er(u,p,r),l=p,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(ee){xt(l,l.return,ee)}if(l=p,u=l.updateQueue,u!==null){var A=l.stateNode;try{var U=u.shared.hiddenCallbacks;if(U!==null)for(u.shared.hiddenCallbacks=null,u=0;u<U.length;u++)Lm(U[u],A)}catch(ee){xt(l,l.return,ee)}}r&&b&64&&Yg(p),il(p,p.return);break;case 27:Zg(p);case 26:case 5:er(u,p,r),r&&l===null&&b&4&&Kg(p),il(p,p.return);break;case 12:er(u,p,r);break;case 31:er(u,p,r),r&&b&4&&a0(u,p);break;case 13:er(u,p,r),r&&b&4&&r0(u,p);break;case 22:p.memoizedState===null&&er(u,p,r),il(p,p.return);break;case 30:break;default:er(u,p,r)}n=n.sibling}}function uf(e,n){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&qi(r))}function df(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&qi(e))}function ya(e,n,r,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)l0(e,n,r,l),n=n.sibling}function l0(e,n,r,l){var u=n.flags;switch(n.tag){case 0:case 11:case 15:ya(e,n,r,l),u&2048&&ol(9,n);break;case 1:ya(e,n,r,l);break;case 3:ya(e,n,r,l),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&qi(e)));break;case 12:if(u&2048){ya(e,n,r,l),e=n.stateNode;try{var p=n.memoizedProps,b=p.id,A=p.onPostCommit;typeof A=="function"&&A(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(U){xt(n,n.return,U)}}else ya(e,n,r,l);break;case 31:ya(e,n,r,l);break;case 13:ya(e,n,r,l);break;case 23:break;case 22:p=n.stateNode,b=n.alternate,n.memoizedState!==null?p._visibility&2?ya(e,n,r,l):ll(e,n):p._visibility&2?ya(e,n,r,l):(p._visibility|=2,Xo(e,n,r,l,(n.subtreeFlags&10256)!==0||!1)),u&2048&&uf(b,n);break;case 24:ya(e,n,r,l),u&2048&&df(n.alternate,n);break;default:ya(e,n,r,l)}}function Xo(e,n,r,l,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=e,b=n,A=r,U=l,ee=b.flags;switch(b.tag){case 0:case 11:case 15:Xo(p,b,A,U,u),ol(8,b);break;case 23:break;case 22:var re=b.stateNode;b.memoizedState!==null?re._visibility&2?Xo(p,b,A,U,u):ll(p,b):(re._visibility|=2,Xo(p,b,A,U,u)),u&&ee&2048&&uf(b.alternate,b);break;case 24:Xo(p,b,A,U,u),u&&ee&2048&&df(b.alternate,b);break;default:Xo(p,b,A,U,u)}n=n.sibling}}function ll(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var r=e,l=n,u=l.flags;switch(l.tag){case 22:ll(r,l),u&2048&&uf(l.alternate,l);break;case 24:ll(r,l),u&2048&&df(l.alternate,l);break;default:ll(r,l)}n=n.sibling}}var sl=8192;function Ko(e,n,r){if(e.subtreeFlags&sl)for(e=e.child;e!==null;)s0(e,n,r),e=e.sibling}function s0(e,n,r){switch(e.tag){case 26:Ko(e,n,r),e.flags&sl&&e.memoizedState!==null&&zS(r,ga,e.memoizedState,e.memoizedProps);break;case 5:Ko(e,n,r);break;case 3:case 4:var l=ga;ga=hc(e.stateNode.containerInfo),Ko(e,n,r),ga=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=sl,sl=16777216,Ko(e,n,r),sl=l):Ko(e,n,r));break;default:Ko(e,n,r)}}function c0(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function cl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];on=l,d0(l,e)}c0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)u0(e),e=e.sibling}function u0(e){switch(e.tag){case 0:case 11:case 15:cl(e),e.flags&2048&&Rr(9,e,e.return);break;case 3:cl(e);break;case 12:cl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,tc(e)):cl(e);break;default:cl(e)}}function tc(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];on=l,d0(l,e)}c0(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Rr(8,n,n.return),tc(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,tc(n));break;default:tc(n)}e=e.sibling}}function d0(e,n){for(;on!==null;){var r=on;switch(r.tag){case 0:case 11:case 15:Rr(8,r,n);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:qi(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,on=l;else e:for(r=e;on!==null;){l=on;var u=l.sibling,p=l.return;if(t0(l),l===r){on=null;break e}if(u!==null){u.return=p,on=u;break e}on=p}}}var q1={getCacheForType:function(e){var n=cn(Kt),r=n.data.get(e);return r===void 0&&(r=e(),n.data.set(e,r)),r},cacheSignal:function(){return cn(Kt).controller.signal}},G1=typeof WeakMap=="function"?WeakMap:Map,ht=0,Mt=null,rt=null,it=0,bt=0,Pn=null,jr=!1,Qo=!1,ff=!1,tr=0,Pt=0,Er=0,uo=0,pf=0,In=0,Zo=0,ul=null,Mn=null,hf=!1,nc=0,f0=0,ac=1/0,rc=null,Mr=null,nn=0,Ar=null,Jo=null,nr=0,mf=0,gf=null,p0=null,dl=0,yf=null;function Fn(){return(ht&2)!==0&&it!==0?it&-it:B.T!==null?wf():us()}function h0(){if(In===0)if((it&536870912)===0||st){var e=Nn;Nn<<=1,(Nn&3932160)===0&&(Nn=262144),In=e}else In=536870912;return e=_n.current,e!==null&&(e.flags|=32),In}function An(e,n,r){(e===Mt&&(bt===2||bt===9)||e.cancelPendingCommit!==null)&&(ei(e,0),kr(e,it,In,!1)),hn(e,r),((ht&2)===0||e!==Mt)&&(e===Mt&&((ht&2)===0&&(uo|=r),Pt===4&&kr(e,it,In,!1)),Ea(e))}function m0(e,n,r){if((ht&6)!==0)throw Error(i(327));var l=!r&&(n&127)===0&&(n&e.expiredLanes)===0||ut(e,n),u=l?K1(e,n):xf(e,n,!0),p=l;do{if(u===0){Qo&&!l&&kr(e,n,0,!1);break}else{if(r=e.current.alternate,p&&!Y1(r)){u=xf(e,n,!1),p=!1;continue}if(u===2){if(p=n,e.errorRecoveryDisabledLanes&p)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var A=e;u=ul;var U=A.current.memoizedState.isDehydrated;if(U&&(ei(A,b).flags|=256),b=xf(A,b,!1),b!==2){if(ff&&!U){A.errorRecoveryDisabledLanes|=p,uo|=p,u=4;break e}p=Mn,Mn=u,p!==null&&(Mn===null?Mn=p:Mn.push.apply(Mn,p))}u=b}if(p=!1,u!==2)continue}}if(u===1){ei(e,0),kr(e,n,0,!0);break}e:{switch(l=e,p=u,p){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:kr(l,n,In,!jr);break e;case 2:Mn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(u=nc+300-Te(),10<u)){if(kr(l,n,In,!jr),$e(l,0,!0)!==0)break e;nr=n,l.timeoutHandle=q0(g0.bind(null,l,r,Mn,rc,hf,n,In,uo,Zo,jr,p,"Throttled",-0,0),u);break e}g0(l,r,Mn,rc,hf,n,In,uo,Zo,jr,p,null,-0,0)}}break}while(!0);Ea(e)}function g0(e,n,r,l,u,p,b,A,U,ee,re,de,ne,ae){if(e.timeoutHandle=-1,de=n.subtreeFlags,de&8192||(de&16785408)===16785408){de={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pa},s0(n,p,de);var Ae=(p&62914560)===p?nc-Te():(p&4194048)===p?f0-Te():0;if(Ae=OS(de,Ae),Ae!==null){nr=p,e.cancelPendingCommit=Ae(T0.bind(null,e,n,p,r,l,u,b,A,U,re,de,null,ne,ae)),kr(e,p,b,!ee);return}}T0(e,n,p,r,l,u,b,A,U)}function Y1(e){for(var n=e;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var u=r[l],p=u.getSnapshot;u=u.value;try{if(!Ln(p(),u))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function kr(e,n,r,l){n&=~pf,n&=~uo,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var u=n;0<u;){var p=31-kt(u),b=1<<p;l[p]=-1,u&=~b}r!==0&&ss(e,r,n)}function oc(){return(ht&6)===0?(fl(0),!1):!0}function bf(){if(rt!==null){if(bt===0)var e=rt.return;else e=rt,Va=to=null,Bd(e),Wo=null,Yi=0,e=rt;for(;e!==null;)Gg(e.alternate,e),e=e.return;rt=null}}function ei(e,n){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,hS(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),nr=0,bf(),Mt=e,rt=r=Fa(e.current,null),it=n,bt=0,Pn=null,jr=!1,Qo=ut(e,n),ff=!1,Zo=In=pf=uo=Er=Pt=0,Mn=ul=null,hf=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var u=31-kt(l),p=1<<u;n|=e[u],l&=~p}return tr=n,js(),r}function y0(e,n){Ze=null,B.H=nl,n===Fo||n===Ds?(n=Bm(),bt=3):n===Sd?(n=Bm(),bt=4):bt=n===Xd?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Pn=n,rt===null&&(Pt=1,Ys(e,Jn(n,e.current)))}function b0(){var e=_n.current;return e===null?!0:(it&4194048)===it?aa===null:(it&62914560)===it||(it&536870912)!==0?e===aa:!1}function x0(){var e=B.H;return B.H=nl,e===null?nl:e}function v0(){var e=B.A;return B.A=q1,e}function ic(){Pt=4,jr||(it&4194048)!==it&&_n.current!==null||(Qo=!0),(Er&134217727)===0&&(uo&134217727)===0||Mt===null||kr(Mt,it,In,!1)}function xf(e,n,r){var l=ht;ht|=2;var u=x0(),p=v0();(Mt!==e||it!==n)&&(rc=null,ei(e,n)),n=!1;var b=Pt;e:do try{if(bt!==0&&rt!==null){var A=rt,U=Pn;switch(bt){case 8:bf(),b=6;break e;case 3:case 2:case 9:case 6:_n.current===null&&(n=!0);var ee=bt;if(bt=0,Pn=null,ti(e,A,U,ee),r&&Qo){b=0;break e}break;default:ee=bt,bt=0,Pn=null,ti(e,A,U,ee)}}X1(),b=Pt;break}catch(re){y0(e,re)}while(!0);return n&&e.shellSuspendCounter++,Va=to=null,ht=l,B.H=u,B.A=p,rt===null&&(Mt=null,it=0,js()),b}function X1(){for(;rt!==null;)S0(rt)}function K1(e,n){var r=ht;ht|=2;var l=x0(),u=v0();Mt!==e||it!==n?(rc=null,ac=Te()+500,ei(e,n)):Qo=ut(e,n);e:do try{if(bt!==0&&rt!==null){n=rt;var p=Pn;t:switch(bt){case 1:bt=0,Pn=null,ti(e,n,p,1);break;case 2:case 9:if(zm(p)){bt=0,Pn=null,C0(n);break}n=function(){bt!==2&&bt!==9||Mt!==e||(bt=7),Ea(e)},p.then(n,n);break e;case 3:bt=7;break e;case 4:bt=5;break e;case 7:zm(p)?(bt=0,Pn=null,C0(n)):(bt=0,Pn=null,ti(e,n,p,7));break;case 5:var b=null;switch(rt.tag){case 26:b=rt.memoizedState;case 5:case 27:var A=rt;if(b?ly(b):A.stateNode.complete){bt=0,Pn=null;var U=A.sibling;if(U!==null)rt=U;else{var ee=A.return;ee!==null?(rt=ee,lc(ee)):rt=null}break t}}bt=0,Pn=null,ti(e,n,p,5);break;case 6:bt=0,Pn=null,ti(e,n,p,6);break;case 8:bf(),Pt=6;break e;default:throw Error(i(462))}}Q1();break}catch(re){y0(e,re)}while(!0);return Va=to=null,B.H=l,B.A=u,ht=r,rt!==null?0:(Mt=null,it=0,js(),Pt)}function Q1(){for(;rt!==null&&!Ce();)S0(rt)}function S0(e){var n=Vg(e.alternate,e,tr);e.memoizedProps=e.pendingProps,n===null?lc(e):rt=n}function C0(e){var n=e,r=n.alternate;switch(n.tag){case 15:case 0:n=_g(r,n,n.pendingProps,n.type,void 0,it);break;case 11:n=_g(r,n,n.pendingProps,n.type.render,n.ref,it);break;case 5:Bd(n);default:Gg(r,n),n=rt=vm(n,tr),n=Vg(r,n,tr)}e.memoizedProps=e.pendingProps,n===null?lc(e):rt=n}function ti(e,n,r,l){Va=to=null,Bd(n),Wo=null,Yi=0;var u=n.return;try{if(_1(e,u,n,r,it)){Pt=1,Ys(e,Jn(r,e.current)),rt=null;return}}catch(p){if(u!==null)throw rt=u,p;Pt=1,Ys(e,Jn(r,e.current)),rt=null;return}n.flags&32768?(st||l===1?e=!0:Qo||(it&536870912)!==0?e=!1:(jr=e=!0,(l===2||l===9||l===3||l===6)&&(l=_n.current,l!==null&&l.tag===13&&(l.flags|=16384))),w0(n,e)):lc(n)}function lc(e){var n=e;do{if((n.flags&32768)!==0){w0(n,jr);return}e=n.return;var r=I1(n.alternate,n,tr);if(r!==null){rt=r;return}if(n=n.sibling,n!==null){rt=n;return}rt=n=e}while(n!==null);Pt===0&&(Pt=5)}function w0(e,n){do{var r=F1(e.alternate,e);if(r!==null){r.flags&=32767,rt=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(e=e.sibling,e!==null)){rt=e;return}rt=e=r}while(e!==null);Pt=6,rt=null}function T0(e,n,r,l,u,p,b,A,U){e.cancelPendingCommit=null;do sc();while(nn!==0);if((ht&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(p=n.lanes|n.childLanes,p|=id,Du(e,r,p,b,A,U),e===Mt&&(rt=Mt=null,it=0),Jo=n,Ar=e,nr=r,mf=p,gf=u,p0=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tS(ze,function(){return A0(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=B.T,B.T=null,u=F.p,F.p=2,b=ht,ht|=4;try{W1(e,n,r)}finally{ht=b,F.p=u,B.T=l}}nn=1,R0(),j0(),E0()}}function R0(){if(nn===1){nn=0;var e=Ar,n=Jo,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=B.T,B.T=null;var l=F.p;F.p=2;var u=ht;ht|=4;try{o0(n,e);var p=zf,b=dm(e.containerInfo),A=p.focusedElem,U=p.selectionRange;if(b!==A&&A&&A.ownerDocument&&um(A.ownerDocument.documentElement,A)){if(U!==null&&td(A)){var ee=U.start,re=U.end;if(re===void 0&&(re=ee),"selectionStart"in A)A.selectionStart=ee,A.selectionEnd=Math.min(re,A.value.length);else{var de=A.ownerDocument||document,ne=de&&de.defaultView||window;if(ne.getSelection){var ae=ne.getSelection(),Ae=A.textContent.length,Fe=Math.min(U.start,Ae),Rt=U.end===void 0?Fe:Math.min(U.end,Ae);!ae.extend&&Fe>Rt&&(b=Rt,Rt=Fe,Fe=b);var K=cm(A,Fe),G=cm(A,Rt);if(K&&G&&(ae.rangeCount!==1||ae.anchorNode!==K.node||ae.anchorOffset!==K.offset||ae.focusNode!==G.node||ae.focusOffset!==G.offset)){var Z=de.createRange();Z.setStart(K.node,K.offset),ae.removeAllRanges(),Fe>Rt?(ae.addRange(Z),ae.extend(G.node,G.offset)):(Z.setEnd(G.node,G.offset),ae.addRange(Z))}}}}for(de=[],ae=A;ae=ae.parentNode;)ae.nodeType===1&&de.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<de.length;A++){var se=de[A];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}vc=!!kf,zf=kf=null}finally{ht=u,F.p=l,B.T=r}}e.current=n,nn=2}}function j0(){if(nn===2){nn=0;var e=Ar,n=Jo,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=B.T,B.T=null;var l=F.p;F.p=2;var u=ht;ht|=4;try{e0(e,n.alternate,n)}finally{ht=u,F.p=l,B.T=r}}nn=3}}function E0(){if(nn===4||nn===3){nn=0,ct();var e=Ar,n=Jo,r=nr,l=p0;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?nn=5:(nn=0,Jo=Ar=null,M0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Mr=null),Bi(r),n=n.stateNode,Oe&&typeof Oe.onCommitFiberRoot=="function")try{Oe.onCommitFiberRoot(Ne,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=B.T,u=F.p,F.p=2,B.T=null;try{for(var p=e.onRecoverableError,b=0;b<l.length;b++){var A=l[b];p(A.value,{componentStack:A.stack})}}finally{B.T=n,F.p=u}}(nr&3)!==0&&sc(),Ea(e),u=e.pendingLanes,(r&261930)!==0&&(u&42)!==0?e===yf?dl++:(dl=0,yf=e):dl=0,fl(0)}}function M0(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,qi(n)))}function sc(){return R0(),j0(),E0(),A0()}function A0(){if(nn!==5)return!1;var e=Ar,n=mf;mf=0;var r=Bi(nr),l=B.T,u=F.p;try{F.p=32>r?32:r,B.T=null,r=gf,gf=null;var p=Ar,b=nr;if(nn=0,Jo=Ar=null,nr=0,(ht&6)!==0)throw Error(i(331));var A=ht;if(ht|=4,u0(p.current),l0(p,p.current,b,r),ht=A,fl(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(Ne,p)}catch{}return!0}finally{F.p=u,B.T=l,M0(e,n)}}function k0(e,n,r){n=Jn(r,n),n=Yd(e.stateNode,n,2),e=Cr(e,n,2),e!==null&&(hn(e,2),Ea(e))}function xt(e,n,r){if(e.tag===3)k0(e,e,r);else for(;n!==null;){if(n.tag===3){k0(n,e,r);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Mr===null||!Mr.has(l))){e=Jn(r,e),r=zg(2),l=Cr(n,r,2),l!==null&&(Og(r,l,n,e),hn(l,2),Ea(l));break}}n=n.return}}function vf(e,n,r){var l=e.pingCache;if(l===null){l=e.pingCache=new G1;var u=new Set;l.set(n,u)}else u=l.get(n),u===void 0&&(u=new Set,l.set(n,u));u.has(r)||(ff=!0,u.add(r),e=Z1.bind(null,e,n,r),n.then(e,e))}function Z1(e,n,r){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Mt===e&&(it&r)===r&&(Pt===4||Pt===3&&(it&62914560)===it&&300>Te()-nc?(ht&2)===0&&ei(e,0):pf|=r,Zo===it&&(Zo=0)),Ea(e)}function z0(e,n){n===0&&(n=We()),e=Zr(e,n),e!==null&&(hn(e,n),Ea(e))}function J1(e){var n=e.memoizedState,r=0;n!==null&&(r=n.retryLane),z0(e,r)}function eS(e,n){var r=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(r=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(n),z0(e,r)}function tS(e,n){return Ye(e,n)}var cc=null,ni=null,Sf=!1,uc=!1,Cf=!1,zr=0;function Ea(e){e!==ni&&e.next===null&&(ni===null?cc=ni=e:ni=ni.next=e),uc=!0,Sf||(Sf=!0,aS())}function fl(e,n){if(!Cf&&uc){Cf=!0;do for(var r=!1,l=cc;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var p=0;else{var b=l.suspendedLanes,A=l.pingedLanes;p=(1<<31-kt(42|e)+1)-1,p&=u&~(b&~A),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(r=!0,H0(l,p))}else p=it,p=$e(l,l===Mt?p:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(p&3)===0||ut(l,p)||(r=!0,H0(l,p));l=l.next}while(r);Cf=!1}}function nS(){O0()}function O0(){uc=Sf=!1;var e=0;zr!==0&&pS()&&(e=zr);for(var n=Te(),r=null,l=cc;l!==null;){var u=l.next,p=B0(l,n);p===0?(l.next=null,r===null?cc=u:r.next=u,u===null&&(ni=r)):(r=l,(e!==0||(p&3)!==0)&&(uc=!0)),l=u}nn!==0&&nn!==5||fl(e),zr!==0&&(zr=0)}function B0(e,n){for(var r=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var b=31-kt(p),A=1<<b,U=u[b];U===-1?((A&r)===0||(A&l)!==0)&&(u[b]=$t(A,n)):U<=n&&(e.expiredLanes|=A),p&=~A}if(n=Mt,r=it,r=$e(e,e===n?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,r===0||e===n&&(bt===2||bt===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Ve(l),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||ut(e,r)){if(n=r&-r,n===e.callbackPriority)return n;switch(l!==null&&Ve(l),Bi(r)){case 2:case 8:r=Re;break;case 32:r=ze;break;case 268435456:r=Se;break;default:r=ze}return l=D0.bind(null,e),r=Ye(r,l),e.callbackPriority=n,e.callbackNode=r,n}return l!==null&&l!==null&&Ve(l),e.callbackPriority=2,e.callbackNode=null,2}function D0(e,n){if(nn!==0&&nn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(sc()&&e.callbackNode!==r)return null;var l=it;return l=$e(e,e===Mt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(m0(e,l,n),B0(e,Te()),e.callbackNode!=null&&e.callbackNode===r?D0.bind(null,e):null)}function H0(e,n){if(sc())return null;m0(e,n,!0)}function aS(){mS(function(){(ht&6)!==0?Ye(he,nS):O0()})}function wf(){if(zr===0){var e=Po;e===0&&(e=vn,vn<<=1,(vn&261888)===0&&(vn=256)),zr=e}return zr}function N0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bs(""+e)}function L0(e,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,e.id&&r.setAttribute("form",e.id),n.parentNode.insertBefore(r,n),e=new FormData(e),r.parentNode.removeChild(r),e}function rS(e,n,r,l,u){if(n==="submit"&&r&&r.stateNode===u){var p=N0((u[mn]||null).action),b=l.submitter;b&&(n=(n=b[mn]||null)?N0(n.formAction):b.getAttribute("formAction"),n!==null&&(p=n,b=null));var A=new Cs("action","action",null,l,u);e.push({event:A,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(zr!==0){var U=b?L0(u,b):new FormData(u);Id(r,{pending:!0,data:U,method:u.method,action:p},null,U)}}else typeof p=="function"&&(A.preventDefault(),U=b?L0(u,b):new FormData(u),Id(r,{pending:!0,data:U,method:u.method,action:p},p,U))},currentTarget:u}]})}}for(var Tf=0;Tf<od.length;Tf++){var Rf=od[Tf],oS=Rf.toLowerCase(),iS=Rf[0].toUpperCase()+Rf.slice(1);ma(oS,"on"+iS)}ma(hm,"onAnimationEnd"),ma(mm,"onAnimationIteration"),ma(gm,"onAnimationStart"),ma("dblclick","onDoubleClick"),ma("focusin","onFocus"),ma("focusout","onBlur"),ma(C1,"onTransitionRun"),ma(w1,"onTransitionStart"),ma(T1,"onTransitionCancel"),ma(ym,"onTransitionEnd"),hr("onMouseEnter",["mouseout","mouseover"]),hr("onMouseLeave",["mouseout","mouseover"]),hr("onPointerEnter",["pointerout","pointerover"]),hr("onPointerLeave",["pointerout","pointerover"]),Ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),lS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pl));function $0(e,n){n=(n&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],u=l.event;l=l.listeners;e:{var p=void 0;if(n)for(var b=l.length-1;0<=b;b--){var A=l[b],U=A.instance,ee=A.currentTarget;if(A=A.listener,U!==p&&u.isPropagationStopped())break e;p=A,u.currentTarget=ee;try{p(u)}catch(re){Rs(re)}u.currentTarget=null,p=U}else for(b=0;b<l.length;b++){if(A=l[b],U=A.instance,ee=A.currentTarget,A=A.listener,U!==p&&u.isPropagationStopped())break e;p=A,u.currentTarget=ee;try{p(u)}catch(re){Rs(re)}u.currentTarget=null,p=U}}}}function ot(e,n){var r=n[ur];r===void 0&&(r=n[ur]=new Set);var l=e+"__bubble";r.has(l)||(_0(n,e,2,!1),r.add(l))}function jf(e,n,r){var l=0;n&&(l|=4),_0(r,e,l,n)}var dc="_reactListening"+Math.random().toString(36).slice(2);function Ef(e){if(!e[dc]){e[dc]=!0,ps.forEach(function(r){r!=="selectionchange"&&(lS.has(r)||jf(r,!1,e),jf(r,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[dc]||(n[dc]=!0,jf("selectionchange",!1,n))}}function _0(e,n,r,l){switch(hy(n)){case 2:var u=HS;break;case 8:u=NS;break;default:u=If}r=u.bind(null,n,r,e),u=void 0,!qu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(n,r,{capture:!0,passive:u}):e.addEventListener(n,r,!0):u!==void 0?e.addEventListener(n,r,{passive:u}):e.addEventListener(n,r,!1)}function Mf(e,n,r,l,u){var p=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var A=l.stateNode.containerInfo;if(A===u)break;if(b===4)for(b=l.return;b!==null;){var U=b.tag;if((U===3||U===4)&&b.stateNode.containerInfo===u)return;b=b.return}for(;A!==null;){if(b=dr(A),b===null)return;if(U=b.tag,U===5||U===6||U===26||U===27){l=p=b;continue e}A=A.parentNode}}l=l.return}Wh(function(){var ee=p,re=Wu(r),de=[];e:{var ne=bm.get(e);if(ne!==void 0){var ae=Cs,Ae=e;switch(e){case"keypress":if(vs(r)===0)break e;case"keydown":case"keyup":ae=e1;break;case"focusin":Ae="focus",ae=Ku;break;case"focusout":Ae="blur",ae=Ku;break;case"beforeblur":case"afterblur":ae=Ku;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=Gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=Iv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=a1;break;case hm:case mm:case gm:ae=Vv;break;case ym:ae=o1;break;case"scroll":case"scrollend":ae=Uv;break;case"wheel":ae=l1;break;case"copy":case"cut":case"paste":ae=Gv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=Xh;break;case"toggle":case"beforetoggle":ae=c1}var Fe=(n&4)!==0,Rt=!Fe&&(e==="scroll"||e==="scrollend"),K=Fe?ne!==null?ne+"Capture":null:ne;Fe=[];for(var G=ee,Z;G!==null;){var se=G;if(Z=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||Z===null||K===null||(se=Hi(G,K),se!=null&&Fe.push(hl(G,se,Z))),Rt)break;G=G.return}0<Fe.length&&(ne=new ae(ne,Ae,null,r,re),de.push({event:ne,listeners:Fe}))}}if((n&7)===0){e:{if(ne=e==="mouseover"||e==="pointerover",ae=e==="mouseout"||e==="pointerout",ne&&r!==Fu&&(Ae=r.relatedTarget||r.fromElement)&&(dr(Ae)||Ae[_a]))break e;if((ae||ne)&&(ne=re.window===re?re:(ne=re.ownerDocument)?ne.defaultView||ne.parentWindow:window,ae?(Ae=r.relatedTarget||r.toElement,ae=ee,Ae=Ae?dr(Ae):null,Ae!==null&&(Rt=c(Ae),Fe=Ae.tag,Ae!==Rt||Fe!==5&&Fe!==27&&Fe!==6)&&(Ae=null)):(ae=null,Ae=ee),ae!==Ae)){if(Fe=Gh,se="onMouseLeave",K="onMouseEnter",G="mouse",(e==="pointerout"||e==="pointerover")&&(Fe=Xh,se="onPointerLeave",K="onPointerEnter",G="pointer"),Rt=ae==null?ne:Yr(ae),Z=Ae==null?ne:Yr(Ae),ne=new Fe(se,G+"leave",ae,r,re),ne.target=Rt,ne.relatedTarget=Z,se=null,dr(re)===ee&&(Fe=new Fe(K,G+"enter",Ae,r,re),Fe.target=Z,Fe.relatedTarget=Rt,se=Fe),Rt=se,ae&&Ae)t:{for(Fe=sS,K=ae,G=Ae,Z=0,se=K;se;se=Fe(se))Z++;se=0;for(var Ue=G;Ue;Ue=Fe(Ue))se++;for(;0<Z-se;)K=Fe(K),Z--;for(;0<se-Z;)G=Fe(G),se--;for(;Z--;){if(K===G||G!==null&&K===G.alternate){Fe=K;break t}K=Fe(K),G=Fe(G)}Fe=null}else Fe=null;ae!==null&&U0(de,ne,ae,Fe,!1),Ae!==null&&Rt!==null&&U0(de,Rt,Ae,Fe,!0)}}e:{if(ne=ee?Yr(ee):window,ae=ne.nodeName&&ne.nodeName.toLowerCase(),ae==="select"||ae==="input"&&ne.type==="file")var ft=am;else if(tm(ne))if(rm)ft=x1;else{ft=y1;var Be=g1}else ae=ne.nodeName,!ae||ae.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&Iu(ee.elementType)&&(ft=am):ft=b1;if(ft&&(ft=ft(e,ee))){nm(de,ft,r,re);break e}Be&&Be(e,ne,ee),e==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&Pu(ne,"number",ne.value)}switch(Be=ee?Yr(ee):window,e){case"focusin":(tm(Be)||Be.contentEditable==="true")&&(Bo=Be,nd=ee,Fi=null);break;case"focusout":Fi=nd=Bo=null;break;case"mousedown":ad=!0;break;case"contextmenu":case"mouseup":case"dragend":ad=!1,fm(de,r,re);break;case"selectionchange":if(S1)break;case"keydown":case"keyup":fm(de,r,re)}var Je;if(Zu)e:{switch(e){case"compositionstart":var lt="onCompositionStart";break e;case"compositionend":lt="onCompositionEnd";break e;case"compositionupdate":lt="onCompositionUpdate";break e}lt=void 0}else Oo?Jh(e,r)&&(lt="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(lt="onCompositionStart");lt&&(Kh&&r.locale!=="ko"&&(Oo||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&Oo&&(Je=Vh()):(mr=re,Gu="value"in mr?mr.value:mr.textContent,Oo=!0)),Be=fc(ee,lt),0<Be.length&&(lt=new Yh(lt,e,null,r,re),de.push({event:lt,listeners:Be}),Je?lt.data=Je:(Je=em(r),Je!==null&&(lt.data=Je)))),(Je=d1?f1(e,r):p1(e,r))&&(lt=fc(ee,"onBeforeInput"),0<lt.length&&(Be=new Yh("onBeforeInput","beforeinput",null,r,re),de.push({event:Be,listeners:lt}),Be.data=Je)),rS(de,e,ee,r,re)}$0(de,n)})}function hl(e,n,r){return{instance:e,listener:n,currentTarget:r}}function fc(e,n){for(var r=n+"Capture",l=[];e!==null;){var u=e,p=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||p===null||(u=Hi(e,r),u!=null&&l.unshift(hl(e,u,p)),u=Hi(e,n),u!=null&&l.push(hl(e,u,p))),e.tag===3)return l;e=e.return}return[]}function sS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function U0(e,n,r,l,u){for(var p=n._reactName,b=[];r!==null&&r!==l;){var A=r,U=A.alternate,ee=A.stateNode;if(A=A.tag,U!==null&&U===l)break;A!==5&&A!==26&&A!==27||ee===null||(U=ee,u?(ee=Hi(r,p),ee!=null&&b.unshift(hl(r,ee,U))):u||(ee=Hi(r,p),ee!=null&&b.push(hl(r,ee,U)))),r=r.return}b.length!==0&&e.push({event:n,listeners:b})}var cS=/\r\n?/g,uS=/\u0000|\uFFFD/g;function P0(e){return(typeof e=="string"?e:""+e).replace(cS,`
|
|
49
|
+
`).replace(uS,"")}function I0(e,n){return n=P0(n),P0(e)===n}function Tt(e,n,r,l,u,p){switch(r){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Ao(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Ao(e,""+l);break;case"className":Eo(e,"class",l);break;case"tabIndex":Eo(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Eo(e,r,l);break;case"style":Ih(e,l,p);break;case"data":if(n!=="object"){Eo(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||r!=="href")){e.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=bs(""+l),e.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(r==="formAction"?(n!=="input"&&Tt(e,n,"name",u.name,u,null),Tt(e,n,"formEncType",u.formEncType,u,null),Tt(e,n,"formMethod",u.formMethod,u,null),Tt(e,n,"formTarget",u.formTarget,u,null)):(Tt(e,n,"encType",u.encType,u,null),Tt(e,n,"method",u.method,u,null),Tt(e,n,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=bs(""+l),e.setAttribute(r,l);break;case"onClick":l!=null&&(e.onclick=Pa);break;case"onScroll":l!=null&&ot("scroll",e);break;case"onScrollEnd":l!=null&&ot("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(r=l.__html,r!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=r}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}r=bs(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""+l):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":l===!0?e.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,l):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(r,l):e.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(r):e.setAttribute(r,l);break;case"popover":ot("beforetoggle",e),ot("toggle",e),jo(e,"popover",l);break;case"xlinkActuate":Ct(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ct(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ct(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ct(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ct(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ct(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ct(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ct(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ct(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":jo(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=$v.get(r)||r,jo(e,r,l))}}function Af(e,n,r,l,u,p){switch(r){case"style":Ih(e,l,p);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(r=l.__html,r!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=r}}break;case"children":typeof l=="string"?Ao(e,l):(typeof l=="number"||typeof l=="bigint")&&Ao(e,""+l);break;case"onScroll":l!=null&&ot("scroll",e);break;case"onScrollEnd":l!=null&&ot("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Pa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hs.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(u=r.endsWith("Capture"),n=r.slice(2,u?r.length-7:void 0),p=e[mn]||null,p=p!=null?p[r]:null,typeof p=="function"&&e.removeEventListener(n,p,u),typeof l=="function")){typeof p!="function"&&p!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(n,l,u);break e}r in e?e[r]=l:l===!0?e.setAttribute(r,""):jo(e,r,l)}}}function dn(e,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ot("error",e),ot("load",e);var l=!1,u=!1,p;for(p in r)if(r.hasOwnProperty(p)){var b=r[p];if(b!=null)switch(p){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Tt(e,n,p,b,r,null)}}u&&Tt(e,n,"srcSet",r.srcSet,r,null),l&&Tt(e,n,"src",r.src,r,null);return;case"input":ot("invalid",e);var A=p=b=u=null,U=null,ee=null;for(l in r)if(r.hasOwnProperty(l)){var re=r[l];if(re!=null)switch(l){case"name":u=re;break;case"type":b=re;break;case"checked":U=re;break;case"defaultChecked":ee=re;break;case"value":p=re;break;case"defaultValue":A=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,n));break;default:Tt(e,n,l,re,r,null)}}$h(e,p,A,U,ee,b,u,!1);return;case"select":ot("invalid",e),l=b=p=null;for(u in r)if(r.hasOwnProperty(u)&&(A=r[u],A!=null))switch(u){case"value":p=A;break;case"defaultValue":b=A;break;case"multiple":l=A;default:Tt(e,n,u,A,r,null)}n=p,r=b,e.multiple=!!l,n!=null?Mo(e,!!l,n,!1):r!=null&&Mo(e,!!l,r,!0);return;case"textarea":ot("invalid",e),p=u=l=null;for(b in r)if(r.hasOwnProperty(b)&&(A=r[b],A!=null))switch(b){case"value":l=A;break;case"defaultValue":u=A;break;case"children":p=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(i(91));break;default:Tt(e,n,b,A,r,null)}Uh(e,l,u,p);return;case"option":for(U in r)if(r.hasOwnProperty(U)&&(l=r[U],l!=null))switch(U){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Tt(e,n,U,l,r,null)}return;case"dialog":ot("beforetoggle",e),ot("toggle",e),ot("cancel",e),ot("close",e);break;case"iframe":case"object":ot("load",e);break;case"video":case"audio":for(l=0;l<pl.length;l++)ot(pl[l],e);break;case"image":ot("error",e),ot("load",e);break;case"details":ot("toggle",e);break;case"embed":case"source":case"link":ot("error",e),ot("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in r)if(r.hasOwnProperty(ee)&&(l=r[ee],l!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Tt(e,n,ee,l,r,null)}return;default:if(Iu(n)){for(re in r)r.hasOwnProperty(re)&&(l=r[re],l!==void 0&&Af(e,n,re,l,r,void 0));return}}for(A in r)r.hasOwnProperty(A)&&(l=r[A],l!=null&&Tt(e,n,A,l,r,null))}function dS(e,n,r,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,p=null,b=null,A=null,U=null,ee=null,re=null;for(ae in r){var de=r[ae];if(r.hasOwnProperty(ae)&&de!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":U=de;default:l.hasOwnProperty(ae)||Tt(e,n,ae,null,l,de)}}for(var ne in l){var ae=l[ne];if(de=r[ne],l.hasOwnProperty(ne)&&(ae!=null||de!=null))switch(ne){case"type":p=ae;break;case"name":u=ae;break;case"checked":ee=ae;break;case"defaultChecked":re=ae;break;case"value":b=ae;break;case"defaultValue":A=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,n));break;default:ae!==de&&Tt(e,n,ne,ae,l,de)}}Uu(e,b,A,U,ee,re,p,u);return;case"select":ae=b=A=ne=null;for(p in r)if(U=r[p],r.hasOwnProperty(p)&&U!=null)switch(p){case"value":break;case"multiple":ae=U;default:l.hasOwnProperty(p)||Tt(e,n,p,null,l,U)}for(u in l)if(p=l[u],U=r[u],l.hasOwnProperty(u)&&(p!=null||U!=null))switch(u){case"value":ne=p;break;case"defaultValue":A=p;break;case"multiple":b=p;default:p!==U&&Tt(e,n,u,p,l,U)}n=A,r=b,l=ae,ne!=null?Mo(e,!!r,ne,!1):!!l!=!!r&&(n!=null?Mo(e,!!r,n,!0):Mo(e,!!r,r?[]:"",!1));return;case"textarea":ae=ne=null;for(A in r)if(u=r[A],r.hasOwnProperty(A)&&u!=null&&!l.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Tt(e,n,A,null,l,u)}for(b in l)if(u=l[b],p=r[b],l.hasOwnProperty(b)&&(u!=null||p!=null))switch(b){case"value":ne=u;break;case"defaultValue":ae=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(i(91));break;default:u!==p&&Tt(e,n,b,u,l,p)}_h(e,ne,ae);return;case"option":for(var Ae in r)if(ne=r[Ae],r.hasOwnProperty(Ae)&&ne!=null&&!l.hasOwnProperty(Ae))switch(Ae){case"selected":e.selected=!1;break;default:Tt(e,n,Ae,null,l,ne)}for(U in l)if(ne=l[U],ae=r[U],l.hasOwnProperty(U)&&ne!==ae&&(ne!=null||ae!=null))switch(U){case"selected":e.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:Tt(e,n,U,ne,l,ae)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Fe in r)ne=r[Fe],r.hasOwnProperty(Fe)&&ne!=null&&!l.hasOwnProperty(Fe)&&Tt(e,n,Fe,null,l,ne);for(ee in l)if(ne=l[ee],ae=r[ee],l.hasOwnProperty(ee)&&ne!==ae&&(ne!=null||ae!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,n));break;default:Tt(e,n,ee,ne,l,ae)}return;default:if(Iu(n)){for(var Rt in r)ne=r[Rt],r.hasOwnProperty(Rt)&&ne!==void 0&&!l.hasOwnProperty(Rt)&&Af(e,n,Rt,void 0,l,ne);for(re in l)ne=l[re],ae=r[re],!l.hasOwnProperty(re)||ne===ae||ne===void 0&&ae===void 0||Af(e,n,re,ne,l,ae);return}}for(var K in r)ne=r[K],r.hasOwnProperty(K)&&ne!=null&&!l.hasOwnProperty(K)&&Tt(e,n,K,null,l,ne);for(de in l)ne=l[de],ae=r[de],!l.hasOwnProperty(de)||ne===ae||ne==null&&ae==null||Tt(e,n,de,ne,l,ae)}function F0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,r=performance.getEntriesByType("resource"),l=0;l<r.length;l++){var u=r[l],p=u.transferSize,b=u.initiatorType,A=u.duration;if(p&&A&&F0(b)){for(b=0,A=u.responseEnd,l+=1;l<r.length;l++){var U=r[l],ee=U.startTime;if(ee>A)break;var re=U.transferSize,de=U.initiatorType;re&&F0(de)&&(U=U.responseEnd,b+=re*(U<A?1:(A-ee)/(U-ee)))}if(--l,n+=8*(p+b)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var kf=null,zf=null;function pc(e){return e.nodeType===9?e:e.ownerDocument}function W0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function V0(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Of(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Bf=null;function pS(){var e=window.event;return e&&e.type==="popstate"?e===Bf?!1:(Bf=e,!0):(Bf=null,!1)}var q0=typeof setTimeout=="function"?setTimeout:void 0,hS=typeof clearTimeout=="function"?clearTimeout:void 0,G0=typeof Promise=="function"?Promise:void 0,mS=typeof queueMicrotask=="function"?queueMicrotask:typeof G0<"u"?function(e){return G0.resolve(null).then(e).catch(gS)}:q0;function gS(e){setTimeout(function(){throw e})}function Or(e){return e==="head"}function Y0(e,n){var r=n,l=0;do{var u=r.nextSibling;if(e.removeChild(r),u&&u.nodeType===8)if(r=u.data,r==="/$"||r==="/&"){if(l===0){e.removeChild(u),ii(n);return}l--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")l++;else if(r==="html")ml(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,ml(r);for(var p=r.firstChild;p;){var b=p.nextSibling,A=p.nodeName;p[Gr]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||r.removeChild(p),p=b}}else r==="body"&&ml(e.ownerDocument.body);r=u}while(r);ii(n)}function X0(e,n){var r=e;e=0;do{var l=r.nextSibling;if(r.nodeType===1?n?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(n?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=l}while(r)}function Df(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Df(r),Di(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function yS(e,n,r,l){for(;e.nodeType===1;){var u=r;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Gr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var p=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=ra(e.nextSibling),e===null)break}return null}function bS(e,n,r){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=ra(e.nextSibling),e===null))return null;return e}function K0(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ra(e.nextSibling),e===null))return null;return e}function Hf(e){return e.data==="$?"||e.data==="$~"}function Nf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function xS(e,n){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||r.readyState!=="loading")n();else{var l=function(){n(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function ra(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Lf=null;function Q0(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(n===0)return ra(e.nextSibling);n--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||n++}e=e.nextSibling}return null}function Z0(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(n===0)return e;n--}else r!=="/$"&&r!=="/&"||n++}e=e.previousSibling}return null}function J0(e,n,r){switch(n=pc(r),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function ml(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Di(e)}var oa=new Map,ey=new Set;function hc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ar=F.d;F.d={f:vS,r:SS,D:CS,C:wS,L:TS,m:RS,X:ES,S:jS,M:MS};function vS(){var e=ar.f(),n=oc();return e||n}function SS(e){var n=fr(e);n!==null&&n.tag===5&&n.type==="form"?yg(n):ar.r(e)}var ai=typeof document>"u"?null:document;function ty(e,n,r){var l=ai;if(l&&typeof n=="string"&&n){var u=Qn(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof r=="string"&&(u+='[crossorigin="'+r+'"]'),ey.has(u)||(ey.add(u),e={rel:e,crossOrigin:r,href:n},l.querySelector(u)===null&&(n=l.createElement("link"),dn(n,"link",e),Xt(n),l.head.appendChild(n)))}}function CS(e){ar.D(e),ty("dns-prefetch",e,null)}function wS(e,n){ar.C(e,n),ty("preconnect",e,n)}function TS(e,n,r){ar.L(e,n,r);var l=ai;if(l&&e&&n){var u='link[rel="preload"][as="'+Qn(n)+'"]';n==="image"&&r&&r.imageSrcSet?(u+='[imagesrcset="'+Qn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(u+='[imagesizes="'+Qn(r.imageSizes)+'"]')):u+='[href="'+Qn(e)+'"]';var p=u;switch(n){case"style":p=ri(e);break;case"script":p=oi(e)}oa.has(p)||(e=x({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:e,as:n},r),oa.set(p,e),l.querySelector(u)!==null||n==="style"&&l.querySelector(gl(p))||n==="script"&&l.querySelector(yl(p))||(n=l.createElement("link"),dn(n,"link",e),Xt(n),l.head.appendChild(n)))}}function RS(e,n){ar.m(e,n);var r=ai;if(r&&e){var l=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+Qn(l)+'"][href="'+Qn(e)+'"]',p=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=oi(e)}if(!oa.has(p)&&(e=x({rel:"modulepreload",href:e},n),oa.set(p,e),r.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(yl(p)))return}l=r.createElement("link"),dn(l,"link",e),Xt(l),r.head.appendChild(l)}}}function jS(e,n,r){ar.S(e,n,r);var l=ai;if(l&&e){var u=pr(l).hoistableStyles,p=ri(e);n=n||"default";var b=u.get(p);if(!b){var A={loading:0,preload:null};if(b=l.querySelector(gl(p)))A.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":n},r),(r=oa.get(p))&&$f(e,r);var U=b=l.createElement("link");Xt(U),dn(U,"link",e),U._p=new Promise(function(ee,re){U.onload=ee,U.onerror=re}),U.addEventListener("load",function(){A.loading|=1}),U.addEventListener("error",function(){A.loading|=2}),A.loading|=4,mc(b,n,l)}b={type:"stylesheet",instance:b,count:1,state:A},u.set(p,b)}}}function ES(e,n){ar.X(e,n);var r=ai;if(r&&e){var l=pr(r).hoistableScripts,u=oi(e),p=l.get(u);p||(p=r.querySelector(yl(u)),p||(e=x({src:e,async:!0},n),(n=oa.get(u))&&_f(e,n),p=r.createElement("script"),Xt(p),dn(p,"link",e),r.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(u,p))}}function MS(e,n){ar.M(e,n);var r=ai;if(r&&e){var l=pr(r).hoistableScripts,u=oi(e),p=l.get(u);p||(p=r.querySelector(yl(u)),p||(e=x({src:e,async:!0,type:"module"},n),(n=oa.get(u))&&_f(e,n),p=r.createElement("script"),Xt(p),dn(p,"link",e),r.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(u,p))}}function ny(e,n,r,l){var u=(u=pe.current)?hc(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(n=ri(r.href),r=pr(u).hoistableStyles,l=r.get(n),l||(l={type:"style",instance:null,count:0,state:null},r.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=ri(r.href);var p=pr(u).hoistableStyles,b=p.get(e);if(b||(u=u.ownerDocument||u,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,b),(p=u.querySelector(gl(e)))&&!p._p&&(b.instance=p,b.state.loading=5),oa.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},oa.set(e,r),p||AS(u,e,r,b.state))),n&&l===null)throw Error(i(528,""));return b}if(n&&l!==null)throw Error(i(529,""));return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=oi(r),r=pr(u).hoistableScripts,l=r.get(n),l||(l={type:"script",instance:null,count:0,state:null},r.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ri(e){return'href="'+Qn(e)+'"'}function gl(e){return'link[rel="stylesheet"]['+e+"]"}function ay(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function AS(e,n,r,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),dn(n,"link",r),Xt(n),e.head.appendChild(n))}function oi(e){return'[src="'+Qn(e)+'"]'}function yl(e){return"script[async]"+e}function ry(e,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+Qn(r.href)+'"]');if(l)return n.instance=l,Xt(l),l;var u=x({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Xt(l),dn(l,"style",u),mc(l,r.precedence,e),n.instance=l;case"stylesheet":u=ri(r.href);var p=e.querySelector(gl(u));if(p)return n.state.loading|=4,n.instance=p,Xt(p),p;l=ay(r),(u=oa.get(u))&&$f(l,u),p=(e.ownerDocument||e).createElement("link"),Xt(p);var b=p;return b._p=new Promise(function(A,U){b.onload=A,b.onerror=U}),dn(p,"link",l),n.state.loading|=4,mc(p,r.precedence,e),n.instance=p;case"script":return p=oi(r.src),(u=e.querySelector(yl(p)))?(n.instance=u,Xt(u),u):(l=r,(u=oa.get(p))&&(l=x({},r),_f(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),Xt(u),dn(u,"link",l),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,mc(l,r.precedence,e));return n.instance}function mc(e,n,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,p=u,b=0;b<l.length;b++){var A=l[b];if(A.dataset.precedence===n)p=A;else if(p!==u)break}p?p.parentNode.insertBefore(e,p.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(e,n.firstChild))}function $f(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function _f(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var gc=null;function oy(e,n,r){if(gc===null){var l=new Map,u=gc=new Map;u.set(r,l)}else u=gc,l=u.get(r),l||(l=new Map,u.set(r,l));if(l.has(e))return l;for(l.set(e,null),r=r.getElementsByTagName(e),u=0;u<r.length;u++){var p=r[u];if(!(p[Gr]||p[Yt]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(n)||"";b=e+b;var A=l.get(b);A?A.push(p):l.set(b,[p])}}return l}function iy(e,n,r){e=e.ownerDocument||e,e.head.insertBefore(r,n==="title"?e.querySelector("head > title"):null)}function kS(e,n,r){if(r===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function ly(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function zS(e,n,r,l){if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var u=ri(l.href),p=n.querySelector(gl(u));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=yc.bind(e),n.then(e,e)),r.state.loading|=4,r.instance=p,Xt(p);return}p=n.ownerDocument||n,l=ay(l),(u=oa.get(u))&&$f(l,u),p=p.createElement("link"),Xt(p);var b=p;b._p=new Promise(function(A,U){b.onload=A,b.onerror=U}),dn(p,"link",l),r.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=yc.bind(e),n.addEventListener("load",r),n.addEventListener("error",r))}}var Uf=0;function OS(e,n){return e.stylesheets&&e.count===0&&xc(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var l=setTimeout(function(){if(e.stylesheets&&xc(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+n);0<e.imgBytes&&Uf===0&&(Uf=62500*fS());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xc(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>Uf?50:800)+n);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function yc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bc=null;function xc(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bc=new Map,n.forEach(BS,e),bc=null,yc.call(e))}function BS(e,n){if(!(n.state.loading&4)){var r=bc.get(e);if(r)var l=r.get(null);else{r=new Map,bc.set(e,r);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<u.length;p++){var b=u[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(r.set(b.dataset.precedence,b),l=b)}l&&r.set(null,l)}u=n.instance,b=u.getAttribute("data-precedence"),p=r.get(b)||l,p===l&&r.set(null,u),r.set(b,u),this.count++,l=yc.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),p?p.parentNode.insertBefore(u,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var bl={$$typeof:O,Provider:null,Consumer:null,_currentValue:_,_currentValue2:_,_threadCount:0};function DS(e,n,r,l,u,p,b,A,U){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Nt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nt(0),this.hiddenUpdates=Nt(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function sy(e,n,r,l,u,p,b,A,U,ee,re,de){return e=new DS(e,n,r,b,U,ee,re,de,A),n=1,p===!0&&(n|=24),p=$n(3,null,null,n),e.current=p,p.stateNode=e,n=bd(),n.refCount++,e.pooledCache=n,n.refCount++,p.memoizedState={element:l,isDehydrated:r,cache:n},Cd(p),e}function cy(e){return e?(e=No,e):No}function uy(e,n,r,l,u,p){u=cy(u),l.context===null?l.context=u:l.pendingContext=u,l=Sr(n),l.payload={element:r},p=p===void 0?null:p,p!==null&&(l.callback=p),r=Cr(e,l,n),r!==null&&(An(r,e,n),Ki(r,e,n))}function dy(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<n?r:n}}function Pf(e,n){dy(e,n),(e=e.alternate)&&dy(e,n)}function fy(e){if(e.tag===13||e.tag===31){var n=Zr(e,67108864);n!==null&&An(n,e,67108864),Pf(e,67108864)}}function py(e){if(e.tag===13||e.tag===31){var n=Fn();n=Oi(n);var r=Zr(e,n);r!==null&&An(r,e,n),Pf(e,n)}}var vc=!0;function HS(e,n,r,l){var u=B.T;B.T=null;var p=F.p;try{F.p=2,If(e,n,r,l)}finally{F.p=p,B.T=u}}function NS(e,n,r,l){var u=B.T;B.T=null;var p=F.p;try{F.p=8,If(e,n,r,l)}finally{F.p=p,B.T=u}}function If(e,n,r,l){if(vc){var u=Ff(l);if(u===null)Mf(e,n,l,Sc,r),my(e,l);else if($S(u,e,n,r,l))l.stopPropagation();else if(my(e,l),n&4&&-1<LS.indexOf(e)){for(;u!==null;){var p=fr(u);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=ge(p.pendingLanes);if(b!==0){var A=p;for(A.pendingLanes|=2,A.entangledLanes|=2;b;){var U=1<<31-kt(b);A.entanglements[1]|=U,b&=~U}Ea(p),(ht&6)===0&&(ac=Te()+500,fl(0))}}break;case 31:case 13:A=Zr(p,2),A!==null&&An(A,p,2),oc(),Pf(p,2)}if(p=Ff(l),p===null&&Mf(e,n,l,Sc,r),p===u)break;u=p}u!==null&&l.stopPropagation()}else Mf(e,n,l,null,r)}}function Ff(e){return e=Wu(e),Wf(e)}var Sc=null;function Wf(e){if(Sc=null,e=dr(e),e!==null){var n=c(e);if(n===null)e=null;else{var r=n.tag;if(r===13){if(e=f(n),e!==null)return e;e=null}else if(r===31){if(e=h(n),e!==null)return e;e=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Sc=e,null}function hy(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case he:return 2;case Re:return 8;case ze:case Ie:return 32;case Se:return 268435456;default:return 32}default:return 32}}var Vf=!1,Br=null,Dr=null,Hr=null,xl=new Map,vl=new Map,Nr=[],LS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function my(e,n){switch(e){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":Dr=null;break;case"mouseover":case"mouseout":Hr=null;break;case"pointerover":case"pointerout":xl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":vl.delete(n.pointerId)}}function Sl(e,n,r,l,u,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:r,eventSystemFlags:l,nativeEvent:p,targetContainers:[u]},n!==null&&(n=fr(n),n!==null&&fy(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function $S(e,n,r,l,u){switch(n){case"focusin":return Br=Sl(Br,e,n,r,l,u),!0;case"dragenter":return Dr=Sl(Dr,e,n,r,l,u),!0;case"mouseover":return Hr=Sl(Hr,e,n,r,l,u),!0;case"pointerover":var p=u.pointerId;return xl.set(p,Sl(xl.get(p)||null,e,n,r,l,u)),!0;case"gotpointercapture":return p=u.pointerId,vl.set(p,Sl(vl.get(p)||null,e,n,r,l,u)),!0}return!1}function gy(e){var n=dr(e.target);if(n!==null){var r=c(n);if(r!==null){if(n=r.tag,n===13){if(n=f(r),n!==null){e.blockedOn=n,ds(e.priority,function(){py(r)});return}}else if(n===31){if(n=h(r),n!==null){e.blockedOn=n,ds(e.priority,function(){py(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Cc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var r=Ff(e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);Fu=l,r.target.dispatchEvent(l),Fu=null}else return n=fr(r),n!==null&&fy(n),e.blockedOn=r,!1;n.shift()}return!0}function yy(e,n,r){Cc(e)&&r.delete(n)}function _S(){Vf=!1,Br!==null&&Cc(Br)&&(Br=null),Dr!==null&&Cc(Dr)&&(Dr=null),Hr!==null&&Cc(Hr)&&(Hr=null),xl.forEach(yy),vl.forEach(yy)}function wc(e,n){e.blockedOn===n&&(e.blockedOn=null,Vf||(Vf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,_S)))}var Tc=null;function by(e){Tc!==e&&(Tc=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Tc===e&&(Tc=null);for(var n=0;n<e.length;n+=3){var r=e[n],l=e[n+1],u=e[n+2];if(typeof l!="function"){if(Wf(l||r)===null)continue;break}var p=fr(r);p!==null&&(e.splice(n,3),n-=3,Id(p,{pending:!0,data:u,method:r.method,action:l},l,u))}}))}function ii(e){function n(U){return wc(U,e)}Br!==null&&wc(Br,e),Dr!==null&&wc(Dr,e),Hr!==null&&wc(Hr,e),xl.forEach(n),vl.forEach(n);for(var r=0;r<Nr.length;r++){var l=Nr[r];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Nr.length&&(r=Nr[0],r.blockedOn===null);)gy(r),r.blockedOn===null&&Nr.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var u=r[l],p=r[l+1],b=u[mn]||null;if(typeof p=="function")b||by(r);else if(b){var A=null;if(p&&p.hasAttribute("formAction")){if(u=p,b=p[mn]||null)A=b.formAction;else if(Wf(u)!==null)continue}else A=b.action;typeof A=="function"?r[l+1]=A:(r.splice(l,3),l-=3),by(r)}}}function xy(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(b){return u=b})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),l||setTimeout(r,20)}function r(){if(!l&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(r,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function qf(e){this._internalRoot=e}Rc.prototype.render=qf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var r=n.current,l=Fn();uy(r,l,e,n,null,null)},Rc.prototype.unmount=qf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;uy(e.current,2,null,e,null,null),oc(),n[_a]=null}};function Rc(e){this._internalRoot=e}Rc.prototype.unstable_scheduleHydration=function(e){if(e){var n=us();e={blockedOn:null,target:e,priority:n};for(var r=0;r<Nr.length&&n!==0&&n<Nr[r].priority;r++);Nr.splice(r,0,e),r===0&&gy(e)}};var vy=a.version;if(vy!=="19.2.8")throw Error(i(527,vy,"19.2.8"));F.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var US={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jc.isDisabled&&jc.supportsFiber)try{Ne=jc.inject(US),Oe=jc}catch{}}return Tl.createRoot=function(e,n){if(!s(e))throw Error(i(299));var r=!1,l="",u=Eg,p=Mg,b=Ag;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=sy(e,1,!1,null,null,r,l,null,u,p,b,xy),e[_a]=n.current,Ef(e),new qf(n)},Tl.hydrateRoot=function(e,n,r){if(!s(e))throw Error(i(299));var l=!1,u="",p=Eg,b=Mg,A=Ag,U=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(b=r.onCaughtError),r.onRecoverableError!==void 0&&(A=r.onRecoverableError),r.formState!==void 0&&(U=r.formState)),n=sy(e,1,!0,n,r??null,l,u,U,p,b,A,xy),n.context=cy(null),r=n.current,l=Fn(),l=Oi(l),u=Sr(l),u.callback=null,Cr(r,u,l),r=l,n.current.lanes=r,hn(n,r),Ea(n),e[_a]=n.current,Ef(e),new Rc(n)},Tl.version="19.2.8",Tl}var ky;function ZS(){if(ky)return Xf.exports;ky=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Xf.exports=QS(),Xf.exports}var JS=ZS();const e2=qp(JS),Vl={black:"#000",white:"#fff"},li={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},si={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ci={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ui={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},di={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Rl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},t2={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ir(t,...a){const o=new URL(`https://mui.com/production-error/?code=${t}`);return a.forEach(i=>o.searchParams.append("args[]",i)),`Minified MUI error #${t}; visit ${o} for the full message.`}const Ha="$$material";function Kc(){return Kc=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var i in o)({}).hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},Kc.apply(null,arguments)}function n2(t){if(t.sheet)return t.sheet;for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].ownerNode===t)return document.styleSheets[a]}function a2(t){var a=document.createElement("style");return a.setAttribute("data-emotion",t.key),t.nonce!==void 0&&a.setAttribute("nonce",t.nonce),a.appendChild(document.createTextNode("")),a.setAttribute("data-s",""),a}var r2=(function(){function t(o){var i=this;this._insertTag=function(s){var c;i.tags.length===0?i.insertionPoint?c=i.insertionPoint.nextSibling:i.prepend?c=i.container.firstChild:c=i.before:c=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(s,c),i.tags.push(s)},this.isSpeedy=o.speedy===void 0?!0:o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var a=t.prototype;return a.hydrate=function(i){i.forEach(this._insertTag)},a.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(a2(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var c=n2(s);try{c.insertRule(i,c.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(i));this.ctr++},a.flush=function(){this.tags.forEach(function(i){var s;return(s=i.parentNode)==null?void 0:s.removeChild(i)}),this.tags=[],this.ctr=0},t})(),yn="-ms-",Qc="-moz-",mt="-webkit-",sx="comm",Yp="rule",Xp="decl",o2="@import",cx="@keyframes",i2="@layer",l2=Math.abs,uu=String.fromCharCode,s2=Object.assign;function c2(t,a){return fn(t,0)^45?(((a<<2^fn(t,0))<<2^fn(t,1))<<2^fn(t,2))<<2^fn(t,3):0}function ux(t){return t.trim()}function u2(t,a){return(t=a.exec(t))?t[0]:t}function gt(t,a,o){return t.replace(a,o)}function Sp(t,a){return t.indexOf(a)}function fn(t,a){return t.charCodeAt(a)|0}function ql(t,a,o){return t.slice(a,o)}function za(t){return t.length}function Kp(t){return t.length}function Ec(t,a){return a.push(t),t}function d2(t,a){return t.map(a).join("")}var du=1,Si=1,dx=0,Bn=0,en=0,Ai="";function fu(t,a,o,i,s,c,f){return{value:t,root:a,parent:o,type:i,props:s,children:c,line:du,column:Si,length:f,return:""}}function jl(t,a){return s2(fu("",null,null,"",null,null,0),t,{length:-t.length},a)}function f2(){return en}function p2(){return en=Bn>0?fn(Ai,--Bn):0,Si--,en===10&&(Si=1,du--),en}function Gn(){return en=Bn<dx?fn(Ai,Bn++):0,Si++,en===10&&(Si=1,du++),en}function Na(){return fn(Ai,Bn)}function Fc(){return Bn}function Zl(t,a){return ql(Ai,t,a)}function Gl(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fx(t){return du=Si=1,dx=za(Ai=t),Bn=0,[]}function px(t){return Ai="",t}function Wc(t){return ux(Zl(Bn-1,Cp(t===91?t+2:t===40?t+1:t)))}function h2(t){for(;(en=Na())&&en<33;)Gn();return Gl(t)>2||Gl(en)>3?"":" "}function m2(t,a){for(;--a&&Gn()&&!(en<48||en>102||en>57&&en<65||en>70&&en<97););return Zl(t,Fc()+(a<6&&Na()==32&&Gn()==32))}function Cp(t){for(;Gn();)switch(en){case t:return Bn;case 34:case 39:t!==34&&t!==39&&Cp(en);break;case 40:t===41&&Cp(t);break;case 92:Gn();break}return Bn}function g2(t,a){for(;Gn()&&t+en!==57;)if(t+en===84&&Na()===47)break;return"/*"+Zl(a,Bn-1)+"*"+uu(t===47?t:Gn())}function y2(t){for(;!Gl(Na());)Gn();return Zl(t,Bn)}function b2(t){return px(Vc("",null,null,null,[""],t=fx(t),0,[0],t))}function Vc(t,a,o,i,s,c,f,h,m){for(var g=0,y=0,x=f,T=0,v=0,w=0,S=1,R=1,z=1,D=0,O="",j=s,k=c,H=i,N=O;R;)switch(w=D,D=Gn()){case 40:if(w!=108&&fn(N,x-1)==58){Sp(N+=gt(Wc(D),"&","&\f"),"&\f")!=-1&&(z=-1);break}case 34:case 39:case 91:N+=Wc(D);break;case 9:case 10:case 13:case 32:N+=h2(w);break;case 92:N+=m2(Fc()-1,7);continue;case 47:switch(Na()){case 42:case 47:Ec(x2(g2(Gn(),Fc()),a,o),m);break;default:N+="/"}break;case 123*S:h[g++]=za(N)*z;case 125*S:case 59:case 0:switch(D){case 0:case 125:R=0;case 59+y:z==-1&&(N=gt(N,/\f/g,"")),v>0&&za(N)-x&&Ec(v>32?Oy(N+";",i,o,x-1):Oy(gt(N," ","")+";",i,o,x-2),m);break;case 59:N+=";";default:if(Ec(H=zy(N,a,o,g,y,s,h,O,j=[],k=[],x),c),D===123)if(y===0)Vc(N,a,H,H,j,c,x,h,k);else switch(T===99&&fn(N,3)===110?100:T){case 100:case 108:case 109:case 115:Vc(t,H,H,i&&Ec(zy(t,H,H,0,0,s,h,O,s,j=[],x),k),s,k,x,h,i?j:k);break;default:Vc(N,H,H,H,[""],k,0,h,k)}}g=y=v=0,S=z=1,O=N="",x=f;break;case 58:x=1+za(N),v=w;default:if(S<1){if(D==123)--S;else if(D==125&&S++==0&&p2()==125)continue}switch(N+=uu(D),D*S){case 38:z=y>0?1:(N+="\f",-1);break;case 44:h[g++]=(za(N)-1)*z,z=1;break;case 64:Na()===45&&(N+=Wc(Gn())),T=Na(),y=x=za(O=N+=y2(Fc())),D++;break;case 45:w===45&&za(N)==2&&(S=0)}}return c}function zy(t,a,o,i,s,c,f,h,m,g,y){for(var x=s-1,T=s===0?c:[""],v=Kp(T),w=0,S=0,R=0;w<i;++w)for(var z=0,D=ql(t,x+1,x=l2(S=f[w])),O=t;z<v;++z)(O=ux(S>0?T[z]+" "+D:gt(D,/&\f/g,T[z])))&&(m[R++]=O);return fu(t,a,o,s===0?Yp:h,m,g,y)}function x2(t,a,o){return fu(t,a,o,sx,uu(f2()),ql(t,2,-2),0)}function Oy(t,a,o,i){return fu(t,a,o,Xp,ql(t,0,i),ql(t,i+1,-1),i)}function bi(t,a){for(var o="",i=Kp(t),s=0;s<i;s++)o+=a(t[s],s,t,a)||"";return o}function v2(t,a,o,i){switch(t.type){case i2:if(t.children.length)break;case o2:case Xp:return t.return=t.return||t.value;case sx:return"";case cx:return t.return=t.value+"{"+bi(t.children,i)+"}";case Yp:t.value=t.props.join(",")}return za(o=bi(t.children,i))?t.return=t.value+"{"+o+"}":""}function S2(t){var a=Kp(t);return function(o,i,s,c){for(var f="",h=0;h<a;h++)f+=t[h](o,i,s,c)||"";return f}}function C2(t){return function(a){a.root||(a=a.return)&&t(a)}}function hx(t){var a=Object.create(null);return function(o){return a[o]===void 0&&(a[o]=t(o)),a[o]}}var w2=function(a,o,i){for(var s=0,c=0;s=c,c=Na(),s===38&&c===12&&(o[i]=1),!Gl(c);)Gn();return Zl(a,Bn)},T2=function(a,o){var i=-1,s=44;do switch(Gl(s)){case 0:s===38&&Na()===12&&(o[i]=1),a[i]+=w2(Bn-1,o,i);break;case 2:a[i]+=Wc(s);break;case 4:if(s===44){a[++i]=Na()===58?"&\f":"",o[i]=a[i].length;break}default:a[i]+=uu(s)}while(s=Gn());return a},R2=function(a,o){return px(T2(fx(a),o))},By=new WeakMap,j2=function(a){if(!(a.type!=="rule"||!a.parent||a.length<1)){for(var o=a.value,i=a.parent,s=a.column===i.column&&a.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(a.props.length===1&&o.charCodeAt(0)!==58&&!By.get(i))&&!s){By.set(a,!0);for(var c=[],f=R2(o,c),h=i.props,m=0,g=0;m<f.length;m++)for(var y=0;y<h.length;y++,g++)a.props[g]=c[m]?f[m].replace(/&\f/g,h[y]):h[y]+" "+f[m]}}},E2=function(a){if(a.type==="decl"){var o=a.value;o.charCodeAt(0)===108&&o.charCodeAt(2)===98&&(a.return="",a.value="")}};function mx(t,a){switch(c2(t,a)){case 5103:return mt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return mt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return mt+t+Qc+t+yn+t+t;case 6828:case 4268:return mt+t+yn+t+t;case 6165:return mt+t+yn+"flex-"+t+t;case 5187:return mt+t+gt(t,/(\w+).+(:[^]+)/,mt+"box-$1$2"+yn+"flex-$1$2")+t;case 5443:return mt+t+yn+"flex-item-"+gt(t,/flex-|-self/,"")+t;case 4675:return mt+t+yn+"flex-line-pack"+gt(t,/align-content|flex-|-self/,"")+t;case 5548:return mt+t+yn+gt(t,"shrink","negative")+t;case 5292:return mt+t+yn+gt(t,"basis","preferred-size")+t;case 6060:return mt+"box-"+gt(t,"-grow","")+mt+t+yn+gt(t,"grow","positive")+t;case 4554:return mt+gt(t,/([^-])(transform)/g,"$1"+mt+"$2")+t;case 6187:return gt(gt(gt(t,/(zoom-|grab)/,mt+"$1"),/(image-set)/,mt+"$1"),t,"")+t;case 5495:case 3959:return gt(t,/(image-set\([^]*)/,mt+"$1$`$1");case 4968:return gt(gt(t,/(.+:)(flex-)?(.*)/,mt+"box-pack:$3"+yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mt+t+t;case 4095:case 3583:case 4068:case 2532:return gt(t,/(.+)-inline(.+)/,mt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(za(t)-1-a>6)switch(fn(t,a+1)){case 109:if(fn(t,a+4)!==45)break;case 102:return gt(t,/(.+:)(.+)-([^]+)/,"$1"+mt+"$2-$3$1"+Qc+(fn(t,a+3)==108?"$3":"$2-$3"))+t;case 115:return~Sp(t,"stretch")?mx(gt(t,"stretch","fill-available"),a)+t:t}break;case 4949:if(fn(t,a+1)!==115)break;case 6444:switch(fn(t,za(t)-3-(~Sp(t,"!important")&&10))){case 107:return gt(t,":",":"+mt)+t;case 101:return gt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mt+(fn(t,14)===45?"inline-":"")+"box$3$1"+mt+"$2$3$1"+yn+"$2box$3")+t}break;case 5936:switch(fn(t,a+11)){case 114:return mt+t+yn+gt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return mt+t+yn+gt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return mt+t+yn+gt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return mt+t+yn+t+t}return t}var M2=function(a,o,i,s){if(a.length>-1&&!a.return)switch(a.type){case Xp:a.return=mx(a.value,a.length);break;case cx:return bi([jl(a,{value:gt(a.value,"@","@"+mt)})],s);case Yp:if(a.length)return d2(a.props,function(c){switch(u2(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bi([jl(a,{props:[gt(c,/:(read-\w+)/,":"+Qc+"$1")]})],s);case"::placeholder":return bi([jl(a,{props:[gt(c,/:(plac\w+)/,":"+mt+"input-$1")]}),jl(a,{props:[gt(c,/:(plac\w+)/,":"+Qc+"$1")]}),jl(a,{props:[gt(c,/:(plac\w+)/,yn+"input-$1")]})],s)}return""})}},A2=[M2],k2=function(a){var o=a.key;if(o==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(S){var R=S.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var s=a.stylisPlugins||A2,c={},f,h=[];f=a.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(S){for(var R=S.getAttribute("data-emotion").split(" "),z=1;z<R.length;z++)c[R[z]]=!0;h.push(S)});var m,g=[j2,E2];{var y,x=[v2,C2(function(S){y.insert(S)})],T=S2(g.concat(s,x)),v=function(R){return bi(b2(R),T)};m=function(R,z,D,O){y=D,v(R?R+"{"+z.styles+"}":z.styles),O&&(w.inserted[z.name]=!0)}}var w={key:o,sheet:new r2({key:o,container:f,nonce:a.nonce,speedy:a.speedy,prepend:a.prepend,insertionPoint:a.insertionPoint}),nonce:a.nonce,inserted:c,registered:{},insert:m};return w.sheet.hydrate(h),w},Jf={exports:{}},yt={};/** @license React v16.13.1
|
|
50
|
+
* react-is.production.min.js
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/var Dy;function z2(){if(Dy)return yt;Dy=1;var t=typeof Symbol=="function"&&Symbol.for,a=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,f=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,g=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,x=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,R=t?Symbol.for("react.fundamental"):60117,z=t?Symbol.for("react.responder"):60118,D=t?Symbol.for("react.scope"):60119;function O(k){if(typeof k=="object"&&k!==null){var H=k.$$typeof;switch(H){case a:switch(k=k.type,k){case m:case g:case i:case c:case s:case x:return k;default:switch(k=k&&k.$$typeof,k){case h:case y:case w:case v:case f:return k;default:return H}}case o:return H}}}function j(k){return O(k)===g}return yt.AsyncMode=m,yt.ConcurrentMode=g,yt.ContextConsumer=h,yt.ContextProvider=f,yt.Element=a,yt.ForwardRef=y,yt.Fragment=i,yt.Lazy=w,yt.Memo=v,yt.Portal=o,yt.Profiler=c,yt.StrictMode=s,yt.Suspense=x,yt.isAsyncMode=function(k){return j(k)||O(k)===m},yt.isConcurrentMode=j,yt.isContextConsumer=function(k){return O(k)===h},yt.isContextProvider=function(k){return O(k)===f},yt.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===a},yt.isForwardRef=function(k){return O(k)===y},yt.isFragment=function(k){return O(k)===i},yt.isLazy=function(k){return O(k)===w},yt.isMemo=function(k){return O(k)===v},yt.isPortal=function(k){return O(k)===o},yt.isProfiler=function(k){return O(k)===c},yt.isStrictMode=function(k){return O(k)===s},yt.isSuspense=function(k){return O(k)===x},yt.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===i||k===g||k===c||k===s||k===x||k===T||typeof k=="object"&&k!==null&&(k.$$typeof===w||k.$$typeof===v||k.$$typeof===f||k.$$typeof===h||k.$$typeof===y||k.$$typeof===R||k.$$typeof===z||k.$$typeof===D||k.$$typeof===S)},yt.typeOf=O,yt}var Hy;function O2(){return Hy||(Hy=1,Jf.exports=z2()),Jf.exports}var ep,Ny;function B2(){if(Ny)return ep;Ny=1;var t=O2(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[t.ForwardRef]=i,c[t.Memo]=s;function f(w){return t.isMemo(w)?s:c[w.$$typeof]||a}var h=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,T=Object.prototype;function v(w,S,R){if(typeof S!="string"){if(T){var z=x(S);z&&z!==T&&v(w,z,R)}var D=m(S);g&&(D=D.concat(g(S)));for(var O=f(w),j=f(S),k=0;k<D.length;++k){var H=D[k];if(!o[H]&&!(R&&R[H])&&!(j&&j[H])&&!(O&&O[H])){var N=y(S,H);try{h(w,H,N)}catch{}}}}return w}return ep=v,ep}B2();var D2=!0;function gx(t,a,o){var i="";return o.split(" ").forEach(function(s){t[s]!==void 0?a.push(t[s]+";"):s&&(i+=s+" ")}),i}var Qp=function(a,o,i){var s=a.key+"-"+o.name;(i===!1||D2===!1)&&a.registered[s]===void 0&&(a.registered[s]=o.styles)},Zp=function(a,o,i){Qp(a,o,i);var s=a.key+"-"+o.name;if(a.inserted[o.name]===void 0){var c=o;do a.insert(o===c?"."+s:"",c,a.sheet,!0),c=c.next;while(c!==void 0)}};function H2(t){for(var a=0,o,i=0,s=t.length;s>=4;++i,s-=4)o=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,a=(o&65535)*1540483477+((o>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(s){case 3:a^=(t.charCodeAt(i+2)&255)<<16;case 2:a^=(t.charCodeAt(i+1)&255)<<8;case 1:a^=t.charCodeAt(i)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var N2={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},L2=/[A-Z]|^ms/g,$2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yx=function(a){return a.charCodeAt(1)===45},Ly=function(a){return a!=null&&typeof a!="boolean"},tp=hx(function(t){return yx(t)?t:t.replace(L2,"-$&").toLowerCase()}),$y=function(a,o){switch(a){case"animation":case"animationName":if(typeof o=="string")return o.replace($2,function(i,s,c){return Oa={name:s,styles:c,next:Oa},s})}return N2[a]!==1&&!yx(a)&&typeof o=="number"&&o!==0?o+"px":o};function Yl(t,a,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":{var s=o;if(s.anim===1)return Oa={name:s.name,styles:s.styles,next:Oa},s.name;var c=o;if(c.styles!==void 0){var f=c.next;if(f!==void 0)for(;f!==void 0;)Oa={name:f.name,styles:f.styles,next:Oa},f=f.next;var h=c.styles+";";return h}return _2(t,a,o)}case"function":{if(t!==void 0){var m=Oa,g=o(t);return Oa=m,Yl(t,a,g)}break}}var y=o;if(a==null)return y;var x=a[y];return x!==void 0?x:y}function _2(t,a,o){var i="";if(Array.isArray(o))for(var s=0;s<o.length;s++)i+=Yl(t,a,o[s])+";";else for(var c in o){var f=o[c];if(typeof f!="object"){var h=f;a!=null&&a[h]!==void 0?i+=c+"{"+a[h]+"}":Ly(h)&&(i+=tp(c)+":"+$y(c,h)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(a==null||a[f[0]]===void 0))for(var m=0;m<f.length;m++)Ly(f[m])&&(i+=tp(c)+":"+$y(c,f[m])+";");else{var g=Yl(t,a,f);switch(c){case"animation":case"animationName":{i+=tp(c)+":"+g+";";break}default:i+=c+"{"+g+"}"}}}return i}var _y=/label:\s*([^\s;{]+)\s*(;|$)/g,Oa;function Jl(t,a,o){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,s="";Oa=void 0;var c=t[0];if(c==null||c.raw===void 0)i=!1,s+=Yl(o,a,c);else{var f=c;s+=f[0]}for(var h=1;h<t.length;h++)if(s+=Yl(o,a,t[h]),i){var m=c;s+=m[h]}_y.lastIndex=0;for(var g="",y;(y=_y.exec(s))!==null;)g+="-"+y[1];var x=H2(s)+g;return{name:x,styles:s,next:Oa}}var U2=function(a){return a()},bx=vp.useInsertionEffect?vp.useInsertionEffect:!1,xx=bx||U2,Uy=bx||M.useLayoutEffect,vx=M.createContext(typeof HTMLElement<"u"?k2({key:"css"}):null);vx.Provider;var Jp=function(a){return M.forwardRef(function(o,i){var s=M.useContext(vx);return a(o,s,i)})},es=M.createContext({}),eh={}.hasOwnProperty,wp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",P2=function(a,o){var i={};for(var s in o)eh.call(o,s)&&(i[s]=o[s]);return i[wp]=a,i},I2=function(a){var o=a.cache,i=a.serialized,s=a.isStringTag;return Qp(o,i,s),xx(function(){return Zp(o,i,s)}),null},F2=Jp(function(t,a,o){var i=t.css;typeof i=="string"&&a.registered[i]!==void 0&&(i=a.registered[i]);var s=t[wp],c=[i],f="";typeof t.className=="string"?f=gx(a.registered,c,t.className):t.className!=null&&(f=t.className+" ");var h=Jl(c,void 0,M.useContext(es));f+=a.key+"-"+h.name;var m={};for(var g in t)eh.call(t,g)&&g!=="css"&&g!==wp&&(m[g]=t[g]);return m.className=f,o&&(m.ref=o),M.createElement(M.Fragment,null,M.createElement(I2,{cache:a,serialized:h,isStringTag:typeof s=="string"}),M.createElement(s,m))}),W2=F2,Py=function(a,o){var i=arguments;if(o==null||!eh.call(o,"css"))return M.createElement.apply(void 0,i);var s=i.length,c=new Array(s);c[0]=W2,c[1]=P2(a,o);for(var f=2;f<s;f++)c[f]=i[f];return M.createElement.apply(null,c)};(function(t){var a;a||(a=t.JSX||(t.JSX={}))})(Py||(Py={}));var V2=Jp(function(t,a){var o=t.styles,i=Jl([o],void 0,M.useContext(es)),s=M.useRef();return Uy(function(){var c=a.key+"-global",f=new a.sheet.constructor({key:c,nonce:a.sheet.nonce,container:a.sheet.container,speedy:a.sheet.isSpeedy}),h=!1,m=document.querySelector('style[data-emotion="'+c+" "+i.name+'"]');return a.sheet.tags.length&&(f.before=a.sheet.tags[0]),m!==null&&(h=!0,m.setAttribute("data-emotion",c),f.hydrate([m])),s.current=[f,h],function(){f.flush()}},[a]),Uy(function(){var c=s.current,f=c[0],h=c[1];if(h){c[1]=!1;return}if(i.next!==void 0&&Zp(a,i.next,!0),f.tags.length){var m=f.tags[f.tags.length-1].nextElementSibling;f.before=m,f.flush()}a.insert("",i,f,!1)},[a,i.name]),null});function th(){for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return Jl(a)}function ts(){var t=th.apply(void 0,arguments),a="animation-"+t.name;return{name:a,styles:"@keyframes "+a+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var q2=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,G2=hx(function(t){return q2.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),Y2=G2,X2=function(a){return a!=="theme"},Iy=function(a){return typeof a=="string"&&a.charCodeAt(0)>96?Y2:X2},Fy=function(a,o,i){var s;if(o){var c=o.shouldForwardProp;s=a.__emotion_forwardProp&&c?function(f){return a.__emotion_forwardProp(f)&&c(f)}:c}return typeof s!="function"&&i&&(s=a.__emotion_forwardProp),s},K2=function(a){var o=a.cache,i=a.serialized,s=a.isStringTag;return Qp(o,i,s),xx(function(){return Zp(o,i,s)}),null},Q2=function t(a,o){var i=a.__emotion_real===a,s=i&&a.__emotion_base||a,c,f;o!==void 0&&(c=o.label,f=o.target);var h=Fy(a,o,i),m=h||Iy(s),g=!m("as");return function(){var y=arguments,x=i&&a.__emotion_styles!==void 0?a.__emotion_styles.slice(0):[];if(c!==void 0&&x.push("label:"+c+";"),y[0]==null||y[0].raw===void 0)x.push.apply(x,y);else{var T=y[0];x.push(T[0]);for(var v=y.length,w=1;w<v;w++)x.push(y[w],T[w])}var S=Jp(function(R,z,D){var O=g&&R.as||s,j="",k=[],H=R;if(R.theme==null){H={};for(var N in R)H[N]=R[N];H.theme=M.useContext(es)}typeof R.className=="string"?j=gx(z.registered,k,R.className):R.className!=null&&(j=R.className+" ");var L=Jl(x.concat(k),z.registered,H);j+=z.key+"-"+L.name,f!==void 0&&(j+=" "+f);var q=g&&h===void 0?Iy(O):m,I={};for(var Y in R)g&&Y==="as"||q(Y)&&(I[Y]=R[Y]);return I.className=j,D&&(I.ref=D),M.createElement(M.Fragment,null,M.createElement(K2,{cache:z,serialized:L,isStringTag:typeof O=="string"}),M.createElement(O,I))});return S.displayName=c!==void 0?c:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",S.defaultProps=a.defaultProps,S.__emotion_real=S,S.__emotion_base=s,S.__emotion_styles=x,S.__emotion_forwardProp=h,Object.defineProperty(S,"toString",{value:function(){return"."+f}}),S.withComponent=function(R,z){var D=t(R,Kc({},o,z,{shouldForwardProp:Fy(S,z,!0)}));return D.apply(void 0,x)},S}},Z2=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Tp=Q2.bind(null);Z2.forEach(function(t){Tp[t]=Tp(t)});function J2(t){return t==null||Object.keys(t).length===0}function Sx(t){const{styles:a,defaultTheme:o={}}=t,i=typeof a=="function"?s=>a(J2(s)?o:s):a;return d.jsx(V2,{styles:i})}function Cx(t,a){return Tp(t,a)}function e5(t,a){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=a(t.__emotion_styles))}const Wy=[];function Pr(t){return Wy[0]=t,Jl(Wy)}var np={exports:{}},jt={};/**
|
|
57
|
+
* @license React
|
|
58
|
+
* react-is.production.js
|
|
59
|
+
*
|
|
60
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the MIT license found in the
|
|
63
|
+
* LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/var Vy;function t5(){if(Vy)return jt;Vy=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function w(S){if(typeof S=="object"&&S!==null){var R=S.$$typeof;switch(R){case t:switch(S=S.type,S){case o:case s:case i:case m:case g:case T:return S;default:switch(S=S&&S.$$typeof,S){case f:case h:case x:case y:return S;case c:return S;default:return R}}case a:return R}}}return jt.ContextConsumer=c,jt.ContextProvider=f,jt.Element=t,jt.ForwardRef=h,jt.Fragment=o,jt.Lazy=x,jt.Memo=y,jt.Portal=a,jt.Profiler=s,jt.StrictMode=i,jt.Suspense=m,jt.SuspenseList=g,jt.isContextConsumer=function(S){return w(S)===c},jt.isContextProvider=function(S){return w(S)===f},jt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},jt.isForwardRef=function(S){return w(S)===h},jt.isFragment=function(S){return w(S)===o},jt.isLazy=function(S){return w(S)===x},jt.isMemo=function(S){return w(S)===y},jt.isPortal=function(S){return w(S)===a},jt.isProfiler=function(S){return w(S)===s},jt.isStrictMode=function(S){return w(S)===i},jt.isSuspense=function(S){return w(S)===m},jt.isSuspenseList=function(S){return w(S)===g},jt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===o||S===s||S===i||S===m||S===g||typeof S=="object"&&S!==null&&(S.$$typeof===x||S.$$typeof===y||S.$$typeof===f||S.$$typeof===c||S.$$typeof===h||S.$$typeof===v||S.getModuleId!==void 0)},jt.typeOf=w,jt}var qy;function n5(){return qy||(qy=1,np.exports=t5()),np.exports}var wx=n5();function Da(t){if(typeof t!="object"||t===null)return!1;const a=Object.getPrototypeOf(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Tx(t){if(M.isValidElement(t)||wx.isValidElementType(t)||!Da(t))return t;const a={};return Object.keys(t).forEach(o=>{a[o]=Tx(t[o])}),a}function xn(t,a,o={clone:!0}){const i=o.clone?{...t}:t;return Da(t)&&Da(a)&&Object.keys(a).forEach(s=>{M.isValidElement(a[s])||wx.isValidElementType(a[s])?i[s]=a[s]:Da(a[s])&&Object.prototype.hasOwnProperty.call(t,s)&&Da(t[s])?i[s]=xn(t[s],a[s],o):o.clone?i[s]=Da(a[s])?Tx(a[s]):a[s]:i[s]=a[s]}),i}const a5=t=>{const a=Object.keys(t).map(o=>({key:o,val:t[o]}))||[];return a.sort((o,i)=>o.val-i.val),a.reduce((o,i)=>({...o,[i.key]:i.val}),{})};function r5(t){const{values:a={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...s}=t,c=a5(a),f=Object.keys(c);function h(T){return`@media (min-width:${typeof a[T]=="number"?a[T]:T}${o})`}function m(T){return`@media (max-width:${(typeof a[T]=="number"?a[T]:T)-i/100}${o})`}function g(T,v){const w=f.indexOf(v);return`@media (min-width:${typeof a[T]=="number"?a[T]:T}${o}) and (max-width:${(w!==-1&&typeof a[f[w]]=="number"?a[f[w]]:v)-i/100}${o})`}function y(T){return f.indexOf(T)+1<f.length?g(T,f[f.indexOf(T)+1]):h(T)}function x(T){const v=f.indexOf(T);return v===0?h(f[1]):v===f.length-1?m(f[v]):g(T,f[f.indexOf(T)+1]).replace("@media","@media not all and")}return{keys:f,values:c,up:h,down:m,between:g,only:y,not:x,unit:o,...s}}function Gy(t,a){if(!t.containerQueries)return a;const o=Object.keys(a).filter(i=>i.startsWith("@container")).sort((i,s)=>{var f,h;const c=/min-width:\s*([0-9.]+)/;return+(((f=i.match(c))==null?void 0:f[1])||0)-+(((h=s.match(c))==null?void 0:h[1])||0)});return o.length?o.reduce((i,s)=>{const c=a[s];return delete i[s],i[s]=c,i},{...a}):a}function o5(t,a){return a==="@"||a.startsWith("@")&&(t.some(o=>a.startsWith(`@${o}`))||!!a.match(/^@\d/))}function i5(t,a){const o=a.match(/^@([^/]+)?\/?(.+)?$/);if(!o)return null;const[,i,s]=o,c=Number.isNaN(+i)?i||0:+i;return t.containerQueries(s).up(c)}function l5(t){const a=(c,f)=>c.replace("@media",f?`@container ${f}`:"@container");function o(c,f){c.up=(...h)=>a(t.breakpoints.up(...h),f),c.down=(...h)=>a(t.breakpoints.down(...h),f),c.between=(...h)=>a(t.breakpoints.between(...h),f),c.only=(...h)=>a(t.breakpoints.only(...h),f),c.not=(...h)=>{const m=a(t.breakpoints.not(...h),f);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const i={},s=c=>(o(i,c),i);return o(s),{...t,containerQueries:s}}const s5={borderRadius:4};function Ll(t,a){return a?xn(t,a,{clone:!1}):t}const pu={xs:0,sm:600,md:900,lg:1200,xl:1536},Yy={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${pu[t]}px)`},c5={containerQueries:t=>({up:a=>{let o=typeof a=="number"?a:pu[a]||a;return typeof o=="number"&&(o=`${o}px`),t?`@container ${t} (min-width:${o})`:`@container (min-width:${o})`}})};function lr(t,a,o){const i=t.theme||{};if(Array.isArray(a)){const c=i.breakpoints||Yy;return a.reduce((f,h,m)=>(f[c.up(c.keys[m])]=o(a[m]),f),{})}if(typeof a=="object"){const c=i.breakpoints||Yy;return Object.keys(a).reduce((f,h)=>{if(o5(c.keys,h)){const m=i5(i.containerQueries?i:c5,h);m&&(f[m]=o(a[h],h))}else if(Object.keys(c.values||pu).includes(h)){const m=c.up(h);f[m]=o(a[h],h)}else{const m=h;f[m]=a[m]}return f},{})}return o(a)}function u5(t={}){var o;return((o=t.keys)==null?void 0:o.reduce((i,s)=>{const c=t.up(s);return i[c]={},i},{}))||{}}function Xy(t,a){return t.reduce((o,i)=>{const s=o[i];return(!s||Object.keys(s).length===0)&&delete o[i],o},a)}function xe(t){if(typeof t!="string")throw new Error(ir(7));return t.charAt(0).toUpperCase()+t.slice(1)}function hu(t,a,o=!0){if(!a||typeof a!="string")return null;if(t&&t.vars&&o){const i=`vars.${a}`.split(".").reduce((s,c)=>s&&s[c]?s[c]:null,t);if(i!=null)return i}return a.split(".").reduce((i,s)=>i&&i[s]!=null?i[s]:null,t)}function Zc(t,a,o,i=o){let s;return typeof t=="function"?s=t(o):Array.isArray(t)?s=t[o]||i:s=hu(t,o)||i,a&&(s=a(s,i,t)),s}function Gt(t){const{prop:a,cssProperty:o=t.prop,themeKey:i,transform:s}=t,c=f=>{if(f[a]==null)return null;const h=f[a],m=f.theme,g=hu(m,i)||{};return lr(f,h,x=>{let T=Zc(g,s,x);return x===T&&typeof x=="string"&&(T=Zc(g,s,`${a}${x==="default"?"":xe(x)}`,x)),o===!1?T:{[o]:T}})};return c.propTypes={},c.filterProps=[a],c}function d5(t){const a={};return o=>(a[o]===void 0&&(a[o]=t(o)),a[o])}const f5={m:"margin",p:"padding"},p5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ky={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},h5=d5(t=>{if(t.length>2)if(Ky[t])t=Ky[t];else return[t];const[a,o]=t.split(""),i=f5[a],s=p5[o]||"";return Array.isArray(s)?s.map(c=>i+c):[i+s]}),nh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ah=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nh,...ah];function ns(t,a,o,i){const s=hu(t,a,!0)??o;return typeof s=="number"||typeof s=="string"?c=>typeof c=="string"?c:typeof s=="string"?s.startsWith("var(")&&c===0?0:s.startsWith("var(")&&c===1?s:`calc(${c} * ${s})`:s*c:Array.isArray(s)?c=>{if(typeof c=="string")return c;const f=Math.abs(c),h=s[f];return c>=0?h:typeof h=="number"?-h:typeof h=="string"&&h.startsWith("var(")?`calc(-1 * ${h})`:`-${h}`}:typeof s=="function"?s:()=>{}}function rh(t){return ns(t,"spacing",8)}function as(t,a){return typeof a=="string"||a==null?a:t(a)}function m5(t,a){return o=>t.reduce((i,s)=>(i[s]=as(a,o),i),{})}function g5(t,a,o,i){if(!a.includes(o))return null;const s=h5(o),c=m5(s,i),f=t[o];return lr(t,f,c)}function Rx(t,a){const o=rh(t.theme);return Object.keys(t).map(i=>g5(t,a,i,o)).reduce(Ll,{})}function It(t){return Rx(t,nh)}It.propTypes={};It.filterProps=nh;function Ft(t){return Rx(t,ah)}Ft.propTypes={};Ft.filterProps=ah;function jx(t=8,a=rh({spacing:t})){if(t.mui)return t;const o=(...i)=>(i.length===0?[1]:i).map(c=>{const f=a(c);return typeof f=="number"?`${f}px`:f}).join(" ");return o.mui=!0,o}function mu(...t){const a=t.reduce((i,s)=>(s.filterProps.forEach(c=>{i[c]=s}),i),{}),o=i=>Object.keys(i).reduce((s,c)=>a[c]?Ll(s,a[c](i)):s,{});return o.propTypes={},o.filterProps=t.reduce((i,s)=>i.concat(s.filterProps),[]),o}function la(t){return typeof t!="number"?t:`${t}px solid`}function pa(t,a){return Gt({prop:t,themeKey:"borders",transform:a})}const y5=pa("border",la),b5=pa("borderTop",la),x5=pa("borderRight",la),v5=pa("borderBottom",la),S5=pa("borderLeft",la),C5=pa("borderColor"),w5=pa("borderTopColor"),T5=pa("borderRightColor"),R5=pa("borderBottomColor"),j5=pa("borderLeftColor"),E5=pa("outline",la),M5=pa("outlineColor"),gu=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const a=ns(t.theme,"shape.borderRadius",4),o=i=>({borderRadius:as(a,i)});return lr(t,t.borderRadius,o)}return null};gu.propTypes={};gu.filterProps=["borderRadius"];mu(y5,b5,x5,v5,S5,C5,w5,T5,R5,j5,gu,E5,M5);const yu=t=>{if(t.gap!==void 0&&t.gap!==null){const a=ns(t.theme,"spacing",8),o=i=>({gap:as(a,i)});return lr(t,t.gap,o)}return null};yu.propTypes={};yu.filterProps=["gap"];const bu=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const a=ns(t.theme,"spacing",8),o=i=>({columnGap:as(a,i)});return lr(t,t.columnGap,o)}return null};bu.propTypes={};bu.filterProps=["columnGap"];const xu=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const a=ns(t.theme,"spacing",8),o=i=>({rowGap:as(a,i)});return lr(t,t.rowGap,o)}return null};xu.propTypes={};xu.filterProps=["rowGap"];const A5=Gt({prop:"gridColumn"}),k5=Gt({prop:"gridRow"}),z5=Gt({prop:"gridAutoFlow"}),O5=Gt({prop:"gridAutoColumns"}),B5=Gt({prop:"gridAutoRows"}),D5=Gt({prop:"gridTemplateColumns"}),H5=Gt({prop:"gridTemplateRows"}),N5=Gt({prop:"gridTemplateAreas"}),L5=Gt({prop:"gridArea"});mu(yu,bu,xu,A5,k5,z5,O5,B5,D5,H5,N5,L5);function xi(t,a){return a==="grey"?a:t}const $5=Gt({prop:"color",themeKey:"palette",transform:xi}),_5=Gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xi}),U5=Gt({prop:"backgroundColor",themeKey:"palette",transform:xi});mu($5,_5,U5);function Vn(t){return t<=1&&t!==0?`${t*100}%`:t}const P5=Gt({prop:"width",transform:Vn}),oh=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const a=o=>{var s,c,f,h,m;const i=((f=(c=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:c.values)==null?void 0:f[o])||pu[o];return i?((m=(h=t.theme)==null?void 0:h.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${i}${t.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Vn(o)}};return lr(t,t.maxWidth,a)}return null};oh.filterProps=["maxWidth"];const I5=Gt({prop:"minWidth",transform:Vn}),F5=Gt({prop:"height",transform:Vn}),W5=Gt({prop:"maxHeight",transform:Vn}),V5=Gt({prop:"minHeight",transform:Vn});Gt({prop:"size",cssProperty:"width",transform:Vn});Gt({prop:"size",cssProperty:"height",transform:Vn});const q5=Gt({prop:"boxSizing"});mu(P5,oh,I5,F5,W5,V5,q5);const rs={border:{themeKey:"borders",transform:la},borderTop:{themeKey:"borders",transform:la},borderRight:{themeKey:"borders",transform:la},borderBottom:{themeKey:"borders",transform:la},borderLeft:{themeKey:"borders",transform:la},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:la},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gu},color:{themeKey:"palette",transform:xi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xi},backgroundColor:{themeKey:"palette",transform:xi},p:{style:Ft},pt:{style:Ft},pr:{style:Ft},pb:{style:Ft},pl:{style:Ft},px:{style:Ft},py:{style:Ft},padding:{style:Ft},paddingTop:{style:Ft},paddingRight:{style:Ft},paddingBottom:{style:Ft},paddingLeft:{style:Ft},paddingX:{style:Ft},paddingY:{style:Ft},paddingInline:{style:Ft},paddingInlineStart:{style:Ft},paddingInlineEnd:{style:Ft},paddingBlock:{style:Ft},paddingBlockStart:{style:Ft},paddingBlockEnd:{style:Ft},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:yu},rowGap:{style:xu},columnGap:{style:bu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vn},maxWidth:{style:oh},minWidth:{transform:Vn},height:{transform:Vn},maxHeight:{transform:Vn},minHeight:{transform:Vn},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 G5(...t){const a=t.reduce((i,s)=>i.concat(Object.keys(s)),[]),o=new Set(a);return t.every(i=>o.size===Object.keys(i).length)}function Y5(t,a){return typeof t=="function"?t(a):t}function X5(){function t(o,i,s,c){const f={[o]:i,theme:s},h=c[o];if(!h)return{[o]:i};const{cssProperty:m=o,themeKey:g,transform:y,style:x}=h;if(i==null)return null;if(g==="typography"&&i==="inherit")return{[o]:i};const T=hu(s,g)||{};return x?x(f):lr(f,i,w=>{let S=Zc(T,y,w);return w===S&&typeof w=="string"&&(S=Zc(T,y,`${o}${w==="default"?"":xe(w)}`,w)),m===!1?S:{[m]:S}})}function a(o){const{sx:i,theme:s={},nested:c}=o||{};if(!i)return null;const f=s.unstable_sxConfig??rs;function h(m){let g=m;if(typeof m=="function")g=m(s);else if(typeof m!="object")return m;if(!g)return null;const y=u5(s.breakpoints),x=Object.keys(y);let T=y;return Object.keys(g).forEach(v=>{const w=Y5(g[v],s);if(w!=null)if(typeof w=="object")if(f[v])T=Ll(T,t(v,w,s,f));else{const S=lr({theme:s},w,R=>({[v]:R}));G5(S,w)?T[v]=a({sx:w,theme:s,nested:!0}):T=Ll(T,S)}else T=Ll(T,t(v,w,s,f))}),!c&&s.modularCssLayers?{"@layer sx":Gy(s,Xy(x,T))}:Gy(s,Xy(x,T))}return Array.isArray(i)?i.map(h):h(i)}return a}const Fr=X5();Fr.filterProps=["sx"];function K5(t,a){var i;const o=this;if(o.vars){if(!((i=o.colorSchemes)!=null&&i[t])||typeof o.getColorSchemeSelector!="function")return{};let s=o.getColorSchemeSelector(t);return s==="&"?a:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:a})}return o.palette.mode===t?a:{}}function ih(t={},...a){const{breakpoints:o={},palette:i={},spacing:s,shape:c={},...f}=t,h=r5(o),m=jx(s);let g=xn({breakpoints:h,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:m,shape:{...s5,...c}},f);return g=l5(g),g.applyStyles=K5,g=a.reduce((y,x)=>xn(y,x),g),g.unstable_sxConfig={...rs,...f==null?void 0:f.unstable_sxConfig},g.unstable_sx=function(x){return Fr({sx:x,theme:this})},g}function Q5(t){return Object.keys(t).length===0}function lh(t=null){const a=M.useContext(es);return!a||Q5(a)?t:a}const Z5=ih();function sh(t=Z5){return lh(t)}function ap(t){const a=Pr(t);return t!==a&&a.styles?(a.styles.match(/^@layer\s+[^{]*$/)||(a.styles=`@layer global{${a.styles}}`),a):t}function Ex({styles:t,themeId:a,defaultTheme:o={}}){const i=sh(o),s=a&&i[a]||i;let c=typeof t=="function"?t(s):t;return s.modularCssLayers&&(Array.isArray(c)?c=c.map(f=>ap(typeof f=="function"?f(s):f)):c=ap(c)),d.jsx(Sx,{styles:c})}const J5=t=>{var i;const a={systemProps:{},otherProps:{}},o=((i=t==null?void 0:t.theme)==null?void 0:i.unstable_sxConfig)??rs;return Object.keys(t).forEach(s=>{o[s]?a.systemProps[s]=t[s]:a.otherProps[s]=t[s]}),a};function Mx(t){const{sx:a,...o}=t,{systemProps:i,otherProps:s}=J5(o);let c;return Array.isArray(a)?c=[i,...a]:typeof a=="function"?c=(...f)=>{const h=a(...f);return Da(h)?{...i,...h}:i}:c={...i,...a},{...s,sx:c}}const Qy=t=>t,eC=()=>{let t=Qy;return{configure(a){t=a},generate(a){return t(a)},reset(){t=Qy}}},Ax=eC();function kx(t){var a,o,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(a=0;a<s;a++)t[a]&&(o=kx(t[a]))&&(i&&(i+=" "),i+=o)}else for(o in t)t[o]&&(i&&(i+=" "),i+=o);return i}function De(){for(var t,a,o=0,i="",s=arguments.length;o<s;o++)(t=arguments[o])&&(a=kx(t))&&(i&&(i+=" "),i+=a);return i}function tC(t={}){const{themeId:a,defaultTheme:o,defaultClassName:i="MuiBox-root",generateClassName:s}=t,c=Cx("div",{shouldForwardProp:h=>h!=="theme"&&h!=="sx"&&h!=="as"})(Fr);return M.forwardRef(function(m,g){const y=sh(o),{className:x,component:T="div",...v}=Mx(m);return d.jsx(c,{as:T,ref:g,className:De(x,s?s(i):i),theme:a&&y[a]||y,...v})})}const nC={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 et(t,a,o="Mui"){const i=nC[a];return i?`${o}-${i}`:`${Ax.generate(t)}-${a}`}function Qe(t,a,o="Mui"){const i={};return a.forEach(s=>{i[s]=et(t,s,o)}),i}function zx(t){const{variants:a,...o}=t,i={variants:a,style:Pr(o),isProcessed:!0};return i.style===o||a&&a.forEach(s=>{typeof s.style!="function"&&(s.style=Pr(s.style))}),i}const aC=ih();function rp(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function bo(t,a){return a&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${a}{${String(t.styles)}}`),t}function rC(t){return t?(a,o)=>o[t]:null}function oC(t,a,o){t.theme=sC(t.theme)?o:t.theme[a]||t.theme}function qc(t,a,o){const i=typeof a=="function"?a(t):a;if(Array.isArray(i))return i.flatMap(s=>qc(t,s,o));if(Array.isArray(i==null?void 0:i.variants)){let s;if(i.isProcessed)s=o?bo(i.style,o):i.style;else{const{variants:c,...f}=i;s=o?bo(Pr(f),o):f}return Ox(t,i.variants,[s],o)}return i!=null&&i.isProcessed?o?bo(Pr(i.style),o):i.style:o?bo(Pr(i),o):i}function Ox(t,a,o=[],i=void 0){var c;let s;e:for(let f=0;f<a.length;f+=1){const h=a[f];if(typeof h.props=="function"){if(s??(s={...t,...t.ownerState,ownerState:t.ownerState}),!h.props(s))continue}else for(const m in h.props)if(t[m]!==h.props[m]&&((c=t.ownerState)==null?void 0:c[m])!==h.props[m])continue e;typeof h.style=="function"?(s??(s={...t,...t.ownerState,ownerState:t.ownerState}),o.push(i?bo(Pr(h.style(s)),i):h.style(s))):o.push(i?bo(Pr(h.style),i):h.style)}return o}function iC(t={}){const{themeId:a,defaultTheme:o=aC,rootShouldForwardProp:i=rp,slotShouldForwardProp:s=rp}=t;function c(h){oC(h,a,o)}return(h,m={})=>{e5(h,H=>H.filter(N=>N!==Fr));const{name:g,slot:y,skipVariantsResolver:x,skipSx:T,overridesResolver:v=rC(uC(y)),...w}=m,S=g&&g.startsWith("Mui")||y?"components":"custom",R=x!==void 0?x:y&&y!=="Root"&&y!=="root"||!1,z=T||!1;let D=rp;y==="Root"||y==="root"?D=i:y?D=s:cC(h)&&(D=void 0);const O=Cx(h,{shouldForwardProp:D,label:lC(),...w}),j=H=>{if(H.__emotion_real===H)return H;if(typeof H=="function")return function(L){return qc(L,H,L.theme.modularCssLayers?S:void 0)};if(Da(H)){const N=zx(H);return function(q){return N.variants?qc(q,N,q.theme.modularCssLayers?S:void 0):q.theme.modularCssLayers?bo(N.style,S):N.style}}return H},k=(...H)=>{const N=[],L=H.map(j),q=[];if(N.push(c),g&&v&&q.push(function($){var F,_;const X=(_=(F=$.theme.components)==null?void 0:F[g])==null?void 0:_.styleOverrides;if(!X)return null;const B={};for(const V in X)B[V]=qc($,X[V],$.theme.modularCssLayers?"theme":void 0);return v($,B)}),g&&!R&&q.push(function($){var B,F;const P=$.theme,X=(F=(B=P==null?void 0:P.components)==null?void 0:B[g])==null?void 0:F.variants;return X?Ox($,X,[],$.theme.modularCssLayers?"theme":void 0):null}),z||q.push(Fr),Array.isArray(L[0])){const C=L.shift(),$=new Array(N.length).fill(""),P=new Array(q.length).fill("");let X;X=[...$,...C,...P],X.raw=[...$,...C.raw,...P],N.unshift(X)}const I=[...N,...L,...q],Y=O(...I);return h.muiName&&(Y.muiName=h.muiName),Y};return O.withConfig&&(k.withConfig=O.withConfig),k}}function lC(t,a){return void 0}function sC(t){for(const a in t)return!1;return!0}function cC(t){return typeof t=="string"&&t.charCodeAt(0)>96}function uC(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Jc(t,a,o=!1){const i={...a};for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const c=s;if(c==="components"||c==="slots")i[c]={...t[c],...i[c]};else if(c==="componentsProps"||c==="slotProps"){const f=t[c],h=a[c];if(!h)i[c]=f||{};else if(!f)i[c]=h;else{i[c]={...h};for(const m in f)if(Object.prototype.hasOwnProperty.call(f,m)){const g=m;i[c][g]=Jc(f[g],h[g],o)}}}else c==="className"&&o&&a.className?i.className=De(t==null?void 0:t.className,a==null?void 0:a.className):c==="style"&&o&&a.style?i.style={...t==null?void 0:t.style,...a==null?void 0:a.style}:i[c]===void 0&&(i[c]=t[c])}return i}const Dn=typeof window<"u"?M.useLayoutEffect:M.useEffect;function mi(t,a=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(a,Math.min(t,o))}function ch(t,a=0,o=1){return mi(t,a,o)}function dC(t){t=t.slice(1);const a=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let o=t.match(a);return o&&o[0].length===1&&(o=o.map(i=>i+i)),o?`rgb${o.length===4?"a":""}(${o.map((i,s)=>s<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Wr(t){if(t.type)return t;if(t.charAt(0)==="#")return Wr(dC(t));const a=t.indexOf("("),o=t.substring(0,a);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(ir(9,t));let i=t.substring(a+1,t.length-1),s;if(o==="color"){if(i=i.split(" "),s=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(ir(10,s))}else i=i.split(",");return i=i.map(c=>parseFloat(c)),{type:o,values:i,colorSpace:s}}const fC=t=>{const a=Wr(t);return a.values.slice(0,3).map((o,i)=>a.type.includes("hsl")&&i!==0?`${o}%`:o).join(" ")},Bl=(t,a)=>{try{return fC(t)}catch{return t}};function vu(t){const{type:a,colorSpace:o}=t;let{values:i}=t;return a.includes("rgb")?i=i.map((s,c)=>c<3?parseInt(s,10):s):a.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),a.includes("color")?i=`${o} ${i.join(" ")}`:i=`${i.join(", ")}`,`${a}(${i})`}function Bx(t){t=Wr(t);const{values:a}=t,o=a[0],i=a[1]/100,s=a[2]/100,c=i*Math.min(s,1-s),f=(g,y=(g+o/30)%12)=>s-c*Math.max(Math.min(y-3,9-y,1),-1);let h="rgb";const m=[Math.round(f(0)*255),Math.round(f(8)*255),Math.round(f(4)*255)];return t.type==="hsla"&&(h+="a",m.push(a[3])),vu({type:h,values:m})}function Rp(t){t=Wr(t);let a=t.type==="hsl"||t.type==="hsla"?Wr(Bx(t)).values:t.values;return a=a.map(o=>(t.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*a[0]+.7152*a[1]+.0722*a[2]).toFixed(3))}function pC(t,a){const o=Rp(t),i=Rp(a);return(Math.max(o,i)+.05)/(Math.min(o,i)+.05)}function eu(t,a){return t=Wr(t),a=ch(a),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${a}`:t.values[3]=a,vu(t)}function fo(t,a,o){try{return eu(t,a)}catch{return t}}function Su(t,a){if(t=Wr(t),a=ch(a),t.type.includes("hsl"))t.values[2]*=1-a;else if(t.type.includes("rgb")||t.type.includes("color"))for(let o=0;o<3;o+=1)t.values[o]*=1-a;return vu(t)}function vt(t,a,o){try{return Su(t,a)}catch{return t}}function Cu(t,a){if(t=Wr(t),a=ch(a),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*a;else if(t.type.includes("rgb"))for(let o=0;o<3;o+=1)t.values[o]+=(255-t.values[o])*a;else if(t.type.includes("color"))for(let o=0;o<3;o+=1)t.values[o]+=(1-t.values[o])*a;return vu(t)}function St(t,a,o){try{return Cu(t,a)}catch{return t}}function hC(t,a=.15){return Rp(t)>.5?Su(t,a):Cu(t,a)}function Mc(t,a,o){try{return hC(t,a)}catch{return t}}const Dx=M.createContext(null);function uh(){return M.useContext(Dx)}const mC=typeof Symbol=="function"&&Symbol.for,gC=mC?Symbol.for("mui.nested"):"__THEME_NESTED__";function yC(t,a){return typeof a=="function"?a(t):{...t,...a}}function bC(t){const{children:a,theme:o}=t,i=uh(),s=M.useMemo(()=>{const c=i===null?{...o}:yC(i,o);return c!=null&&(c[gC]=i!==null),c},[o,i]);return d.jsx(Dx.Provider,{value:s,children:a})}const Hx=M.createContext();function xC({value:t,...a}){return d.jsx(Hx.Provider,{value:t??!0,...a})}const wu=()=>M.useContext(Hx)??!1,Nx=M.createContext(void 0);function vC({value:t,children:a}){return d.jsx(Nx.Provider,{value:t,children:a})}function SC(t){const{theme:a,name:o,props:i}=t;if(!a||!a.components||!a.components[o])return i;const s=a.components[o];return s.defaultProps?Jc(s.defaultProps,i,a.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?Jc(s,i,a.components.mergeClassNameAndStyle):i}function CC({props:t,name:a}){const o=M.useContext(Nx);return SC({props:t,name:a,theme:{components:o}})}let Zy=0;function wC(t){const[a,o]=M.useState(t),i=t||a;return M.useEffect(()=>{a==null&&(Zy+=1,o(`mui-${Zy}`))},[a]),i}const TC={...vp},Jy=TC.useId;function wo(t){if(Jy!==void 0){const a=Jy();return t??a}return wC(t)}function RC(t){const a=lh(),o=wo()||"",{modularCssLayers:i}=t;let s="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!i||a!==null?s="":typeof i=="string"?s=i.replace(/mui(?!\.)/g,s):s=`@layer ${s};`,Dn(()=>{var h,m;const c=document.querySelector("head");if(!c)return;const f=c.firstChild;if(s){if(f&&((h=f.hasAttribute)!=null&&h.call(f,"data-mui-layer-order"))&&f.getAttribute("data-mui-layer-order")===o)return;const g=document.createElement("style");g.setAttribute("data-mui-layer-order",o),g.textContent=s,c.prepend(g)}else(m=c.querySelector(`style[data-mui-layer-order="${o}"]`))==null||m.remove()},[s,o]),s?d.jsx(Ex,{styles:s}):null}const eb={};function tb(t,a,o,i=!1){return M.useMemo(()=>{const s=t&&a[t]||a;if(typeof o=="function"){const c=o(s),f=t?{...a,[t]:c}:c;return i?()=>f:f}return t?{...a,[t]:o}:{...a,...o}},[t,a,o,i])}function Lx(t){const{children:a,theme:o,themeId:i}=t,s=lh(eb),c=uh()||eb,f=tb(i,s,o),h=tb(i,c,o,!0),m=(i?f[i]:f).direction==="rtl",g=RC(f);return d.jsx(bC,{theme:h,children:d.jsx(es.Provider,{value:f,children:d.jsx(xC,{value:m,children:d.jsxs(vC,{value:i?f[i].components:f.components,children:[g,a]})})})})}const nb={theme:void 0};function jC(t){let a,o;return function(s){let c=a;return(c===void 0||s.theme!==o)&&(nb.theme=s.theme,c=zx(t(nb)),a=c,o=s.theme),c}}const dh="mode",fh="color-scheme",EC="data-color-scheme";function MC(t){const{defaultMode:a="system",defaultLightColorScheme:o="light",defaultDarkColorScheme:i="dark",modeStorageKey:s=dh,colorSchemeStorageKey:c=fh,attribute:f=EC,colorSchemeNode:h="document.documentElement",nonce:m}=t||{};let g="",y=f;if(f==="class"&&(y=".%s"),f==="data"&&(y="[data-%s]"),y.startsWith(".")){const T=y.substring(1);g+=`${h}.classList.remove('${T}'.replace('%s', light), '${T}'.replace('%s', dark));
|
|
65
|
+
${h}.classList.add('${T}'.replace('%s', colorScheme));`}const x=y.match(/\[([^[\]]+)\]/);if(x){const[T,v]=x[1].split("=");v||(g+=`${h}.removeAttribute('${T}'.replace('%s', light));
|
|
66
|
+
${h}.removeAttribute('${T}'.replace('%s', dark));`),g+=`
|
|
67
|
+
${h}.setAttribute('${T}'.replace('%s', colorScheme), ${v?`${v}.replace('%s', colorScheme)`:'""'});`}else y!==".%s"&&(g+=`${h}.setAttribute('${y}', colorScheme);`);return d.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
68
|
+
try {
|
|
69
|
+
let colorScheme = '';
|
|
70
|
+
const mode = localStorage.getItem('${s}') || '${a}';
|
|
71
|
+
const dark = localStorage.getItem('${c}-dark') || '${i}';
|
|
72
|
+
const light = localStorage.getItem('${c}-light') || '${o}';
|
|
73
|
+
if (mode === 'system') {
|
|
74
|
+
// handle system mode
|
|
75
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
76
|
+
if (mql.matches) {
|
|
77
|
+
colorScheme = dark
|
|
78
|
+
} else {
|
|
79
|
+
colorScheme = light
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (mode === 'light') {
|
|
83
|
+
colorScheme = light;
|
|
84
|
+
}
|
|
85
|
+
if (mode === 'dark') {
|
|
86
|
+
colorScheme = dark;
|
|
87
|
+
}
|
|
88
|
+
if (colorScheme) {
|
|
89
|
+
${g}
|
|
90
|
+
}
|
|
91
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function AC(){}const kC=({key:t,storageWindow:a})=>(!a&&typeof window<"u"&&(a=window),{get(o){if(typeof window>"u")return;if(!a)return o;let i;try{i=a.localStorage.getItem(t)}catch{}return i||o},set:o=>{if(a)try{a.localStorage.setItem(t,o)}catch{}},subscribe:o=>{if(!a)return AC;const i=s=>{const c=s.newValue;s.key===t&&o(c)};return a.addEventListener("storage",i),()=>{a.removeEventListener("storage",i)}}});function op(){}function ab(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function $x(t,a){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return a("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return a("dark")}function zC(t){return $x(t,a=>{if(a==="light")return t.lightColorScheme;if(a==="dark")return t.darkColorScheme})}function OC(t){const{defaultMode:a="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:s=[],modeStorageKey:c=dh,colorSchemeStorageKey:f=fh,storageWindow:h=typeof window>"u"?void 0:window,storageManager:m=kC,noSsr:g=!1}=t,y=s.join(","),x=s.length>1,T=M.useMemo(()=>m==null?void 0:m({key:c,storageWindow:h}),[m,c,h]),v=M.useMemo(()=>m==null?void 0:m({key:`${f}-light`,storageWindow:h}),[m,f,h]),w=M.useMemo(()=>m==null?void 0:m({key:`${f}-dark`,storageWindow:h}),[m,f,h]),[S,R]=M.useState(()=>{const L=(T==null?void 0:T.get(a))||a,q=(v==null?void 0:v.get(o))||o,I=(w==null?void 0:w.get(i))||i;return{mode:L,systemMode:ab(L),lightColorScheme:q,darkColorScheme:I}}),[z,D]=M.useState(g||!x);M.useEffect(()=>{D(!0)},[]);const O=zC(S),j=M.useCallback(L=>{R(q=>{if(L===q.mode)return q;const I=L??a;return T==null||T.set(I),{...q,mode:I,systemMode:ab(I)}})},[T,a]),k=M.useCallback(L=>{L?typeof L=="string"?L&&!y.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):R(q=>{const I={...q};return $x(q,Y=>{Y==="light"&&(v==null||v.set(L),I.lightColorScheme=L),Y==="dark"&&(w==null||w.set(L),I.darkColorScheme=L)}),I}):R(q=>{const I={...q},Y=L.light===null?o:L.light,C=L.dark===null?i:L.dark;return Y&&(y.includes(Y)?(I.lightColorScheme=Y,v==null||v.set(Y)):console.error(`\`${Y}\` does not exist in \`theme.colorSchemes\`.`)),C&&(y.includes(C)?(I.darkColorScheme=C,w==null||w.set(C)):console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`)),I}):R(q=>(v==null||v.set(o),w==null||w.set(i),{...q,lightColorScheme:o,darkColorScheme:i}))},[y,v,w,o,i]),H=M.useCallback(L=>{S.mode==="system"&&R(q=>{const I=L!=null&&L.matches?"dark":"light";return q.systemMode===I?q:{...q,systemMode:I}})},[S.mode]),N=M.useRef(H);return N.current=H,M.useEffect(()=>{if(typeof window.matchMedia!="function"||!x)return;const L=(...I)=>N.current(...I),q=window.matchMedia("(prefers-color-scheme: dark)");return q.addListener(L),L(q),()=>{q.removeListener(L)}},[x]),M.useEffect(()=>{if(x){const L=(T==null?void 0:T.subscribe(Y=>{(!Y||["light","dark","system"].includes(Y))&&j(Y||a)}))||op,q=(v==null?void 0:v.subscribe(Y=>{(!Y||y.match(Y))&&k({light:Y})}))||op,I=(w==null?void 0:w.subscribe(Y=>{(!Y||y.match(Y))&&k({dark:Y})}))||op;return()=>{L(),q(),I()}}},[k,j,y,a,h,x,T,v,w]),{...S,mode:z?S.mode:void 0,systemMode:z?S.systemMode:void 0,colorScheme:z?O:void 0,setMode:j,setColorScheme:k}}const BC="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function DC(t){const{themeId:a,theme:o={},modeStorageKey:i=dh,colorSchemeStorageKey:s=fh,disableTransitionOnChange:c=!1,defaultColorScheme:f,resolveTheme:h}=t,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},g=M.createContext(void 0),y=()=>M.useContext(g)||m,x={},T={};function v(z){var he,Re,ze,Ie;const{children:D,theme:O,modeStorageKey:j=i,colorSchemeStorageKey:k=s,disableTransitionOnChange:H=c,storageManager:N,storageWindow:L=typeof window>"u"?void 0:window,documentNode:q=typeof document>"u"?void 0:document,colorSchemeNode:I=typeof document>"u"?void 0:document.documentElement,disableNestedContext:Y=!1,disableStyleSheetGeneration:C=!1,defaultMode:$="system",forceThemeRerender:P=!1,noSsr:X}=z,B=M.useRef(!1),F=uh(),_=M.useContext(g),V=!!_&&!Y,ce=M.useMemo(()=>O||(typeof o=="function"?o():o),[O]),E=ce[a],W=E||ce,{colorSchemes:Q=x,components:ie=T,cssVarPrefix:J}=W,pe=Object.keys(Q).filter(Se=>!!Q[Se]).join(","),fe=M.useMemo(()=>pe.split(","),[pe]),le=typeof f=="string"?f:f.light,ve=typeof f=="string"?f:f.dark,we=Q[le]&&Q[ve]?$:((Re=(he=Q[W.defaultColorScheme])==null?void 0:he.palette)==null?void 0:Re.mode)||((ze=W.palette)==null?void 0:ze.mode),{mode:je,setMode:Me,systemMode:_e,lightColorScheme:me,darkColorScheme:Le,colorScheme:He,setColorScheme:Ee}=OC({supportedColorSchemes:fe,defaultLightColorScheme:le,defaultDarkColorScheme:ve,modeStorageKey:j,colorSchemeStorageKey:k,defaultMode:we,storageManager:N,storageWindow:L,noSsr:X});let Pe=je,Xe=He;V&&(Pe=_.mode,Xe=_.colorScheme);let Ye=Xe||W.defaultColorScheme;W.vars&&!P&&(Ye=W.defaultColorScheme);const Ve=M.useMemo(()=>{var qe;const Se=((qe=W.generateThemeVars)==null?void 0:qe.call(W))||W.vars,be={...W,components:ie,colorSchemes:Q,cssVarPrefix:J,vars:Se};if(typeof be.generateSpacing=="function"&&(be.spacing=be.generateSpacing()),Ye){const Ne=Q[Ye];Ne&&typeof Ne=="object"&&Object.keys(Ne).forEach(Oe=>{Ne[Oe]&&typeof Ne[Oe]=="object"?be[Oe]={...be[Oe],...Ne[Oe]}:be[Oe]=Ne[Oe]})}return h?h(be):be},[W,Ye,ie,Q,J]),Ce=W.colorSchemeSelector;Dn(()=>{if(Xe&&I&&Ce&&Ce!=="media"){const Se=Ce;let be=Ce;if(Se==="class"&&(be=".%s"),Se==="data"&&(be="[data-%s]"),Se!=null&&Se.startsWith("data-")&&!Se.includes("%s")&&(be=`[${Se}="%s"]`),be.startsWith("."))I.classList.remove(...fe.map(qe=>be.substring(1).replace("%s",qe))),I.classList.add(be.substring(1).replace("%s",Xe));else{const qe=be.replace("%s",Xe).match(/\[([^\]]+)\]/);if(qe){const[Ne,Oe]=qe[1].split("=");Oe||fe.forEach(Bt=>{I.removeAttribute(Ne.replace(Xe,Bt))}),I.setAttribute(Ne,Oe?Oe.replace(/"|'/g,""):"")}else I.setAttribute(be,Xe)}}},[Xe,Ce,I,fe]),M.useEffect(()=>{let Se;if(H&&B.current&&q){const be=q.createElement("style");be.appendChild(q.createTextNode(BC)),q.head.appendChild(be),window.getComputedStyle(q.body),Se=setTimeout(()=>{q.head.removeChild(be)},1)}return()=>{clearTimeout(Se)}},[Xe,H,q]),M.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const ct=M.useMemo(()=>({allColorSchemes:fe,colorScheme:Xe,darkColorScheme:Le,lightColorScheme:me,mode:Pe,setColorScheme:Ee,setMode:Me,systemMode:_e}),[fe,Xe,Le,me,Pe,Ee,Me,_e,Ve.colorSchemeSelector]);let Te=!0;(C||W.cssVariables===!1||V&&(F==null?void 0:F.cssVarPrefix)===J)&&(Te=!1);const ue=d.jsxs(M.Fragment,{children:[d.jsx(Lx,{themeId:E?a:void 0,theme:Ve,children:D}),Te&&d.jsx(Sx,{styles:((Ie=Ve.generateStyleSheets)==null?void 0:Ie.call(Ve))||[]})]});return V?ue:d.jsx(g.Provider,{value:ct,children:ue})}const w=typeof f=="string"?f:f.light,S=typeof f=="string"?f:f.dark;return{CssVarsProvider:v,useColorScheme:y,getInitColorSchemeScript:z=>MC({colorSchemeStorageKey:s,defaultLightColorScheme:w,defaultDarkColorScheme:S,modeStorageKey:i,...z})}}function HC(t=""){function a(...i){if(!i.length)return"";const s=i[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${s}${a(...i.slice(1))})`:`, ${s}`}return(i,...s)=>`var(--${t?`${t}-`:""}${i}${a(...s)})`}const rb=(t,a,o,i=[])=>{let s=t;a.forEach((c,f)=>{f===a.length-1?Array.isArray(s)?s[Number(c)]=o:s&&typeof s=="object"&&(s[c]=o):s&&typeof s=="object"&&(s[c]||(s[c]=i.includes(c)?[]:{}),s=s[c])})},NC=(t,a,o)=>{function i(s,c=[],f=[]){Object.entries(s).forEach(([h,m])=>{(!o||o&&!o([...c,h]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?i(m,[...c,h],Array.isArray(m)?[...f,h]:f):a([...c,h],m,f))})}i(t)},LC=(t,a)=>typeof a=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>t.includes(i))||t[t.length-1].toLowerCase().includes("opacity")?a:`${a}px`:a;function ip(t,a){const{prefix:o,shouldSkipGeneratingVar:i}=a||{},s={},c={},f={};return NC(t,(h,m,g)=>{if((typeof m=="string"||typeof m=="number")&&(!i||!i(h,m))){const y=`--${o?`${o}-`:""}${h.join("-")}`,x=LC(h,m);Object.assign(s,{[y]:x}),rb(c,h,`var(${y})`,g),rb(f,h,`var(${y}, ${x})`,g)}},h=>h[0]==="vars"),{css:s,vars:c,varsWithDefaults:f}}function $C(t,a={}){const{getSelector:o=z,disableCssColorScheme:i,colorSchemeSelector:s,enableContrastVars:c}=a,{colorSchemes:f={},components:h,defaultColorScheme:m="light",...g}=t,{vars:y,css:x,varsWithDefaults:T}=ip(g,a);let v=T;const w={},{[m]:S,...R}=f;if(Object.entries(R||{}).forEach(([j,k])=>{const{vars:H,css:N,varsWithDefaults:L}=ip(k,a);v=xn(v,L),w[j]={css:N,vars:H}}),S){const{css:j,vars:k,varsWithDefaults:H}=ip(S,a);v=xn(v,H),w[m]={css:j,vars:k}}function z(j,k){var N,L;let H=s;if(s==="class"&&(H=".%s"),s==="data"&&(H="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(H=`[${s}="%s"]`),j){if(H==="media")return t.defaultColorScheme===j?":root":{[`@media (prefers-color-scheme: ${((L=(N=f[j])==null?void 0:N.palette)==null?void 0:L.mode)||j})`]:{":root":k}};if(H)return t.defaultColorScheme===j?`:root, ${H.replace("%s",String(j))}`:H.replace("%s",String(j))}return":root"}return{vars:v,generateThemeVars:()=>{let j={...y};return Object.entries(w).forEach(([,{vars:k}])=>{j=xn(j,k)}),j},generateStyleSheets:()=>{var q,I;const j=[],k=t.defaultColorScheme||"light";function H(Y,C){Object.keys(C).length&&j.push(typeof Y=="string"?{[Y]:{...C}}:Y)}H(o(void 0,{...x}),x);const{[k]:N,...L}=w;if(N){const{css:Y}=N,C=(I=(q=f[k])==null?void 0:q.palette)==null?void 0:I.mode,$=!i&&C?{colorScheme:C,...Y}:{...Y};H(o(k,{...$}),$)}return Object.entries(L).forEach(([Y,{css:C}])=>{var X,B;const $=(B=(X=f[Y])==null?void 0:X.palette)==null?void 0:B.mode,P=!i&&$?{colorScheme:$,...C}:{...C};H(o(Y,{...P}),P)}),c&&j.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),j}}}function _C(t){return function(o){return t==="media"?`@media (prefers-color-scheme: ${o})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${o}"] &`:t==="class"?`.${o} &`:t==="data"?`[data-${o}] &`:`${t.replace("%s",o)} &`:"&"}}function tt(t,a,o=void 0){const i={};for(const s in t){const c=t[s];let f="",h=!0;for(let m=0;m<c.length;m+=1){const g=c[m];g&&(f+=(h===!0?"":" ")+a(g),h=!1,o&&o[g]&&(f+=" "+o[g]))}i[s]=f}return i}function lp(t,a){var o,i,s;return M.isValidElement(t)&&a.indexOf(t.type.muiName??((s=(i=(o=t.type)==null?void 0:o._payload)==null?void 0:i.value)==null?void 0:s.muiName))!==-1}function _x(){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:Vl.white,default:Vl.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 Ux=_x();function Px(){return{text:{primary:Vl.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:Vl.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 jp=Px();function ob(t,a,o,i){const s=i.light||i,c=i.dark||i*1.5;t[a]||(t.hasOwnProperty(o)?t[a]=t[o]:a==="light"?t.light=Cu(t.main,s):a==="dark"&&(t.dark=Su(t.main,c)))}function ib(t,a,o,i,s){const c=s.light||s,f=s.dark||s*1.5;a[o]||(a.hasOwnProperty(i)?a[o]=a[i]:o==="light"?a.light=`color-mix(in ${t}, ${a.main}, #fff ${(c*100).toFixed(0)}%)`:o==="dark"&&(a.dark=`color-mix(in ${t}, ${a.main}, #000 ${(f*100).toFixed(0)}%)`))}function UC(t="light"){return t==="dark"?{main:ci[200],light:ci[50],dark:ci[400]}:{main:ci[700],light:ci[400],dark:ci[800]}}function PC(t="light"){return t==="dark"?{main:si[200],light:si[50],dark:si[400]}:{main:si[500],light:si[300],dark:si[700]}}function IC(t="light"){return t==="dark"?{main:li[500],light:li[300],dark:li[700]}:{main:li[700],light:li[400],dark:li[800]}}function FC(t="light"){return t==="dark"?{main:ui[400],light:ui[300],dark:ui[700]}:{main:ui[700],light:ui[500],dark:ui[900]}}function WC(t="light"){return t==="dark"?{main:di[400],light:di[300],dark:di[700]}:{main:di[800],light:di[500],dark:di[900]}}function VC(t="light"){return t==="dark"?{main:Rl[400],light:Rl[300],dark:Rl[700]}:{main:"#ed6c02",light:Rl[500],dark:Rl[900]}}function qC(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function ph(t){const{mode:a="light",contrastThreshold:o=3,tonalOffset:i=.2,colorSpace:s,...c}=t,f=t.primary||UC(a),h=t.secondary||PC(a),m=t.error||IC(a),g=t.info||FC(a),y=t.success||WC(a),x=t.warning||VC(a);function T(R){return s?qC(R):pC(R,jp.text.primary)>=o?jp.text.primary:Ux.text.primary}const v=({color:R,name:z,mainShade:D=500,lightShade:O=300,darkShade:j=700})=>{if(R={...R},!R.main&&R[D]&&(R.main=R[D]),!R.hasOwnProperty("main"))throw new Error(ir(11,z?` (${z})`:"",D));if(typeof R.main!="string")throw new Error(ir(12,z?` (${z})`:"",JSON.stringify(R.main)));return s?(ib(s,R,"light",O,i),ib(s,R,"dark",j,i)):(ob(R,"light",O,i),ob(R,"dark",j,i)),R.contrastText||(R.contrastText=T(R.main)),R};let w;return a==="light"?w=_x():a==="dark"&&(w=Px()),xn({common:{...Vl},mode:a,primary:v({color:f,name:"primary"}),secondary:v({color:h,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:m,name:"error"}),warning:v({color:x,name:"warning"}),info:v({color:g,name:"info"}),success:v({color:y,name:"success"}),grey:t2,contrastThreshold:o,getContrastText:T,augmentColor:v,tonalOffset:i,...w},c)}function GC(t){const a={};return Object.entries(t).forEach(i=>{const[s,c]=i;typeof c=="object"&&(a[s]=`${c.fontStyle?`${c.fontStyle} `:""}${c.fontVariant?`${c.fontVariant} `:""}${c.fontWeight?`${c.fontWeight} `:""}${c.fontStretch?`${c.fontStretch} `:""}${c.fontSize||""}${c.lineHeight?`/${c.lineHeight} `:""}${c.fontFamily||""}`)}),a}function YC(t,a){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...a}}function XC(t){return Math.round(t*1e5)/1e5}const lb={textTransform:"uppercase"},sb='"Roboto", "Helvetica", "Arial", sans-serif';function Ix(t,a){const{fontFamily:o=sb,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:c=400,fontWeightMedium:f=500,fontWeightBold:h=700,htmlFontSize:m=16,allVariants:g,pxToRem:y,...x}=typeof a=="function"?a(t):a,T=i/14,v=y||(R=>`${R/m*T}rem`),w=(R,z,D,O,j)=>({fontFamily:o,fontWeight:R,fontSize:v(z),lineHeight:D,...o===sb?{letterSpacing:`${XC(O/z)}em`}:{},...j,...g}),S={h1:w(s,96,1.167,-1.5),h2:w(s,60,1.2,-.5),h3:w(c,48,1.167,0),h4:w(c,34,1.235,.25),h5:w(c,24,1.334,0),h6:w(f,20,1.6,.15),subtitle1:w(c,16,1.75,.15),subtitle2:w(f,14,1.57,.1),body1:w(c,16,1.5,.15),body2:w(c,14,1.43,.15),button:w(f,14,1.75,.4,lb),caption:w(c,12,1.66,.4),overline:w(c,12,2.66,1,lb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xn({htmlFontSize:m,pxToRem:v,fontFamily:o,fontSize:i,fontWeightLight:s,fontWeightRegular:c,fontWeightMedium:f,fontWeightBold:h,...S},x,{clone:!1})}const KC=.2,QC=.14,ZC=.12;function Ht(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${KC})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${QC})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${ZC})`].join(",")}const JC=["none",Ht(0,2,1,-1,0,1,1,0,0,1,3,0),Ht(0,3,1,-2,0,2,2,0,0,1,5,0),Ht(0,3,3,-2,0,3,4,0,0,1,8,0),Ht(0,2,4,-1,0,4,5,0,0,1,10,0),Ht(0,3,5,-1,0,5,8,0,0,1,14,0),Ht(0,3,5,-1,0,6,10,0,0,1,18,0),Ht(0,4,5,-2,0,7,10,1,0,2,16,1),Ht(0,5,5,-3,0,8,10,1,0,3,14,2),Ht(0,5,6,-3,0,9,12,1,0,3,16,2),Ht(0,6,6,-3,0,10,14,1,0,4,18,3),Ht(0,6,7,-4,0,11,15,1,0,4,20,3),Ht(0,7,8,-4,0,12,17,2,0,5,22,4),Ht(0,7,8,-4,0,13,19,2,0,5,24,4),Ht(0,7,9,-4,0,14,21,2,0,5,26,4),Ht(0,8,9,-5,0,15,22,2,0,6,28,5),Ht(0,8,10,-5,0,16,24,2,0,6,30,5),Ht(0,8,11,-5,0,17,26,2,0,6,32,5),Ht(0,9,11,-5,0,18,28,2,0,7,34,6),Ht(0,9,12,-6,0,19,29,2,0,7,36,6),Ht(0,10,13,-6,0,20,31,3,0,8,38,7),Ht(0,10,13,-6,0,21,33,3,0,8,40,7),Ht(0,10,14,-6,0,22,35,3,0,8,42,7),Ht(0,11,14,-7,0,23,36,3,0,9,44,8),Ht(0,11,15,-7,0,24,38,3,0,9,46,8)],ew={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)"},Fx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cb(t){return`${Math.round(t)}ms`}function tw(t){if(!t)return 0;const a=t/36;return Math.min(Math.round((4+15*a**.25+a/5)*10),3e3)}function nw(t){const a={...ew,...t.easing},o={...Fx,...t.duration};return{getAutoHeightDuration:tw,create:(s=["all"],c={})=>{const{duration:f=o.standard,easing:h=a.easeInOut,delay:m=0,...g}=c;return(Array.isArray(s)?s:[s]).map(y=>`${y} ${typeof f=="string"?f:cb(f)} ${h} ${typeof m=="string"?m:cb(m)}`).join(",")},...t,easing:a,duration:o}}const aw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function rw(t){return Da(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Wx(t={}){const a={...t};function o(i){const s=Object.entries(i);for(let c=0;c<s.length;c++){const[f,h]=s[c];!rw(h)||f.startsWith("unstable_")?delete i[f]:Da(h)&&(i[f]={...h},o(i[f]))}}return o(a),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
92
|
+
|
|
93
|
+
const theme = ${JSON.stringify(a,null,2)};
|
|
94
|
+
|
|
95
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
96
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
97
|
+
|
|
98
|
+
export default theme;`}function ub(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const ow=t=>{if(!Number.isNaN(+t))return+t;const a=t.match(/\d*\.?\d+/g);if(!a)return 0;let o=0;for(let i=0;i<a.length;i+=1)o+=+a[i];return o};function iw(t){Object.assign(t,{alpha(a,o){const i=this||t;return i.colorSpace?`oklch(from ${a} l c h / ${typeof o=="string"?`calc(${o})`:o})`:i.vars?`rgba(${a.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof o=="string"?`calc(${o})`:o})`:eu(a,ow(o))},lighten(a,o){const i=this||t;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${a}, #fff ${ub(o)})`:Cu(a,o)},darken(a,o){const i=this||t;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${a}, #000 ${ub(o)})`:Su(a,o)}})}function Ep(t={},...a){const{breakpoints:o,mixins:i={},spacing:s,palette:c={},transitions:f={},typography:h={},shape:m,colorSpace:g,...y}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(ir(20));const x=ph({...c,colorSpace:g}),T=ih(t);let v=xn(T,{mixins:YC(T.breakpoints,i),palette:x,shadows:JC.slice(),typography:Ix(x,h),transitions:nw(f),zIndex:{...aw}});return v=xn(v,y),v=a.reduce((w,S)=>xn(w,S),v),v.unstable_sxConfig={...rs,...y==null?void 0:y.unstable_sxConfig},v.unstable_sx=function(S){return Fr({sx:S,theme:this})},v.toRuntimeSource=Wx,iw(v),v}function Mp(t){let a;return t<1?a=5.11916*t**2:a=4.5*Math.log(t+1)+2,Math.round(a*10)/1e3}const lw=[...Array(25)].map((t,a)=>{if(a===0)return"none";const o=Mp(a);return`linear-gradient(rgba(255 255 255 / ${o}), rgba(255 255 255 / ${o}))`});function Vx(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function qx(t){return t==="dark"?lw:[]}function sw(t){const{palette:a={mode:"light"},opacity:o,overlays:i,colorSpace:s,...c}=t,f=ph({...a,colorSpace:s});return{palette:f,opacity:{...Vx(f.mode),...o},overlays:i||qx(f.mode),...c}}function cw(t){var a;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((a=t[1])!=null&&a.match(/(mode|contrastThreshold|tonalOffset)/))}const uw=t=>[...[...Array(25)].map((a,o)=>`--${t?`${t}-`:""}overlays-${o}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],dw=t=>(a,o)=>{const i=t.rootSelector||":root",s=t.colorSchemeSelector;let c=s;if(s==="class"&&(c=".%s"),s==="data"&&(c="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(c=`[${s}="%s"]`),t.defaultColorScheme===a){if(a==="dark"){const f={};return uw(t.cssVarPrefix).forEach(h=>{f[h]=o[h],delete o[h]}),c==="media"?{[i]:o,"@media (prefers-color-scheme: dark)":{[i]:f}}:c?{[c.replace("%s",a)]:f,[`${i}, ${c.replace("%s",a)}`]:o}:{[i]:{...o,...f}}}if(c&&c!=="media")return`${i}, ${c.replace("%s",String(a))}`}else if(a){if(c==="media")return{[`@media (prefers-color-scheme: ${String(a)})`]:{[i]:o}};if(c)return c.replace("%s",String(a))}return i};function fw(t,a){a.forEach(o=>{t[o]||(t[o]={})})}function oe(t,a,o){!t[a]&&o&&(t[a]=o)}function Dl(t){return typeof t!="string"||!t.startsWith("hsl")?t:Bx(t)}function rr(t,a){`${a}Channel`in t||(t[`${a}Channel`]=Bl(Dl(t[a])))}function pw(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Ma=t=>{try{return t()}catch{}},hw=(t="mui")=>HC(t);function sp(t,a,o,i,s){if(!o)return;o=o===!0?{}:o;const c=s==="dark"?"dark":"light";if(!i){a[s]=sw({...o,palette:{mode:c,...o==null?void 0:o.palette},colorSpace:t});return}const{palette:f,...h}=Ep({...i,palette:{mode:c,...o==null?void 0:o.palette},colorSpace:t});return a[s]={...o,palette:f,opacity:{...Vx(c),...o==null?void 0:o.opacity},overlays:(o==null?void 0:o.overlays)||qx(c)},h}function mw(t={},...a){const{colorSchemes:o={light:!0},defaultColorScheme:i,disableCssColorScheme:s=!1,cssVarPrefix:c="mui",nativeColor:f=!1,shouldSkipGeneratingVar:h=cw,colorSchemeSelector:m=o.light&&o.dark?"media":void 0,rootSelector:g=":root",...y}=t,x=Object.keys(o)[0],T=i||(o.light&&x!=="light"?"light":x),v=hw(c),{[T]:w,light:S,dark:R,...z}=o,D={...z};let O=w;if((T==="dark"&&!("dark"in o)||T==="light"&&!("light"in o))&&(O=!0),!O)throw new Error(ir(21,T));let j;f&&(j="oklch");const k=sp(j,D,O,y,T);S&&!D.light&&sp(j,D,S,void 0,"light"),R&&!D.dark&&sp(j,D,R,void 0,"dark");let H={defaultColorScheme:T,...k,cssVarPrefix:c,colorSchemeSelector:m,rootSelector:g,getCssVar:v,colorSchemes:D,font:{...GC(k.typography),...k.font},spacing:pw(y.spacing)};Object.keys(H.colorSchemes).forEach(Y=>{const C=H.colorSchemes[Y].palette,$=X=>{const B=X.split("-"),F=B[1],_=B[2];return v(X,C[F][_])};C.mode==="light"&&(oe(C.common,"background","#fff"),oe(C.common,"onBackground","#000")),C.mode==="dark"&&(oe(C.common,"background","#000"),oe(C.common,"onBackground","#fff"));function P(X,B,F){if(j){let _;return X===fo&&(_=`transparent ${((1-F)*100).toFixed(0)}%`),X===vt&&(_=`#000 ${(F*100).toFixed(0)}%`),X===St&&(_=`#fff ${(F*100).toFixed(0)}%`),`color-mix(in ${j}, ${B}, ${_})`}return X(B,F)}if(fw(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){oe(C.Alert,"errorColor",P(vt,f?v("palette-error-light"):C.error.light,.6)),oe(C.Alert,"infoColor",P(vt,f?v("palette-info-light"):C.info.light,.6)),oe(C.Alert,"successColor",P(vt,f?v("palette-success-light"):C.success.light,.6)),oe(C.Alert,"warningColor",P(vt,f?v("palette-warning-light"):C.warning.light,.6)),oe(C.Alert,"errorFilledBg",$("palette-error-main")),oe(C.Alert,"infoFilledBg",$("palette-info-main")),oe(C.Alert,"successFilledBg",$("palette-success-main")),oe(C.Alert,"warningFilledBg",$("palette-warning-main")),oe(C.Alert,"errorFilledColor",Ma(()=>C.getContrastText(C.error.main))),oe(C.Alert,"infoFilledColor",Ma(()=>C.getContrastText(C.info.main))),oe(C.Alert,"successFilledColor",Ma(()=>C.getContrastText(C.success.main))),oe(C.Alert,"warningFilledColor",Ma(()=>C.getContrastText(C.warning.main))),oe(C.Alert,"errorStandardBg",P(St,f?v("palette-error-light"):C.error.light,.9)),oe(C.Alert,"infoStandardBg",P(St,f?v("palette-info-light"):C.info.light,.9)),oe(C.Alert,"successStandardBg",P(St,f?v("palette-success-light"):C.success.light,.9)),oe(C.Alert,"warningStandardBg",P(St,f?v("palette-warning-light"):C.warning.light,.9)),oe(C.Alert,"errorIconColor",$("palette-error-main")),oe(C.Alert,"infoIconColor",$("palette-info-main")),oe(C.Alert,"successIconColor",$("palette-success-main")),oe(C.Alert,"warningIconColor",$("palette-warning-main")),oe(C.AppBar,"defaultBg",$("palette-grey-100")),oe(C.Avatar,"defaultBg",$("palette-grey-400")),oe(C.Button,"inheritContainedBg",$("palette-grey-300")),oe(C.Button,"inheritContainedHoverBg",$("palette-grey-A100")),oe(C.Chip,"defaultBorder",$("palette-grey-400")),oe(C.Chip,"defaultAvatarColor",$("palette-grey-700")),oe(C.Chip,"defaultIconColor",$("palette-grey-700")),oe(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(C.LinearProgress,"primaryBg",P(St,f?v("palette-primary-main"):C.primary.main,.62)),oe(C.LinearProgress,"secondaryBg",P(St,f?v("palette-secondary-main"):C.secondary.main,.62)),oe(C.LinearProgress,"errorBg",P(St,f?v("palette-error-main"):C.error.main,.62)),oe(C.LinearProgress,"infoBg",P(St,f?v("palette-info-main"):C.info.main,.62)),oe(C.LinearProgress,"successBg",P(St,f?v("palette-success-main"):C.success.main,.62)),oe(C.LinearProgress,"warningBg",P(St,f?v("palette-warning-light"):C.warning.main,.62)),oe(C.Skeleton,"bg",j?P(fo,f?v("palette-text-primary"):C.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),oe(C.Slider,"primaryTrack",P(St,f?v("palette-primary-main"):C.primary.main,.62)),oe(C.Slider,"secondaryTrack",P(St,f?v("palette-secondary-main"):C.secondary.main,.62)),oe(C.Slider,"errorTrack",P(St,f?v("palette-error-main"):C.error.main,.62)),oe(C.Slider,"infoTrack",P(St,f?v("palette-info-main"):C.info.main,.62)),oe(C.Slider,"successTrack",P(St,f?v("palette-success-main"):C.success.main,.62)),oe(C.Slider,"warningTrack",P(St,f?v("palette-warning-main"):C.warning.main,.62));const X=j?P(vt,f?v("palette-background-default"):C.background.default,.6825):Mc(C.background.default,.8);oe(C.SnackbarContent,"bg",X),oe(C.SnackbarContent,"color",Ma(()=>j?jp.text.primary:C.getContrastText(X))),oe(C.SpeedDialAction,"fabHoverBg",Mc(C.background.paper,.15)),oe(C.StepConnector,"border",$("palette-grey-400")),oe(C.StepContent,"border",$("palette-grey-400")),oe(C.Switch,"defaultColor",$("palette-common-white")),oe(C.Switch,"defaultDisabledColor",$("palette-grey-100")),oe(C.Switch,"primaryDisabledColor",P(St,f?v("palette-primary-main"):C.primary.main,.62)),oe(C.Switch,"secondaryDisabledColor",P(St,f?v("palette-secondary-main"):C.secondary.main,.62)),oe(C.Switch,"errorDisabledColor",P(St,f?v("palette-error-main"):C.error.main,.62)),oe(C.Switch,"infoDisabledColor",P(St,f?v("palette-info-main"):C.info.main,.62)),oe(C.Switch,"successDisabledColor",P(St,f?v("palette-success-main"):C.success.main,.62)),oe(C.Switch,"warningDisabledColor",P(St,f?v("palette-warning-main"):C.warning.main,.62)),oe(C.TableCell,"border",P(St,fo(f?v("palette-divider"):C.divider,1),.88)),oe(C.Tooltip,"bg",P(fo,f?v("palette-grey-700"):C.grey[700],.92))}if(C.mode==="dark"){oe(C.Alert,"errorColor",P(St,f?v("palette-error-light"):C.error.light,.6)),oe(C.Alert,"infoColor",P(St,f?v("palette-info-light"):C.info.light,.6)),oe(C.Alert,"successColor",P(St,f?v("palette-success-light"):C.success.light,.6)),oe(C.Alert,"warningColor",P(St,f?v("palette-warning-light"):C.warning.light,.6)),oe(C.Alert,"errorFilledBg",$("palette-error-dark")),oe(C.Alert,"infoFilledBg",$("palette-info-dark")),oe(C.Alert,"successFilledBg",$("palette-success-dark")),oe(C.Alert,"warningFilledBg",$("palette-warning-dark")),oe(C.Alert,"errorFilledColor",Ma(()=>C.getContrastText(C.error.dark))),oe(C.Alert,"infoFilledColor",Ma(()=>C.getContrastText(C.info.dark))),oe(C.Alert,"successFilledColor",Ma(()=>C.getContrastText(C.success.dark))),oe(C.Alert,"warningFilledColor",Ma(()=>C.getContrastText(C.warning.dark))),oe(C.Alert,"errorStandardBg",P(vt,f?v("palette-error-light"):C.error.light,.9)),oe(C.Alert,"infoStandardBg",P(vt,f?v("palette-info-light"):C.info.light,.9)),oe(C.Alert,"successStandardBg",P(vt,f?v("palette-success-light"):C.success.light,.9)),oe(C.Alert,"warningStandardBg",P(vt,f?v("palette-warning-light"):C.warning.light,.9)),oe(C.Alert,"errorIconColor",$("palette-error-main")),oe(C.Alert,"infoIconColor",$("palette-info-main")),oe(C.Alert,"successIconColor",$("palette-success-main")),oe(C.Alert,"warningIconColor",$("palette-warning-main")),oe(C.AppBar,"defaultBg",$("palette-grey-900")),oe(C.AppBar,"darkBg",$("palette-background-paper")),oe(C.AppBar,"darkColor",$("palette-text-primary")),oe(C.Avatar,"defaultBg",$("palette-grey-600")),oe(C.Button,"inheritContainedBg",$("palette-grey-800")),oe(C.Button,"inheritContainedHoverBg",$("palette-grey-700")),oe(C.Chip,"defaultBorder",$("palette-grey-700")),oe(C.Chip,"defaultAvatarColor",$("palette-grey-300")),oe(C.Chip,"defaultIconColor",$("palette-grey-300")),oe(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(C.LinearProgress,"primaryBg",P(vt,f?v("palette-primary-main"):C.primary.main,.5)),oe(C.LinearProgress,"secondaryBg",P(vt,f?v("palette-secondary-main"):C.secondary.main,.5)),oe(C.LinearProgress,"errorBg",P(vt,f?v("palette-error-main"):C.error.main,.5)),oe(C.LinearProgress,"infoBg",P(vt,f?v("palette-info-main"):C.info.main,.5)),oe(C.LinearProgress,"successBg",P(vt,f?v("palette-success-main"):C.success.main,.5)),oe(C.LinearProgress,"warningBg",P(vt,f?v("palette-warning-main"):C.warning.main,.5)),oe(C.Skeleton,"bg",j?P(fo,f?v("palette-text-primary"):C.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),oe(C.Slider,"primaryTrack",P(vt,f?v("palette-primary-main"):C.primary.main,.5)),oe(C.Slider,"secondaryTrack",P(vt,f?v("palette-secondary-main"):C.secondary.main,.5)),oe(C.Slider,"errorTrack",P(vt,f?v("palette-error-main"):C.error.main,.5)),oe(C.Slider,"infoTrack",P(vt,f?v("palette-info-main"):C.info.main,.5)),oe(C.Slider,"successTrack",P(vt,f?v("palette-success-main"):C.success.main,.5)),oe(C.Slider,"warningTrack",P(vt,f?v("palette-warning-light"):C.warning.main,.5));const X=j?P(St,f?v("palette-background-default"):C.background.default,.985):Mc(C.background.default,.98);oe(C.SnackbarContent,"bg",X),oe(C.SnackbarContent,"color",Ma(()=>j?Ux.text.primary:C.getContrastText(X))),oe(C.SpeedDialAction,"fabHoverBg",Mc(C.background.paper,.15)),oe(C.StepConnector,"border",$("palette-grey-600")),oe(C.StepContent,"border",$("palette-grey-600")),oe(C.Switch,"defaultColor",$("palette-grey-300")),oe(C.Switch,"defaultDisabledColor",$("palette-grey-600")),oe(C.Switch,"primaryDisabledColor",P(vt,f?v("palette-primary-main"):C.primary.main,.55)),oe(C.Switch,"secondaryDisabledColor",P(vt,f?v("palette-secondary-main"):C.secondary.main,.55)),oe(C.Switch,"errorDisabledColor",P(vt,f?v("palette-error-main"):C.error.main,.55)),oe(C.Switch,"infoDisabledColor",P(vt,f?v("palette-info-main"):C.info.main,.55)),oe(C.Switch,"successDisabledColor",P(vt,f?v("palette-success-main"):C.success.main,.55)),oe(C.Switch,"warningDisabledColor",P(vt,f?v("palette-warning-light"):C.warning.main,.55)),oe(C.TableCell,"border",P(vt,fo(f?v("palette-divider"):C.divider,1),.68)),oe(C.Tooltip,"bg",P(fo,f?v("palette-grey-700"):C.grey[700],.92))}f||(rr(C.background,"default"),rr(C.background,"paper"),rr(C.common,"background"),rr(C.common,"onBackground"),rr(C,"divider")),Object.keys(C).forEach(X=>{const B=C[X];X!=="tonalOffset"&&!f&&B&&typeof B=="object"&&(B.main&&oe(C[X],"mainChannel",Bl(Dl(B.main))),B.light&&oe(C[X],"lightChannel",Bl(Dl(B.light))),B.dark&&oe(C[X],"darkChannel",Bl(Dl(B.dark))),B.contrastText&&oe(C[X],"contrastTextChannel",Bl(Dl(B.contrastText))),X==="text"&&(rr(C[X],"primary"),rr(C[X],"secondary")),X==="action"&&(B.active&&rr(C[X],"active"),B.selected&&rr(C[X],"selected")))})}),H=a.reduce((Y,C)=>xn(Y,C),H);const N={prefix:c,disableCssColorScheme:s,shouldSkipGeneratingVar:h,getSelector:dw(H),enableContrastVars:f},{vars:L,generateThemeVars:q,generateStyleSheets:I}=$C(H,N);return H.vars=L,Object.entries(H.colorSchemes[H.defaultColorScheme]).forEach(([Y,C])=>{H[Y]=C}),H.generateThemeVars=q,H.generateStyleSheets=I,H.generateSpacing=function(){return jx(y.spacing,rh(this))},H.getColorSchemeSelector=_C(m),H.spacing=H.generateSpacing(),H.shouldSkipGeneratingVar=h,H.unstable_sxConfig={...rs,...y==null?void 0:y.unstable_sxConfig},H.unstable_sx=function(C){return Fr({sx:C,theme:this})},H.toRuntimeSource=Wx,H}function db(t,a,o){t.colorSchemes&&o&&(t.colorSchemes[a]={...o!==!0&&o,palette:ph({...o===!0?{}:o.palette,mode:a})})}function Tu(t={},...a){const{palette:o,cssVariables:i=!1,colorSchemes:s=o?void 0:{light:!0},defaultColorScheme:c=o==null?void 0:o.mode,...f}=t,h=c||"light",m=s==null?void 0:s[h],g={...s,...o?{[h]:{...typeof m!="boolean"&&m,palette:o}}:void 0};if(i===!1){if(!("colorSchemes"in t))return Ep(t,...a);let y=o;"palette"in t||g[h]&&(g[h]!==!0?y=g[h].palette:h==="dark"&&(y={mode:"dark"}));const x=Ep({...t,palette:y},...a);return x.defaultColorScheme=h,x.colorSchemes=g,x.palette.mode==="light"&&(x.colorSchemes.light={...g.light!==!0&&g.light,palette:x.palette},db(x,"dark",g.dark)),x.palette.mode==="dark"&&(x.colorSchemes.dark={...g.dark!==!0&&g.dark,palette:x.palette},db(x,"light",g.light)),x}return!o&&!("light"in g)&&h==="light"&&(g.light=!0),mw({...f,colorSchemes:g,defaultColorScheme:h,...typeof i!="boolean"&&i},...a)}const hh=Tu();function ki(){const t=sh(hh);return t[Ha]||t}function Ru(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Xn=t=>Ru(t)&&t!=="classes",ye=iC({themeId:Ha,defaultTheme:hh,rootShouldForwardProp:Xn});function gw({theme:t,...a}){const o=Ha in t?t[Ha]:void 0;return d.jsx(Lx,{...a,themeId:o?Ha:void 0,theme:o||t})}const Ac={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:yw}=DC({themeId:Ha,theme:()=>Tu({cssVariables:!0}),colorSchemeStorageKey:Ac.colorSchemeStorageKey,modeStorageKey:Ac.modeStorageKey,defaultColorScheme:{light:Ac.defaultLightColorScheme,dark:Ac.defaultDarkColorScheme},resolveTheme:t=>{const a={...t,typography:Ix(t.palette,t.typography)};return a.unstable_sx=function(i){return Fr({sx:i,theme:this})},a}}),bw=yw;function xw({theme:t,...a}){const o=M.useMemo(()=>{if(typeof t=="function")return t;const i=Ha in t?t[Ha]:t;return"colorSchemes"in i?null:"vars"in i?t:{...t,vars:null}},[t]);return o?d.jsx(gw,{theme:o,...a}):d.jsx(bw,{theme:t,...a})}function fb(...t){return t.reduce((a,o)=>o==null?a:function(...s){a.apply(this,s),o.apply(this,s)},()=>{})}function vw(t){return d.jsx(Ex,{...t,defaultTheme:hh,themeId:Ha})}function mh(t){return function(o){return d.jsx(vw,{styles:typeof t=="function"?i=>t({theme:i,...o}):t})}}function Sw(){return Mx}const Ge=jC;function at(t){return CC(t)}function Cw(t){return et("MuiSvgIcon",t)}Qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ww=t=>{const{color:a,fontSize:o,classes:i}=t,s={root:["root",a!=="inherit"&&`color${xe(a)}`,`fontSize${xe(o)}`]};return tt(s,Cw,i)},Tw=ye("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.color!=="inherit"&&a[`color${xe(o.color)}`],a[`fontSize${xe(o.fontSize)}`]]}})(Ge(({theme:t})=>{var a,o,i,s,c,f,h,m,g,y,x,T,v,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(a=t.transitions)==null?void 0:a.create)==null?void 0:s.call(a,"fill",{duration:(i=(o=(t.vars??t).transitions)==null?void 0:o.duration)==null?void 0:i.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((f=(c=t.typography)==null?void 0:c.pxToRem)==null?void 0:f.call(c,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((m=(h=t.typography)==null?void 0:h.pxToRem)==null?void 0:m.call(h,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(g=t.typography)==null?void 0:g.pxToRem)==null?void 0:y.call(g,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,S])=>S&&S.main).map(([S])=>{var R,z;return{props:{color:S},style:{color:(z=(R=(t.vars??t).palette)==null?void 0:R[S])==null?void 0:z.main}}}),{props:{color:"action"},style:{color:(T=(x=(t.vars??t).palette)==null?void 0:x.action)==null?void 0:T.active}},{props:{color:"disabled"},style:{color:(w=(v=(t.vars??t).palette)==null?void 0:v.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ap=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiSvgIcon"}),{children:s,className:c,color:f="inherit",component:h="svg",fontSize:m="medium",htmlColor:g,inheritViewBox:y=!1,titleAccess:x,viewBox:T="0 0 24 24",...v}=i,w=M.isValidElement(s)&&s.type==="svg",S={...i,color:f,component:h,fontSize:m,instanceFontSize:a.fontSize,inheritViewBox:y,viewBox:T,hasSvgAsChild:w},R={};y||(R.viewBox=T);const z=ww(S);return d.jsxs(Tw,{as:h,className:De(z.root,c),focusable:"false",color:g,"aria-hidden":x?void 0:!0,role:x?"img":void 0,ref:o,...R,...v,...w&&s.props,ownerState:S,children:[w?s.props.children:s,x?d.jsx("title",{children:x}):null]})});Ap.muiName="SvgIcon";function pn(t,a){function o(i,s){return d.jsx(Ap,{"data-testid":void 0,ref:s,...i,children:t})}return o.muiName=Ap.muiName,M.memo(M.forwardRef(o))}function Gx(t,a=166){let o;function i(...s){const c=()=>{t.apply(this,s)};clearTimeout(o),o=setTimeout(c,a)}return i.clear=()=>{clearTimeout(o)},i}function rn(t){return t&&t.ownerDocument||document}function sr(t){return rn(t).defaultView||window}function pb(t,a){typeof t=="function"?t(a):t&&(t.current=a)}function Xl(t){const{controlled:a,default:o,name:i,state:s="value"}=t,{current:c}=M.useRef(a!==void 0),[f,h]=M.useState(o),m=c?a:f,g=M.useCallback(y=>{c||h(y)},[]);return[m,g]}function ca(t){const a=M.useRef(t);return Dn(()=>{a.current=t}),M.useRef((...o)=>(0,a.current)(...o)).current}function tn(...t){const a=M.useRef(void 0),o=M.useCallback(i=>{const s=t.map(c=>{if(c==null)return null;if(typeof c=="function"){const f=c,h=f(i);return typeof h=="function"?h:()=>{f(null)}}return c.current=i,()=>{c.current=null}});return()=>{s.forEach(c=>c==null?void 0:c())}},t);return M.useMemo(()=>t.every(i=>i==null)?null:i=>{a.current&&(a.current(),a.current=void 0),i!=null&&(a.current=o(i))},t)}function Rw(t,a){const o=t.charCodeAt(2);return t[0]==="o"&&t[1]==="n"&&o>=65&&o<=90&&typeof a=="function"}function Yx(t,a){if(!t)return a;function o(f,h){const m={};return Object.keys(h).forEach(g=>{Rw(g,h[g])&&typeof f[g]=="function"&&(m[g]=(...y)=>{f[g](...y),h[g](...y)})}),m}if(typeof t=="function"||typeof a=="function")return f=>{const h=typeof a=="function"?a(f):a,m=typeof t=="function"?t({...f,...h}):t,g=De(f==null?void 0:f.className,h==null?void 0:h.className,m==null?void 0:m.className),y=o(m,h);return{...h,...m,...y,...!!g&&{className:g},...(h==null?void 0:h.style)&&(m==null?void 0:m.style)&&{style:{...h.style,...m.style}},...(h==null?void 0:h.sx)&&(m==null?void 0:m.sx)&&{sx:[...Array.isArray(h.sx)?h.sx:[h.sx],...Array.isArray(m.sx)?m.sx:[m.sx]]}}};const i=a,s=o(t,i),c=De(i==null?void 0:i.className,t==null?void 0:t.className);return{...a,...t,...s,...!!c&&{className:c},...(i==null?void 0:i.style)&&(t==null?void 0:t.style)&&{style:{...i.style,...t.style}},...(i==null?void 0:i.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function Xx(t,a){if(t==null)return{};var o={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(a.indexOf(i)!==-1)continue;o[i]=t[i]}return o}function kp(t,a){return kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},kp(t,a)}function Kx(t,a){t.prototype=Object.create(a.prototype),t.prototype.constructor=t,kp(t,a)}var gh=lx();const kc=qp(gh),hb={disabled:!1},tu=bn.createContext(null);var jw=function(a){return a.scrollTop},Hl="unmounted",go="exited",yo="entering",gi="entered",zp="exiting",va=(function(t){Kx(a,t);function a(i,s){var c;c=t.call(this,i,s)||this;var f=s,h=f&&!f.isMounting?i.enter:i.appear,m;return c.appearStatus=null,i.in?h?(m=go,c.appearStatus=yo):m=gi:i.unmountOnExit||i.mountOnEnter?m=Hl:m=go,c.state={status:m},c.nextCallback=null,c}a.getDerivedStateFromProps=function(s,c){var f=s.in;return f&&c.status===Hl?{status:go}:null};var o=a.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(s){var c=null;if(s!==this.props){var f=this.state.status;this.props.in?f!==yo&&f!==gi&&(c=yo):(f===yo||f===gi)&&(c=zp)}this.updateStatus(!1,c)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var s=this.props.timeout,c,f,h;return c=f=h=s,s!=null&&typeof s!="number"&&(c=s.exit,f=s.enter,h=s.appear!==void 0?s.appear:f),{exit:c,enter:f,appear:h}},o.updateStatus=function(s,c){if(s===void 0&&(s=!1),c!==null)if(this.cancelNextCallback(),c===yo){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:kc.findDOMNode(this);f&&jw(f)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===go&&this.setState({status:Hl})},o.performEnter=function(s){var c=this,f=this.props.enter,h=this.context?this.context.isMounting:s,m=this.props.nodeRef?[h]:[kc.findDOMNode(this),h],g=m[0],y=m[1],x=this.getTimeouts(),T=h?x.appear:x.enter;if(!s&&!f||hb.disabled){this.safeSetState({status:gi},function(){c.props.onEntered(g)});return}this.props.onEnter(g,y),this.safeSetState({status:yo},function(){c.props.onEntering(g,y),c.onTransitionEnd(T,function(){c.safeSetState({status:gi},function(){c.props.onEntered(g,y)})})})},o.performExit=function(){var s=this,c=this.props.exit,f=this.getTimeouts(),h=this.props.nodeRef?void 0:kc.findDOMNode(this);if(!c||hb.disabled){this.safeSetState({status:go},function(){s.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:zp},function(){s.props.onExiting(h),s.onTransitionEnd(f.exit,function(){s.safeSetState({status:go},function(){s.props.onExited(h)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(s,c){c=this.setNextCallback(c),this.setState(s,c)},o.setNextCallback=function(s){var c=this,f=!0;return this.nextCallback=function(h){f&&(f=!1,c.nextCallback=null,s(h))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},o.onTransitionEnd=function(s,c){this.setNextCallback(c);var f=this.props.nodeRef?this.props.nodeRef.current:kc.findDOMNode(this),h=s==null&&!this.props.addEndListener;if(!f||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],g=m[0],y=m[1];this.props.addEndListener(g,y)}s!=null&&setTimeout(this.nextCallback,s)},o.render=function(){var s=this.state.status;if(s===Hl)return null;var c=this.props,f=c.children;c.in,c.mountOnEnter,c.unmountOnExit,c.appear,c.enter,c.exit,c.timeout,c.addEndListener,c.onEnter,c.onEntering,c.onEntered,c.onExit,c.onExiting,c.onExited,c.nodeRef;var h=Xx(c,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return bn.createElement(tu.Provider,{value:null},typeof f=="function"?f(s,h):bn.cloneElement(bn.Children.only(f),h))},a})(bn.Component);va.contextType=tu;va.propTypes={};function fi(){}va.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fi,onEntering:fi,onEntered:fi,onExit:fi,onExiting:fi,onExited:fi};va.UNMOUNTED=Hl;va.EXITED=go;va.ENTERING=yo;va.ENTERED=gi;va.EXITING=zp;function Ew(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yh(t,a){var o=function(c){return a&&M.isValidElement(c)?a(c):c},i=Object.create(null);return t&&M.Children.map(t,function(s){return s}).forEach(function(s){i[s.key]=o(s)}),i}function Mw(t,a){t=t||{},a=a||{};function o(y){return y in a?a[y]:t[y]}var i=Object.create(null),s=[];for(var c in t)c in a?s.length&&(i[c]=s,s=[]):s.push(c);var f,h={};for(var m in a){if(i[m])for(f=0;f<i[m].length;f++){var g=i[m][f];h[i[m][f]]=o(g)}h[m]=o(m)}for(f=0;f<s.length;f++)h[s[f]]=o(s[f]);return h}function xo(t,a,o){return o[a]!=null?o[a]:t.props[a]}function Aw(t,a){return yh(t.children,function(o){return M.cloneElement(o,{onExited:a.bind(null,o),in:!0,appear:xo(o,"appear",t),enter:xo(o,"enter",t),exit:xo(o,"exit",t)})})}function kw(t,a,o){var i=yh(t.children),s=Mw(a,i);return Object.keys(s).forEach(function(c){var f=s[c];if(M.isValidElement(f)){var h=c in a,m=c in i,g=a[c],y=M.isValidElement(g)&&!g.props.in;m&&(!h||y)?s[c]=M.cloneElement(f,{onExited:o.bind(null,f),in:!0,exit:xo(f,"exit",t),enter:xo(f,"enter",t)}):!m&&h&&!y?s[c]=M.cloneElement(f,{in:!1}):m&&h&&M.isValidElement(g)&&(s[c]=M.cloneElement(f,{onExited:o.bind(null,f),in:g.props.in,exit:xo(f,"exit",t),enter:xo(f,"enter",t)}))}}),s}var zw=Object.values||function(t){return Object.keys(t).map(function(a){return t[a]})},Ow={component:"div",childFactory:function(a){return a}},bh=(function(t){Kx(a,t);function a(i,s){var c;c=t.call(this,i,s)||this;var f=c.handleExited.bind(Ew(c));return c.state={contextValue:{isMounting:!0},handleExited:f,firstRender:!0},c}var o=a.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},a.getDerivedStateFromProps=function(s,c){var f=c.children,h=c.handleExited,m=c.firstRender;return{children:m?Aw(s,h):kw(s,f,h),firstRender:!1}},o.handleExited=function(s,c){var f=yh(this.props.children);s.key in f||(s.props.onExited&&s.props.onExited(c),this.mounted&&this.setState(function(h){var m=Kc({},h.children);return delete m[s.key],{children:m}}))},o.render=function(){var s=this.props,c=s.component,f=s.childFactory,h=Xx(s,["component","childFactory"]),m=this.state.contextValue,g=zw(this.state.children).map(f);return delete h.appear,delete h.enter,delete h.exit,c===null?bn.createElement(tu.Provider,{value:m},g):bn.createElement(tu.Provider,{value:m},bn.createElement(c,h,g))},a})(bn.Component);bh.propTypes={};bh.defaultProps=Ow;const mb={};function Qx(t,a){const o=M.useRef(mb);return o.current===mb&&(o.current=t(a)),o}const Bw=[];function Dw(t){M.useEffect(t,Bw)}class ju{constructor(){Cl(this,"currentId",null);Cl(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Cl(this,"disposeEffect",()=>this.clear)}static create(){return new ju}start(a,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,o()},a)}}function vo(){const t=Qx(ju.create).current;return Dw(t.disposeEffect),t}const Zx=t=>t.scrollTop;function ln(t,a){return o=>{if(a){const i=t.current;o===void 0?a(i):a(i,o)}}}function Jx(t,a,o,i,s,c){const f=t==="exited"&&!a?i:o[t]||o.exited;return s||c?{...f,...s,...c}:f}function Ci(t,a){const{timeout:o,easing:i,style:s={}}=t;return{duration:s.transitionDuration??(typeof o=="number"?o:o[a.mode]||0),easing:s.transitionTimingFunction??(typeof i=="object"?i[a.mode]:i),delay:s.transitionDelay}}function Ir(t){return typeof t=="string"}function ev(t,a,o){return t===void 0||Ir(t)?a:{...a,ownerState:{...a.ownerState,...o}}}function tv(t,a,o){return typeof t=="function"?t(a,o):t}function $l(t,a=[]){if(t===void 0)return{};const o={};return Object.keys(t).filter(i=>i.match(/^on[A-Z]/)&&typeof t[i]=="function"&&!a.includes(i)).forEach(i=>{o[i]=t[i]}),o}function gb(t){if(t===void 0)return{};const a={};return Object.keys(t).filter(o=>!(o.match(/^on[A-Z]/)&&typeof t[o]=="function")).forEach(o=>{a[o]=t[o]}),a}function nv(t){const{getSlotProps:a,additionalProps:o,externalSlotProps:i,externalForwardedProps:s,className:c}=t;if(!a){const v=De(o==null?void 0:o.className,c,s==null?void 0:s.className,i==null?void 0:i.className),w={...o==null?void 0:o.style,...s==null?void 0:s.style,...i==null?void 0:i.style},S={...o,...s,...i};return v.length>0&&(S.className=v),Object.keys(w).length>0&&(S.style=w),{props:S,internalRef:void 0}}const f=$l({...s,...i}),h=gb(i),m=gb(s),g=a(f),y=De(g==null?void 0:g.className,o==null?void 0:o.className,c,s==null?void 0:s.className,i==null?void 0:i.className),x={...g==null?void 0:g.style,...o==null?void 0:o.style,...s==null?void 0:s.style,...i==null?void 0:i.style},T={...g,...o,...m,...h};return y.length>0&&(T.className=y),Object.keys(x).length>0&&(T.style=x),{props:T,internalRef:g.ref}}function nt(t,a){const{className:o,elementType:i,ownerState:s,externalForwardedProps:c,internalForwardedProps:f,shouldForwardComponentProp:h=!1,...m}=a,{component:g,slots:y={[t]:void 0},slotProps:x={[t]:void 0},...T}=c,v=y[t]||i,w=tv(x[t],s),{props:{component:S,...R},internalRef:z}=nv({className:o,...m,externalForwardedProps:t==="root"?T:void 0,externalSlotProps:w}),D=tn(z,w==null?void 0:w.ref,a.ref),O=t==="root"?S||g:S,j=ev(v,{...t==="root"&&!g&&!y[t]&&f,...t!=="root"&&!y[t]&&f,...R,...O&&!h&&{as:O},...O&&h&&{component:O},ref:D},s);return[v,j]}function Hw(t){return et("MuiCollapse",t)}Qe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Nw=t=>{const{orientation:a,classes:o}=t;return tt({root:["root",a],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",a],wrapperInner:["wrapperInner",a]},Hw,o)},Lw=ye("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,a[o.orientation],o.state==="entered"&&a.entered,o.state==="exited"&&!o.in&&o.collapsedSize==="0px"&&a.hidden]}})(Ge(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:a})=>a.state==="exited"&&!a.in&&a.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),$w=ye("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),_w=ye("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Op=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiCollapse"}),{addEndListener:s,children:c,className:f,collapsedSize:h="0px",component:m,easing:g,in:y,onEnter:x,onEntered:T,onEntering:v,onExit:w,onExited:S,onExiting:R,orientation:z="vertical",slots:D={},slotProps:O={},style:j,timeout:k=Fx.standard,TransitionComponent:H=va,...N}=i,L={...i,orientation:z,collapsedSize:h},q=Nw(L),I=ki(),Y=vo(),C=M.useRef(null),$=M.useRef(),P=typeof h=="number"?`${h}px`:h,X=z==="horizontal",B=X?"width":"height",F=M.useRef(null),_=tn(o,F),V=()=>C.current?C.current[X?"clientWidth":"clientHeight"]:0,ce=ln(F,(me,Le)=>{C.current&&X&&(C.current.style.position="absolute"),me.style[B]=P,x&&x(me,Le)}),E=ln(F,(me,Le)=>{const He=V();C.current&&X&&(C.current.style.position="");const{duration:Ee,easing:Pe}=Ci({style:j,timeout:k,easing:g},{mode:"enter"});if(k==="auto"){const Xe=I.transitions.getAutoHeightDuration(He);me.style.transitionDuration=`${Xe}ms`,$.current=Xe}else me.style.transitionDuration=typeof Ee=="string"?Ee:`${Ee}ms`;me.style[B]=`${He}px`,me.style.transitionTimingFunction=Pe,v&&v(me,Le)}),W=ln(F,(me,Le)=>{me.style[B]="auto",T&&T(me,Le)}),Q=ln(F,me=>{me.style[B]=`${V()}px`,w&&w(me)}),ie=ln(F,S),J=ln(F,me=>{const Le=V(),{duration:He,easing:Ee}=Ci({style:j,timeout:k,easing:g},{mode:"exit"});if(k==="auto"){const Pe=I.transitions.getAutoHeightDuration(Le);me.style.transitionDuration=`${Pe}ms`,$.current=Pe}else me.style.transitionDuration=typeof He=="string"?He:`${He}ms`;me.style[B]=P,me.style.transitionTimingFunction=Ee,R&&R(me)}),pe=me=>{k==="auto"&&Y.start($.current||0,me),s&&s(F.current,me)},fe={slots:D,slotProps:O,component:m},[le,ve]=nt("root",{ref:_,className:De(q.root,f),elementType:Lw,externalForwardedProps:fe,ownerState:L,additionalProps:{style:{[X?"minWidth":"minHeight"]:P,...j}}}),[we,je]=nt("wrapper",{ref:C,className:q.wrapper,elementType:$w,externalForwardedProps:fe,ownerState:L}),[Me,_e]=nt("wrapperInner",{className:q.wrapperInner,elementType:_w,externalForwardedProps:fe,ownerState:L});return d.jsx(H,{in:y,onEnter:ce,onEntered:W,onEntering:E,onExit:Q,onExited:ie,onExiting:J,addEndListener:pe,nodeRef:F,timeout:k==="auto"?null:k,...N,children:(me,{ownerState:Le,...He})=>{const Ee={...L,state:me};return d.jsx(le,{...ve,className:De(ve.className,{entered:q.entered,exited:!y&&P==="0px"&&q.hidden}[me]),ownerState:Ee,...He,children:d.jsx(we,{...je,ownerState:Ee,children:d.jsx(Me,{..._e,ownerState:Ee,children:c})})})}})});Op&&(Op.muiSupportAuto=!0);function Uw(t){return et("MuiPaper",t)}Qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Pw=t=>{const{square:a,elevation:o,variant:i,classes:s}=t,c={root:["root",i,!a&&"rounded",i==="elevation"&&`elevation${o}`]};return tt(c,Uw,s)},Iw=ye("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,a[o.variant],!o.square&&a.rounded,o.variant==="elevation"&&a[`elevation${o.elevation}`]]}})(Ge(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:a})=>!a.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Eu=M.forwardRef(function(a,o){var v;const i=at({props:a,name:"MuiPaper"}),s=ki(),{className:c,component:f="div",elevation:h=1,square:m=!1,variant:g="elevation",...y}=i,x={...i,component:f,elevation:h,square:m,variant:g},T=Pw(x);return d.jsx(Iw,{as:f,ownerState:x,className:De(T.root,c),ref:o,...y,style:{...g==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[h],...s.vars&&{"--Paper-overlay":(v=s.vars.overlays)==null?void 0:v[h]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${eu("#fff",Mp(h))}, ${eu("#fff",Mp(h))})`}},...y.style}})});function wi(t){try{return t.matches(":focus-visible")}catch{}return!1}class nu{constructor(){Cl(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 nu}static use(){const a=Qx(nu.create).current,[o,i]=M.useState(!1);return a.shouldMount=o,a.setShouldMount=i,M.useEffect(a.mountEffect,[o]),a}mount(){return this.mounted||(this.mounted=Ww(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...a){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.start(...a)})}stop(...a){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.stop(...a)})}pulsate(...a){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.pulsate(...a)})}}function Fw(){return nu.use()}function Ww(){let t,a;const o=new Promise((i,s)=>{t=i,a=s});return o.resolve=t,o.reject=a,o}function Vw(t){const{className:a,classes:o,pulsate:i=!1,rippleX:s,rippleY:c,rippleSize:f,in:h,onExited:m,timeout:g}=t,[y,x]=M.useState(!1),T=De(a,o.ripple,o.rippleVisible,i&&o.ripplePulsate),v={width:f,height:f,top:-(f/2)+c,left:-(f/2)+s},w=De(o.child,y&&o.childLeaving,i&&o.childPulsate);return!h&&!y&&x(!0),M.useEffect(()=>{if(!h&&m!=null){const S=setTimeout(m,g);return()=>{clearTimeout(S)}}},[m,h,g]),d.jsx("span",{className:T,style:v,children:d.jsx("span",{className:w})})}const ia=Qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Bp=550,qw=80,Gw=ts`
|
|
99
|
+
0% {
|
|
100
|
+
transform: scale(0);
|
|
101
|
+
opacity: 0.1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
100% {
|
|
105
|
+
transform: scale(1);
|
|
106
|
+
opacity: 0.3;
|
|
107
|
+
}
|
|
108
|
+
`,Yw=ts`
|
|
109
|
+
0% {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
100% {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
}
|
|
116
|
+
`,Xw=ts`
|
|
117
|
+
0% {
|
|
118
|
+
transform: scale(1);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
50% {
|
|
122
|
+
transform: scale(0.92);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
100% {
|
|
126
|
+
transform: scale(1);
|
|
127
|
+
}
|
|
128
|
+
`,Kw=ye("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Qw=ye(Vw,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
129
|
+
opacity: 0;
|
|
130
|
+
position: absolute;
|
|
131
|
+
|
|
132
|
+
&.${ia.rippleVisible} {
|
|
133
|
+
opacity: 0.3;
|
|
134
|
+
transform: scale(1);
|
|
135
|
+
animation-name: ${Gw};
|
|
136
|
+
animation-duration: ${Bp}ms;
|
|
137
|
+
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.${ia.ripplePulsate} {
|
|
141
|
+
animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
& .${ia.child} {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
display: block;
|
|
147
|
+
width: 100%;
|
|
148
|
+
height: 100%;
|
|
149
|
+
border-radius: 50%;
|
|
150
|
+
background-color: currentColor;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
& .${ia.childLeaving} {
|
|
154
|
+
opacity: 0;
|
|
155
|
+
animation-name: ${Yw};
|
|
156
|
+
animation-duration: ${Bp}ms;
|
|
157
|
+
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
& .${ia.childPulsate} {
|
|
161
|
+
position: absolute;
|
|
162
|
+
/* @noflip */
|
|
163
|
+
left: 0px;
|
|
164
|
+
top: 0;
|
|
165
|
+
animation-name: ${Xw};
|
|
166
|
+
animation-duration: 2500ms;
|
|
167
|
+
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
168
|
+
animation-iteration-count: infinite;
|
|
169
|
+
animation-delay: 200ms;
|
|
170
|
+
}
|
|
171
|
+
`,Zw=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiTouchRipple"}),{center:s=!1,classes:c={},className:f,...h}=i,[m,g]=M.useState([]),y=M.useRef(0),x=M.useRef(null);M.useEffect(()=>{x.current&&(x.current(),x.current=null)},[m]);const T=M.useRef(!1),v=vo(),w=M.useRef(null),S=M.useRef(null),R=M.useCallback(j=>{const{pulsate:k,rippleX:H,rippleY:N,rippleSize:L,cb:q}=j;g(I=>[...I,d.jsx(Qw,{classes:{ripple:De(c.ripple,ia.ripple),rippleVisible:De(c.rippleVisible,ia.rippleVisible),ripplePulsate:De(c.ripplePulsate,ia.ripplePulsate),child:De(c.child,ia.child),childLeaving:De(c.childLeaving,ia.childLeaving),childPulsate:De(c.childPulsate,ia.childPulsate)},timeout:Bp,pulsate:k,rippleX:H,rippleY:N,rippleSize:L},y.current)]),y.current+=1,x.current=q},[c]),z=M.useCallback((j={},k={},H=()=>{})=>{const{pulsate:N=!1,center:L=s||k.pulsate,fakeElement:q=!1}=k;if((j==null?void 0:j.type)==="mousedown"&&T.current){T.current=!1;return}(j==null?void 0:j.type)==="touchstart"&&(T.current=!0);const I=q?null:S.current,Y=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,$,P;if(L||j===void 0||j.clientX===0&&j.clientY===0||!j.clientX&&!j.touches)C=Math.round(Y.width/2),$=Math.round(Y.height/2);else{const{clientX:X,clientY:B}=j.touches&&j.touches.length>0?j.touches[0]:j;C=Math.round(X-Y.left),$=Math.round(B-Y.top)}if(L)P=Math.sqrt((2*Y.width**2+Y.height**2)/3),P%2===0&&(P+=1);else{const X=Math.max(Math.abs((I?I.clientWidth:0)-C),C)*2+2,B=Math.max(Math.abs((I?I.clientHeight:0)-$),$)*2+2;P=Math.sqrt(X**2+B**2)}j!=null&&j.touches?w.current===null&&(w.current=()=>{R({pulsate:N,rippleX:C,rippleY:$,rippleSize:P,cb:H})},v.start(qw,()=>{w.current&&(w.current(),w.current=null)})):R({pulsate:N,rippleX:C,rippleY:$,rippleSize:P,cb:H})},[s,R,v]),D=M.useCallback(()=>{z({},{pulsate:!0})},[z]),O=M.useCallback((j,k)=>{if(v.clear(),(j==null?void 0:j.type)==="touchend"&&w.current){w.current(),w.current=null,v.start(0,()=>{O(j,k)});return}w.current=null,g(H=>H.length>0?H.slice(1):H),x.current=k},[v]);return M.useImperativeHandle(o,()=>({pulsate:D,start:z,stop:O}),[D,z,O]),d.jsx(Kw,{className:De(ia.root,c.root,f),ref:S,...h,children:d.jsx(bh,{component:null,exit:!0,children:m})})});function Jw(t){return et("MuiButtonBase",t)}const e3=Qe("MuiButtonBase",["root","disabled","focusVisible"]),t3=t=>{const{disabled:a,focusVisible:o,focusVisibleClassName:i,classes:s}=t,f=tt({root:["root",a&&"disabled",o&&"focusVisible"]},Jw,s);return o&&i&&(f.root+=` ${i}`),f},n3=ye("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${e3.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Mu=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiButtonBase"}),{action:s,centerRipple:c=!1,children:f,className:h,component:m="button",disabled:g=!1,disableRipple:y=!1,disableTouchRipple:x=!1,focusRipple:T=!1,focusVisibleClassName:v,LinkComponent:w="a",onBlur:S,onClick:R,onContextMenu:z,onDragLeave:D,onFocus:O,onFocusVisible:j,onKeyDown:k,onKeyUp:H,onMouseDown:N,onMouseLeave:L,onMouseUp:q,onTouchEnd:I,onTouchMove:Y,onTouchStart:C,tabIndex:$=0,TouchRippleProps:P,touchRippleRef:X,type:B,...F}=i,_=M.useRef(null),V=Fw(),ce=tn(V.ref,X),[E,W]=M.useState(!1);g&&E&&W(!1),M.useImperativeHandle(s,()=>({focusVisible:()=>{W(!0),_.current.focus()}}),[]);const Q=V.shouldMount&&!y&&!g;M.useEffect(()=>{E&&T&&!y&&V.pulsate()},[y,T,E,V]);const ie=or(V,"start",N,x),J=or(V,"stop",z,x),pe=or(V,"stop",D,x),fe=or(V,"stop",q,x),le=or(V,"stop",Ce=>{E&&Ce.preventDefault(),L&&L(Ce)},x),ve=or(V,"start",C,x),we=or(V,"stop",I,x),je=or(V,"stop",Y,x),Me=or(V,"stop",Ce=>{wi(Ce.target)||W(!1),S&&S(Ce)},!1),_e=ca(Ce=>{_.current||(_.current=Ce.currentTarget),wi(Ce.target)&&(W(!0),j&&j(Ce)),O&&O(Ce)}),me=()=>{const Ce=_.current;return Ce?Ce.tagName==="BUTTON"?!1:!(Ce.tagName==="A"&&Ce.href):m&&m!=="button"},Le=ca(Ce=>{T&&!Ce.repeat&&E&&Ce.key===" "&&V.stop(Ce,()=>{V.start(Ce)}),Ce.target===Ce.currentTarget&&me()&&Ce.key===" "&&Ce.preventDefault(),k&&k(Ce),Ce.target===Ce.currentTarget&&me()&&Ce.key==="Enter"&&!g&&(Ce.preventDefault(),R&&R(Ce))}),He=ca(Ce=>{T&&Ce.key===" "&&E&&!Ce.defaultPrevented&&V.stop(Ce,()=>{V.pulsate(Ce)}),H&&H(Ce),R&&Ce.target===Ce.currentTarget&&me()&&Ce.key===" "&&!Ce.defaultPrevented&&!g&&R(Ce)});let Ee=m;Ee==="button"&&(F.href||F.to)&&(Ee=w);const Pe={};if(Ee==="button"){const Ce=!!F.formAction;Pe.type=B===void 0&&!Ce?"button":B,Pe.disabled=g}else!F.href&&!F.to&&(Pe.role="button"),g&&(Pe["aria-disabled"]=g);const Xe=tn(o,_),Ye={...i,centerRipple:c,component:m,disabled:g,disableRipple:y,disableTouchRipple:x,focusRipple:T,tabIndex:$,focusVisible:E},Ve=t3(Ye);return d.jsxs(n3,{as:Ee,className:De(Ve.root,h),ownerState:Ye,onBlur:Me,onClick:R,onContextMenu:J,onFocus:_e,onKeyDown:Le,onKeyUp:He,onMouseDown:ie,onMouseLeave:le,onMouseUp:fe,onDragLeave:pe,onTouchEnd:we,onTouchMove:je,onTouchStart:ve,ref:Xe,tabIndex:g?-1:$,type:B,...Pe,...F,children:[f,Q?d.jsx(Zw,{ref:ce,center:c,...P}):null]})});function or(t,a,o,i=!1){return ca(s=>(o&&o(s),i||t[a](s),!0))}function a3(t){return typeof t.main=="string"}function r3(t,a=[]){if(!a3(t))return!1;for(const o of a)if(!t.hasOwnProperty(o)||typeof t[o]!="string")return!1;return!0}function wn(t=[]){return([,a])=>a&&r3(a,t)}function o3(t){return et("MuiCircularProgress",t)}Qe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ba=44,Dp=ts`
|
|
172
|
+
0% {
|
|
173
|
+
transform: rotate(0deg);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
100% {
|
|
177
|
+
transform: rotate(360deg);
|
|
178
|
+
}
|
|
179
|
+
`,Hp=ts`
|
|
180
|
+
0% {
|
|
181
|
+
stroke-dasharray: 1px, 200px;
|
|
182
|
+
stroke-dashoffset: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
50% {
|
|
186
|
+
stroke-dasharray: 100px, 200px;
|
|
187
|
+
stroke-dashoffset: -15px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
100% {
|
|
191
|
+
stroke-dasharray: 1px, 200px;
|
|
192
|
+
stroke-dashoffset: -126px;
|
|
193
|
+
}
|
|
194
|
+
`,i3=typeof Dp!="string"?th`
|
|
195
|
+
animation: ${Dp} 1.4s linear infinite;
|
|
196
|
+
`:null,l3=typeof Hp!="string"?th`
|
|
197
|
+
animation: ${Hp} 1.4s ease-in-out infinite;
|
|
198
|
+
`:null,s3=t=>{const{classes:a,variant:o,color:i,disableShrink:s}=t,c={root:["root",o,`color${xe(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${xe(o)}`,s&&"circleDisableShrink"]};return tt(c,o3,a)},c3=ye("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,a[o.variant],a[`color${xe(o.color)}`]]}})(Ge(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:i3||{animation:`${Dp} 1.4s linear infinite`}},...Object.entries(t.palette).filter(wn()).map(([a])=>({props:{color:a},style:{color:(t.vars||t).palette[a].main}}))]}))),u3=ye("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),d3=ye("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.circle,a[`circle${xe(o.variant)}`],o.disableShrink&&a.circleDisableShrink]}})(Ge(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:a})=>a.variant==="indeterminate"&&!a.disableShrink,style:l3||{animation:`${Hp} 1.4s ease-in-out infinite`}}]}))),f3=ye("circle",{name:"MuiCircularProgress",slot:"Track"})(Ge(({theme:t})=>({stroke:"currentColor",opacity:(t.vars||t).palette.action.activatedOpacity}))),av=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:f=!1,enableTrackSlot:h=!1,size:m=40,style:g,thickness:y=3.6,value:x=0,variant:T="indeterminate",...v}=i,w={...i,color:c,disableShrink:f,size:m,thickness:y,value:x,variant:T,enableTrackSlot:h},S=s3(w),R={},z={},D={};if(T==="determinate"){const O=2*Math.PI*((ba-y)/2);R.strokeDasharray=O.toFixed(3),D["aria-valuenow"]=Math.round(x),R.strokeDashoffset=`${((100-x)/100*O).toFixed(3)}px`,z.transform="rotate(-90deg)"}return d.jsx(c3,{className:De(S.root,s),style:{width:m,height:m,...z,...g},ownerState:w,ref:o,role:"progressbar",...D,...v,children:d.jsxs(u3,{className:S.svg,ownerState:w,viewBox:`${ba/2} ${ba/2} ${ba} ${ba}`,children:[h?d.jsx(f3,{className:S.track,ownerState:w,cx:ba,cy:ba,r:(ba-y)/2,fill:"none",strokeWidth:y,"aria-hidden":"true"}):null,d.jsx(d3,{className:S.circle,style:R,ownerState:w,cx:ba,cy:ba,r:(ba-y)/2,fill:"none",strokeWidth:y})]})})});function p3(t){return et("MuiIconButton",t)}const yb=Qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),h3=t=>{const{classes:a,disabled:o,color:i,edge:s,size:c,loading:f}=t,h={root:["root",f&&"loading",o&&"disabled",i!=="default"&&`color${xe(i)}`,s&&`edge${xe(s)}`,`size${xe(c)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return tt(h,p3,a)},m3=ye(Mu,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.loading&&a.loading,o.color!=="default"&&a[`color${xe(o.color)}`],o.edge&&a[`edge${xe(o.edge)}`],a[`size${xe(o.size)}`]]}})(Ge(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:a=>!a.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).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}}]})),Ge(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(wn()).map(([a])=>({props:{color:a},style:{color:(t.vars||t).palette[a].main}})),...Object.entries(t.palette).filter(wn()).map(([a])=>({props:{color:a},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[a].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${yb.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${yb.loading}`]:{color:"transparent"}}))),g3=ye("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),_r=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiIconButton"}),{edge:s=!1,children:c,className:f,color:h="default",disabled:m=!1,disableFocusRipple:g=!1,size:y="medium",id:x,loading:T=null,loadingIndicator:v,...w}=i,S=wo(x),R=v??d.jsx(av,{"aria-labelledby":S,color:"inherit",size:16}),z={...i,edge:s,color:h,disabled:m,disableFocusRipple:g,loading:T,loadingIndicator:R,size:y},D=h3(z);return d.jsxs(m3,{id:T?S:x,className:De(D.root,f),centerRipple:!0,focusRipple:!g,disabled:m||T,ref:o,...w,ownerState:z,children:[typeof T=="boolean"&&d.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:d.jsx(g3,{className:D.loadingIndicator,ownerState:z,children:T&&R})}),c]})});function y3(t){return et("MuiTypography",t)}Qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const b3={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},x3=Sw(),v3=t=>{const{align:a,gutterBottom:o,noWrap:i,paragraph:s,variant:c,classes:f}=t,h={root:["root",c,t.align!=="inherit"&&`align${xe(a)}`,o&&"gutterBottom",i&&"noWrap",s&&"paragraph"]};return tt(h,y3,f)},S3=ye("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.variant&&a[o.variant],o.align!=="inherit"&&a[`align${xe(o.align)}`],o.noWrap&&a.noWrap,o.gutterBottom&&a.gutterBottom,o.paragraph&&a.paragraph]}})(Ge(({theme:t})=>{var a;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([o,i])=>o!=="inherit"&&i&&typeof i=="object").map(([o,i])=>({props:{variant:o},style:i})),...Object.entries(t.palette).filter(wn()).map(([o])=>({props:{color:o},style:{color:(t.vars||t).palette[o].main}})),...Object.entries(((a=t.palette)==null?void 0:a.text)||{}).filter(([,o])=>typeof o=="string").map(([o])=>({props:{color:`text${xe(o)}`},style:{color:(t.vars||t).palette.text[o]}})),{props:({ownerState:o})=>o.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:o})=>o.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:o})=>o.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:o})=>o.paragraph,style:{marginBottom:16}}]}})),bb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Et=M.forwardRef(function(a,o){const{color:i,...s}=at({props:a,name:"MuiTypography"}),c=!b3[i],f=x3({...s,...c&&{color:i}}),{align:h="inherit",className:m,component:g,gutterBottom:y=!1,noWrap:x=!1,paragraph:T=!1,variant:v="body1",variantMapping:w=bb,...S}=f,R={...f,align:h,color:i,className:m,component:g,gutterBottom:y,noWrap:x,paragraph:T,variant:v,variantMapping:w},z=g||(T?"p":w[v]||bb[v])||"span",D=v3(R);return d.jsx(S3,{as:z,ref:o,className:De(D.root,m),...S,ownerState:R,style:{...h!=="inherit"&&{"--Typography-textAlign":h},...S.style}})});function C3(t){return et("MuiAppBar",t)}Qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const w3=t=>{const{color:a,position:o,classes:i}=t,s={root:["root",`color${xe(a)}`,`position${xe(o)}`]};return tt(s,C3,i)},xb=(t,a)=>t?`${t.replace(")","")}, ${a})`:a,T3=ye(Eu,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,a[`position${xe(o.position)}`],a[`color${xe(o.color)}`]]}})(Ge(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(wn(["contrastText"])).map(([a])=>({props:{color:a},style:{"--AppBar-background":(t.vars??t).palette[a].main,"--AppBar-color":(t.vars??t).palette[a].contrastText}})),{props:a=>a.enableColorOnDark===!0&&!["inherit","transparent"].includes(a.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:a=>a.enableColorOnDark===!1&&!["inherit","transparent"].includes(a.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?xb(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?xb(t.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)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),R3=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiAppBar"}),{className:s,color:c="primary",enableColorOnDark:f=!1,position:h="fixed",...m}=i,g={...i,color:c,position:h,enableColorOnDark:f},y=w3(g);return d.jsx(T3,{square:!0,component:"header",ownerState:g,elevation:4,className:De(y.root,s,h==="fixed"&&"mui-fixed"),ref:o,...m})});function au(t,a){var i;if(!t||!a)return!1;if(t.contains(a))return!0;const o=(i=a.getRootNode)==null?void 0:i.call(a);if(o&&o instanceof ShadowRoot){let s=a;for(;s;){if(t===s)return!0;s=s.parentNode??s.host??null}}return!1}function rv(t){const a=M.useRef({});return M.useEffect(()=>{a.current=t}),a.current}var zn="top",da="bottom",fa="right",On="left",xh="auto",os=[zn,da,fa,On],Ti="start",Kl="end",j3="clippingParents",ov="viewport",El="popper",E3="reference",vb=os.reduce(function(t,a){return t.concat([a+"-"+Ti,a+"-"+Kl])},[]),iv=[].concat(os,[xh]).reduce(function(t,a){return t.concat([a,a+"-"+Ti,a+"-"+Kl])},[]),M3="beforeRead",A3="read",k3="afterRead",z3="beforeMain",O3="main",B3="afterMain",D3="beforeWrite",H3="write",N3="afterWrite",L3=[M3,A3,k3,z3,O3,B3,D3,H3,N3];function $a(t){return t?(t.nodeName||"").toLowerCase():null}function Yn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var a=t.ownerDocument;return a&&a.defaultView||window}return t}function Co(t){var a=Yn(t).Element;return t instanceof a||t instanceof Element}function ua(t){var a=Yn(t).HTMLElement;return t instanceof a||t instanceof HTMLElement}function vh(t){if(typeof ShadowRoot>"u")return!1;var a=Yn(t).ShadowRoot;return t instanceof a||t instanceof ShadowRoot}function $3(t){var a=t.state;Object.keys(a.elements).forEach(function(o){var i=a.styles[o]||{},s=a.attributes[o]||{},c=a.elements[o];!ua(c)||!$a(c)||(Object.assign(c.style,i),Object.keys(s).forEach(function(f){var h=s[f];h===!1?c.removeAttribute(f):c.setAttribute(f,h===!0?"":h)}))})}function _3(t){var a=t.state,o={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,o.popper),a.styles=o,a.elements.arrow&&Object.assign(a.elements.arrow.style,o.arrow),function(){Object.keys(a.elements).forEach(function(i){var s=a.elements[i],c=a.attributes[i]||{},f=Object.keys(a.styles.hasOwnProperty(i)?a.styles[i]:o[i]),h=f.reduce(function(m,g){return m[g]="",m},{});!ua(s)||!$a(s)||(Object.assign(s.style,h),Object.keys(c).forEach(function(m){s.removeAttribute(m)}))})}}const U3={name:"applyStyles",enabled:!0,phase:"write",fn:$3,effect:_3,requires:["computeStyles"]};function La(t){return t.split("-")[0]}var So=Math.max,ru=Math.min,Ri=Math.round;function Np(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function lv(){return!/^((?!chrome|android).)*safari/i.test(Np())}function ji(t,a,o){a===void 0&&(a=!1),o===void 0&&(o=!1);var i=t.getBoundingClientRect(),s=1,c=1;a&&ua(t)&&(s=t.offsetWidth>0&&Ri(i.width)/t.offsetWidth||1,c=t.offsetHeight>0&&Ri(i.height)/t.offsetHeight||1);var f=Co(t)?Yn(t):window,h=f.visualViewport,m=!lv()&&o,g=(i.left+(m&&h?h.offsetLeft:0))/s,y=(i.top+(m&&h?h.offsetTop:0))/c,x=i.width/s,T=i.height/c;return{width:x,height:T,top:y,right:g+x,bottom:y+T,left:g,x:g,y}}function Sh(t){var a=ji(t),o=t.offsetWidth,i=t.offsetHeight;return Math.abs(a.width-o)<=1&&(o=a.width),Math.abs(a.height-i)<=1&&(i=a.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:i}}function sv(t,a){var o=a.getRootNode&&a.getRootNode();if(t.contains(a))return!0;if(o&&vh(o)){var i=a;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function cr(t){return Yn(t).getComputedStyle(t)}function P3(t){return["table","td","th"].indexOf($a(t))>=0}function Vr(t){return((Co(t)?t.ownerDocument:t.document)||window.document).documentElement}function Au(t){return $a(t)==="html"?t:t.assignedSlot||t.parentNode||(vh(t)?t.host:null)||Vr(t)}function Sb(t){return!ua(t)||cr(t).position==="fixed"?null:t.offsetParent}function I3(t){var a=/firefox/i.test(Np()),o=/Trident/i.test(Np());if(o&&ua(t)){var i=cr(t);if(i.position==="fixed")return null}var s=Au(t);for(vh(s)&&(s=s.host);ua(s)&&["html","body"].indexOf($a(s))<0;){var c=cr(s);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||a&&c.willChange==="filter"||a&&c.filter&&c.filter!=="none")return s;s=s.parentNode}return null}function is(t){for(var a=Yn(t),o=Sb(t);o&&P3(o)&&cr(o).position==="static";)o=Sb(o);return o&&($a(o)==="html"||$a(o)==="body"&&cr(o).position==="static")?a:o||I3(t)||a}function Ch(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function _l(t,a,o){return So(t,ru(a,o))}function F3(t,a,o){var i=_l(t,a,o);return i>o?o:i}function cv(){return{top:0,right:0,bottom:0,left:0}}function uv(t){return Object.assign({},cv(),t)}function dv(t,a){return a.reduce(function(o,i){return o[i]=t,o},{})}var W3=function(a,o){return a=typeof a=="function"?a(Object.assign({},o.rects,{placement:o.placement})):a,uv(typeof a!="number"?a:dv(a,os))};function V3(t){var a,o=t.state,i=t.name,s=t.options,c=o.elements.arrow,f=o.modifiersData.popperOffsets,h=La(o.placement),m=Ch(h),g=[On,fa].indexOf(h)>=0,y=g?"height":"width";if(!(!c||!f)){var x=W3(s.padding,o),T=Sh(c),v=m==="y"?zn:On,w=m==="y"?da:fa,S=o.rects.reference[y]+o.rects.reference[m]-f[m]-o.rects.popper[y],R=f[m]-o.rects.reference[m],z=is(c),D=z?m==="y"?z.clientHeight||0:z.clientWidth||0:0,O=S/2-R/2,j=x[v],k=D-T[y]-x[w],H=D/2-T[y]/2+O,N=_l(j,H,k),L=m;o.modifiersData[i]=(a={},a[L]=N,a.centerOffset=N-H,a)}}function q3(t){var a=t.state,o=t.options,i=o.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=a.elements.popper.querySelector(s),!s)||sv(a.elements.popper,s)&&(a.elements.arrow=s))}const G3={name:"arrow",enabled:!0,phase:"main",fn:V3,effect:q3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ei(t){return t.split("-")[1]}var Y3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X3(t,a){var o=t.x,i=t.y,s=a.devicePixelRatio||1;return{x:Ri(o*s)/s||0,y:Ri(i*s)/s||0}}function Cb(t){var a,o=t.popper,i=t.popperRect,s=t.placement,c=t.variation,f=t.offsets,h=t.position,m=t.gpuAcceleration,g=t.adaptive,y=t.roundOffsets,x=t.isFixed,T=f.x,v=T===void 0?0:T,w=f.y,S=w===void 0?0:w,R=typeof y=="function"?y({x:v,y:S}):{x:v,y:S};v=R.x,S=R.y;var z=f.hasOwnProperty("x"),D=f.hasOwnProperty("y"),O=On,j=zn,k=window;if(g){var H=is(o),N="clientHeight",L="clientWidth";if(H===Yn(o)&&(H=Vr(o),cr(H).position!=="static"&&h==="absolute"&&(N="scrollHeight",L="scrollWidth")),H=H,s===zn||(s===On||s===fa)&&c===Kl){j=da;var q=x&&H===k&&k.visualViewport?k.visualViewport.height:H[N];S-=q-i.height,S*=m?1:-1}if(s===On||(s===zn||s===da)&&c===Kl){O=fa;var I=x&&H===k&&k.visualViewport?k.visualViewport.width:H[L];v-=I-i.width,v*=m?1:-1}}var Y=Object.assign({position:h},g&&Y3),C=y===!0?X3({x:v,y:S},Yn(o)):{x:v,y:S};if(v=C.x,S=C.y,m){var $;return Object.assign({},Y,($={},$[j]=D?"0":"",$[O]=z?"0":"",$.transform=(k.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",$))}return Object.assign({},Y,(a={},a[j]=D?S+"px":"",a[O]=z?v+"px":"",a.transform="",a))}function K3(t){var a=t.state,o=t.options,i=o.gpuAcceleration,s=i===void 0?!0:i,c=o.adaptive,f=c===void 0?!0:c,h=o.roundOffsets,m=h===void 0?!0:h,g={placement:La(a.placement),variation:Ei(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:s,isFixed:a.options.strategy==="fixed"};a.modifiersData.popperOffsets!=null&&(a.styles.popper=Object.assign({},a.styles.popper,Cb(Object.assign({},g,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:f,roundOffsets:m})))),a.modifiersData.arrow!=null&&(a.styles.arrow=Object.assign({},a.styles.arrow,Cb(Object.assign({},g,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})}const Q3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:K3,data:{}};var zc={passive:!0};function Z3(t){var a=t.state,o=t.instance,i=t.options,s=i.scroll,c=s===void 0?!0:s,f=i.resize,h=f===void 0?!0:f,m=Yn(a.elements.popper),g=[].concat(a.scrollParents.reference,a.scrollParents.popper);return c&&g.forEach(function(y){y.addEventListener("scroll",o.update,zc)}),h&&m.addEventListener("resize",o.update,zc),function(){c&&g.forEach(function(y){y.removeEventListener("scroll",o.update,zc)}),h&&m.removeEventListener("resize",o.update,zc)}}const J3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Z3,data:{}};var eT={left:"right",right:"left",bottom:"top",top:"bottom"};function Gc(t){return t.replace(/left|right|bottom|top/g,function(a){return eT[a]})}var tT={start:"end",end:"start"};function wb(t){return t.replace(/start|end/g,function(a){return tT[a]})}function wh(t){var a=Yn(t),o=a.pageXOffset,i=a.pageYOffset;return{scrollLeft:o,scrollTop:i}}function Th(t){return ji(Vr(t)).left+wh(t).scrollLeft}function nT(t,a){var o=Yn(t),i=Vr(t),s=o.visualViewport,c=i.clientWidth,f=i.clientHeight,h=0,m=0;if(s){c=s.width,f=s.height;var g=lv();(g||!g&&a==="fixed")&&(h=s.offsetLeft,m=s.offsetTop)}return{width:c,height:f,x:h+Th(t),y:m}}function aT(t){var a,o=Vr(t),i=wh(t),s=(a=t.ownerDocument)==null?void 0:a.body,c=So(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),f=So(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),h=-i.scrollLeft+Th(t),m=-i.scrollTop;return cr(s||o).direction==="rtl"&&(h+=So(o.clientWidth,s?s.clientWidth:0)-c),{width:c,height:f,x:h,y:m}}function Rh(t){var a=cr(t),o=a.overflow,i=a.overflowX,s=a.overflowY;return/auto|scroll|overlay|hidden/.test(o+s+i)}function fv(t){return["html","body","#document"].indexOf($a(t))>=0?t.ownerDocument.body:ua(t)&&Rh(t)?t:fv(Au(t))}function Ul(t,a){var o;a===void 0&&(a=[]);var i=fv(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),c=Yn(i),f=s?[c].concat(c.visualViewport||[],Rh(i)?i:[]):i,h=a.concat(f);return s?h:h.concat(Ul(Au(f)))}function Lp(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rT(t,a){var o=ji(t,!1,a==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function Tb(t,a,o){return a===ov?Lp(nT(t,o)):Co(a)?rT(a,o):Lp(aT(Vr(t)))}function oT(t){var a=Ul(Au(t)),o=["absolute","fixed"].indexOf(cr(t).position)>=0,i=o&&ua(t)?is(t):t;return Co(i)?a.filter(function(s){return Co(s)&&sv(s,i)&&$a(s)!=="body"}):[]}function iT(t,a,o,i){var s=a==="clippingParents"?oT(t):[].concat(a),c=[].concat(s,[o]),f=c[0],h=c.reduce(function(m,g){var y=Tb(t,g,i);return m.top=So(y.top,m.top),m.right=ru(y.right,m.right),m.bottom=ru(y.bottom,m.bottom),m.left=So(y.left,m.left),m},Tb(t,f,i));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function pv(t){var a=t.reference,o=t.element,i=t.placement,s=i?La(i):null,c=i?Ei(i):null,f=a.x+a.width/2-o.width/2,h=a.y+a.height/2-o.height/2,m;switch(s){case zn:m={x:f,y:a.y-o.height};break;case da:m={x:f,y:a.y+a.height};break;case fa:m={x:a.x+a.width,y:h};break;case On:m={x:a.x-o.width,y:h};break;default:m={x:a.x,y:a.y}}var g=s?Ch(s):null;if(g!=null){var y=g==="y"?"height":"width";switch(c){case Ti:m[g]=m[g]-(a[y]/2-o[y]/2);break;case Kl:m[g]=m[g]+(a[y]/2-o[y]/2);break}}return m}function Ql(t,a){a===void 0&&(a={});var o=a,i=o.placement,s=i===void 0?t.placement:i,c=o.strategy,f=c===void 0?t.strategy:c,h=o.boundary,m=h===void 0?j3:h,g=o.rootBoundary,y=g===void 0?ov:g,x=o.elementContext,T=x===void 0?El:x,v=o.altBoundary,w=v===void 0?!1:v,S=o.padding,R=S===void 0?0:S,z=uv(typeof R!="number"?R:dv(R,os)),D=T===El?E3:El,O=t.rects.popper,j=t.elements[w?D:T],k=iT(Co(j)?j:j.contextElement||Vr(t.elements.popper),m,y,f),H=ji(t.elements.reference),N=pv({reference:H,element:O,placement:s}),L=Lp(Object.assign({},O,N)),q=T===El?L:H,I={top:k.top-q.top+z.top,bottom:q.bottom-k.bottom+z.bottom,left:k.left-q.left+z.left,right:q.right-k.right+z.right},Y=t.modifiersData.offset;if(T===El&&Y){var C=Y[s];Object.keys(I).forEach(function($){var P=[fa,da].indexOf($)>=0?1:-1,X=[zn,da].indexOf($)>=0?"y":"x";I[$]+=C[X]*P})}return I}function lT(t,a){a===void 0&&(a={});var o=a,i=o.placement,s=o.boundary,c=o.rootBoundary,f=o.padding,h=o.flipVariations,m=o.allowedAutoPlacements,g=m===void 0?iv:m,y=Ei(i),x=y?h?vb:vb.filter(function(w){return Ei(w)===y}):os,T=x.filter(function(w){return g.indexOf(w)>=0});T.length===0&&(T=x);var v=T.reduce(function(w,S){return w[S]=Ql(t,{placement:S,boundary:s,rootBoundary:c,padding:f})[La(S)],w},{});return Object.keys(v).sort(function(w,S){return v[w]-v[S]})}function sT(t){if(La(t)===xh)return[];var a=Gc(t);return[wb(t),a,wb(a)]}function cT(t){var a=t.state,o=t.options,i=t.name;if(!a.modifiersData[i]._skip){for(var s=o.mainAxis,c=s===void 0?!0:s,f=o.altAxis,h=f===void 0?!0:f,m=o.fallbackPlacements,g=o.padding,y=o.boundary,x=o.rootBoundary,T=o.altBoundary,v=o.flipVariations,w=v===void 0?!0:v,S=o.allowedAutoPlacements,R=a.options.placement,z=La(R),D=z===R,O=m||(D||!w?[Gc(R)]:sT(R)),j=[R].concat(O).reduce(function(ie,J){return ie.concat(La(J)===xh?lT(a,{placement:J,boundary:y,rootBoundary:x,padding:g,flipVariations:w,allowedAutoPlacements:S}):J)},[]),k=a.rects.reference,H=a.rects.popper,N=new Map,L=!0,q=j[0],I=0;I<j.length;I++){var Y=j[I],C=La(Y),$=Ei(Y)===Ti,P=[zn,da].indexOf(C)>=0,X=P?"width":"height",B=Ql(a,{placement:Y,boundary:y,rootBoundary:x,altBoundary:T,padding:g}),F=P?$?fa:On:$?da:zn;k[X]>H[X]&&(F=Gc(F));var _=Gc(F),V=[];if(c&&V.push(B[C]<=0),h&&V.push(B[F]<=0,B[_]<=0),V.every(function(ie){return ie})){q=Y,L=!1;break}N.set(Y,V)}if(L)for(var ce=w?3:1,E=function(J){var pe=j.find(function(fe){var le=N.get(fe);if(le)return le.slice(0,J).every(function(ve){return ve})});if(pe)return q=pe,"break"},W=ce;W>0;W--){var Q=E(W);if(Q==="break")break}a.placement!==q&&(a.modifiersData[i]._skip=!0,a.placement=q,a.reset=!0)}}const uT={name:"flip",enabled:!0,phase:"main",fn:cT,requiresIfExists:["offset"],data:{_skip:!1}};function Rb(t,a,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-a.height-o.y,right:t.right-a.width+o.x,bottom:t.bottom-a.height+o.y,left:t.left-a.width-o.x}}function jb(t){return[zn,fa,da,On].some(function(a){return t[a]>=0})}function dT(t){var a=t.state,o=t.name,i=a.rects.reference,s=a.rects.popper,c=a.modifiersData.preventOverflow,f=Ql(a,{elementContext:"reference"}),h=Ql(a,{altBoundary:!0}),m=Rb(f,i),g=Rb(h,s,c),y=jb(m),x=jb(g);a.modifiersData[o]={referenceClippingOffsets:m,popperEscapeOffsets:g,isReferenceHidden:y,hasPopperEscaped:x},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":x})}const fT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dT};function pT(t,a,o){var i=La(t),s=[On,zn].indexOf(i)>=0?-1:1,c=typeof o=="function"?o(Object.assign({},a,{placement:t})):o,f=c[0],h=c[1];return f=f||0,h=(h||0)*s,[On,fa].indexOf(i)>=0?{x:h,y:f}:{x:f,y:h}}function hT(t){var a=t.state,o=t.options,i=t.name,s=o.offset,c=s===void 0?[0,0]:s,f=iv.reduce(function(y,x){return y[x]=pT(x,a.rects,c),y},{}),h=f[a.placement],m=h.x,g=h.y;a.modifiersData.popperOffsets!=null&&(a.modifiersData.popperOffsets.x+=m,a.modifiersData.popperOffsets.y+=g),a.modifiersData[i]=f}const mT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hT};function gT(t){var a=t.state,o=t.name;a.modifiersData[o]=pv({reference:a.rects.reference,element:a.rects.popper,placement:a.placement})}const yT={name:"popperOffsets",enabled:!0,phase:"read",fn:gT,data:{}};function bT(t){return t==="x"?"y":"x"}function xT(t){var a=t.state,o=t.options,i=t.name,s=o.mainAxis,c=s===void 0?!0:s,f=o.altAxis,h=f===void 0?!1:f,m=o.boundary,g=o.rootBoundary,y=o.altBoundary,x=o.padding,T=o.tether,v=T===void 0?!0:T,w=o.tetherOffset,S=w===void 0?0:w,R=Ql(a,{boundary:m,rootBoundary:g,padding:x,altBoundary:y}),z=La(a.placement),D=Ei(a.placement),O=!D,j=Ch(z),k=bT(j),H=a.modifiersData.popperOffsets,N=a.rects.reference,L=a.rects.popper,q=typeof S=="function"?S(Object.assign({},a.rects,{placement:a.placement})):S,I=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),Y=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,C={x:0,y:0};if(H){if(c){var $,P=j==="y"?zn:On,X=j==="y"?da:fa,B=j==="y"?"height":"width",F=H[j],_=F+R[P],V=F-R[X],ce=v?-L[B]/2:0,E=D===Ti?N[B]:L[B],W=D===Ti?-L[B]:-N[B],Q=a.elements.arrow,ie=v&&Q?Sh(Q):{width:0,height:0},J=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:cv(),pe=J[P],fe=J[X],le=_l(0,N[B],ie[B]),ve=O?N[B]/2-ce-le-pe-I.mainAxis:E-le-pe-I.mainAxis,we=O?-N[B]/2+ce+le+fe+I.mainAxis:W+le+fe+I.mainAxis,je=a.elements.arrow&&is(a.elements.arrow),Me=je?j==="y"?je.clientTop||0:je.clientLeft||0:0,_e=($=Y==null?void 0:Y[j])!=null?$:0,me=F+ve-_e-Me,Le=F+we-_e,He=_l(v?ru(_,me):_,F,v?So(V,Le):V);H[j]=He,C[j]=He-F}if(h){var Ee,Pe=j==="x"?zn:On,Xe=j==="x"?da:fa,Ye=H[k],Ve=k==="y"?"height":"width",Ce=Ye+R[Pe],ct=Ye-R[Xe],Te=[zn,On].indexOf(z)!==-1,ue=(Ee=Y==null?void 0:Y[k])!=null?Ee:0,he=Te?Ce:Ye-N[Ve]-L[Ve]-ue+I.altAxis,Re=Te?Ye+N[Ve]+L[Ve]-ue-I.altAxis:ct,ze=v&&Te?F3(he,Ye,Re):_l(v?he:Ce,Ye,v?Re:ct);H[k]=ze,C[k]=ze-Ye}a.modifiersData[i]=C}}const vT={name:"preventOverflow",enabled:!0,phase:"main",fn:xT,requiresIfExists:["offset"]};function ST(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function CT(t){return t===Yn(t)||!ua(t)?wh(t):ST(t)}function wT(t){var a=t.getBoundingClientRect(),o=Ri(a.width)/t.offsetWidth||1,i=Ri(a.height)/t.offsetHeight||1;return o!==1||i!==1}function TT(t,a,o){o===void 0&&(o=!1);var i=ua(a),s=ua(a)&&wT(a),c=Vr(a),f=ji(t,s,o),h={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(i||!i&&!o)&&(($a(a)!=="body"||Rh(c))&&(h=CT(a)),ua(a)?(m=ji(a,!0),m.x+=a.clientLeft,m.y+=a.clientTop):c&&(m.x=Th(c))),{x:f.left+h.scrollLeft-m.x,y:f.top+h.scrollTop-m.y,width:f.width,height:f.height}}function RT(t){var a=new Map,o=new Set,i=[];t.forEach(function(c){a.set(c.name,c)});function s(c){o.add(c.name);var f=[].concat(c.requires||[],c.requiresIfExists||[]);f.forEach(function(h){if(!o.has(h)){var m=a.get(h);m&&s(m)}}),i.push(c)}return t.forEach(function(c){o.has(c.name)||s(c)}),i}function jT(t){var a=RT(t);return L3.reduce(function(o,i){return o.concat(a.filter(function(s){return s.phase===i}))},[])}function ET(t){var a;return function(){return a||(a=new Promise(function(o){Promise.resolve().then(function(){a=void 0,o(t())})})),a}}function MT(t){var a=t.reduce(function(o,i){var s=o[i.name];return o[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,o},{});return Object.keys(a).map(function(o){return a[o]})}var Eb={placement:"bottom",modifiers:[],strategy:"absolute"};function Mb(){for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return!a.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function AT(t){t===void 0&&(t={});var a=t,o=a.defaultModifiers,i=o===void 0?[]:o,s=a.defaultOptions,c=s===void 0?Eb:s;return function(h,m,g){g===void 0&&(g=c);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Eb,c),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},x=[],T=!1,v={state:y,setOptions:function(z){var D=typeof z=="function"?z(y.options):z;S(),y.options=Object.assign({},c,y.options,D),y.scrollParents={reference:Co(h)?Ul(h):h.contextElement?Ul(h.contextElement):[],popper:Ul(m)};var O=jT(MT([].concat(i,y.options.modifiers)));return y.orderedModifiers=O.filter(function(j){return j.enabled}),w(),v.update()},forceUpdate:function(){if(!T){var z=y.elements,D=z.reference,O=z.popper;if(Mb(D,O)){y.rects={reference:TT(D,is(O),y.options.strategy==="fixed"),popper:Sh(O)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(I){return y.modifiersData[I.name]=Object.assign({},I.data)});for(var j=0;j<y.orderedModifiers.length;j++){if(y.reset===!0){y.reset=!1,j=-1;continue}var k=y.orderedModifiers[j],H=k.fn,N=k.options,L=N===void 0?{}:N,q=k.name;typeof H=="function"&&(y=H({state:y,options:L,name:q,instance:v})||y)}}}},update:ET(function(){return new Promise(function(R){v.forceUpdate(),R(y)})}),destroy:function(){S(),T=!0}};if(!Mb(h,m))return v;v.setOptions(g).then(function(R){!T&&g.onFirstUpdate&&g.onFirstUpdate(R)});function w(){y.orderedModifiers.forEach(function(R){var z=R.name,D=R.options,O=D===void 0?{}:D,j=R.effect;if(typeof j=="function"){var k=j({state:y,name:z,instance:v,options:O}),H=function(){};x.push(k||H)}})}function S(){x.forEach(function(R){return R()}),x=[]}return v}}var kT=[J3,yT,Q3,U3,mT,uT,vT,G3,fT],zT=AT({defaultModifiers:kT});function ka(t){var x;const{elementType:a,externalSlotProps:o,ownerState:i,skipResolvingSlotProps:s=!1,...c}=t,f=s?{}:tv(o,i),{props:h,internalRef:m}=nv({...c,externalSlotProps:f}),g=tn(m,f==null?void 0:f.ref,(x=t.additionalProps)==null?void 0:x.ref);return ev(a,{...h,ref:g},i)}function zi(t){var a;return parseInt(M.version,10)>=19?((a=t==null?void 0:t.props)==null?void 0:a.ref)||null:(t==null?void 0:t.ref)||null}function OT(t){return typeof t=="function"?t():t}const hv=M.forwardRef(function(a,o){const{children:i,container:s,disablePortal:c=!1}=a,[f,h]=M.useState(null),m=tn(M.isValidElement(i)?zi(i):null,o);if(Dn(()=>{c||h(OT(s)||document.body)},[s,c]),Dn(()=>{if(f&&!c)return pb(o,f),()=>{pb(o,null)}},[o,f,c]),c){if(M.isValidElement(i)){const g={ref:m};return M.cloneElement(i,g)}return i}return f&&gh.createPortal(i,f)});function BT(t){return et("MuiPopper",t)}Qe("MuiPopper",["root"]);function DT(t,a){if(a==="ltr")return t;switch(t){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 t}}function $p(t){return typeof t=="function"?t():t}function HT(t){return t.nodeType!==void 0}const NT=t=>{const{classes:a}=t;return tt({root:["root"]},BT,a)},LT={},$T=M.forwardRef(function(a,o){const{anchorEl:i,children:s,direction:c,disablePortal:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:x,slotProps:T={},slots:v={},TransitionProps:w,ownerState:S,...R}=a,z=M.useRef(null),D=tn(z,o),O=M.useRef(null),j=tn(O,x),k=M.useRef(j);Dn(()=>{k.current=j},[j]),M.useImperativeHandle(x,()=>O.current,[]);const H=DT(g,c),[N,L]=M.useState(H),[q,I]=M.useState($p(i));M.useEffect(()=>{O.current&&O.current.forceUpdate()}),M.useEffect(()=>{i&&I($p(i))},[i]),Dn(()=>{if(!q||!m)return;const X=V=>{L(V.placement)};let B=[{name:"preventOverflow",options:{altBoundary:f}},{name:"flip",options:{altBoundary:f}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{X(V)}}];h!=null&&(B=B.concat(h)),y&&y.modifiers!=null&&(B=B.concat(y.modifiers));const F=zT(q,z.current,{placement:H,...y,modifiers:B});k.current(F);const _=z.current;return()=>{if(_){const{style:V}=_,ce=V.position,E=V.top,W=V.left,Q=V.transform;F.destroy(),V.position=ce,V.top=E,V.left=W,V.transform=Q}else F.destroy();k.current(null)}},[q,f,h,m,y,H]);const Y={placement:N};w!==null&&(Y.TransitionProps=w);const C=NT(a),$=v.root??"div",P=ka({elementType:$,externalSlotProps:T.root,externalForwardedProps:R,additionalProps:{role:"tooltip",ref:D},ownerState:a,className:C.root});return d.jsx($,{...P,children:typeof s=="function"?s(Y):s})}),_T=M.forwardRef(function(a,o){const{anchorEl:i,children:s,container:c,direction:f="ltr",disablePortal:h=!1,keepMounted:m=!1,modifiers:g,open:y,placement:x="bottom",popperOptions:T=LT,popperRef:v,style:w,transition:S=!1,slotProps:R={},slots:z={},...D}=a,[O,j]=M.useState(!0),k=()=>{j(!1)},H=()=>{j(!0)};if(!m&&!y&&(!S||O))return null;let N;if(c)N=c;else if(i){const I=$p(i);N=I&&HT(I)?rn(I).body:rn(null).body}const L=!y&&m&&(!S||O)?"none":void 0,q=S?{in:y,onEnter:k,onExited:H}:void 0;return d.jsx(hv,{disablePortal:h,container:N,children:d.jsx($T,{anchorEl:i,direction:f,disablePortal:h,modifiers:g,ref:o,open:S?!O:y,placement:x,popperOptions:T,popperRef:v,slotProps:R,slots:z,...D,style:{position:"fixed",top:0,left:0,display:L,...w},TransitionProps:q,children:s})})}),UT=ye(_T,{name:"MuiPopper",slot:"Root"})({}),mv=M.forwardRef(function(a,o){const i=wu(),s=at({props:a,name:"MuiPopper"}),{anchorEl:c,component:f,components:h,componentsProps:m,container:g,disablePortal:y,keepMounted:x,modifiers:T,open:v,placement:w,popperOptions:S,popperRef:R,transition:z,slots:D,slotProps:O,...j}=s,k=(D==null?void 0:D.root)??(h==null?void 0:h.Root),H={anchorEl:c,container:g,disablePortal:y,keepMounted:x,modifiers:T,open:v,placement:w,popperOptions:S,popperRef:R,transition:z,...j};return d.jsx(UT,{as:f,direction:i?"rtl":"ltr",slots:{root:k},slotProps:O??m,...H,ref:o})});function Oc(t){return parseInt(t,10)||0}const PT={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function IT(t){for(const a in t)return!1;return!0}function Ab(t){return IT(t)||t.outerHeightStyle===0&&!t.overflowing}const FT=M.forwardRef(function(a,o){const{onChange:i,maxRows:s,minRows:c=1,style:f,value:h,...m}=a,{current:g}=M.useRef(h!=null),y=M.useRef(null),x=tn(o,y),T=M.useRef(null),v=M.useRef(null),w=M.useCallback(()=>{const O=y.current,j=v.current;if(!O||!j)return;const H=sr(O).getComputedStyle(O);if(H.width==="0px")return{outerHeightStyle:0,overflowing:!1};j.style.width=H.width,j.value=O.value||a.placeholder||"x",j.value.slice(-1)===`
|
|
199
|
+
`&&(j.value+=" ");const N=H.boxSizing,L=Oc(H.paddingBottom)+Oc(H.paddingTop),q=Oc(H.borderBottomWidth)+Oc(H.borderTopWidth),I=j.scrollHeight;j.value="x";const Y=j.scrollHeight;let C=I;c&&(C=Math.max(Number(c)*Y,C)),s&&(C=Math.min(Number(s)*Y,C)),C=Math.max(C,Y);const $=C+(N==="border-box"?L+q:0),P=Math.abs(C-I)<=1;return{outerHeightStyle:$,overflowing:P}},[s,c,a.placeholder]),S=ca(()=>{const O=y.current,j=w();if(!O||!j||Ab(j))return!1;const k=j.outerHeightStyle;return T.current!=null&&T.current!==k}),R=M.useCallback(()=>{const O=y.current,j=w();if(!O||!j||Ab(j))return;const k=j.outerHeightStyle;T.current!==k&&(T.current=k,O.style.height=`${k}px`),O.style.overflow=j.overflowing?"hidden":""},[w]),z=M.useRef(-1);Dn(()=>{const O=Gx(R),j=y==null?void 0:y.current;if(!j)return;const k=sr(j);k.addEventListener("resize",O);let H;return typeof ResizeObserver<"u"&&(H=new ResizeObserver(()=>{S()&&(H.unobserve(j),cancelAnimationFrame(z.current),R(),z.current=requestAnimationFrame(()=>{H.observe(j)}))}),H.observe(j)),()=>{O.clear(),cancelAnimationFrame(z.current),k.removeEventListener("resize",O),H&&H.disconnect()}},[w,R,S]),Dn(()=>{R()});const D=O=>{g||R();const j=O.target,k=j.value.length,H=j.value.endsWith(`
|
|
200
|
+
`),N=j.selectionStart===k;H&&N&&j.setSelectionRange(k,k),i&&i(O)};return d.jsxs(M.Fragment,{children:[d.jsx("textarea",{value:h,onChange:D,ref:x,rows:c,style:f,...m}),d.jsx("textarea",{"aria-hidden":!0,className:a.className,readOnly:!0,ref:v,tabIndex:-1,style:{...PT.shadow,...f,paddingTop:0,paddingBottom:0}})]})});function To({props:t,states:a,muiFormControl:o}){return a.reduce((i,s)=>(i[s]=t[s],o&&typeof t[s]>"u"&&(i[s]=o[s]),i),{})}const jh=M.createContext(void 0);function qr(){return M.useContext(jh)}function Ur(t){var o;let a=t.activeElement;for(;((o=a==null?void 0:a.shadowRoot)==null?void 0:o.activeElement)!=null;)a=a.shadowRoot.activeElement;return a}function kb(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function ou(t,a=!1){return t&&(kb(t.value)&&t.value!==""||a&&kb(t.defaultValue)&&t.defaultValue!=="")}function WT(t){return t.startAdornment}function VT(t){return et("MuiInputBase",t)}const Mi=Qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var zb;const _p="mui-auto-fill",iu="mui-auto-fill-cancel",ku=(t,a)=>{const{ownerState:o}=t;return[a.root,o.formControl&&a.formControl,o.startAdornment&&a.adornedStart,o.endAdornment&&a.adornedEnd,o.error&&a.error,o.size==="small"&&a.sizeSmall,o.multiline&&a.multiline,o.color&&a[`color${xe(o.color)}`],o.fullWidth&&a.fullWidth,o.hiddenLabel&&a.hiddenLabel]},zu=(t,a)=>{const{ownerState:o}=t;return[a.input,o.size==="small"&&a.inputSizeSmall,o.multiline&&a.inputMultiline,o.type==="search"&&a.inputTypeSearch,o.startAdornment&&a.inputAdornedStart,o.endAdornment&&a.inputAdornedEnd,o.hiddenLabel&&a.inputHiddenLabel]},qT=t=>{const{classes:a,color:o,disabled:i,error:s,endAdornment:c,focused:f,formControl:h,fullWidth:m,hiddenLabel:g,multiline:y,readOnly:x,size:T,startAdornment:v,type:w}=t,S={root:["root",`color${xe(o)}`,i&&"disabled",s&&"error",m&&"fullWidth",f&&"focused",h&&"formControl",T&&T!=="medium"&&`size${xe(T)}`,y&&"multiline",v&&"adornedStart",c&&"adornedEnd",g&&"hiddenLabel",x&&"readOnly"],input:["input",i&&"disabled",w==="search"&&"inputTypeSearch",y&&"inputMultiline",T==="small"&&"inputSizeSmall",g&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",x&&"readOnly"]};return tt(S,VT,a)},Ou=ye("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ku})(Ge(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Mi.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:a})=>a.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:a,size:o})=>a.multiline&&o==="small",style:{paddingTop:1}},{props:({ownerState:a})=>a.fullWidth,style:{width:"100%"}}]}))),Bu=ye("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zu})(Ge(({theme:t})=>{const a=t.palette.mode==="light",o={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:a?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},i={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:a?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Mi.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Mi.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:c})=>!c.disableInjectingGlobalStyles,style:{animationName:iu,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:_p}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:c})=>c.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Ob=mh({[`@keyframes ${_p}`]:{from:{animationName:_p}},[`@keyframes ${iu}`]:{from:{animationName:iu}}}),ls=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:c,autoFocus:f,className:h,color:m,components:g={},componentsProps:y={},defaultValue:x,disabled:T,disableInjectingGlobalStyles:v,endAdornment:w,error:S,fullWidth:R=!1,id:z,inputComponent:D="input",inputProps:O={},inputRef:j,margin:k,maxRows:H,minRows:N,multiline:L=!1,name:q,onBlur:I,onChange:Y,onClick:C,onFocus:$,onKeyDown:P,onKeyUp:X,placeholder:B,readOnly:F,renderSuffix:_,rows:V,size:ce,slotProps:E={},slots:W={},startAdornment:Q,type:ie="text",value:J,...pe}=i,fe=O.value!=null?O.value:J,{current:le}=M.useRef(fe!=null),ve=M.useRef(),we=M.useCallback(be=>{},[]),je=tn(ve,j,O.ref,we),[Me,_e]=M.useState(!1),me=qr(),Le=To({props:i,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Le.focused=me?me.focused:Me,M.useEffect(()=>{!me&&T&&Me&&(_e(!1),I&&I())},[me,T,Me,I]);const He=me&&me.onFilled,Ee=me&&me.onEmpty,Pe=M.useCallback(be=>{ou(be)?He&&He():Ee&&Ee()},[He,Ee]);Dn(()=>{le&&Pe({value:fe})},[fe,Pe,le]),Dn(()=>{if(!f)return;const be=ve.current;if(!be)return;const qe=rn(be),Ne=Ur(qe),Oe=Ne==null||Ne===qe.body||Ne===qe.documentElement;be===Ne?me&&me.onFocus?me.onFocus():_e(!0):Oe&&be.focus()},[f]);const Xe=be=>{$&&$(be),O.onFocus&&O.onFocus(be),me&&me.onFocus?me.onFocus(be):_e(!0)},Ye=be=>{I&&I(be),O.onBlur&&O.onBlur(be),me&&me.onBlur?me.onBlur(be):_e(!1)},Ve=(be,...qe)=>{if(!le){const Ne=be.target||ve.current;if(Ne==null)throw new Error(ir(1));Pe({value:Ne.value})}O.onChange&&O.onChange(be,...qe),Y&&Y(be,...qe)};M.useEffect(()=>{Pe(ve.current)},[]);const Ce=be=>{ve.current&&be.currentTarget===be.target&&ve.current.focus(),C&&C(be)};let ct=D,Te=O;L&&ct==="input"&&(V?Te={type:void 0,minRows:V,maxRows:V,...Te}:Te={type:void 0,maxRows:H,minRows:N,...Te},ct=FT);const ue=be=>{Pe(be.animationName===iu?ve.current:{value:"x"})};M.useEffect(()=>{me&&me.setAdornedStart(!!Q)},[me,Q]);const he={...i,color:Le.color||"primary",disabled:Le.disabled,endAdornment:w,error:Le.error,focused:Le.focused,formControl:me,fullWidth:R,hiddenLabel:Le.hiddenLabel,multiline:L,size:Le.size,startAdornment:Q,type:ie},Re=qT(he),ze=W.root||g.Root||Ou,Ie=E.root||y.root||{},Se=W.input||g.Input||Bu;return Te={...Te,...E.input??y.input},d.jsxs(M.Fragment,{children:[!v&&typeof Ob=="function"&&(zb||(zb=d.jsx(Ob,{}))),d.jsxs(ze,{...Ie,ref:o,onClick:Ce,...pe,...!Ir(ze)&&{ownerState:{...he,...Ie.ownerState}},className:De(Re.root,Ie.className,h,F&&"MuiInputBase-readOnly"),children:[Q,d.jsx(jh.Provider,{value:null,children:d.jsx(Se,{"aria-invalid":Le.error,"aria-describedby":s,autoComplete:c,autoFocus:f,defaultValue:x,disabled:Le.disabled,id:z,onAnimationStart:ue,name:q,placeholder:B,readOnly:F,required:Le.required,rows:V,value:fe,onKeyDown:P,onKeyUp:X,type:ie,...Te,...!Ir(Se)&&{as:ct,ownerState:{...he,...Te.ownerState}},ref:je,className:De(Re.input,Te.className,F&&"MuiInputBase-readOnly"),onBlur:Ye,onChange:Ve,onFocus:Xe})}),w,_?_({...Le,startAdornment:Q}):null]})]})});function GT(t){return et("MuiInput",t)}const Ml={...Mi,...Qe("MuiInput",["root","underline","input"])};function YT(t){return et("MuiOutlinedInput",t)}const Aa={...Mi,...Qe("MuiOutlinedInput",["root","notchedOutline","input"])};function XT(t){return et("MuiFilledInput",t)}const po={...Mi,...Qe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},KT=pn(d.jsx("path",{d:"M7 10l5 5 5-5z"})),QT=pn(d.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"}));function ZT(t){return et("MuiAvatar",t)}Qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const JT=t=>{const{classes:a,variant:o,colorDefault:i}=t;return tt({root:["root",o,i&&"colorDefault"],img:["img"],fallback:["fallback"]},ZT,a)},e4=ye("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,a[o.variant],o.colorDefault&&a.colorDefault]}})(Ge(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(t.vars||t).palette.background.default,...t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.grey[400],...t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})}}}]}))),t4=ye("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),n4=ye(QT,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function a4({crossOrigin:t,referrerPolicy:a,src:o,srcSet:i}){const[s,c]=M.useState(!1);return M.useEffect(()=>{if(!o&&!i)return;c(!1);let f=!0;const h=new Image;return h.onload=()=>{f&&c("loaded")},h.onerror=()=>{f&&c("error")},h.crossOrigin=t,h.referrerPolicy=a,h.src=o,i&&(h.srcset=i),()=>{f=!1}},[t,a,o,i]),s}const r4=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiAvatar"}),{alt:s,children:c,className:f,component:h="div",slots:m={},slotProps:g={},imgProps:y,sizes:x,src:T,srcSet:v,variant:w="circular",...S}=i;let R=null;const z={...i,component:h,variant:w},D=a4({...y,...typeof g.img=="function"?g.img(z):g.img,src:T,srcSet:v}),O=T||v,j=O&&D!=="error";z.colorDefault=!j,delete z.ownerState;const k=JT(z),[H,N]=nt("root",{ref:o,className:De(k.root,f),elementType:e4,externalForwardedProps:{slots:m,slotProps:g,component:h,...S},ownerState:z}),[L,q]=nt("img",{className:k.img,elementType:t4,externalForwardedProps:{slots:m,slotProps:{img:{...y,...g.img}}},additionalProps:{alt:s,src:T,srcSet:v,sizes:x},ownerState:z}),[I,Y]=nt("fallback",{className:k.fallback,elementType:n4,externalForwardedProps:{slots:m,slotProps:g},shouldForwardComponentProp:!0,ownerState:z});return j?R=d.jsx(L,{...q}):c||c===0?R=c:O&&s?R=s[0]:R=d.jsx(I,{...Y}),d.jsx(H,{...N,children:R})}),o4={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},i4={opacity:0,visibility:"hidden"},Up=M.forwardRef(function(a,o){const i=ki(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:c,appear:f=!0,children:h,easing:m,in:g,onEnter:y,onEntered:x,onEntering:T,onExit:v,onExited:w,onExiting:S,style:R,timeout:z=s,...D}=a,O=M.useRef(null),j=tn(O,zi(h),o),k=ln(O,T),H=ln(O,(C,$)=>{Zx(C);const P=Ci({style:R,timeout:z,easing:m},{mode:"enter"});C.style.transition=i.transitions.create("opacity",P),y&&y(C,$)}),N=ln(O,x),L=ln(O,S),q=ln(O,C=>{const $=Ci({style:R,timeout:z,easing:m},{mode:"exit"});C.style.transition=i.transitions.create("opacity",$),v&&v(C)}),I=ln(O,C=>{C.style.transition="",w&&w(C)}),Y=C=>{c&&c(O.current,C)};return d.jsx(va,{appear:f,in:g,nodeRef:O,onEnter:H,onEntered:N,onEntering:k,onExit:q,onExited:I,onExiting:L,addEndListener:Y,timeout:z,...D,children:(C,{ownerState:$,...P})=>{const X=Jx(C,g,o4,i4,R,h.props.style);return M.cloneElement(h,{style:X,ref:j,...P})}})});function l4(t){return et("MuiBackdrop",t)}Qe("MuiBackdrop",["root","invisible"]);const s4=t=>{const{classes:a,invisible:o}=t;return tt({root:["root",o&&"invisible"]},l4,a)},c4=ye("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.invisible&&a.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"}}]}),gv=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiBackdrop"}),{children:s,className:c,component:f="div",invisible:h=!1,open:m,components:g={},componentsProps:y={},slotProps:x={},slots:T={},TransitionComponent:v,transitionDuration:w,...S}=i,R={...i,component:f,invisible:h},z=s4(R),D={transition:v,root:g.Root,...T},O={...y,...x},j={component:f,slots:D,slotProps:O},[k,H]=nt("root",{elementType:c4,externalForwardedProps:j,className:De(z.root,c),ownerState:R}),[N,L]=nt("transition",{elementType:Up,externalForwardedProps:j,ownerState:R});return d.jsx(N,{in:m,timeout:w,...S,...L,children:d.jsx(k,{"aria-hidden":!0,...H,ref:o,children:s})})});function u4(t){const{badgeContent:a,invisible:o=!1,max:i=99,showZero:s=!1}=t,c=rv({badgeContent:a,max:i});let f=o;o===!1&&a===0&&!s&&(f=!0);const{badgeContent:h,max:m=i}=f?c:t,g=h&&Number(h)>m?`${m}+`:h;return{badgeContent:h,invisible:f,max:m,displayValue:g}}function d4(t){return et("MuiBadge",t)}const f4=Qe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),cp=10,up=4,p4=t=>{const{color:a,anchorOrigin:o,invisible:i,overlap:s,variant:c,classes:f={}}=t,h={root:["root"],badge:["badge",c,i&&"invisible",`anchorOrigin${xe(o.vertical)}${xe(o.horizontal)}`,`anchorOrigin${xe(o.vertical)}${xe(o.horizontal)}${xe(s)}`,`overlap${xe(s)}`,a!=="default"&&`color${xe(a)}`]};return tt(h,d4,f)},h4=ye("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),m4=ye("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.badge,a[o.variant],a[`anchorOrigin${xe(o.anchorOrigin.vertical)}${xe(o.anchorOrigin.horizontal)}${xe(o.overlap)}`],o.color!=="default"&&a[`color${xe(o.color)}`],o.invisible&&a.invisible]}})(Ge(({theme:t})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:cp*2,lineHeight:1,padding:"0 6px",height:cp*2,borderRadius:cp,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.entries(t.palette).filter(wn(["contrastText"])).map(([a])=>({props:{color:a},style:{backgroundColor:(t.vars||t).palette[a].main,color:(t.vars||t).palette[a].contrastText}})),{props:{variant:"dot"},style:{borderRadius:up,height:up*2,minWidth:up*2,padding:0}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}},{style:({ownerState:a})=>{const{vertical:o,horizontal:i}=a.anchorOrigin,s=a.overlap==="circular"?"14%":0;return{"--Badge-translateX":i==="right"?"50%":"-50%","--Badge-translateY":o==="top"?"-50%":"50%",top:o==="top"?s:"initial",bottom:o==="bottom"?s:"initial",right:i==="right"?s:"initial",left:i==="left"?s:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${i==="right"?"100%":"0%"} ${o==="top"?"0%":"100%"}`,[`&.${f4.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function Bb(t){return{vertical:(t==null?void 0:t.vertical)??"top",horizontal:(t==null?void 0:t.horizontal)??"right"}}const g4=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiBadge"}),{anchorOrigin:s,className:c,classes:f,component:h,components:m={},componentsProps:g={},children:y,overlap:x="rectangular",color:T="default",invisible:v=!1,max:w=99,badgeContent:S,slots:R,slotProps:z,showZero:D=!1,variant:O="standard",...j}=i,{badgeContent:k,invisible:H,max:N,displayValue:L}=u4({max:w,invisible:v,badgeContent:S,showZero:D}),q=rv({anchorOrigin:Bb(s),color:T,overlap:x,variant:O,badgeContent:S}),I=H||k==null&&O!=="dot",{color:Y=T,overlap:C=x,anchorOrigin:$,variant:P=O}=I?q:i,X=Bb($),B=P!=="dot"?L:void 0,F={...i,badgeContent:k,invisible:I,max:N,displayValue:B,showZero:D,anchorOrigin:X,color:Y,overlap:C,variant:P},_=p4(F),V={slots:{root:(R==null?void 0:R.root)??m.Root,badge:(R==null?void 0:R.badge)??m.Badge},slotProps:{root:(z==null?void 0:z.root)??g.root,badge:(z==null?void 0:z.badge)??g.badge}},[ce,E]=nt("root",{elementType:h4,externalForwardedProps:{...V,...j},ownerState:F,className:De(_.root,c),ref:o,additionalProps:{as:h}}),[W,Q]=nt("badge",{elementType:m4,externalForwardedProps:V,ownerState:F,className:_.badge});return d.jsxs(ce,{...E,children:[y,d.jsx(W,{...Q,children:B})]})}),y4=Qe("MuiBox",["root"]),b4=Tu(),te=tC({themeId:Ha,defaultTheme:b4,defaultClassName:y4.root,generateClassName:Ax.generate});function x4(t){return et("MuiButton",t)}const ho=Qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),v4=M.createContext({}),S4=M.createContext(void 0),C4=t=>{const{color:a,disableElevation:o,fullWidth:i,size:s,variant:c,loading:f,loadingPosition:h,classes:m}=t,g={root:["root",f&&"loading",c,`${c}${xe(a)}`,`size${xe(s)}`,`${c}Size${xe(s)}`,`color${xe(a)}`,o&&"disableElevation",i&&"fullWidth",f&&`loadingPosition${xe(h)}`],startIcon:["icon","startIcon",`iconSize${xe(s)}`],endIcon:["icon","endIcon",`iconSize${xe(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},y=tt(g,x4,m);return{...m,...y}},yv=[{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}}}],w4=ye(Mu,{shouldForwardProp:t=>Xn(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,a[o.variant],a[`${o.variant}${xe(o.color)}`],a[`size${xe(o.size)}`],a[`${o.variant}Size${xe(o.size)}`],o.color==="inherit"&&a.colorInherit,o.disableElevation&&a.disableElevation,o.fullWidth&&a.fullWidth,o.loading&&a.loading]}})(Ge(({theme:t})=>{const a=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],o=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ho.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:i})=>i.startIcon||i.loading&&i.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${ho.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${ho.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).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)",[`&.${ho.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(wn()).map(([i])=>({props:{color:i},style:{"--variant-textColor":(t.vars||t).palette[i].main,"--variant-outlinedColor":(t.vars||t).palette[i].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[i].main,.5),"--variant-containedColor":(t.vars||t).palette[i].contrastText,"--variant-containedBg":(t.vars||t).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[i].dark,"--variant-textBg":t.alpha((t.vars||t).palette[i].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[i].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[i].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:a,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:o,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ho.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ho.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${ho.loading}`]:{color:"transparent"}}}]}})),T4=ye("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.startIcon,o.loading&&a.startIconLoadingStart,a[`iconSize${xe(o.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...yv]})),R4=ye("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.endIcon,o.loading&&a.endIconLoadingEnd,a[`iconSize${xe(o.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...yv]})),j4=ye("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Db=ye("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),xa=M.forwardRef(function(a,o){const i=M.useContext(v4),s=M.useContext(S4),c=Jc(i,a),f=at({props:c,name:"MuiButton"}),{children:h,color:m="primary",component:g="button",className:y,disabled:x=!1,disableElevation:T=!1,disableFocusRipple:v=!1,endIcon:w,focusVisibleClassName:S,fullWidth:R=!1,id:z,loading:D=null,loadingIndicator:O,loadingPosition:j="center",size:k="medium",startIcon:H,type:N,variant:L="text",...q}=f,I=wo(z),Y=O??d.jsx(av,{"aria-labelledby":I,color:"inherit",size:16}),C={...f,color:m,component:g,disabled:x,disableElevation:T,disableFocusRipple:v,fullWidth:R,loading:D,loadingIndicator:Y,loadingPosition:j,size:k,type:N,variant:L},$=C4(C),P=(H||D&&j==="start")&&d.jsx(T4,{className:$.startIcon,ownerState:C,children:H||d.jsx(Db,{className:$.loadingIconPlaceholder,ownerState:C})}),X=(w||D&&j==="end")&&d.jsx(R4,{className:$.endIcon,ownerState:C,children:w||d.jsx(Db,{className:$.loadingIconPlaceholder,ownerState:C})}),B=s||"",F=typeof D=="boolean"?d.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:D&&d.jsx(j4,{className:$.loadingIndicator,ownerState:C,children:Y})}):null,{root:_,...V}=$;return d.jsxs(w4,{ownerState:C,className:De(i.className,$.root,y,B),component:g,disabled:x||D,focusRipple:!v,focusVisibleClassName:De($.focusVisible,S),ref:o,type:N,id:D?I:z,...q,classes:V,children:[P,j!=="end"&&F,h,j==="end"&&F,X]})});function E4(t){return et("PrivateSwitchBase",t)}Qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const M4=t=>{const{classes:a,checked:o,disabled:i,edge:s}=t,c={root:["root",o&&"checked",i&&"disabled",s&&`edge${xe(s)}`],input:["input"]};return tt(c,E4,a)},A4=ye(Mu,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:a})=>t==="start"&&a.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:a})=>t==="end"&&a.size!=="small",style:{marginRight:-12}}]}),k4=ye("input",{name:"MuiSwitchBase",shouldForwardProp:Xn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),z4=M.forwardRef(function(a,o){const{autoFocus:i,checked:s,checkedIcon:c,defaultChecked:f,disabled:h,disableFocusRipple:m=!1,edge:g=!1,icon:y,id:x,inputProps:T,inputRef:v,name:w,onBlur:S,onChange:R,onFocus:z,readOnly:D,required:O=!1,tabIndex:j,type:k,value:H,slots:N={},slotProps:L={},...q}=a,[I,Y]=Xl({controlled:s,default:!!f,name:"SwitchBase",state:"checked"}),C=qr(),$=J=>{z&&z(J),C&&C.onFocus&&C.onFocus(J)},P=J=>{S&&S(J),C&&C.onBlur&&C.onBlur(J)},X=J=>{if(J.nativeEvent.defaultPrevented||D)return;const pe=J.target.checked;Y(pe),R&&R(J,pe)};let B=h;C&&typeof B>"u"&&(B=C.disabled);const F=k==="checkbox"||k==="radio",_={...a,checked:I,disabled:B,disableFocusRipple:m,edge:g},V=M4(_),ce={slots:N,slotProps:{input:T,...L}},[E,W]=nt("root",{ref:o,elementType:A4,className:V.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ce,component:"span",...q},getSlotProps:J=>({...J,onFocus:pe=>{var fe;(fe=J.onFocus)==null||fe.call(J,pe),$(pe)},onBlur:pe=>{var fe;(fe=J.onBlur)==null||fe.call(J,pe),P(pe)}}),ownerState:_,additionalProps:{centerRipple:!0,focusRipple:!m,role:void 0,tabIndex:null}}),[Q,ie]=nt("input",{ref:v,elementType:k4,className:V.input,externalForwardedProps:ce,getSlotProps:J=>({...J,onChange:pe=>{var fe;(fe=J.onChange)==null||fe.call(J,pe),X(pe)}}),ownerState:_,additionalProps:{autoFocus:i,checked:s,defaultChecked:f,disabled:B,id:F?x:void 0,name:w,readOnly:D,required:O,tabIndex:j,type:k,...k==="checkbox"&&H===void 0?{}:{value:H}}});return d.jsxs(E,{...W,children:[d.jsx(Q,{...ie}),I?c:y]})}),Pp=typeof mh({})=="function",O4=(t,a)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...a&&!t.vars&&{colorScheme:t.palette.mode}}),B4=t=>({color:(t.vars||t).palette.text.primary,...t.typography.body1,backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),bv=(t,a=!1)=>{var c,f;const o={};a&&t.colorSchemes&&typeof t.getColorSchemeSelector=="function"&&Object.entries(t.colorSchemes).forEach(([h,m])=>{var y,x;const g=t.getColorSchemeSelector(h);g.startsWith("@")?o[g]={":root":{colorScheme:(y=m.palette)==null?void 0:y.mode}}:o[g.replace(/\s*&/,"")]={colorScheme:(x=m.palette)==null?void 0:x.mode}});let i={html:O4(t,a),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:{margin:0,...B4(t),"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}},...o};const s=(f=(c=t.components)==null?void 0:c.MuiCssBaseline)==null?void 0:f.styleOverrides;return s&&(i=[i,s]),i},Yc="mui-ecs",D4=t=>{const a=bv(t,!1),o=Array.isArray(a)?a[0]:a;return!t.vars&&o&&(o.html[`:root:has(${Yc})`]={colorScheme:t.palette.mode}),t.colorSchemes&&Object.entries(t.colorSchemes).forEach(([i,s])=>{var f,h;const c=t.getColorSchemeSelector(i);c.startsWith("@")?o[c]={[`:root:not(:has(.${Yc}))`]:{colorScheme:(f=s.palette)==null?void 0:f.mode}}:o[c.replace(/\s*&/,"")]={[`&:not(:has(.${Yc}))`]:{colorScheme:(h=s.palette)==null?void 0:h.mode}}}),a},H4=mh(Pp?({theme:t,enableColorScheme:a})=>bv(t,a):({theme:t})=>D4(t));function N4(t){const a=at({props:t,name:"MuiCssBaseline"}),{children:o,enableColorScheme:i=!1}=a;return d.jsxs(M.Fragment,{children:[Pp&&d.jsx(H4,{enableColorScheme:i}),!Pp&&!i&&d.jsx("span",{className:Yc,style:{display:"none"}}),o]})}function xv(t=window){const a=t.document.documentElement.clientWidth;return t.innerWidth-a}function L4(t){const a=rn(t);return a.body===t?sr(t).innerWidth>a.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Pl(t,a){a?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Hb(t){return parseFloat(sr(t).getComputedStyle(t).paddingRight)||0}function $4(t){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),i=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return o||i}function Nb(t,a,o,i,s){const c=[a,o,...i];[].forEach.call(t.children,f=>{const h=!c.includes(f),m=!$4(f);h&&m&&Pl(f,s)})}function dp(t,a){let o=-1;return t.some((i,s)=>a(i)?(o=s,!0):!1),o}function _4(t,a){const o=[],i=t.container;if(!a.disableScrollLock){if(L4(i)){const f=xv(sr(i));o.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Hb(i)+f}px`;const h=rn(i).querySelectorAll(".mui-fixed");[].forEach.call(h,m=>{o.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${Hb(m)+f}px`})}let c;if(i.parentNode instanceof DocumentFragment)c=rn(i).body;else{const f=i.parentElement,h=sr(i);c=(f==null?void 0:f.nodeName)==="HTML"&&h.getComputedStyle(f).overflowY==="scroll"?f:i}o.push({value:c.style.overflow,property:"overflow",el:c},{value:c.style.overflowX,property:"overflow-x",el:c},{value:c.style.overflowY,property:"overflow-y",el:c}),c.style.overflow="hidden"}return()=>{o.forEach(({value:c,el:f,property:h})=>{c?f.style.setProperty(h,c):f.style.removeProperty(h)})}}function U4(t){const a=[];return[].forEach.call(t.children,o=>{o.getAttribute("aria-hidden")==="true"&&a.push(o)}),a}class P4{constructor(){this.modals=[],this.containers=[]}add(a,o){let i=this.modals.indexOf(a);if(i!==-1)return i;i=this.modals.length,this.modals.push(a),a.modalRef&&Pl(a.modalRef,!1);const s=U4(o);Nb(o,a.mount,a.modalRef,s,!0);const c=dp(this.containers,f=>f.container===o);return c!==-1?(this.containers[c].modals.push(a),i):(this.containers.push({modals:[a],container:o,restore:null,hiddenSiblings:s}),i)}mount(a,o){const i=dp(this.containers,c=>c.modals.includes(a)),s=this.containers[i];s.restore||(s.restore=_4(s,o))}remove(a,o=!0){const i=this.modals.indexOf(a);if(i===-1)return i;const s=dp(this.containers,f=>f.modals.includes(a)),c=this.containers[s];if(c.modals.splice(c.modals.indexOf(a),1),this.modals.splice(i,1),c.modals.length===0)c.restore&&c.restore(),a.modalRef&&Pl(a.modalRef,o),Nb(c.container,a.mount,a.modalRef,c.hiddenSiblings,!1),this.containers.splice(s,1);else{const f=c.modals[c.modals.length-1];f.modalRef&&Pl(f.modalRef,!1)}return i}isTopModal(a){return this.modals.length>0&&this.modals[this.modals.length-1]===a}}const Ip="data-mui-focusable";function I4(t){return t?t.hasAttribute(Ip)?t:t.querySelector(`[${Ip}]`):null}const F4=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function W4(t){const a=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(a)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:a}function V4(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const a=i=>t.ownerDocument.querySelector(`input[type="radio"]${i}`);let o=a(`[name="${t.name}"]:checked`);return o||(o=a(`[name="${t.name}"]`)),o!==t}function q4(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||V4(t))}function G4(t){const a=[],o=[];return Array.from(t.querySelectorAll(F4)).forEach((i,s)=>{const c=W4(i);c===-1||!q4(i)||(c===0?a.push(i):o.push({documentOrder:s,tabIndex:c,node:i}))}),o.sort((i,s)=>i.tabIndex===s.tabIndex?i.documentOrder-s.documentOrder:i.tabIndex-s.tabIndex).map(i=>i.node).concat(a)}function Y4(){return!0}function X4(t){const{children:a,disableAutoFocus:o=!1,disableEnforceFocus:i=!1,disableRestoreFocus:s=!1,getTabbable:c=G4,isEnabled:f=Y4,open:h}=t,m=M.useRef(!1),g=M.useRef(null),y=M.useRef(null),x=M.useRef(null),T=M.useRef(null),v=M.useRef(!1),w=M.useRef(null),S=tn(zi(a),w),R=M.useRef(null);M.useEffect(()=>{!h||!w.current||(v.current=!o)},[o,h]),M.useEffect(()=>{if(m.current=!1,!h||!w.current)return;const O=rn(w.current),j=Ur(O),k=I4(w.current)??w.current;return au(w.current,j)||(k.hasAttribute("tabIndex")||k.setAttribute("tabIndex","-1"),v.current&&k.focus()),()=>{s||(x.current&&x.current.focus&&(m.current=!0,x.current.focus()),x.current=null)}},[h]),M.useEffect(()=>{if(!h||!w.current)return;const O=rn(w.current),j=N=>{if(R.current=N,i||!f()||N.key!=="Tab")return;Ur(O)===w.current&&N.shiftKey&&(m.current=!0,y.current&&y.current.focus())},k=()=>{var I,Y;const N=w.current;if(N===null)return;const L=Ur(O);if(!O.hasFocus()||!f()||m.current){m.current=!1;return}if(au(N,L)||i&&L!==g.current&&L!==y.current)return;if(L!==T.current)T.current=null;else if(T.current!==null)return;if(!v.current)return;let q=[];if((L===g.current||L===y.current)&&(q=c(w.current)),q.length>0){const C=!!((I=R.current)!=null&&I.shiftKey&&((Y=R.current)==null?void 0:Y.key)==="Tab"),$=q[0],P=q[q.length-1];typeof $!="string"&&typeof P!="string"&&(C?P.focus():$.focus())}else N.focus()};O.addEventListener("focusin",k),O.addEventListener("keydown",j,!0);const H=setInterval(()=>{const N=Ur(O);N&&N.tagName==="BODY"&&k()},50);return()=>{clearInterval(H),O.removeEventListener("focusin",k),O.removeEventListener("keydown",j,!0)}},[o,i,s,f,h,c]);const z=O=>{x.current===null&&(x.current=O.relatedTarget),v.current=!0,T.current=O.target;const j=a.props.onFocus;j&&j(O)},D=O=>{x.current===null&&(x.current=O.relatedTarget),v.current=!0};return d.jsxs(M.Fragment,{children:[d.jsx("div",{tabIndex:h?0:-1,onFocus:D,ref:g,"data-testid":"sentinelStart"}),M.cloneElement(a,{ref:S,onFocus:z}),d.jsx("div",{tabIndex:h?0:-1,onFocus:D,ref:y,"data-testid":"sentinelEnd"})]})}function K4(t){return typeof t=="function"?t():t}function Q4(t){return t?t.props.hasOwnProperty("in"):!1}const Lb=()=>{},Bc=new P4;function Z4(t){const{container:a,disableEscapeKeyDown:o=!1,disableScrollLock:i=!1,closeAfterTransition:s=!1,onTransitionEnter:c,onTransitionExited:f,children:h,onClose:m,open:g,rootRef:y}=t,x=M.useRef({}),T=M.useRef(null),v=M.useRef(null),w=tn(v,y),[S,R]=M.useState(!g),z=Q4(h);let D=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(D=!1);const O=()=>rn(T.current),j=()=>(x.current.modalRef=v.current,x.current.mount=T.current,x.current),k=()=>{Bc.mount(j(),{disableScrollLock:i}),v.current&&(v.current.scrollTop=0)},H=ca(()=>{const X=K4(a)||O().body;Bc.add(j(),X),v.current&&k()}),N=()=>Bc.isTopModal(j()),L=ca(X=>{T.current=X,X&&(g&&N()?k():v.current&&Pl(v.current,D))}),q=M.useCallback(()=>{Bc.remove(j(),D)},[D]);M.useEffect(()=>()=>{q()},[q]),M.useEffect(()=>{g?H():(!z||!s)&&q()},[g,q,z,s,H]);const I=X=>B=>{var F;(F=X.onKeyDown)==null||F.call(X,B),!(B.key!=="Escape"||B.which===229||!N())&&(o||(B.stopPropagation(),m&&m(B,"escapeKeyDown")))},Y=X=>B=>{var F;(F=X.onClick)==null||F.call(X,B),B.target===B.currentTarget&&m&&m(B,"backdropClick")};return{getRootProps:(X={})=>{const B=$l(t);delete B.onTransitionEnter,delete B.onTransitionExited;const F={...B,...X};return{role:"presentation",...F,onKeyDown:I(F),ref:w}},getBackdropProps:(X={})=>{const B=X;return{"aria-hidden":!0,...B,onClick:Y(B),open:g}},getTransitionProps:()=>{const X=()=>{R(!1),c&&c()},B=()=>{R(!0),f&&f(),s&&q()};return{onEnter:fb(X,(h==null?void 0:h.props.onEnter)??Lb),onExited:fb(B,(h==null?void 0:h.props.onExited)??Lb)}},rootRef:w,portalRef:L,isTopModal:N,exited:S,hasTransition:z}}function J4(t){return et("MuiModal",t)}Qe("MuiModal",["root","hidden","backdrop"]);const eR=t=>{const{open:a,exited:o,classes:i}=t;return tt({root:["root",!a&&o&&"hidden"],backdrop:["backdrop"]},J4,i)},tR=ye("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,!o.open&&o.exited&&a.hidden]}})(Ge(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:a})=>!a.open&&a.exited,style:{visibility:"hidden"}}]}))),nR=ye(gv,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),vv=M.forwardRef(function(a,o){const i=at({name:"MuiModal",props:a}),{BackdropComponent:s=nR,BackdropProps:c,classes:f,className:h,closeAfterTransition:m=!1,children:g,container:y,component:x,components:T={},componentsProps:v={},disableAutoFocus:w=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:R=!1,disablePortal:z=!1,disableRestoreFocus:D=!1,disableScrollLock:O=!1,hideBackdrop:j=!1,keepMounted:k=!1,onClose:H,onTransitionEnter:N,onTransitionExited:L,open:q,slotProps:I={},slots:Y={},theme:C,...$}=i,P={...i,closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:S,disableEscapeKeyDown:R,disablePortal:z,disableRestoreFocus:D,disableScrollLock:O,hideBackdrop:j,keepMounted:k},{getRootProps:X,getBackdropProps:B,getTransitionProps:F,portalRef:_,isTopModal:V,exited:ce,hasTransition:E}=Z4({...P,rootRef:o}),W={...P,exited:ce},Q=eR(W),ie={};if(g.props.tabIndex===void 0&&(ie.tabIndex="-1"),E){const{onEnter:we,onExited:je}=F();ie.onEnter=we,ie.onExited=je}const J={slots:{root:T.Root,backdrop:T.Backdrop,...Y},slotProps:{...v,...I}},[pe,fe]=nt("root",{ref:o,elementType:tR,externalForwardedProps:{...J,...$,component:x},getSlotProps:X,ownerState:W,className:De(h,Q==null?void 0:Q.root,!W.open&&W.exited&&(Q==null?void 0:Q.hidden))}),[le,ve]=nt("backdrop",{ref:c==null?void 0:c.ref,elementType:s,externalForwardedProps:J,shouldForwardComponentProp:!0,additionalProps:c,getSlotProps:we=>B({...we,onClick:je=>{we!=null&&we.onClick&&we.onClick(je)}}),className:De(c==null?void 0:c.className,Q==null?void 0:Q.backdrop),ownerState:W});return!k&&!q&&(!E||ce)?null:d.jsx(hv,{ref:_,container:y,disablePortal:z,children:d.jsxs(pe,{...fe,children:[!j&&s?d.jsx(le,{...ve}):null,d.jsx(X4,{disableEnforceFocus:S,disableAutoFocus:w,disableRestoreFocus:D,isEnabled:V,open:q,children:M.cloneElement(g,ie)})]})})});function aR(t){return et("MuiDialog",t)}const fp=Qe("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Sv=M.createContext({}),rR=ye(gv,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),oR=t=>{const{classes:a,scroll:o,maxWidth:i,fullWidth:s,fullScreen:c}=t,f={root:["root"],backdrop:["backdrop"],container:["container",`scroll${xe(o)}`],paper:["paper",`paperScroll${xe(o)}`,`paperWidth${xe(String(i))}`,s&&"paperFullWidth",c&&"paperFullScreen"]};return tt(f,aR,a)},iR=ye(vv,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),lR=ye("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.container,a[`scroll${xe(o.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),sR=ye(Eu,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.paper,a[`scrollPaper${xe(o.scroll)}`],a[`paperWidth${xe(String(o.maxWidth))}`],o.fullWidth&&a.paperFullWidth,o.fullScreen&&a.paperFullScreen]}})(Ge(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:a})=>!a.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${fp.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(a=>a!=="xs").map(a=>({props:{maxWidth:a},style:{maxWidth:`${t.breakpoints.values[a]}${t.breakpoints.unit}`,[`&.${fp.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[a]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:a})=>a.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:a})=>a.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${fp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Xc=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiDialog"}),s=ki(),c={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":f,"aria-labelledby":h,"aria-modal":m=!0,BackdropComponent:g,BackdropProps:y,children:x,className:T,disableEscapeKeyDown:v=!1,fullScreen:w=!1,fullWidth:S=!1,maxWidth:R="sm",onClick:z,onClose:D,open:O,PaperComponent:j=Eu,PaperProps:k={},role:H="dialog",scroll:N="paper",slots:L={},slotProps:q={},TransitionComponent:I=Up,transitionDuration:Y=c,TransitionProps:C,...$}=i,P={...i,disableEscapeKeyDown:v,fullScreen:w,fullWidth:S,maxWidth:R,scroll:N},X=oR(P),B=M.useRef(),F=me=>{B.current=me.target===me.currentTarget},_=me=>{z&&z(me),B.current&&(B.current=null,D&&D(me,"backdropClick"))},V=wo(h),ce=M.useMemo(()=>({titleId:V}),[V]),E={transition:I,...L},W={transition:C,paper:k,backdrop:y,...q},Q={slots:E,slotProps:W},[ie,J]=nt("root",{elementType:iR,shouldForwardComponentProp:!0,externalForwardedProps:Q,ownerState:P,className:De(X.root,T),ref:o}),[pe,fe]=nt("backdrop",{elementType:rR,shouldForwardComponentProp:!0,externalForwardedProps:Q,ownerState:P,className:X.backdrop}),[le,ve]=nt("paper",{elementType:sR,shouldForwardComponentProp:!0,externalForwardedProps:Q,ownerState:P,className:X.paper,additionalProps:{elevation:24,role:H,"aria-describedby":f,"aria-labelledby":V,"aria-modal":m,tabIndex:-1,[Ip]:""}}),[we,je]=nt("container",{elementType:lR,externalForwardedProps:Q,ownerState:P,className:X.container}),[Me,_e]=nt("transition",{elementType:Up,externalForwardedProps:Q,ownerState:P,additionalProps:{appear:!0,in:O,timeout:Y,role:"presentation"}});return d.jsx(ie,{closeAfterTransition:!0,slots:{backdrop:pe},slotProps:{backdrop:{transitionDuration:Y,as:g,...fe}},disableEscapeKeyDown:v,onClose:D,open:O,onClick:_,...J,...$,children:d.jsx(Me,{..._e,children:d.jsx(we,{onMouseDown:F,...je,children:d.jsx(le,{as:j,...ve,children:d.jsx(Sv.Provider,{value:ce,children:x})})})})})});function cR(t){return et("MuiDialogActions",t)}Qe("MuiDialogActions",["root","spacing"]);const uR=t=>{const{classes:a,disableSpacing:o}=t;return tt({root:["root",!o&&"spacing"]},cR,a)},dR=ye("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,!o.disableSpacing&&a.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),pp=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiDialogActions"}),{className:s,disableSpacing:c=!1,...f}=i,h={...i,disableSpacing:c},m=uR(h);return d.jsx(dR,{className:De(m.root,s),ownerState:h,ref:o,...f})});function fR(t){return et("MuiDialogContent",t)}Qe("MuiDialogContent",["root","dividers"]);function pR(t){return et("MuiDialogTitle",t)}const hR=Qe("MuiDialogTitle",["root"]),mR=t=>{const{classes:a,dividers:o}=t;return tt({root:["root",o&&"dividers"]},fR,a)},gR=ye("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.dividers&&a.dividers]}})(Ge(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:a})=>a.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:a})=>!a.dividers,style:{[`.${hR.root} + &`]:{paddingTop:0}}}]}))),hp=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiDialogContent"}),{className:s,dividers:c=!1,...f}=i,h={...i,dividers:c},m=mR(h);return d.jsx(gR,{className:De(m.root,s),ownerState:h,ref:o,...f})}),yR=t=>{const{classes:a}=t;return tt({root:["root"]},pR,a)},bR=ye(Et,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),mp=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiDialogTitle"}),{className:s,id:c,...f}=i,h=i,m=yR(h),{titleId:g=c}=M.useContext(Sv);return d.jsx(bR,{component:"h2",className:De(m.root,s),ownerState:h,ref:o,variant:"h6",id:c??g,...f})}),$b=Qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),xR=t=>{const{classes:a,disableUnderline:o,startAdornment:i,endAdornment:s,size:c,hiddenLabel:f,multiline:h}=t,m={root:["root",!o&&"underline",i&&"adornedStart",s&&"adornedEnd",c==="small"&&`size${xe(c)}`,f&&"hiddenLabel",h&&"multiline"],input:["input"]},g=tt(m,XT,a);return{...a,...g}},vR=ye(Ou,{shouldForwardProp:t=>Xn(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[...ku(t,a),!o.disableUnderline&&a.underline]}})(Ge(({theme:t})=>{const a=t.palette.mode==="light",o=a?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=a?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=a?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=a?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i}},[`&.${po.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i},[`&.${po.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:c},variants:[{props:({ownerState:f})=>!f.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${po.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${po.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline):o}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${po.disabled}, .${po.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${po.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(wn()).map(([f])=>{var h;return{props:{disableUnderline:!1,color:f},style:{"&::after":{borderBottom:`2px solid ${(h=(t.vars||t).palette[f])==null?void 0:h.main}`}}}}),{props:({ownerState:f})=>f.startAdornment,style:{paddingLeft:12}},{props:({ownerState:f})=>f.endAdornment,style:{paddingRight:12}},{props:({ownerState:f})=>f.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:f,size:h})=>f.multiline&&h==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:f})=>f.multiline&&f.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:f})=>f.multiline&&f.hiddenLabel&&f.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),SR=ye(Bu,{name:"MuiFilledInput",slot:"Input",overridesResolver:zu})(Ge(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:0}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:0}},{props:({ownerState:a})=>a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:a})=>a.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Eh=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:c={},componentsProps:f,fullWidth:h=!1,hiddenLabel:m,inputComponent:g="input",multiline:y=!1,slotProps:x,slots:T={},type:v="text",...w}=i,S={...i,disableUnderline:s,fullWidth:h,inputComponent:g,multiline:y,type:v},R=xR(i),z={root:{ownerState:S},input:{ownerState:S}},D=x??f?xn(z,x??f):z,O=T.root??c.Root??vR,j=T.input??c.Input??SR;return d.jsx(ls,{slots:{root:O,input:j},slotProps:D,fullWidth:h,inputComponent:g,multiline:y,ref:o,type:v,...w,classes:R})});Eh.muiName="Input";function CR(t){return et("MuiFormControl",t)}Qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const wR=t=>{const{classes:a,margin:o,fullWidth:i}=t,s={root:["root",o!=="none"&&`margin${xe(o)}`,i&&"fullWidth"]};return tt(s,CR,a)},TR=ye("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,a[`margin${xe(o.margin)}`],o.fullWidth&&a.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),RR=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiFormControl"}),{children:s,className:c,color:f="primary",component:h="div",disabled:m=!1,error:g=!1,focused:y,fullWidth:x=!1,hiddenLabel:T=!1,margin:v="none",required:w=!1,size:S="medium",variant:R="outlined",...z}=i,D={...i,color:f,component:h,disabled:m,error:g,fullWidth:x,hiddenLabel:T,margin:v,required:w,size:S,variant:R},O=wR(D),[j,k]=M.useState(()=>{let X=!1;return s&&M.Children.forEach(s,B=>{if(!lp(B,["Input","Select"]))return;const F=lp(B,["Select"])?B.props.input:B;F&&WT(F.props)&&(X=!0)}),X}),[H,N]=M.useState(()=>{let X=!1;return s&&M.Children.forEach(s,B=>{lp(B,["Input","Select"])&&(ou(B.props,!0)||ou(B.props.inputProps,!0))&&(X=!0)}),X}),[L,q]=M.useState(!1);m&&L&&q(!1);const I=y!==void 0&&!m?y:L;let Y;M.useRef(!1);const C=M.useCallback(()=>{N(!0)},[]),$=M.useCallback(()=>{N(!1)},[]),P=M.useMemo(()=>({adornedStart:j,setAdornedStart:k,color:f,disabled:m,error:g,filled:H,focused:I,fullWidth:x,hiddenLabel:T,size:S,onBlur:()=>{q(!1)},onFocus:()=>{q(!0)},onEmpty:$,onFilled:C,registerEffect:Y,required:w,variant:R}),[j,f,m,g,H,I,x,T,Y,$,C,w,S,R]);return d.jsx(jh.Provider,{value:P,children:d.jsx(TR,{as:h,ownerState:D,className:De(O.root,c),ref:o,...z,children:s})})});function jR(t){return et("MuiFormControlLabel",t)}const Nl=Qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ER=t=>{const{classes:a,disabled:o,labelPlacement:i,error:s,required:c}=t,f={root:["root",o&&"disabled",`labelPlacement${xe(i)}`,s&&"error",c&&"required"],label:["label",o&&"disabled"],asterisk:["asterisk",s&&"error"]};return tt(f,jR,a)},MR=ye("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[{[`& .${Nl.label}`]:a.label},a.root,a[`labelPlacement${xe(o.labelPlacement)}`]]}})(Ge(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Nl.disabled}`]:{cursor:"default"},[`& .${Nl.label}`]:{[`&.${Nl.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:a})=>a==="start"||a==="top"||a==="bottom",style:{marginLeft:16}}]}))),AR=ye("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ge(({theme:t})=>({[`&.${Nl.error}`]:{color:(t.vars||t).palette.error.main}}))),Il=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiFormControlLabel"}),{checked:s,className:c,componentsProps:f={},control:h,disabled:m,disableTypography:g,inputRef:y,label:x,labelPlacement:T="end",name:v,onChange:w,required:S,slots:R={},slotProps:z={},value:D,...O}=i,j=qr(),k=m??h.props.disabled??(j==null?void 0:j.disabled),H=S??h.props.required,N={disabled:k,required:H};["checked","name","onChange","value","inputRef"].forEach(X=>{typeof h.props[X]>"u"&&typeof i[X]<"u"&&(N[X]=i[X])});const L=To({props:i,muiFormControl:j,states:["error"]}),q={...i,disabled:k,labelPlacement:T,required:H,error:L.error},I=ER(q),Y={slots:R,slotProps:{...f,...z}},[C,$]=nt("typography",{elementType:Et,externalForwardedProps:Y,ownerState:q});let P=x;return P!=null&&P.type!==Et&&!g&&(P=d.jsx(C,{component:"span",...$,className:De(I.label,$==null?void 0:$.className),children:P})),d.jsxs(MR,{className:De(I.root,c),ownerState:q,ref:o,...O,children:[M.cloneElement(h,N),H?d.jsxs("div",{children:[P,d.jsxs(AR,{ownerState:q,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):P]})});function kR(t){return et("MuiFormHelperText",t)}const _b=Qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ub;const zR=t=>{const{classes:a,contained:o,size:i,disabled:s,error:c,filled:f,focused:h,required:m}=t,g={root:["root",s&&"disabled",c&&"error",i&&`size${xe(i)}`,o&&"contained",h&&"focused",f&&"filled",m&&"required"]};return tt(g,kR,a)},OR=ye("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.size&&a[`size${xe(o.size)}`],o.contained&&a.contained,o.filled&&a.filled]}})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${_b.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${_b.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:a})=>a.contained,style:{marginLeft:14,marginRight:14}}]}))),BR=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiFormHelperText"}),{children:s,className:c,component:f="p",disabled:h,error:m,filled:g,focused:y,margin:x,required:T,variant:v,...w}=i,S=qr(),R=To({props:i,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),z={...i,component:f,contained:R.variant==="filled"||R.variant==="outlined",variant:R.variant,size:R.size,disabled:R.disabled,error:R.error,filled:R.filled,focused:R.focused,required:R.required};delete z.ownerState;const D=zR(z);return d.jsx(OR,{as:f,className:De(D.root,c),ref:o,...w,ownerState:z,children:s===" "?Ub||(Ub=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):s})});function DR(t){return et("MuiFormLabel",t)}const Fl=Qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),HR=t=>{const{classes:a,color:o,focused:i,disabled:s,error:c,filled:f,required:h}=t,m={root:["root",`color${xe(o)}`,s&&"disabled",c&&"error",f&&"filled",i&&"focused",h&&"required"],asterisk:["asterisk",c&&"error"]};return tt(m,DR,a)},NR=ye("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.color==="secondary"&&a.colorSecondary,o.filled&&a.filled]}})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(wn()).map(([a])=>({props:{color:a},style:{[`&.${Fl.focused}`]:{color:(t.vars||t).palette[a].main}}})),{props:{},style:{[`&.${Fl.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Fl.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),LR=ye("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ge(({theme:t})=>({[`&.${Fl.error}`]:{color:(t.vars||t).palette.error.main}}))),$R=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiFormLabel"}),{children:s,className:c,color:f,component:h="label",disabled:m,error:g,filled:y,focused:x,required:T,...v}=i,w=qr(),S=To({props:i,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),R={...i,color:S.color||"primary",component:h,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},z=HR(R);return d.jsxs(NR,{as:h,ownerState:R,className:De(z.root,c),ref:o,...v,children:[s,S.required&&d.jsxs(LR,{ownerState:R,"aria-hidden":!0,className:z.asterisk,children:[" ","*"]})]})});function Wl(t){return`scale(${t}, ${t**2})`}const _R={entering:{opacity:1,transform:Wl(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Wl(.75)},exited:{opacity:0,transform:Wl(.75)}},UR={opacity:0,transform:Wl(.75),visibility:"hidden"},lu=M.forwardRef(function(a,o){const{addEndListener:i,appear:s=!0,children:c,easing:f,in:h,onEnter:m,onEntered:g,onEntering:y,onExit:x,onExited:T,onExiting:v,style:w,timeout:S="auto",...R}=a,z=vo(),D=M.useRef(),O=ki(),j=M.useRef(null),k=tn(j,zi(c),o),H=ln(j,y),N=ln(j,($,P)=>{Zx($);const{duration:X,delay:B,easing:F}=Ci({style:w,timeout:S,easing:f},{mode:"enter"});let _;S==="auto"?(_=O.transitions.getAutoHeightDuration($.clientHeight),D.current=_):_=X,$.style.transition=[O.transitions.create("opacity",{duration:_,delay:B}),O.transitions.create("transform",{duration:_*.666,delay:B,easing:F})].join(","),m&&m($,P)}),L=ln(j,g),q=ln(j,v),I=ln(j,$=>{const{duration:P,delay:X,easing:B}=Ci({style:w,timeout:S,easing:f},{mode:"exit"});let F;S==="auto"?(F=O.transitions.getAutoHeightDuration($.clientHeight),D.current=F):F=P,$.style.transition=[O.transitions.create("opacity",{duration:F,delay:X}),O.transitions.create("transform",{duration:F*.666,delay:X||F*.333,easing:B})].join(","),$.style.opacity=0,$.style.transform=Wl(.75),x&&x($)}),Y=ln(j,$=>{$.style.transition="",T&&T($)}),C=$=>{S==="auto"&&z.start(D.current||0,$),i&&i(j.current,$)};return d.jsx(va,{appear:s,in:h,nodeRef:j,onEnter:N,onEntered:L,onEntering:H,onExit:I,onExited:Y,onExiting:q,addEndListener:C,timeout:S==="auto"?null:S,...R,children:($,{ownerState:P,...X})=>{const B=Jx($,h,_R,UR,w,c.props.style);return M.cloneElement(c,{style:B,ref:k,...X})}})});lu&&(lu.muiSupportAuto=!0);const PR=t=>{const{classes:a,disableUnderline:o}=t,s=tt({root:["root",!o&&"underline"],input:["input"]},GT,a);return{...a,...s}},IR=ye(Ou,{shouldForwardProp:t=>Xn(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[...ku(t,a),!o.disableUnderline&&a.underline]}})(Ge(({theme:t})=>{let o=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(o=t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ml.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ml.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ml.disabled}, .${Ml.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${o}`}},[`&.${Ml.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(wn()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[i].main}`}}}))]}})),FR=ye(Bu,{name:"MuiInput",slot:"Input",overridesResolver:zu})({}),Mh=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiInput"}),{disableUnderline:s=!1,components:c={},componentsProps:f,fullWidth:h=!1,inputComponent:m="input",multiline:g=!1,slotProps:y,slots:x={},type:T="text",...v}=i,w=PR(i),R={root:{ownerState:{disableUnderline:s}}},z=y??f?xn(y??f,R):R,D=x.root??c.Root??IR,O=x.input??c.Input??FR;return d.jsx(ls,{slots:{root:D,input:O},slotProps:z,fullWidth:h,inputComponent:m,multiline:g,ref:o,type:T,...v,classes:w})});Mh.muiName="Input";function WR(t){return et("MuiInputLabel",t)}Qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const VR=t=>{const{classes:a,formControl:o,size:i,shrink:s,disableAnimation:c,variant:f,required:h}=t,m={root:["root",o&&"formControl",!c&&"animated",s&&"shrink",i&&i!=="medium"&&`size${xe(i)}`,f],asterisk:[h&&"asterisk"]},g=tt(m,WR,a);return{...a,...g}},qR=ye($R,{shouldForwardProp:t=>Xn(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[{[`& .${Fl.asterisk}`]:a.asterisk},a.root,o.formControl&&a.formControl,o.size==="small"&&a.sizeSmall,o.shrink&&a.shrink,!o.disableAnimation&&a.animated,o.focused&&a.focused,a[o.variant]]}})(Ge(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:a})=>a.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:a})=>a.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:a})=>!a.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:a,ownerState:o})=>a==="filled"&&o.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:a,ownerState:o,size:i})=>a==="filled"&&o.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:a,ownerState:o})=>a==="outlined"&&o.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),GR=M.forwardRef(function(a,o){const i=at({name:"MuiInputLabel",props:a}),{disableAnimation:s=!1,margin:c,shrink:f,variant:h,className:m,...g}=i,y=qr();let x=f;typeof x>"u"&&y&&(x=y.filled||y.focused||y.adornedStart);const T=To({props:i,muiFormControl:y,states:["size","variant","required","focused"]}),v={...i,disableAnimation:s,formControl:y,shrink:x,size:T.size,variant:T.variant,required:T.required,focused:T.focused},w=VR(v);return d.jsx(qR,{"data-shrink":x,ref:o,className:De(w.root,m),...g,ownerState:v,classes:w})}),Fp=M.createContext({});function YR(t){return et("MuiList",t)}Qe("MuiList",["root","padding","dense","subheader"]);const XR=t=>{const{classes:a,disablePadding:o,dense:i,subheader:s}=t;return tt({root:["root",!o&&"padding",i&&"dense",s&&"subheader"]},YR,a)},KR=ye("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,!o.disablePadding&&a.padding,o.dense&&a.dense,o.subheader&&a.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),QR=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiList"}),{children:s,className:c,component:f="ul",dense:h=!1,disablePadding:m=!1,subheader:g,...y}=i,x=M.useMemo(()=>({dense:h}),[h]),T={...i,component:f,dense:h,disablePadding:m},v=XR(T);return d.jsx(Fp.Provider,{value:x,children:d.jsxs(KR,{as:f,className:De(v.root,c),ref:o,ownerState:T,...y,children:[g,s]})})}),Pb=Qe("MuiListItemIcon",["root","alignItemsFlexStart"]),Ib=Qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function gp(t,a,o){return t===a?t.firstChild:a&&a.nextElementSibling?a.nextElementSibling:o?null:t.firstChild}function Fb(t,a,o){return t===a?o?t.firstChild:t.lastChild:a&&a.previousElementSibling?a.previousElementSibling:o?null:t.lastChild}function Cv(t,a){if(a===void 0)return!0;let o=t.innerText;return o===void 0&&(o=t.textContent),o=o.trim().toLowerCase(),o.length===0?!1:a.repeating?o[0]===a.keys[0]:o.startsWith(a.keys.join(""))}function Al(t,a,o,i,s,c){let f=!1,h=s(t,a,a?o:!1);for(;h;){if(h===t.firstChild){if(f)return!1;f=!0}const m=i?!1:h.disabled||h.getAttribute("aria-disabled")==="true";if(!h.hasAttribute("tabindex")||!Cv(h,c)||m)h=s(t,h,o);else return h.focus(),!0}return!1}const ZR=M.forwardRef(function(a,o){const{actions:i,autoFocus:s=!1,autoFocusItem:c=!1,children:f,className:h,disabledItemsFocusable:m=!1,disableListWrap:g=!1,onKeyDown:y,variant:x="selectedMenu",...T}=a,v=M.useRef(null),w=M.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Dn(()=>{s&&v.current.focus()},[s]),M.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(O,{direction:j})=>{const k=!v.current.style.width;if(O.clientHeight<v.current.clientHeight&&k){const H=`${xv(sr(O))}px`;v.current.style[j==="rtl"?"paddingLeft":"paddingRight"]=H,v.current.style.width=`calc(100% + ${H})`}return v.current}}),[]);const S=O=>{const j=v.current,k=O.key;if(O.ctrlKey||O.metaKey||O.altKey){y&&y(O);return}const N=Ur(rn(j));if(k==="ArrowDown")O.preventDefault(),Al(j,N,g,m,gp);else if(k==="ArrowUp")O.preventDefault(),Al(j,N,g,m,Fb);else if(k==="Home")O.preventDefault(),Al(j,null,g,m,gp);else if(k==="End")O.preventDefault(),Al(j,null,g,m,Fb);else if(k.length===1){const L=w.current,q=k.toLowerCase(),I=performance.now();L.keys.length>0&&(I-L.lastTime>500?(L.keys=[],L.repeating=!0,L.previousKeyMatched=!0):L.repeating&&q!==L.keys[0]&&(L.repeating=!1)),L.lastTime=I,L.keys.push(q);const Y=N&&!L.repeating&&Cv(N,L);L.previousKeyMatched&&(Y||Al(j,N,!1,m,gp,L))?O.preventDefault():L.previousKeyMatched=!1}y&&y(O)},R=tn(v,o);let z=-1;M.Children.forEach(f,(O,j)=>{if(!M.isValidElement(O)){z===j&&(z+=1,z>=f.length&&(z=-1));return}O.props.disabled||(x==="selectedMenu"&&O.props.selected||z===-1)&&(z=j),z===j&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(z+=1,z>=f.length&&(z=-1))});const D=M.Children.map(f,(O,j)=>{if(j===z){const k={};return c&&(k.autoFocus=!0),O.props.tabIndex===void 0&&x==="selectedMenu"&&(k.tabIndex=0),M.cloneElement(O,k)}return O});return d.jsx(QR,{role:"menu",ref:R,className:h,onKeyDown:S,tabIndex:s?0:-1,...T,children:D})});function JR(t){return et("MuiPopover",t)}Qe("MuiPopover",["root","paper"]);function Wb(t,a){let o=0;return typeof a=="number"?o=a:a==="center"?o=t.height/2:a==="bottom"&&(o=t.height),o}function Vb(t,a){let o=0;return typeof a=="number"?o=a:a==="center"?o=t.width/2:a==="right"&&(o=t.width),o}function qb(t){return[t.horizontal,t.vertical].map(a=>typeof a=="number"?`${a}px`:a).join(" ")}function Dc(t){return typeof t=="function"?t():t}const ej=t=>{const{classes:a}=t;return tt({root:["root"],paper:["paper"]},JR,a)},tj=ye(vv,{name:"MuiPopover",slot:"Root"})({}),wv=ye(Eu,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Tv=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiPopover"}),{action:s,anchorEl:c,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:m="anchorEl",children:g,className:y,container:x,elevation:T=8,marginThreshold:v=16,open:w,PaperProps:S={},slots:R={},slotProps:z={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:O,transitionDuration:j="auto",TransitionProps:k={},disableScrollLock:H=!1,...N}=i,L=M.useRef(),q={...i,anchorOrigin:f,anchorReference:m,elevation:T,marginThreshold:v,transformOrigin:D,TransitionComponent:O,transitionDuration:j,TransitionProps:k},I=ej(q),Y=M.useCallback(()=>{if(m==="anchorPosition")return h;const we=Dc(c),Me=(we&&we.nodeType===1?we:rn(L.current).body).getBoundingClientRect();return{top:Me.top+Wb(Me,f.vertical),left:Me.left+Vb(Me,f.horizontal)}},[c,f.horizontal,f.vertical,h,m]),C=M.useCallback(we=>({vertical:Wb(we,D.vertical),horizontal:Vb(we,D.horizontal)}),[D.horizontal,D.vertical]),$=M.useCallback(we=>{const je={width:we.offsetWidth,height:we.offsetHeight},Me=C(je);if(m==="none")return{top:null,left:null,transformOrigin:qb(Me)};const _e=Y();let me=_e.top-Me.vertical,Le=_e.left-Me.horizontal;const He=me+je.height,Ee=Le+je.width,Pe=sr(Dc(c)),Xe=Pe.innerHeight-v,Ye=Pe.innerWidth-v;if(v!==null&&me<v){const Ve=me-v;me-=Ve,Me.vertical+=Ve}else if(v!==null&&He>Xe){const Ve=He-Xe;me-=Ve,Me.vertical+=Ve}if(v!==null&&Le<v){const Ve=Le-v;Le-=Ve,Me.horizontal+=Ve}else if(Ee>Ye){const Ve=Ee-Ye;Le-=Ve,Me.horizontal+=Ve}return{top:`${Math.round(me)}px`,left:`${Math.round(Le)}px`,transformOrigin:qb(Me)}},[c,m,Y,C,v]),[P,X]=M.useState(w),B=M.useCallback(()=>{const we=L.current;if(!we)return;const je=$(we);je.top!==null&&we.style.setProperty("top",je.top),je.left!==null&&(we.style.left=je.left),we.style.transformOrigin=je.transformOrigin,X(!0)},[$]);M.useEffect(()=>(H&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[c,H,B]);const F=()=>{B()},_=()=>{X(!1)};M.useEffect(()=>{w&&B()}),M.useImperativeHandle(s,()=>w?{updatePosition:()=>{B()}}:null,[w,B]),M.useEffect(()=>{if(!w)return;const we=Gx(()=>{B()}),je=sr(Dc(c));return je.addEventListener("resize",we),()=>{we.clear(),je.removeEventListener("resize",we)}},[c,w,B]);let V=j;const ce={slots:{transition:O,...R},slotProps:{transition:k,paper:S,...z}},[E,W]=nt("transition",{elementType:lu,externalForwardedProps:ce,ownerState:q,getSlotProps:we=>({...we,onEntering:(je,Me)=>{var _e;(_e=we.onEntering)==null||_e.call(we,je,Me),F()},onExited:je=>{var Me;(Me=we.onExited)==null||Me.call(we,je),_()}}),additionalProps:{appear:!0,in:w}});j==="auto"&&!E.muiSupportAuto&&(V=void 0);const Q=x||(c?rn(Dc(c)).body:void 0),[ie,{slots:J,slotProps:pe,...fe}]=nt("root",{ref:o,elementType:tj,externalForwardedProps:{...ce,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:R.backdrop},slotProps:{backdrop:Yx(typeof z.backdrop=="function"?z.backdrop(q):z.backdrop,{invisible:!0})},container:Q,open:w},ownerState:q,className:De(I.root,y)}),[le,ve]=nt("paper",{ref:L,className:I.paper,elementType:wv,externalForwardedProps:ce,shouldForwardComponentProp:!0,additionalProps:{elevation:T,style:P?void 0:{opacity:0}},ownerState:q});return d.jsx(ie,{...fe,...!Ir(ie)&&{slots:J,slotProps:pe,disableScrollLock:H},children:d.jsx(E,{...W,timeout:V,children:d.jsx(le,{...ve,children:g})})})});function nj(t){return et("MuiMenu",t)}Qe("MuiMenu",["root","paper","list"]);const aj={vertical:"top",horizontal:"right"},rj={vertical:"top",horizontal:"left"},oj=t=>{const{classes:a}=t;return tt({root:["root"],paper:["paper"],list:["list"]},nj,a)},ij=ye(Tv,{shouldForwardProp:t=>Xn(t)||t==="classes",name:"MuiMenu",slot:"Root"})({}),lj=ye(wv,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sj=ye(ZR,{name:"MuiMenu",slot:"List"})({outline:0}),Rv=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiMenu"}),{autoFocus:s=!0,children:c,className:f,disableAutoFocusItem:h=!1,MenuListProps:m={},onClose:g,open:y,PaperProps:x={},PopoverClasses:T,transitionDuration:v="auto",TransitionProps:{onEntering:w,...S}={},variant:R="selectedMenu",slots:z={},slotProps:D={},...O}=i,j=wu(),k={...i,autoFocus:s,disableAutoFocusItem:h,MenuListProps:m,onEntering:w,PaperProps:x,transitionDuration:v,TransitionProps:S,variant:R},H=oj(k),N=s&&!h&&y,L=M.useRef(null),q=(V,ce)=>{L.current&&L.current.adjustStyleForScrollbar(V,{direction:j?"rtl":"ltr"}),w&&w(V,ce)},I=V=>{V.key==="Tab"&&(V.preventDefault(),g&&g(V,"tabKeyDown"))};let Y=-1;M.Children.map(c,(V,ce)=>{M.isValidElement(V)&&(V.props.disabled||(R==="selectedMenu"&&V.props.selected||Y===-1)&&(Y=ce))});const C={slots:z,slotProps:{list:m,transition:S,paper:x,...D}},$=ka({elementType:z.root,externalSlotProps:D.root,ownerState:k,className:[H.root,f]}),[P,X]=nt("paper",{className:H.paper,elementType:lj,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:k}),[B,F]=nt("list",{className:De(H.list,m.className),elementType:sj,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:V=>({...V,onKeyDown:ce=>{var E;I(ce),(E=V.onKeyDown)==null||E.call(V,ce)}}),ownerState:k}),_=typeof C.slotProps.transition=="function"?C.slotProps.transition(k):C.slotProps.transition;return d.jsx(ij,{onClose:g,anchorOrigin:{vertical:"bottom",horizontal:j?"right":"left"},transformOrigin:j?aj:rj,slots:{root:z.root,paper:P,backdrop:z.backdrop,...z.transition&&{transition:z.transition}},slotProps:{root:$,paper:X,backdrop:typeof D.backdrop=="function"?D.backdrop(k):D.backdrop,transition:{..._,onEntering:(...V)=>{var ce;q(...V),(ce=_==null?void 0:_.onEntering)==null||ce.call(_,...V)}}},open:y,ref:o,transitionDuration:v,ownerState:k,...O,classes:T,children:d.jsx(B,{actions:L,autoFocus:s&&(Y===-1||h),autoFocusItem:N,variant:R,...F,children:c})})});function cj(t){return et("MuiMenuItem",t)}const kl=Qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function uj(t){return et("MuiNativeSelect",t)}const Ah=Qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),dj=t=>{const{classes:a,variant:o,disabled:i,multiple:s,open:c,error:f}=t,h={select:["select",o,i&&"disabled",s&&"multiple",f&&"error"],icon:["icon",`icon${xe(o)}`,c&&"iconOpen",i&&"disabled"]};return tt(h,uj,a)},jv=ye("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ah.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:a})=>a.variant!=="filled"&&a.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),fj=ye(jv,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xn,overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.select,a[o.variant],o.error&&a.error,{[`&.${Ah.multiple}`]:a.multiple}]}})({}),Ev=ye("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Ah.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:a})=>a.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),pj=ye(Ev,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.icon,o.variant&&a[`icon${xe(o.variant)}`],o.open&&a.iconOpen]}})({}),hj=M.forwardRef(function(a,o){const{className:i,disabled:s,error:c,IconComponent:f,inputRef:h,variant:m="standard",...g}=a,y={...a,disabled:s,variant:m,error:c},x=dj(y);return d.jsxs(M.Fragment,{children:[d.jsx(fj,{ownerState:y,className:De(x.select,i),disabled:s,ref:h||o,...g}),a.multiple?null:d.jsx(pj,{as:f,ownerState:y,className:x.icon})]})});function Mv(t){return et("MuiSelect",t)}const zl=Qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);function mj(t){return t?t.type==="mousedown"||t.type==="pointerdown"||t.type==="touchstart"?"pointer":t.type==="keydown"||t.type==="click"&&t.detail===0?"keyboard":null:null}function gj(t){return t==null||typeof t=="string"&&!t.trim()}function Gb(t,a){return typeof a=="object"&&a!==null?t===a:String(t)===String(a)}const Av=M.createContext(null);function yj(){return M.useContext(Av)}const bj=Av.Provider;var Yb;const xj=ye(jv,{name:"MuiSelect",slot:"Select",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[{[`&.${zl.select}`]:a.select},{[`&.${zl.select}`]:a[o.variant]},{[`&.${zl.error}`]:a.error},{[`&.${zl.multiple}`]:a.multiple}]}})({[`&.${zl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),vj=ye(Ev,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.icon,o.variant&&a[`icon${xe(o.variant)}`],o.open&&a.iconOpen]}})({}),Sj=ye("input",{shouldForwardProp:t=>Ru(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),Cj=t=>{const{classes:a,variant:o,disabled:i,multiple:s,open:c,error:f}=t,h={select:["select",o,i&&"disabled",s&&"multiple",f&&"error"],icon:["icon",`icon${xe(o)}`,c&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return tt(h,Mv,a)},wj=M.forwardRef(function(a,o){var Kn,vn,Nn,dt;const{"aria-describedby":i,"aria-label":s,autoFocus:c,autoWidth:f,children:h,className:m,defaultOpen:g,defaultValue:y,disabled:x,displayEmpty:T,error:v=!1,IconComponent:w,inputRef:S,labelId:R,MenuProps:z={},multiple:D,name:O,onBlur:j,onChange:k,onClose:H,onFocus:N,onKeyDown:L,onMouseDown:q,onOpen:I,open:Y,readOnly:C,renderValue:$,required:P,SelectDisplayProps:X={},tabIndex:B,type:F,value:_,variant:V="standard",...ce}=a,[E,W]=Xl({controlled:_,default:y,name:"Select"}),[Q,ie]=Xl({controlled:Y,default:g,name:"Select"}),J=M.useRef(null),pe=M.useRef(null),[fe,le]=M.useState(null),{current:ve}=M.useRef(Y!=null),[we,je]=M.useState(),[Me,_e]=M.useState(null),me=tn(o,S),Le=M.useCallback(ge=>{pe.current=ge,ge&&le(ge)},[]),He=fe==null?void 0:fe.parentNode;M.useImperativeHandle(me,()=>({focus:()=>{pe.current.focus()},node:J.current,value:E}),[E]);const Ee=fe!==null&&Q;M.useEffect(()=>{if(!Ee||!He||f||typeof ResizeObserver>"u")return;const ge=new ResizeObserver(()=>{je(He.clientWidth)});return ge.observe(He),()=>{ge.disconnect()}},[Ee,He,f]),M.useEffect(()=>{g&&Q&&fe&&!ve&&(je(f?null:He.clientWidth),pe.current.focus())},[fe,f]),M.useEffect(()=>{c&&pe.current.focus()},[c]),M.useEffect(()=>{if(!R)return;const ge=rn(pe.current).getElementById(R);if(ge){const $e=()=>{getSelection().isCollapsed&&pe.current.focus()};return ge.addEventListener("click",$e),()=>{ge.removeEventListener("click",$e)}}},[R]);const Pe=(ge,$e)=>{ge?(_e(mj($e)),I&&I($e)):(_e(null),H&&H($e)),ve||(je(f?null:He.clientWidth),ie(ge))},Xe=ge=>{q==null||q(ge),ge.button===0&&(ge.preventDefault(),pe.current.focus(),Pe(!0,ge))},Ye=ge=>{Pe(!1,ge)},Ve=M.Children.toArray(h),Ce=ge=>{const $e=Ve.find(ut=>ut.props.value===ge.target.value);$e!==void 0&&(W($e.props.value),k&&k(ge,$e))},ct=ge=>$e=>{let ut;if($e.currentTarget.hasAttribute("tabindex")){if(D){ut=Array.isArray(E)?E.slice():[];const $t=E.indexOf(ge.props.value);$t===-1?ut.push(ge.props.value):ut.splice($t,1)}else ut=ge.props.value;if(ge.props.onClick&&ge.props.onClick($e),E!==ut&&(W(ut),k)){const $t=$e.nativeEvent||$e,We=new $t.constructor($t.type,$t);Object.defineProperty(We,"target",{writable:!0,value:{value:ut,name:O}}),k(We,ge)}D||Pe(!1,$e)}},Te=ge=>{C||([" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),Pe(!0,ge)),L==null||L(ge))},ue=ge=>{!Ee&&j&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:E,name:O}}),j(ge))};delete ce["aria-invalid"];let he,Re;const ze=[];let Ie=!1;(ou({value:E})||T)&&($?he=$(E):Ie=!0);const Se=Ve.map(ge=>{if(!M.isValidElement(ge))return null;let $e;if(D){if(!Array.isArray(E))throw new Error(ir(2));$e=E.some(ut=>Gb(ut,ge.props.value)),$e&&Ie&&ze.push(ge.props.children)}else $e=Gb(E,ge.props.value),$e&&Ie&&(Re=ge.props.children);return M.cloneElement(ge,{"aria-selected":$e?"true":"false",onClick:ct(ge),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(ut)},role:"option",selected:$e,value:void 0,"data-value":ge.props.value})});Ie&&(D?ze.length===0?he=null:he=ze.reduce((ge,$e,ut)=>(ge.push($e),ut<ze.length-1&&ge.push(", "),ge),[]):he=Re);let be=we;!f&&ve&&fe&&(be=He.clientWidth);let qe;typeof B<"u"?qe=B:qe=x?null:0;const Ne=X.id||(O?`mui-component-select-${O}`:void 0),Oe={...a,variant:V,value:E,open:Ee,error:v},Bt=Cj(Oe),kt={...z.PaperProps,...typeof((Kn=z.slotProps)==null?void 0:Kn.paper)=="function"?z.slotProps.paper(Oe):(vn=z.slotProps)==null?void 0:vn.paper},Ca={...z.MenuListProps,...typeof((Nn=z.slotProps)==null?void 0:Nn.list)=="function"?z.slotProps.list(Oe):(dt=z.slotProps)==null?void 0:dt.list},Hn=wo();return d.jsxs(M.Fragment,{children:[d.jsx(xj,{as:"div",ref:Le,tabIndex:qe,role:"combobox","aria-controls":Ee?Hn:void 0,"aria-disabled":x?"true":void 0,"aria-expanded":Ee?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[R,Ne].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":P?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:Te,onMouseDown:x||C?null:Xe,onBlur:ue,onFocus:N,...X,ownerState:Oe,className:De(X.className,Bt.select,m),id:Ne,children:gj(he)?Yb||(Yb=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):he}),d.jsx(Sj,{"aria-invalid":v,value:Array.isArray(E)?E.join(","):E,name:O,ref:J,"aria-hidden":!0,onChange:Ce,tabIndex:-1,disabled:x,className:Bt.nativeInput,autoFocus:c,required:P,...ce,ownerState:Oe}),d.jsx(vj,{as:w,className:Bt.icon,ownerState:Oe}),d.jsx(bj,{value:Me,children:d.jsx(Rv,{id:`menu-${O||""}`,anchorEl:He,open:Ee,onClose:Ye,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...z,slotProps:{...z.slotProps,list:{"aria-labelledby":R,role:"listbox","aria-multiselectable":D?"true":void 0,disableListWrap:!0,id:Hn,...Ca},paper:{...kt,style:{minWidth:be,...kt!=null?kt.style:null}}},children:Se})})]})});var Xb;const Tj=ye("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Xn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Rj=ye("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Xn})(Ge(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:a})=>!a.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:a})=>a.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:a})=>a.withLabel&&a.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function jj(t){const{children:a,classes:o,className:i,label:s,notched:c,...f}=t,h=s!=null&&s!=="",m={...t,notched:c,withLabel:h};return d.jsx(Tj,{"aria-hidden":!0,className:i,ownerState:m,...f,children:d.jsx(Rj,{ownerState:m,children:h?d.jsx("span",{children:s}):Xb||(Xb=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const Ej=t=>{const{classes:a}=t,i=tt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},YT,a);return{...a,...i}},Mj=ye(Ou,{shouldForwardProp:t=>Xn(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ku})(Ge(({theme:t})=>{const a=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Aa.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Aa.notchedOutline}`]:{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):a}},[`&.${Aa.focused} .${Aa.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(wn()).map(([o])=>({props:{color:o},style:{[`&.${Aa.focused} .${Aa.notchedOutline}`]:{borderColor:(t.vars||t).palette[o].main}}})),{props:{},style:{[`&.${Aa.error} .${Aa.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Aa.disabled} .${Aa.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:14}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:14}},{props:({ownerState:o})=>o.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:o,size:i})=>o.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),Aj=ye(jj,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ge(({theme:t})=>{const a=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):a}})),kj=ye(Bu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zu})(Ge(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:a})=>a.multiline,style:{padding:0}},{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:0}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:0}}]}))),kh=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:f="input",label:h,multiline:m=!1,notched:g,slots:y={},slotProps:x={},type:T="text",...v}=i,w=Ej(i),S=qr(),R=To({props:i,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),z={...i,color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:S,fullWidth:c,hiddenLabel:R.hiddenLabel,multiline:m,size:R.size,type:T},D=y.root??s.Root??Mj,O=y.input??s.Input??kj,[j,k]=nt("notchedOutline",{elementType:Aj,className:w.notchedOutline,shouldForwardComponentProp:!0,ownerState:z,externalForwardedProps:{slots:y,slotProps:x},additionalProps:{label:h!=null&&h!==""&&R.required?d.jsxs(M.Fragment,{children:[h," ","*"]}):h}});return d.jsx(ls,{slots:{root:D,input:O},slotProps:x,renderSuffix:H=>d.jsx(j,{...k,notched:typeof g<"u"?g:!!(H.startAdornment||H.filled||H.focused)}),fullWidth:c,inputComponent:f,multiline:m,ref:o,type:T,...v,classes:{...w,notchedOutline:null}})});kh.muiName="Input";const zj=t=>{const{classes:a}=t,i=tt({root:["root"]},Mv,a);return{...a,...i}},zh={name:"MuiSelect",slot:"Root",shouldForwardProp:t=>Xn(t)&&t!=="variant"},Oj=ye(Mh,zh)(""),Bj=ye(kh,zh)(""),Dj=ye(Eh,zh)(""),Oh=M.forwardRef(function(a,o){const i=at({name:"MuiSelect",props:a}),{autoWidth:s=!1,children:c,classes:f={},className:h,defaultOpen:m=!1,displayEmpty:g=!1,IconComponent:y=KT,id:x,input:T,inputProps:v,label:w,labelId:S,MenuProps:R,multiple:z=!1,native:D=!1,onClose:O,onOpen:j,open:k,renderValue:H,SelectDisplayProps:N,variant:L="outlined",...q}=i,I=D?hj:wj,Y=qr(),C=To({props:i,muiFormControl:Y,states:["variant","error"]}),$=C.variant||L,P={...i,variant:$,classes:f},X=zj(P),{root:B,...F}=X,_=T||{standard:d.jsx(Oj,{ownerState:P}),outlined:d.jsx(Bj,{label:w,ownerState:P}),filled:d.jsx(Dj,{ownerState:P})}[$],V=tn(o,zi(_));return d.jsx(M.Fragment,{children:M.cloneElement(_,{inputComponent:I,inputProps:{children:c,error:C.error,IconComponent:y,variant:$,type:void 0,multiple:z,...D?{id:x}:{autoWidth:s,defaultOpen:m,displayEmpty:g,labelId:S,MenuProps:R,onClose:O,onOpen:j,open:k,renderValue:H,SelectDisplayProps:{id:x,...N}},...v,classes:v?xn(F,v.classes):F,...T?T.props.inputProps:{}},...(z&&D||g)&&$==="outlined"?{notched:!0}:{},ref:V,className:De(_.props.className,h,X.root),...!T&&{variant:$},...q})})});Oh.muiName="Select";function Hj(t,a){if(a==null){t.focus();return}try{t.focus({focusVisible:a==="keyboard"})}catch{t.focus()}}const Nj=(t,a)=>{const{ownerState:o}=t;return[a.root,o.dense&&a.dense,o.divider&&a.divider,!o.disableGutters&&a.gutters]},Lj=t=>{const{disabled:a,dense:o,divider:i,disableGutters:s,selected:c,classes:f}=t,m=tt({root:["root",o&&"dense",a&&"disabled",!s&&"gutters",i&&"divider",c&&"selected"]},cj,f);return{...f,...m}},$j=ye(Mu,{shouldForwardProp:t=>Xn(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Nj})(Ge(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kl.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${kl.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}},[`&.${kl.selected}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},[`&.${kl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${kl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${$b.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${$b.inset}`]:{marginLeft:52},[`& .${Ib.root}`]:{marginTop:0,marginBottom:0},[`& .${Ib.inset}`]:{paddingLeft:36},[`& .${Pb.root}`]:{minWidth:36},variants:[{props:({ownerState:a})=>!a.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:a})=>a.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:a})=>!a.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:a})=>a.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${Pb.root} svg`]:{fontSize:"1.25rem"}}}]}))),yi=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiMenuItem"}),{autoFocus:s=!1,component:c="li",dense:f=!1,divider:h=!1,disableGutters:m=!1,focusVisibleClassName:g,role:y="menuitem",tabIndex:x,className:T,...v}=i,w=yj(),S=M.useContext(Fp),R=M.useMemo(()=>({dense:f||S.dense||!1,disableGutters:m}),[S.dense,f,m]),z=M.useRef(null);Dn(()=>{s&&z.current&&Hj(z.current,w)},[s]);const D={...i,dense:R.dense,divider:h,disableGutters:m},O=Lj(i),j=tn(z,o),{root:k,...H}=O;let N;return i.disabled||(N=x!==void 0?x:-1),d.jsx(Fp.Provider,{value:R,children:d.jsx($j,{ref:j,role:y,tabIndex:N,component:c,focusVisibleClassName:De(O.focusVisible,g),className:De(O.root,T),...v,ownerState:D,classes:H})})}),_j={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Uj(t,a,o=(i,s)=>i===s){return t.length===a.length&&t.every((i,s)=>o(i,a[s]))}const Pj=2;function pi(t,a,o,i,s){return o===1?Math.min(t+a,s):Math.max(t-a,i)}function kv(t,a){return t-a}function Kb(t,a){const{index:o}=t.reduce((i,s,c)=>{const f=Math.abs(a-s);return i===null||f<i.distance||f===i.distance?{distance:f,index:c}:i},null)??{};return o}function Hc(t,a){if(a.current!==void 0&&t.changedTouches){const o=t;for(let i=0;i<o.changedTouches.length;i+=1){const s=o.changedTouches[i];if(s.identifier===a.current)return{x:s.clientX,y:s.clientY}}return!1}return{x:t.clientX,y:t.clientY}}function su(t,a,o){return(t-a)*100/(o-a)}function Ij(t,a,o){return(o-a)*t+a}function Fj(t){if(Math.abs(t)<1){const o=t.toExponential().split("e-"),i=o[0].split(".")[1];return(i?i.length:0)+parseInt(o[1],10)}const a=t.toString().split(".")[1];return a?a.length:0}function Wj(t,a,o){const i=Math.round((t-o)/a)*a+o;return Number(i.toFixed(Fj(a)))}function Qb({values:t,newValue:a,index:o}){const i=t.slice();return i[o]=a,i.sort(kv)}function Nc({sliderRef:t,activeIndex:a,setActive:o}){var s;const i=Ur(rn(t.current));(!au(t.current,i)||Number(i==null?void 0:i.getAttribute("data-index"))!==a)&&((s=t.current)==null||s.querySelector(`[type="range"][data-index="${a}"]`).focus()),o&&o(a)}function Lc(t,a){return typeof t=="number"&&typeof a=="number"?t===a:typeof t=="object"&&typeof a=="object"?Uj(t,a):!1}const Vj={horizontal:{offset:t=>({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},qj=t=>t;let $c;function Zb(){return $c===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?$c=CSS.supports("touch-action","none"):$c=!0),$c}function Gj(t){const{"aria-labelledby":a,defaultValue:o,disabled:i=!1,disableSwap:s=!1,isRtl:c=!1,marks:f=!1,max:h=100,min:m=0,name:g,onChange:y,onChangeCommitted:x,orientation:T="horizontal",rootRef:v,scale:w=qj,step:S=1,shiftStep:R=10,tabIndex:z,value:D}=t,O=M.useRef(void 0),[j,k]=M.useState(-1),[H,N]=M.useState(-1),[L,q]=M.useState(!1),I=M.useRef(0),Y=M.useRef(null),[C,$]=Xl({controlled:D,default:o??m,name:"Slider"}),P=y&&((ue,he,Re)=>{const ze=ue.nativeEvent||ue,Ie=new ze.constructor(ze.type,ze);Object.defineProperty(Ie,"target",{writable:!0,value:{value:he,name:g}}),Y.current=he,y(Ie,he,Re)}),X=Array.isArray(C);let B=X?C.slice().sort(kv):[C];B=B.map(ue=>ue==null?m:mi(ue,m,h));const F=f===!0&&S!==null?[...Array(Math.floor((h-m)/S)+1)].map((ue,he)=>({value:m+S*he})):f||[],_=F.map(ue=>ue.value),[V,ce]=M.useState(-1),E=M.useRef(null),W=tn(v,E),Q=ue=>he=>{var ze;const Re=Number(he.currentTarget.getAttribute("data-index"));wi(he.target)&&ce(Re),N(Re),(ze=ue==null?void 0:ue.onFocus)==null||ze.call(ue,he)},ie=ue=>he=>{var Re;wi(he.target)||ce(-1),N(-1),(Re=ue==null?void 0:ue.onBlur)==null||Re.call(ue,he)},J=(ue,he)=>{const Re=Number(ue.currentTarget.getAttribute("data-index")),ze=B[Re],Ie=_.indexOf(ze);let Se=he;if(F&&S==null){const be=_[_.length-1];Se>=be?Se=be:Se<=_[0]?Se=_[0]:Se=Se<ze?_[Ie-1]:_[Ie+1]}if(Se=mi(Se,m,h),X){s&&(Se=mi(Se,B[Re-1]||-1/0,B[Re+1]||1/0));const be=Se;Se=Qb({values:B,newValue:Se,index:Re});let qe=Re;s||(qe=Se.indexOf(be)),Nc({sliderRef:E,activeIndex:qe})}$(Se),ce(Re),P&&!Lc(Se,C)&&P(ue,Se,Re),x&&x(ue,Y.current??Se)},pe=ue=>he=>{var Re;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(he.key)){he.preventDefault();const ze=Number(he.currentTarget.getAttribute("data-index")),Ie=B[ze];let Se=null;if(S!=null){const be=he.shiftKey?R:S;switch(he.key){case"ArrowUp":Se=pi(Ie,be,1,m,h);break;case"ArrowRight":Se=pi(Ie,be,c?-1:1,m,h);break;case"ArrowDown":Se=pi(Ie,be,-1,m,h);break;case"ArrowLeft":Se=pi(Ie,be,c?1:-1,m,h);break;case"PageUp":Se=pi(Ie,R,1,m,h);break;case"PageDown":Se=pi(Ie,R,-1,m,h);break;case"Home":Se=m;break;case"End":Se=h;break}}else if(F){const be=_[_.length-1],qe=_.indexOf(Ie),Ne=[c?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Oe=[c?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ne.includes(he.key)?qe===0?Se=_[0]:Se=_[qe-1]:Oe.includes(he.key)&&(qe===_.length-1?Se=be:Se=_[qe+1])}Se!=null&&J(he,Se)}(Re=ue==null?void 0:ue.onKeyDown)==null||Re.call(ue,he)};Dn(()=>{var he;const ue=Ur(rn(E.current));i&&au(E.current,ue)&&((he=document.activeElement)==null||he.blur())},[i]),i&&j!==-1&&k(-1),i&&V!==-1&&ce(-1);const fe=ue=>he=>{var Re;(Re=ue.onChange)==null||Re.call(ue,he),J(he,he.target.valueAsNumber)},le=M.useRef(void 0);let ve=T;c&&T==="horizontal"&&(ve+="-reverse");const we=({finger:ue,move:he=!1})=>{const{current:Re}=E,{width:ze,height:Ie,bottom:Se,left:be}=Re.getBoundingClientRect();let qe;ve.startsWith("vertical")?qe=(Se-ue.y)/Ie:qe=(ue.x-be)/ze,ve.includes("-reverse")&&(qe=1-qe);let Ne;if(Ne=Ij(qe,m,h),S)Ne=Wj(Ne,S,m);else{const Bt=Kb(_,Ne);Ne=_[Bt]}Ne=mi(Ne,m,h);let Oe=0;if(X){he?Oe=le.current:Oe=Kb(B,Ne),s&&(Ne=mi(Ne,B[Oe-1]||-1/0,B[Oe+1]||1/0));const Bt=Ne;Ne=Qb({values:B,newValue:Ne,index:Oe}),s&&he||(Oe=Ne.indexOf(Bt),le.current=Oe)}return{newValue:Ne,activeIndex:Oe}},je=ca(ue=>{const he=Hc(ue,O);if(!he)return;if(I.current+=1,ue.type==="mousemove"&&ue.buttons===0){Me(ue);return}const{newValue:Re,activeIndex:ze}=we({finger:he,move:!0});Nc({sliderRef:E,activeIndex:ze,setActive:k}),$(Re),!L&&I.current>Pj&&q(!0),P&&!Lc(Re,C)&&P(ue,Re,ze)}),Me=ca(ue=>{const he=Hc(ue,O);if(q(!1),!he)return;const{newValue:Re}=we({finger:he,move:!0});k(-1),ue.type==="touchend"&&N(-1),x&&x(ue,Y.current??Re),O.current=void 0,me()}),_e=ca(ue=>{if(i)return;Zb()||ue.preventDefault();const he=ue.changedTouches[0];he!=null&&(O.current=he.identifier);const Re=Hc(ue,O);if(Re!==!1){const{newValue:Ie,activeIndex:Se}=we({finger:Re});Nc({sliderRef:E,activeIndex:Se,setActive:k}),$(Ie),P&&!Lc(Ie,C)&&P(ue,Ie,Se)}I.current=0;const ze=rn(E.current);ze.addEventListener("touchmove",je,{passive:!0}),ze.addEventListener("touchend",Me,{passive:!0})}),me=M.useCallback(()=>{const ue=rn(E.current);ue.removeEventListener("mousemove",je),ue.removeEventListener("mouseup",Me),ue.removeEventListener("touchmove",je),ue.removeEventListener("touchend",Me)},[Me,je]);M.useEffect(()=>{const{current:ue}=E;return ue.addEventListener("touchstart",_e,{passive:Zb()}),()=>{ue.removeEventListener("touchstart",_e),me()}},[me,_e]),M.useEffect(()=>{i&&me()},[i,me]);const Le=ue=>he=>{var Ie;if((Ie=ue.onMouseDown)==null||Ie.call(ue,he),i||he.defaultPrevented||he.button!==0)return;he.preventDefault();const Re=Hc(he,O);if(Re!==!1){const{newValue:Se,activeIndex:be}=we({finger:Re});Nc({sliderRef:E,activeIndex:be,setActive:k}),$(Se),P&&!Lc(Se,C)&&P(he,Se,be)}I.current=0;const ze=rn(E.current);ze.addEventListener("mousemove",je,{passive:!0}),ze.addEventListener("mouseup",Me)},He=su(X?B[0]:m,m,h),Ee=su(B[B.length-1],m,h)-He,Pe=(ue={})=>{const he=$l(ue),Re={onMouseDown:Le(he||{})},ze={...he,...Re};return{...ue,ref:W,...ze}},Xe=ue=>he=>{var ze;(ze=ue.onMouseOver)==null||ze.call(ue,he);const Re=Number(he.currentTarget.getAttribute("data-index"));N(Re)},Ye=ue=>he=>{var Re;(Re=ue.onMouseLeave)==null||Re.call(ue,he),N(-1)},Ve=(ue={})=>{const he=$l(ue),Re={onMouseOver:Xe(he||{}),onMouseLeave:Ye(he||{})};return{...ue,...he,...Re}},Ce=ue=>({pointerEvents:j!==-1&&j!==ue?"none":void 0});let ct;return T==="vertical"&&(ct=c?"vertical-rl":"vertical-lr"),{active:j,axis:ve,axisProps:Vj,dragging:L,focusedThumbIndex:V,getHiddenInputProps:(ue={})=>{const he=$l(ue),Re={onChange:fe(he||{}),onFocus:Q(he||{}),onBlur:ie(he||{}),onKeyDown:pe(he||{})},ze={...he,...Re};return{tabIndex:z,"aria-labelledby":a,"aria-orientation":T,"aria-valuemax":w(h),"aria-valuemin":w(m),name:g,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:i,...ue,...ze,style:{..._j,direction:c?"rtl":"ltr",width:"100%",height:"100%",writingMode:ct}}},getRootProps:Pe,getThumbProps:Ve,marks:F,open:H,range:X,rootRef:W,trackLeap:Ee,trackOffset:He,values:B,getThumbStyle:Ce}}const Yj=t=>!t||!Ir(t);function Xj(t){return et("MuiSlider",t)}const sa=Qe("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Kj=t=>{const{open:a}=t;return{offset:De(a&&sa.valueLabelOpen),circle:sa.valueLabelCircle,label:sa.valueLabelLabel}};function Qj(t){const{children:a,className:o,value:i}=t,s=Kj(t);return a?M.cloneElement(a,{className:a.props.className},d.jsxs(M.Fragment,{children:[a.props.children,d.jsx("span",{className:De(s.offset,o),"aria-hidden":!0,children:d.jsx("span",{className:s.circle,children:d.jsx("span",{className:s.label,children:i})})})]})):null}function Jb(t){return t}const Zj=ye("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,a[`color${xe(o.color)}`],o.size!=="medium"&&a[`size${xe(o.size)}`],o.marked&&a.marked,o.orientation==="vertical"&&a.vertical,o.track==="inverted"&&a.trackInverted,o.track===!1&&a.trackFalse]}})(Ge(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${sa.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${sa.dragging}`]:{[`& .${sa.thumb}, & .${sa.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(wn()).map(([a])=>({props:{color:a},style:{color:(t.vars||t).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Jj=ye("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),eE=ye("span",{name:"MuiSlider",slot:"Track"})(Ge(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(wn()).map(([a])=>({props:{color:a,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${a}Track`],borderColor:t.vars.palette.Slider[`${a}Track`]}:{backgroundColor:t.lighten(t.palette[a].main,.62),borderColor:t.lighten(t.palette[a].main,.62),...t.applyStyles("dark",{backgroundColor:t.darken(t.palette[a].main,.5)}),...t.applyStyles("dark",{borderColor:t.darken(t.palette[a].main,.5)})}}}))]}))),tE=ye("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.thumb,a[`thumbColor${xe(o.color)}`],o.size!=="medium"&&a[`thumbSize${xe(o.size)}`]]}})(Ge(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${sa.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(wn()).map(([a])=>({props:{color:a},style:{[`&:hover, &.${sa.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${t.alpha((t.vars||t).palette[a].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${sa.active}`]:{boxShadow:`0px 0px 0px 14px ${t.alpha((t.vars||t).palette[a].main,.16)}`}}}))]}))),nE=ye(Qj,{name:"MuiSlider",slot:"ValueLabel"})(Ge(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${sa.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${sa.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),aE=ye("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>Ru(t)&&t!=="markActive",overridesResolver:(t,a)=>{const{markActive:o}=t;return[a.mark,o&&a.markActive]}})(Ge(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),rE=ye("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>Ru(t)&&t!=="markLabelActive"})(Ge(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),oE=t=>{const{disabled:a,dragging:o,marked:i,orientation:s,track:c,classes:f,color:h,size:m}=t,g={root:["root",a&&"disabled",o&&"dragging",i&&"marked",s==="vertical"&&"vertical",c==="inverted"&&"trackInverted",c===!1&&"trackFalse",h&&`color${xe(h)}`,m&&`size${xe(m)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",a&&"disabled",m&&`thumbSize${xe(m)}`,h&&`thumbColor${xe(h)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return tt(g,Xj,f)},iE=({children:t})=>t,lE=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiSlider"}),s=wu(),{"aria-label":c,"aria-valuetext":f,"aria-labelledby":h,component:m="span",components:g={},componentsProps:y={},color:x="primary",classes:T,className:v,disableSwap:w=!1,disabled:S=!1,getAriaLabel:R,getAriaValueText:z,marks:D=!1,max:O=100,min:j=0,name:k,onChange:H,onChangeCommitted:N,orientation:L="horizontal",shiftStep:q=10,size:I="medium",step:Y=1,scale:C=Jb,slotProps:$,slots:P,tabIndex:X,track:B="normal",value:F,valueLabelDisplay:_="off",valueLabelFormat:V=Jb,...ce}=i,E={...i,isRtl:s,max:O,min:j,classes:T,disabled:S,disableSwap:w,orientation:L,marks:D,color:x,size:I,step:Y,shiftStep:q,scale:C,track:B,valueLabelDisplay:_,valueLabelFormat:V},{axisProps:W,getRootProps:Q,getHiddenInputProps:ie,getThumbProps:J,open:pe,active:fe,axis:le,focusedThumbIndex:ve,range:we,dragging:je,marks:Me,values:_e,trackOffset:me,trackLeap:Le,getThumbStyle:He}=Gj({...E,rootRef:o});E.marked=Me.length>0&&Me.some(dt=>dt.label),E.dragging=je,E.focusedThumbIndex=ve;const Ee=oE(E),Pe=(P==null?void 0:P.root)??g.Root??Zj,Xe=(P==null?void 0:P.rail)??g.Rail??Jj,Ye=(P==null?void 0:P.track)??g.Track??eE,Ve=(P==null?void 0:P.thumb)??g.Thumb??tE,Ce=(P==null?void 0:P.valueLabel)??g.ValueLabel??nE,ct=(P==null?void 0:P.mark)??g.Mark??aE,Te=(P==null?void 0:P.markLabel)??g.MarkLabel??rE,ue=(P==null?void 0:P.input)??g.Input??"input",he=($==null?void 0:$.root)??y.root,Re=($==null?void 0:$.rail)??y.rail,ze=($==null?void 0:$.track)??y.track,Ie=($==null?void 0:$.thumb)??y.thumb,Se=($==null?void 0:$.valueLabel)??y.valueLabel,be=($==null?void 0:$.mark)??y.mark,qe=($==null?void 0:$.markLabel)??y.markLabel,Ne=($==null?void 0:$.input)??y.input,Oe=ka({elementType:Pe,getSlotProps:Q,externalSlotProps:he,externalForwardedProps:ce,additionalProps:{...Yj(Pe)&&{as:m}},ownerState:{...E,...he==null?void 0:he.ownerState},className:[Ee.root,v]}),Bt=ka({elementType:Xe,externalSlotProps:Re,ownerState:E,className:Ee.rail}),kt=ka({elementType:Ye,externalSlotProps:ze,additionalProps:{style:{...W[le].offset(me),...W[le].leap(Le)}},ownerState:{...E,...ze==null?void 0:ze.ownerState},className:Ee.track}),Ca=ka({elementType:Ve,getSlotProps:J,externalSlotProps:Ie,ownerState:{...E,...Ie==null?void 0:Ie.ownerState},className:Ee.thumb}),Hn=ka({elementType:Ce,externalSlotProps:Se,ownerState:{...E,...Se==null?void 0:Se.ownerState},className:Ee.valueLabel}),Kn=ka({elementType:ct,externalSlotProps:be,ownerState:E,className:Ee.mark}),vn=ka({elementType:Te,externalSlotProps:qe,ownerState:E,className:Ee.markLabel}),Nn=ka({elementType:ue,getSlotProps:ie,externalSlotProps:Ne,ownerState:E});return d.jsxs(Pe,{...Oe,children:[d.jsx(Xe,{...Bt}),d.jsx(Ye,{...kt}),Me.filter(dt=>dt.value>=j&&dt.value<=O).map((dt,ge)=>{const $e=su(dt.value,j,O),ut=W[le].offset($e);let $t;return B===!1?$t=_e.includes(dt.value):$t=B==="normal"&&(we?dt.value>=_e[0]&&dt.value<=_e[_e.length-1]:dt.value<=_e[0])||B==="inverted"&&(we?dt.value<=_e[0]||dt.value>=_e[_e.length-1]:dt.value>=_e[0]),d.jsxs(M.Fragment,{children:[d.jsx(ct,{"data-index":ge,...Kn,...!Ir(ct)&&{markActive:$t},style:{...ut,...Kn.style},className:De(Kn.className,$t&&Ee.markActive)}),dt.label!=null?d.jsx(Te,{"aria-hidden":!0,"data-index":ge,...vn,...!Ir(Te)&&{markLabelActive:$t},style:{...ut,...vn.style},className:De(Ee.markLabel,vn.className,$t&&Ee.markLabelActive),children:dt.label}):null]},ge)}),_e.map((dt,ge)=>{const $e=su(dt,j,O),ut=W[le].offset($e),$t=_==="off"?iE:Ce;return d.jsx($t,{...!Ir($t)&&{valueLabelFormat:V,valueLabelDisplay:_,value:typeof V=="function"?V(C(dt),ge):V,index:ge,open:pe===ge||fe===ge||_==="on",disabled:S},...Hn,children:d.jsx(Ve,{"data-index":ge,...Ca,className:De(Ee.thumb,Ca.className,fe===ge&&Ee.active,ve===ge&&Ee.focusVisible),style:{...ut,...He(ge),...Ca.style},children:d.jsx(ue,{"data-index":ge,"aria-label":R?R(ge):c,"aria-valuenow":C(dt),"aria-labelledby":h,"aria-valuetext":z?z(C(dt),ge):f,value:_e[ge],...Nn})})},ge)})]})});function sE(t){return et("MuiTooltip",t)}const Wt=Qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function cE(t){return Math.round(t*1e5)/1e5}const uE=t=>{const{classes:a,disableInteractive:o,arrow:i,touch:s,placement:c}=t,f={popper:["popper",!o&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",s&&"touch",`tooltipPlacement${xe(c.split("-")[0])}`],arrow:["arrow"]};return tt(f,sE,a)},dE=ye(mv,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.popper,!o.disableInteractive&&a.popperInteractive,o.arrow&&a.popperArrow,!o.open&&a.popperClose]}})(Ge(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:a})=>!a.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:a})=>!a,style:{pointerEvents:"none"}},{props:({ownerState:a})=>a.arrow,style:{[`&[data-popper-placement*="bottom"] .${Wt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Wt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Wt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Wt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:a})=>a.arrow&&!a.isRtl,style:{[`&[data-popper-placement*="right"] .${Wt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:a})=>a.arrow&&!!a.isRtl,style:{[`&[data-popper-placement*="right"] .${Wt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:a})=>a.arrow&&!a.isRtl,style:{[`&[data-popper-placement*="left"] .${Wt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:a})=>a.arrow&&!!a.isRtl,style:{[`&[data-popper-placement*="left"] .${Wt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),fE=ye("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.tooltip,o.touch&&a.touch,o.arrow&&a.tooltipArrow,a[`tooltipPlacement${xe(o.placement.split("-")[0])}`]]}})(Ge(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Wt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Wt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Wt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Wt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:a})=>a.arrow,style:{position:"relative",margin:0}},{props:({ownerState:a})=>a.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${cE(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:a})=>!a.isRtl,style:{[`.${Wt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Wt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:a})=>!a.isRtl&&a.touch,style:{[`.${Wt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Wt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:a})=>!!a.isRtl,style:{[`.${Wt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Wt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:a})=>!!a.isRtl&&a.touch,style:{[`.${Wt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Wt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:a})=>a.touch,style:{[`.${Wt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:a})=>a.touch,style:{[`.${Wt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),pE=ye("span",{name:"MuiTooltip",slot:"Arrow"})(Ge(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let _c=!1;const ex=new ju;let Ol={x:0,y:0};function Uc(t,a){return(o,...i)=>{a&&a(o,...i),t(o,...i)}}const kn=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiTooltip"}),{arrow:s=!1,children:c,classes:f,components:h={},componentsProps:m={},describeChild:g=!1,disableFocusListener:y=!1,disableHoverListener:x=!1,disableInteractive:T=!1,disableTouchListener:v=!1,enterDelay:w=100,enterNextDelay:S=0,enterTouchDelay:R=700,followCursor:z=!1,id:D,leaveDelay:O=0,leaveTouchDelay:j=1500,onClose:k,onOpen:H,open:N,placement:L="bottom",PopperComponent:q,PopperProps:I={},slotProps:Y={},slots:C={},title:$,TransitionComponent:P,TransitionProps:X,...B}=i,F=M.isValidElement(c)?c:d.jsx("span",{children:c}),_=ki(),V=wu(),[ce,E]=M.useState(),[W,Q]=M.useState(null),ie=M.useRef(!1),J=T||z,pe=vo(),fe=vo(),le=vo(),ve=vo(),[we,je]=Xl({controlled:N,default:!1,name:"Tooltip",state:"open"});let Me=we;const _e=wo(D),me=M.useRef(),Le=ca(()=>{me.current!==void 0&&(document.body.style.WebkitUserSelect=me.current,me.current=void 0),ve.clear()});M.useEffect(()=>Le,[Le]);const He=We=>{ex.clear(),_c=!0,je(!0),H&&!Me&&H(We)},Ee=ca(We=>{ex.start(800+O,()=>{_c=!1}),je(!1),k&&Me&&k(We),pe.start(_.transitions.duration.shortest,()=>{ie.current=!1})}),Pe=We=>{ie.current&&We.type!=="touchstart"||(ce&&ce.removeAttribute("title"),fe.clear(),le.clear(),w||_c&&S?fe.start(_c?S:w,()=>{He(We)}):He(We))},Xe=We=>{fe.clear(),le.start(O,()=>{Ee(We)})},[,Ye]=M.useState(!1),Ve=We=>{const Nt=(We==null?void 0:We.target)??ce;if(!Nt||!wi(Nt)){Ye(!1);const hn=We??new Event("blur");!We&&Nt&&(Object.defineProperty(hn,"target",{value:Nt}),Object.defineProperty(hn,"currentTarget",{value:Nt})),Xe(hn)}},Ce=We=>{ce||E(We.currentTarget),wi(We.target)&&(Ye(!0),Pe(We))},ct=We=>{ie.current=!0;const Nt=F.props;Nt.onTouchStart&&Nt.onTouchStart(We)},Te=We=>{ct(We),le.clear(),pe.clear(),Le(),me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ve.start(R,()=>{document.body.style.WebkitUserSelect=me.current,Pe(We)})},ue=We=>{F.props.onTouchEnd&&F.props.onTouchEnd(We),Le(),le.start(j,()=>{Ee(We)})};M.useEffect(()=>{if(!Me)return;function We(Nt){Nt.key==="Escape"&&Ee(Nt)}return document.addEventListener("keydown",We),()=>{document.removeEventListener("keydown",We)}},[Ee,Me]);const he=tn(zi(F),E,o);!$&&$!==0&&(Me=!1);const Re=M.useRef(),ze=We=>{const Nt=F.props;Nt.onMouseMove&&Nt.onMouseMove(We),Ol={x:We.clientX,y:We.clientY},Re.current&&Re.current.update()},Ie={},Se=typeof $=="string";g?(Ie.title=!Me&&Se&&!x?$:null,Ie["aria-describedby"]=Me?_e:null):(Ie["aria-label"]=Se?$:null,Ie["aria-labelledby"]=Me&&!Se?_e:null);const be={...Ie,...B,...F.props,className:De(B.className,F.props.className),onTouchStart:ct,ref:he,...z?{onMouseMove:ze}:{}},qe={};v||(be.onTouchStart=Te,be.onTouchEnd=ue),x||(be.onMouseOver=Uc(Pe,be.onMouseOver),be.onMouseLeave=Uc(Xe,be.onMouseLeave),J||(qe.onMouseOver=Pe,qe.onMouseLeave=Xe)),y||(be.onFocus=Uc(Ce,be.onFocus),be.onBlur=Uc(Ve,be.onBlur),J||(qe.onFocus=Ce,qe.onBlur=Ve));const Ne={...i,isRtl:V,arrow:s,disableInteractive:J,placement:L,PopperComponentProp:q,touch:ie.current},Oe=typeof Y.popper=="function"?Y.popper(Ne):Y.popper,Bt=M.useMemo(()=>{var Nt,hn;let We=[{name:"arrow",enabled:!!W,options:{element:W,padding:4}}];return(Nt=I.popperOptions)!=null&&Nt.modifiers&&(We=We.concat(I.popperOptions.modifiers)),(hn=Oe==null?void 0:Oe.popperOptions)!=null&&hn.modifiers&&(We=We.concat(Oe.popperOptions.modifiers)),{...I.popperOptions,...Oe==null?void 0:Oe.popperOptions,modifiers:We}},[W,I.popperOptions,Oe==null?void 0:Oe.popperOptions]),kt=uE(Ne),Ca=typeof Y.transition=="function"?Y.transition(Ne):Y.transition,Hn={slots:{popper:h.Popper,transition:h.Transition??P,tooltip:h.Tooltip,arrow:h.Arrow,...C},slotProps:{arrow:Y.arrow??m.arrow,popper:{...I,...Oe??m.popper},tooltip:Y.tooltip??m.tooltip,transition:{...X,...Ca??m.transition}}},[Kn,vn]=nt("popper",{elementType:dE,externalForwardedProps:Hn,ownerState:Ne,className:De(kt.popper,I==null?void 0:I.className)}),[Nn,dt]=nt("transition",{elementType:lu,externalForwardedProps:Hn,ownerState:Ne}),[ge,$e]=nt("tooltip",{elementType:fE,className:kt.tooltip,externalForwardedProps:Hn,ownerState:Ne}),[ut,$t]=nt("arrow",{elementType:pE,className:kt.arrow,externalForwardedProps:Hn,ownerState:Ne,ref:Q});return d.jsxs(M.Fragment,{children:[M.cloneElement(F,be),d.jsx(Kn,{as:q??mv,placement:L,anchorEl:z?{getBoundingClientRect:()=>({top:Ol.y,left:Ol.x,right:Ol.x,bottom:Ol.y,width:0,height:0})}:ce,popperRef:Re,open:ce?Me:!1,id:_e,transition:!0,...qe,...vn,popperOptions:Bt,children:({TransitionProps:We})=>d.jsx(Nn,{timeout:_.transitions.duration.shorter,...We,...dt,children:d.jsxs(ge,{...$e,children:[$,s?d.jsx(ut,{...$t}):null]})})})]})});function hE(t){return et("MuiSwitch",t)}const Cn=Qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),mE=t=>{const{classes:a,edge:o,size:i,color:s,checked:c,disabled:f}=t,h={root:["root",o&&`edge${xe(o)}`,`size${xe(i)}`],switchBase:["switchBase",`color${xe(s)}`,c&&"checked",f&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},m=tt(h,hE,a);return{...a,...m}},gE=ye("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.edge&&a[`edge${xe(o.edge)}`],a[`size${xe(o.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Cn.thumb}`]:{width:16,height:16},[`& .${Cn.switchBase}`]:{padding:4,[`&.${Cn.checked}`]:{transform:"translateX(16px)"}}}}]}),yE=ye(z4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.switchBase,{[`& .${Cn.input}`]:a.input},o.color!=="default"&&a[`color${xe(o.color)}`]]}})(Ge(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Cn.checked}`]:{transform:"translateX(20px)"},[`&.${Cn.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Cn.checked} + .${Cn.track}`]:{opacity:.5},[`&.${Cn.disabled} + .${Cn.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${Cn.input}`]:{left:"-100%",width:"300%"}})),Ge(({theme:t})=>({"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(wn(["light"])).map(([a])=>({props:{color:a},style:{[`&.${Cn.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[a].main,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cn.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?t.lighten(t.palette[a].main,.62):t.darken(t.palette[a].main,.55)}`}},[`&.${Cn.checked} + .${Cn.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]}))),bE=ye("span",{name:"MuiSwitch",slot:"Track"})(Ge(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,boxSizing:"border-box",border:"1px solid transparent",zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),xE=ye("span",{name:"MuiSwitch",slot:"Thumb"})(Ge(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",boxSizing:"border-box",border:"1px solid transparent",width:20,height:20,borderRadius:"50%"}))),vi=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiSwitch"}),{className:s,color:c="primary",edge:f=!1,size:h="medium",sx:m,slots:g={},slotProps:y={},...x}=i,T={...i,color:c,edge:f,size:h},v=mE(T),w=y.input,S={slots:g,slotProps:y},[R,z]=nt("root",{className:De(v.root,s),elementType:gE,externalForwardedProps:S,ownerState:T,additionalProps:{sx:m}}),[D,O]=nt("thumb",{className:v.thumb,elementType:xE,externalForwardedProps:S,ownerState:T}),j=d.jsx(D,{...O}),[k,H]=nt("track",{className:v.track,elementType:bE,externalForwardedProps:S,ownerState:T});return d.jsxs(R,{...z,children:[d.jsx(yE,{type:"checkbox",icon:j,checkedIcon:j,ref:o,ownerState:T,...x,classes:{...v,root:v.switchBase},slots:{...g.switchBase&&{root:g.switchBase},...g.input&&{input:g.input}},slotProps:{...y.switchBase&&{root:typeof y.switchBase=="function"?y.switchBase(T):y.switchBase},input:Yx(typeof w=="function"?w(T):w,{role:"switch"})}}),d.jsx(k,{...H})]})});function vE(t){return et("MuiToolbar",t)}Qe("MuiToolbar",["root","gutters","regular","dense"]);const SE=t=>{const{classes:a,disableGutters:o,variant:i}=t;return tt({root:["root",!o&&"gutters",i]},vE,a)},CE=ye("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,!o.disableGutters&&a.gutters,a[o.variant]]}})(Ge(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:a})=>!a.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),wE=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiToolbar"}),{className:s,component:c="div",disableGutters:f=!1,variant:h="regular",...m}=i,g={...i,component:c,disableGutters:f,variant:h},y=SE(g);return d.jsx(CE,{as:c,className:De(y.root,s),ref:o,ownerState:g,...m})});function TE(t){return et("MuiTextField",t)}Qe("MuiTextField",["root"]);const RE={standard:Mh,filled:Eh,outlined:kh},jE=t=>{const{classes:a}=t;return tt({root:["root"]},TE,a)},EE=ye(RR,{name:"MuiTextField",slot:"Root"})({}),tx=M.forwardRef(function(a,o){const i=at({props:a,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:f,className:h,color:m="primary",defaultValue:g,disabled:y=!1,error:x=!1,FormHelperTextProps:T,fullWidth:v=!1,helperText:w,id:S,InputLabelProps:R,inputProps:z,InputProps:D,inputRef:O,label:j,maxRows:k,minRows:H,multiline:N=!1,name:L,onBlur:q,onChange:I,onFocus:Y,placeholder:C,required:$=!1,rows:P,select:X=!1,SelectProps:B,slots:F={},slotProps:_={},type:V,value:ce,variant:E="outlined",...W}=i,Q={...i,autoFocus:c,color:m,disabled:y,error:x,fullWidth:v,multiline:N,required:$,select:X,variant:E},ie=jE(Q),J=wo(S),pe=w&&J?`${J}-helper-text`:void 0,fe=j&&J?`${J}-label`:void 0,le=RE[E],ve={slots:F,slotProps:{input:D,inputLabel:R,htmlInput:z,formHelperText:T,select:B,..._}},we={},je=ve.slotProps.inputLabel;E==="outlined"&&(je&&typeof je.shrink<"u"&&(we.notched=je.shrink),we.label=j),X&&((!B||!B.native)&&(we.id=void 0),we["aria-describedby"]=void 0);const[Me,_e]=nt("root",{elementType:EE,shouldForwardComponentProp:!0,externalForwardedProps:{...ve,...W},ownerState:Q,className:De(ie.root,h),ref:o,additionalProps:{disabled:y,error:x,fullWidth:v,required:$,color:m,variant:E}}),[me,Le]=nt("input",{elementType:le,externalForwardedProps:ve,additionalProps:we,ownerState:Q}),[He,Ee]=nt("inputLabel",{elementType:GR,externalForwardedProps:ve,ownerState:Q}),[Pe,Xe]=nt("htmlInput",{elementType:"input",externalForwardedProps:ve,ownerState:Q}),[Ye,Ve]=nt("formHelperText",{elementType:BR,externalForwardedProps:ve,ownerState:Q}),[Ce,ct]=nt("select",{elementType:Oh,externalForwardedProps:ve,ownerState:Q}),Te=d.jsx(me,{"aria-describedby":pe,autoComplete:s,autoFocus:c,defaultValue:g,fullWidth:v,multiline:N,name:L,rows:P,maxRows:k,minRows:H,type:V,value:ce,id:J,inputRef:O,onBlur:q,onChange:I,onFocus:Y,placeholder:C,inputProps:Xe,slots:{input:F.htmlInput?Pe:void 0},...Le});return d.jsxs(Me,{..._e,children:[j!=null&&j!==""&&d.jsx(He,{htmlFor:J,id:fe,...Ee,children:j}),X?d.jsx(Ce,{"aria-describedby":pe,id:J,labelId:fe,value:ce,input:Te,...ct,children:f}):Te,w&&d.jsx(Ye,{id:pe,...Ve,children:w})]})}),nx=t=>{let a;const o=new Set,i=(g,y)=>{const x=typeof g=="function"?g(a):g;if(!Object.is(x,a)){const T=a;a=y??(typeof x!="object"||x===null)?x:Object.assign({},a,x),o.forEach(v=>v(a,T))}},s=()=>a,h={setState:i,getState:s,getInitialState:()=>m,subscribe:g=>(o.add(g),()=>o.delete(g))},m=a=t(i,s,h);return h},ME=(t=>t?nx(t):nx),AE=t=>t;function kE(t,a=AE){const o=bn.useSyncExternalStore(t.subscribe,bn.useCallback(()=>a(t.getState()),[t,a]),bn.useCallback(()=>a(t.getInitialState()),[t,a]));return bn.useDebugValue(o),o}const ax=t=>{const a=ME(t),o=i=>kE(a,i);return Object.assign(o,a),o},zv=(t=>t?ax(t):ax);function zE(t,a){let o;try{o=t()}catch{return}return{getItem:s=>{var c;const f=m=>m===null?null:JSON.parse(m,void 0),h=(c=o.getItem(s))!=null?c:null;return h instanceof Promise?h.then(f):f(h)},setItem:(s,c)=>o.setItem(s,JSON.stringify(c,void 0)),removeItem:s=>o.removeItem(s)}}const Wp=t=>a=>{try{const o=t(a);return o instanceof Promise?o:{then(i){return Wp(i)(o)},catch(i){return this}}}catch(o){return{then(i){return this},catch(i){return Wp(i)(o)}}}},OE=(t,a)=>(o,i,s)=>{let c={storage:zE(()=>window.localStorage),partialize:R=>R,version:0,merge:(R,z)=>({...z,...R}),...a},f=!1,h=0;const m=new Set,g=new Set;let y=c.storage;if(!y)return t((...R)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),o(...R)},i,s);const x=()=>{const R=c.partialize({...i()});return y.setItem(c.name,{state:R,version:c.version})},T=s.setState;s.setState=(R,z)=>(T(R,z),x());const v=t((...R)=>(o(...R),x()),i,s);s.getInitialState=()=>v;let w;const S=()=>{var R,z;if(!y)return;const D=++h;f=!1,m.forEach(j=>{var k;return j((k=i())!=null?k:v)});const O=((z=c.onRehydrateStorage)==null?void 0:z.call(c,(R=i())!=null?R:v))||void 0;return Wp(y.getItem.bind(y))(c.name).then(j=>{if(j)if(typeof j.version=="number"&&j.version!==c.version){if(c.migrate){const k=c.migrate(j.state,j.version);return k instanceof Promise?k.then(H=>[!0,H]):[!0,k]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,j.state];return[!1,void 0]}).then(j=>{var k;if(D!==h)return;const[H,N]=j;if(w=c.merge(N,(k=i())!=null?k:v),o(w,!0),H)return x()}).then(()=>{D===h&&(O==null||O(i(),void 0),w=i(),f=!0,g.forEach(j=>j(w)))}).catch(j=>{D===h&&(O==null||O(void 0,j))})};return s.persist={setOptions:R=>{c={...c,...R},R.storage&&(y=R.storage)},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>S(),hasHydrated:()=>f,onHydrate:R=>(m.add(R),()=>{m.delete(R)}),onFinishHydration:R=>(g.add(R),()=>{g.delete(R)})},c.skipHydration||S(),w||v},BE=OE,Pc={appName:"Crystal Ball",appTagline:"Run your whole business in one place",logoMode:"icon",logoUrl:"",iconColor:"#1565c0",presetId:"corporate",mode:"light",primaryHex:"#1565c0",secondaryHex:"#00897b",highlightHex:"",errorHex:"#d32f2f",warningHex:"#ed6c02",infoHex:"#0288d1",successHex:"#2e7d32",cardBgHex:"",cardHdrHex:"",pageBgHex:"",notifCardHex:"",textPrimaryHex:"",textSecondaryHex:"",dividerHex:"",btnColorHex:"",btnTextHex:"",h1Color:"",h2Color:"",h3Color:"",h4Color:"",h5Color:"",h6Color:"",fontFamily:"Roboto",headingFont:"Figtree",customFont:"",customHeadFont:"",textSize:"df",baseFontPx:0,bodyLineHeight:0,bodyWeight:0,letterSpace:0,scaleRatio:"default",scaleRatioCustom:0,h1Size:0,h2Size:0,h3Size:0,h4Size:0,h5Size:0,h6Size:0,h1Weight:0,h2Weight:0,h3Weight:0,h4Weight:0,h5Weight:0,h6Weight:0,headingWeight:600,headingLH:0,radiusPreset:"rounded",radiusVal:9,density:"default",densityScale:0,cardShadowPx:0,contrast:"medium",contrastMode:"auto",containerPadPx:0,edgePadPx:0,cardGapPx:0,cardStyle:"soft",cardHeader:"plain",surfaceTint:"snow",nestedStyle:"recessed",nestedDepth:0,headerStrength:0,tintIntensity:0,btnCase:"upper",accentGradient:!1,statusBold:!1,mapGlass:"light",chartScheme:"brand",tableDensity:"default",tableColDensity:"default",tableDividers:!1,tableColDividers:!1,tableRowDivW:1,tableColDivW:1,tableStripe:!1,tableHeaderStyle:"tinted",tableCellAlignH:"left",tableCellAlignV:"middle",notifPosition:"bottom-right",notifStyle:"toast",notifAccent:"severity",notifBadge:!0,notifAutoDismiss:!1,autoDismissSec:0,toastW:0,navPattern:"sidebar",sidebarWidth:220,appBarH:0,loginLayout:"split",loginImage:"",loginShowTagline:!0,loginPanelColor:"",loginImgOpacity:0,loginCardW:0},$r=t=>JSON.stringify(t),ke=zv()(BE((t,a)=>({settings:{...Pc},savedThemes:[],baseline:$r(Pc),set:o=>t(i=>({settings:{...i.settings,...o,presetId:"custom"}})),applyPreset:(o,i)=>t(s=>{const c={...s.settings,...i,presetId:o};return{settings:c,baseline:$r(c)}}),reset:()=>t(()=>({settings:{...Pc},baseline:$r(Pc)})),captureBaseline:()=>t(o=>({baseline:$r(o.settings)})),restoreBaseline:()=>t(o=>{try{return{settings:JSON.parse(o.baseline)}}catch{return{}}}),isDirty:()=>$r(a().settings)!==a().baseline,saveTheme:o=>t(i=>{const s="cust"+Date.now(),c={...i.settings};return{savedThemes:[...i.savedThemes,{id:s,name:o,snap:c}],settings:{...i.settings,presetId:s},baseline:$r({...i.settings,presetId:s})}}),applySaved:o=>t(()=>{const i={...o.snap,presetId:o.id};return{settings:i,baseline:$r(i)}}),renameSaved:(o,i)=>t(s=>({savedThemes:s.savedThemes.map(c=>c.id===o?{...c,name:i}:c)})),deleteSaved:o=>t(i=>({savedThemes:i.savedThemes.filter(s=>s.id!==o)})),importTheme:(o,i)=>{const s=a().savedThemes.map(m=>m.name.toLowerCase());let c=o,f=2;for(;s.includes(c.toLowerCase());)c=`${o} ${f++}`;const h={id:"imp"+Date.now(),name:c,snap:i};return t(m=>{const g={...i,presetId:h.id};return{savedThemes:[...m.savedThemes,h],settings:g,baseline:$r(g)}}),h}}),{name:"omnieye-theme-studio"}));function Vp(t){if(!t||t.length<7)return[210,60,45];const a=parseInt(t.slice(1,3),16)/255,o=parseInt(t.slice(3,5),16)/255,i=parseInt(t.slice(5,7),16)/255,s=Math.max(a,o,i),c=Math.min(a,o,i),f=s-c;let h=0,m=0;const g=(s+c)/2;return f&&(m=f/(1-Math.abs(2*g-1)),s===a?h=(o-i)/f%6:s===o?h=(i-a)/f+2:h=(a-o)/f+4,h=Math.round(h*60),h<0&&(h+=360)),[h,Math.round(m*100),Math.round(g*100)]}function At(t,a,o){a/=100,o/=100;const i=s=>{const c=(s+t/30)%12,f=a*Math.min(o,1-o);return Math.round((o-f*Math.max(-1,Math.min(c-3,Math.min(9-c,1))))*255).toString(16).padStart(2,"0")};return"#"+i(0)+i(8)+i(4)}function Wn(t){try{const[a,o]=Vp(t),i=Math.max(o,18);return{50:At(a,Math.max(Math.round(i*.3),10),96),100:At(a,Math.max(Math.round(i*.42),12),91),200:At(a,Math.max(Math.round(i*.55),16),82),300:At(a,Math.max(Math.round(i*.7),20),70),400:At(a,i,60),500:t,600:At(a,Math.min(i+4,100),44),700:At(a,Math.min(i+8,100),36),800:At(a,Math.max(Math.round(i*.92),16),26),900:At(a,Math.max(Math.round(i*.8),14),16)}}catch{return{50:"#eef",100:"#dde",200:"#bbd",300:"#99c",400:"#77b",500:t||"#1565c0",600:"#1257a8",700:"#0e4488",800:"#0a3266",900:"#062044"}}}function yp(t,a){try{const o=h=>{const m=[1,3,5].map(g=>{const y=parseInt(h.slice(g,g+2),16)/255;return y<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)});return .2126*m[0]+.7152*m[1]+.0722*m[2]},i=o(t),s=o(a),c=Math.max(i,s),f=Math.min(i,s);return(c+.05)/(f+.05)}catch{return 1}}function Lt(t,a){if(!t||t[0]!=="#"||t.length<7)return"rgba(20,30,48,"+a+")";const o=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),s=parseInt(t.slice(5,7),16);return"rgba("+o+","+i+","+s+","+a+")"}function Bh(t){const a=Wn(t.primaryHex),o=Wn(t.secondaryHex),i=t.mode==="dark",s=i?a[300]:t.primaryHex,c=i?o[300]:t.secondaryHex,f={pMain:s,pDark:a[700],pLight:a[300],highlight:t.highlightHex||"#ffd400",highlightSoft:Lt(t.highlightHex||"#ffd400",.15),highlightBd:Lt(t.highlightHex||"#ffd400",.34),pContrast:t.contrastMode==="light"?"#ffffff":t.contrastMode==="dark"?"rgba(0,0,0,0.87)":yp(s,"#ffffff")>=2.9?"#ffffff":"rgba(0,0,0,0.87)",pContainer:i?Lt(t.primaryHex,.26):a[50],onPContainer:i?a[100]:a[800],sMain:c,sContrast:yp(c,"#ffffff")>=2.9?"#ffffff":"rgba(0,0,0,0.87)",bgDefault:i?"#121212":"#f3f5f8",paper:i?"#1e1e1e":"#ffffff",paper2:i?"#262630":"#f6f8fb",frameGutterBg:i?"#0a0a0a":"#e3e7ec",footerBg:i?"#17171c":"#eceef2",textPrimary:i?"rgba(255,255,255,0.92)":"rgba(0,0,0,0.87)",textSecondary:i?"rgba(255,255,255,0.62)":"rgba(0,0,0,0.6)",textDisabled:i?"rgba(255,255,255,0.4)":"rgba(0,0,0,0.38)",divider:i?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.12)",outline:i?"rgba(255,255,255,0.23)":"rgba(0,0,0,0.23)"},h=t.statusBold,m=h?t.errorHex:Lt(t.errorHex,i?.22:.13),g=h?t.warningHex:Lt(t.warningHex,i?.22:.14),y=h?t.infoHex:Lt(t.infoHex,i?.22:.13),x=h?t.successHex:Lt(t.successHex,i?.22:.13),T=h?"#ffffff":i?Wn(t.errorHex)[300]:t.errorHex,v=h?"#ffffff":i?Wn(t.warningHex)[300]:Wn(t.warningHex)[700],w=h?"#ffffff":i?Wn(t.infoHex)[300]:t.infoHex,S=h?"#ffffff":i?Wn(t.successHex)[300]:Wn(t.successHex)[700],R=Vp(t.primaryHex)[0],z={neutral:[220,6],warm:[32,26],cool:[210,30],brand:[R,42],slate:[214,16],snow:[0,0]};let D=z[t.surfaceTint]||z.neutral;if(t.tintIntensity>0){const Ct=!!(t.surfaceTint&&z[t.surfaceTint]&&t.surfaceTint!=="snow");D=[Ct?D[0]:R,Math.round((Ct?D[1]:42)*t.tintIntensity/100)]}i?(f.bgDefault=At(D[0],Math.round(D[1]*.7),7),f.paper=At(D[0],Math.round(D[1]*.7),13),f.paper2=At(D[0],Math.round(D[1]*.85),19)):t.surfaceTint==="snow"&&!(t.tintIntensity>0)?(f.bgDefault="#ffffff",f.paper="#ffffff",f.paper2="#ffffff"):(f.bgDefault=At(D[0],Math.round(D[1]*.9),t.surfaceTint==="brand"?92:t.surfaceTint==="cool"?94:96),f.paper=At(D[0],Math.round(D[1]*.4),99),f.paper2=At(D[0],Math.round(D[1]*.85),t.surfaceTint==="brand"?95:96.5)),t.pageBgHex&&(f.bgDefault=t.pageBgHex),t.cardBgHex&&(f.paper=t.cardBgHex);const O={soft:0,standard:1,medium:2,high:3},j=O[t.contrast]!==void 0?O[t.contrast]:1,k=i?[["rgba(255,255,255,0.82)","rgba(255,255,255,0.55)","rgba(255,255,255,0.09)","rgba(255,255,255,0.16)"],["rgba(255,255,255,0.92)","rgba(255,255,255,0.62)","rgba(255,255,255,0.12)","rgba(255,255,255,0.23)"],["rgba(255,255,255,0.96)","rgba(255,255,255,0.74)","rgba(255,255,255,0.18)","rgba(255,255,255,0.34)"],["#ffffff","rgba(255,255,255,0.87)","rgba(255,255,255,0.26)","rgba(255,255,255,0.46)"]]:[["rgba(0,0,0,0.72)","rgba(0,0,0,0.5)","rgba(0,0,0,0.08)","rgba(0,0,0,0.16)"],["rgba(0,0,0,0.87)","rgba(0,0,0,0.6)","rgba(0,0,0,0.12)","rgba(0,0,0,0.23)"],["rgba(0,0,0,0.92)","rgba(0,0,0,0.7)","rgba(0,0,0,0.18)","rgba(0,0,0,0.34)"],["#000000","rgba(0,0,0,0.8)","rgba(0,0,0,0.24)","rgba(0,0,0,0.46)"]];f.textPrimary=k[j][0],f.textSecondary=k[j][1],f.divider=k[j][2],f.outline=k[j][3],t.textPrimaryHex&&(f.textPrimary=t.textPrimaryHex),t.textSecondaryHex&&(f.textSecondary=t.textSecondaryHex),t.dividerHex&&(f.divider=t.dividerHex),t.nestedStyle==="lighter"?f.paper2=i?At(D[0],Math.round(D[1]*.9),22):At(D[0],Math.max(Math.round(D[1]*.3),4),100):t.nestedStyle==="bordered"?f.paper2=f.paper:f.paper2=i?At(D[0],Math.round(D[1]*.9),Math.max(3,5)):At(D[0],Math.min(Math.round(D[1]*1.1),60),Math.max(88,94-D[1]*.18));const H=t.btnColorHex||s,N=t.accentGradient?"linear-gradient(135deg,"+H+","+(t.btnColorHex?Wn(t.btnColorHex)[700]:a[i?500:700])+")":H,L=t.btnTextHex||(yp(H,"#ffffff")>=2.9?"#ffffff":"rgba(0,0,0,0.87)"),q=t.h1Color||null,I=t.h2Color||null,Y=t.h3Color||null,C=t.h4Color||null,$=t.h5Color||null,P=t.h6Color||null,X=[{key:"sm",px:13},{key:"df",px:12},{key:"lg",px:18}],B=X.find(Ct=>Ct.key===t.textSize)||X[1],F=t.baseFontPx>0?t.baseFontPx:B.px,_=t.bodyLineHeight>0?t.bodyLineHeight:1.5,V=t.h1Size>0?t.h1Size:20,ce=Math.round(V*1.1),E=V,W=Math.max(Math.round(V*.9),11),Q=Math.max(Math.round(V*.8),11),ie=Math.max(Math.round(V*.7),10),J=Math.max(Math.round(V*.6),10),pe=Math.max(Math.round(V*.5),9),fe=F,le=Math.round(F*.92),ve=Math.round(F*.8),we=Math.round(F*.72),je=t.headingWeight,Me=t.headingLH>0?t.headingLH:1.2,_e=t.bodyWeight>0?t.bodyWeight:400,me=Math.min(900,_e+200),Le={compact:.82,default:1,comfortable:1.16},He=t.densityScale>0?t.densityScale/100:Le[t.density]??1,Ee=Math.round(20*He),Pe=Math.round(14*He),Xe=t.cardGapPx>0?t.cardGapPx:Math.round(16*He),Ye=Math.round(11*He*({compact:.66,default:1,comfortable:1.32}[t.tableDensity]??1)),Ve=t.containerPadPx>0?t.containerPadPx:Math.round(10*He),Ce=t.radiusVal,ct=Ce+"px",Te=Math.max(Math.round(Ce*.6),2)+"px",ue={0:"none",1:"0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)",2:"0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)",4:"0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)",8:"0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)"},he="1px solid rgba(255,255,255,0.06)";let Re,ze,Ie;t.cardStyle==="outlined"?(Re="none",ze="1.5px solid "+f.outline,Ie="none"):t.cardStyle==="soft"?(Re=ue[1],ze=i?he:"none",Ie=ue[1]):(Re=ue[8],ze=i?he:"none",Ie=ue[4]),t.cardShadowPx>0&&(Re="0 "+Math.round(t.cardShadowPx*.45)+"px "+t.cardShadowPx+"px rgba(16,24,40,"+(i?.55:.16)+")");let Se="transparent",be="1px solid "+f.divider,qe="none";t.cardHeader==="plain"?be="none":t.cardHeader==="tinted"?Se=f.pContainer:t.cardHeader==="accent"&&(qe="inset 3px 0 0 "+s),t.headerStrength>0&&(qe="inset "+Math.max(1,Math.round(t.headerStrength*.06))+"px 0 0 "+s,Se=Lt(t.primaryHex,(i?.14:.08)*(t.headerStrength/100))),t.cardHdrHex&&(Se=t.cardHdrHex);const Ne=i?"none":ue[4],Oe=i?"1px solid "+f.divider:"none",Bt=t.nestedStyle==="bordered"?"1.5px solid "+f.outline:"1px solid "+f.divider,kt=t.nestedDepth>0?"inset 3px 0 0 "+Lt(t.primaryHex,.55)+", 0 "+Math.round(t.nestedDepth*.4)+"px "+t.nestedDepth+"px rgba(16,24,40,"+(i?.42:.1)+")":"none",Hn=(t.appName||"").trim().split(/\s+/).slice(0,2).map(Ct=>Ct[0]||"").join("").toUpperCase()||"AP",Kn=!!(t.logoMode==="image"&&t.logoUrl),vn=!!t.loginImage,Nn=t.headingFont||t.fontFamily,dt=t.customFont||t.fontFamily,ge=Vp(t.primaryHex)[0],$e=(Ct,_t)=>At((Ct%360+360)%360,62,i?60:46),ut={brand:[s,c,$e(ge+42),$e(ge+205),$e(ge+120)],categorical:[$e(ge),$e(ge+72),$e(ge+144),$e(ge+216),$e(ge+288)],sequential:[At(ge,55,i?40:78),At(ge,60,i?50:64),s,At(ge,70,i?70:38),At(ge,78,i?82:26)],cbsafe:["#0072B2","#E69F00","#009E73","#CC79A7","#56B4E9"],warm:[$e(8),$e(28),$e(45),$e(350),$e(18)],cool:[$e(200),$e(220),$e(255),$e(180),$e(235)]},$t=ut[t.chartScheme]||ut.brand,We=[a[600],o[600],At((ge+42)%360,55,46),At((ge+205)%360,50,46)],Nt={error:{cb:m,cc:T},success:{cb:x,cc:S},info:{cb:y,cc:w},warning:{cb:g,cc:v}},hn=t.mapGlass==="light",Du=hn?"rgba(255,255,255,0.84)":"rgba(15,20,28,0.74)",ss=hn?"#1c2733":"#f3f6fa",cs=hn?"rgba(0,0,0,0.12)":"rgba(255,255,255,0.18)",Oi="repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 11px, rgba(255,255,255,0) 11px, rgba(255,255,255,0) 22px), radial-gradient(circle at 50% 38%, "+Lt(s,.22)+", rgba(0,0,0,0) 60%), "+"#0f141c",Bi="linear-gradient(135deg,"+s+","+a[700]+")",us="linear-gradient(180deg,"+Lt(a[900],.12)+","+Lt(a[900],.55)+")",ds="linear-gradient(135deg,"+a[700]+","+a[900]+")",wa="linear-gradient(135deg,"+Lt(a[900],.55)+","+Lt(t.primaryHex,.45)+")",Yt={"top-right":{top:"14px",right:"14px"},"top-center":{top:"14px",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"14px",right:"14px"},"bottom-left":{bottom:"14px",left:"14px"}},mn=Yt[t.notifPosition]||Yt["top-right"],_a=t.notifAccent==="primary"?{bar:s,icbg:f.pContainer,icc:f.onPContainer,dot:s}:t.notifAccent==="mono"?{bar:f.textSecondary,icbg:f.paper2,icc:f.textPrimary,dot:f.textSecondary}:{bar:t.warningHex,icbg:g,icc:v,dot:t.warningHex};let ur;t.notifStyle==="toast"?ur={boxShadow:ue[8],border:typeof ze=="string"&&ze!=="none"?ze:"none"}:t.notifStyle==="banner"?ur={boxShadow:ue[2],borderLeft:"4px solid "+_a.bar}:ur={boxShadow:"none",border:"1px solid "+f.divider};const Nu=t.notifCardHex||(i?"#1e1e1e":"#ffffff"),Lu={compact:"7px",default:"11px",comfortable:"16px"},fs={compact:"6px",default:"12px",comfortable:"22px"},Gr={top:"flex-start",middle:"center",bottom:"flex-end"},Di={left:"flex-start",center:"center",right:"flex-end"},dr={plain:"transparent",tinted:f.paper2,accent:f.highlightSoft},fr={rowPy:Lu[t.tableDensity]||"11px",cellPx:fs[t.tableColDensity]||"12px",rowBorder:t.tableDividers?(t.tableRowDivW||1)+"px solid "+f.divider:"none",colBorder:t.tableColDividers?(t.tableColDivW||1)+"px solid "+f.divider:"none",headBg:dr[t.tableHeaderStyle]||f.paper2,cellAI:Gr[t.tableCellAlignV]||"center",cellJC:Di[t.tableCellAlignH]||"flex-start",stripeBg:i?"rgba(255,255,255,0.035)":"rgba(0,0,0,0.028)",statusMap:{Delivered:{sb:x,sc:S},Processing:{sb:f.pContainer,sc:i?f.pLight:f.pDark},Pending:{sb:g,sc:v},Shipped:{sb:y,sc:w}},filters:["All","Delivered","Processing","Pending"].map((Ct,_t)=>({label:Ct,bg:_t===0?f.highlightSoft:"transparent",c:_t===0?f.textPrimary:f.textSecondary,brd:_t===0?f.highlightBd:f.outline}))},Yr={sm:"Small",df:"Default",lg:"Large"},pr={compact:"Compact",default:"Default",comfortable:"Comfortable"},Xt={outlined:"Outlined",soft:"Soft",floating:"Floating"},ps={sharp:"Sharp",rounded:"Rounded",round:"Round"},hs=[{key:"sidebar",label:"Sidebar",desc:"Full drawer",ic:"▤"},{key:"rail",label:"Rail",desc:"Icons only",ic:"▥"},{key:"topbar",label:"Top Bar",desc:"Horizontal",ic:"▦"}],Ua=t.fontFamily+" · "+(Yr[t.textSize]||"Default"),hr=(ps[t.radiusPreset]||"Custom")+" · "+(pr[t.density]||"Default")+" · "+(Xt[t.cardStyle]||"Soft"),ms=[{label:"General",ic:"◉"},{label:"Appearance",ic:"◧"},{label:"Modules",ic:"◫"},{label:"Team",ic:"◍"},{label:"Security",ic:"▣"},{label:"Billing",ic:"◳"}].map((Ct,_t)=>({...Ct,on:_t===1,bg:_t===1?f.highlightSoft:"transparent",c:_t===1?f.textPrimary:f.textSecondary,bar:_t===1?"3px solid "+f.highlight:"3px solid transparent"})),gs=hs.map(Ct=>({...Ct,active:t.navPattern===Ct.key,brd:t.navPattern===Ct.key?s:f.divider,bg:t.navPattern===Ct.key?f.pContainer:f.paper,color:t.navPattern===Ct.key?f.onPContainer:f.textPrimary})),$u=t.sidebarWidth,jo=t.appBarH>0?t.appBarH:56,Eo=t.appBarH>0?t.appBarH+"px":"Auto (56px)";return{pal:a,spal:o,isDark:i,pMain:s,sMain:c,t:f,errSoft:m,warnSoft:g,infoSoft:y,sucSoft:x,errTxt:T,warnTxt:v,infoTxt:w,sucTxt:S,sevMap:Nt,accentBg:N,btnText:L,hc1:q,hc2:I,hc3:Y,hc4:C,hc5:$,hc6:P,base:F,bodyLH:_,h1base:V,tDisplay:ce,tH1:E,tH2:W,tTitle:Q,tH4:ie,tH5:J,tH6:pe,tBody:fe,tBodySm:le,tCaption:ve,tOverline:we,wH1:je,wH2:je,wH3:je,wH4:je,wH5:je,wH6:je,headLH:Me,bodyWeightEff:_e,bwEmph:me,pad:Ee,padSm:Pe,gap:Xe,rowPy:Ye,screenPad:Ve,r:Ce,rad:ct,radSm:Te,SH:ue,cardShadow:Re,cardBorder:ze,btnShadow:Ie,cardHdrBg:Se,cardHdrBorder:be,cardHdrAccent:qe,appbarShadow:Ne,appbarBorder:Oe,nestBorder:Bt,nestShadow:kt,iconInitials:Hn,hasLogo:Kn,hasLoginImage:vn,headFam:Nn,bodyFam:dt,chartHue:ge,chartPalette:$t,avatarColors:We,overlaySurface:Du,onOverlay:ss,overlayBorder:cs,mediaBg:Oi,loginBrandGrad:Bi,loginScrimGrad:us,loginCenteredGrad:ds,loginScrimGradC:wa,npos:mn,nacc:_a,toastDeco:ur,toastBg:Nu,btnCase:t.btnCase!=="none"?"uppercase":"none",table:fr,typeSummary:Ua,shapeSummary:hr,settingsCats:ms,navSettingsChips:gs,sidebarWidth:$u,appBarHEff:jo,appBarHLabel:Eo}}function DE(t){const a=Bh(t),o=a.t,i=`${a.headFam},sans-serif`,s=`${a.bodyFam},sans-serif`,c=f=>({fontFamily:i,fontSize:f,fontWeight:a.wH1,lineHeight:a.headLH});return Tu({cssVariables:!0,palette:{mode:t.mode,primary:{main:t.primaryHex,dark:a.pal[700],light:a.pal[300],contrastText:o.pContrast},secondary:{main:t.secondaryHex,dark:a.spal[700],light:a.spal[300],contrastText:o.sContrast},success:{main:t.successHex},warning:{main:t.warningHex},info:{main:t.infoHex},error:{main:t.errorHex},background:{default:o.bgDefault,paper:o.paper},text:{primary:o.textPrimary,secondary:o.textSecondary,disabled:o.textDisabled},divider:o.divider},shape:{borderRadius:a.r},typography:{fontFamily:s,fontSize:a.base,h1:c(a.tH1),h2:c(a.tH2),h3:c(a.tTitle),h4:c(a.tH4),h5:c(a.tH5),h6:c(a.tH6),body1:{fontFamily:s,fontSize:a.tBody,lineHeight:a.bodyLH,fontWeight:a.bodyWeightEff},body2:{fontFamily:s,fontSize:a.tBodySm,lineHeight:a.bodyLH,fontWeight:a.bodyWeightEff},caption:{fontFamily:s,fontSize:a.tCaption,lineHeight:a.bodyLH},button:{textTransform:a.btnCase,fontWeight:a.bwEmph}},components:{MuiCssBaseline:{styleOverrides:{"button, input, textarea, select":{fontFamily:"inherit"}}},MuiCard:{styleOverrides:{root:{borderRadius:a.r,border:a.cardBorder==="none"?"none":a.cardBorder,boxShadow:a.cardShadow,backgroundImage:"none"}}},MuiButton:{styleOverrides:{root:{borderRadius:a.r,boxShadow:"none"}},defaultProps:{disableElevation:!0}},MuiChip:{styleOverrides:{root:{borderRadius:999}}}}})}const HE=pn(d.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),Ov=pn(d.jsx("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-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"})),Bv=pn(d.jsx("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49M12 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"})),NE=pn(d.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})),LE=pn(d.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),$E=pn(d.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"}));function _E(){const t=ke(o=>o.settings.mode),a=ke(o=>o.set);return d.jsx(R3,{position:"static",color:"default",elevation:0,sx:{borderBottom:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:d.jsxs(wE,{variant:"dense",sx:{minHeight:56,gap:1.5,px:2},children:[d.jsx(te,{sx:{width:34,height:34,borderRadius:2.5,bgcolor:"primary.main",color:"primary.contrastText",display:"grid",placeItems:"center",flexShrink:0,fontSize:14,fontWeight:800,letterSpacing:".3px"},children:"OE"}),d.jsx(Et,{variant:"h6",sx:{flex:1,fontWeight:800,letterSpacing:"-.3px"},children:"OmniEye"}),d.jsx(kn,{title:"Toggle light / dark",arrow:!0,children:d.jsx(_r,{size:"small",onClick:()=>a({mode:t==="dark"?"light":"dark"}),sx:{color:"text.secondary"},children:t==="dark"?d.jsx(Ov,{sx:{fontSize:20}}):d.jsx(Bv,{sx:{fontSize:20}})})}),d.jsx(kn,{title:"About",arrow:!0,children:d.jsx(_r,{size:"small",sx:{color:"text.secondary"},children:d.jsx(NE,{sx:{fontSize:20}})})}),d.jsx(kn,{title:"Settings",arrow:!0,children:d.jsx(_r,{size:"small",sx:{color:"text.secondary"},children:d.jsx(LE,{sx:{fontSize:20}})})}),d.jsx(kn,{title:"Notifications",arrow:!0,children:d.jsx(_r,{size:"small",sx:{color:"text.secondary"},children:d.jsx(g4,{color:"error",variant:"dot",children:d.jsx($E,{sx:{fontSize:20}})})})})]})})}const UE=pn(d.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3zM7 9H4V5h3zm10 6h3v4h-3zm0-10h3v4h-3z"}));function PE(){return d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:1.25,px:2,py:1,borderBottom:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:[d.jsx(te,{sx:{width:30,height:30,borderRadius:2,background:"linear-gradient(135deg,#7c4dff,#5b8def)",color:"#fff",display:"grid",placeItems:"center",flexShrink:0},children:d.jsx(UE,{sx:{fontSize:18}})}),d.jsx(Et,{variant:"h5",sx:{fontSize:17,fontWeight:700,letterSpacing:"-.2px"},children:"Theme Studio"})]})}const IE=pn(d.jsx("path",{d:"M19 5v2h-4V5zM9 5v6H5V5zm10 8v6h-4v-6zM9 17v2H5v-2zM21 3h-8v6h8zM11 3H3v10h8zm10 8h-8v10h8zm-10 4H3v6h8z"})),FE=pn(d.jsx("path",{d:"M21 6.5c-1.66 0-3 1.34-3 3 0 .07 0 .14.01.21l-2.03.68c-.64-1.21-1.82-2.09-3.22-2.32V5.91C14.04 5.57 15 4.4 15 3c0-1.66-1.34-3-3-3S9 1.34 9 3c0 1.4.96 2.57 2.25 2.91v2.16c-1.4.23-2.58 1.11-3.22 2.32l-2.04-.68C6 9.64 6 9.57 6 9.5c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3c1.06 0 1.98-.55 2.52-1.37l2.03.68c-.2 1.29.17 2.66 1.09 3.69l-1.41 1.77Q6.66 17 6 17c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3c0-.68-.22-1.3-.6-1.8l1.41-1.77c1.36.76 3.02.75 4.37 0l1.41 1.77c-.37.5-.59 1.12-.59 1.8 0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3c-.44 0-.85.09-1.23.26l-1.41-1.77c.93-1.04 1.29-2.4 1.09-3.69l2.03-.68c.53.82 1.46 1.37 2.52 1.37 1.66 0 3-1.34 3-3S22.66 6.5 21 6.5m-18 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1M6 21c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m5-18c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1m1 12c-1.38 0-2.5-1.12-2.5-2.5S10.62 10 12 10s2.5 1.12 2.5 2.5S13.38 15 12 15m6 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m3-8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"})),WE=pn([d.jsx("path",{d:"M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2zM15 20H6c-.55 0-1-.45-1-1v-1h10zm4-1c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11z"},"0"),d.jsx("path",{d:"M9 7h6v2H9zm7 0h2v2h-2zm-7 3h6v2H9zm7 0h2v2h-2z"},"1")]),VE=pn(d.jsx("path",{d:"M15 8v8H5V8zm1-2H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4V7c0-.55-.45-1-1-1"})),qE=pn(d.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-2m0 16H5V5h14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"})),GE=[{key:"dashboard",label:"Dashboard"},{key:"orders",label:"Orders"},{key:"reports",label:"Reports"},{key:"cameras",label:"Cameras"},{key:"operations",label:"Operations"},{key:"components",label:"Components"},{key:"login",label:"Login"}],YE=[{key:"dashboard",label:"Dashboard"},{key:"operations",label:"Operations"},{key:"cameras",label:"Cameras"},{key:"reports",label:"Reports"},{key:"orders",label:"Orders"},{key:"components",label:"Components"}],Ba=zv(t=>({openSection:"",setOpenSection:a=>t({openSection:a}),previewScreen:"dashboard",setPreviewScreen:a=>t({previewScreen:a}),previewMenuOpen:!1,setPreviewMenuOpen:a=>t({previewMenuOpen:a}),studioOpen:!0,setStudioOpen:a=>t({studioOpen:a})})),XE=[{key:"dashboard",label:"Dashboard",icon:d.jsx(IE,{sx:{fontSize:20}})},{key:"operations",label:"Operations",icon:d.jsx(FE,{sx:{fontSize:20}})},{key:"orders",label:"Orders",icon:d.jsx(WE,{sx:{fontSize:20}})},{key:"cameras",label:"Cameras",icon:d.jsx(VE,{sx:{fontSize:20}})},{key:"reports",label:"Reports",icon:d.jsx(qE,{sx:{fontSize:20}})}];function KE(){const t=Ba(o=>o.previewScreen),a=Ba(o=>o.setPreviewScreen);return d.jsxs(te,{sx:{width:56,flexShrink:0,borderRight:"1px solid",borderColor:"divider",bgcolor:"background.paper",display:"flex",flexDirection:"column",alignItems:"center",gap:.5,py:1.25},children:[XE.map(o=>{const i=t===o.key;return d.jsx(kn,{title:o.label,placement:"right",arrow:!0,children:d.jsx(te,{onClick:()=>a(o.key),sx:{width:38,height:38,borderRadius:2.5,display:"grid",placeItems:"center",cursor:"pointer",color:i?"primary.main":"text.secondary",bgcolor:i?"action.selected":"transparent",transition:"all .14s ease","&:hover":{bgcolor:"action.hover"}},children:o.icon})},o.key)}),d.jsx(te,{sx:{flex:1}}),d.jsx(kn,{title:"Account",placement:"right",arrow:!0,children:d.jsx(r4,{sx:{width:34,height:34,bgcolor:"secondary.main",fontSize:13,fontWeight:800},children:"EA"})})]})}const cu=[{id:"corporate",name:"Corporate Blue",snap:{primaryHex:"#1565c0",secondaryHex:"#00897b",iconColor:"#1565c0"}},{id:"emerald",name:"Emerald",snap:{primaryHex:"#2e7d32",secondaryHex:"#00897b",iconColor:"#2e7d32"}},{id:"indigo",name:"Indigo Violet",snap:{primaryHex:"#3949ab",secondaryHex:"#7c4dff",iconColor:"#3949ab"}},{id:"slate",name:"Graphite",snap:{primaryHex:"#455a64",secondaryHex:"#78909c",iconColor:"#455a64"}},{id:"teal",name:"Ocean Teal",snap:{primaryHex:"#00838f",secondaryHex:"#0277bd",iconColor:"#00838f"}},{id:"amber",name:"Amber",snap:{primaryHex:"#e65100",secondaryHex:"#d84315",iconColor:"#e65100"}}];function QE(){var i,s;const t=ke(c=>c.settings),a=ke(c=>c.savedThemes),o=((i=cu.find(c=>c.id===t.presetId))==null?void 0:i.name)||((s=a.find(c=>c.id===t.presetId))==null?void 0:s.name)||"Custom Theme";return Ba(c=>c.previewScreen),d.jsxs(te,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:.75,borderTop:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:[d.jsx(Et,{variant:"caption",sx:{color:"text.secondary",fontWeight:600},children:"Theme Studio · OmniEye"}),d.jsxs(Et,{variant:"caption",sx:{color:"text.disabled"},children:[o," · v1.0"]})]})}const ZE=pn(d.jsx("path",{d:"M12 5V3.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V7c3.31 0 6 2.69 6 6 0 2.72-1.83 5.02-4.31 5.75-.42.12-.69.52-.69.95 0 .65.62 1.16 1.25.97C17.57 19.7 20 16.64 20 13c0-4.42-3.58-8-8-8m-6 8c0-1.34.44-2.58 1.19-3.59.3-.4.26-.95-.09-1.31-.42-.42-1.14-.38-1.5.1-1 1.34-1.6 3-1.6 4.8 0 3.64 2.43 6.7 5.75 7.67.63.19 1.25-.32 1.25-.97 0-.43-.27-.83-.69-.95C7.83 18.02 6 15.72 6 13"})),JE=pn(d.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}));function Sa(t){const a=t==="dark";return{studioBg:a?"#15181d":"#f5f7fa",studioBd:a?"#2a2f38":"#d8dee6",card:a?"#1e222a":"#ffffff",cardBd:a?"#2b313b":"#e6eaf0",inset:a?"#262b34":"#f7f9fb",insetBd:a?"#363d48":"#e9edf2",divider:a?"#262b34":"#f0f3f7",iconTile:a?"#2b313b":"#eef1f6",text:a?"rgba(255,255,255,0.92)":"#1c2127",label:a?"rgba(255,255,255,0.5)":"#9aa4b0",label2:a?"rgba(255,255,255,0.6)":"#7a8593",body:a?"rgba(255,255,255,0.78)":"#5a6573",muted:a?"rgba(255,255,255,0.42)":"#aeb6c0",chevron:a?"rgba(255,255,255,0.42)":"#b3bcc7"}}function e6({icon:t,title:a,info:o,open:i,dimmed:s,onToggle:c,onPreviewMenu:f,children:h}){const m=ke(z=>z.settings),g=m.mode==="dark",y=m.primaryHex||"#1565c0",x=Sa(m.mode),T=Wn(y),v=Bh(m),w=i?g?Lt(y,.22):Lt(y,.1):"transparent",S=i?g?T[200]:T[700]:x.text,R=i?y:x.chevron;return d.jsxs(te,{sx:{background:w,opacity:s?.1:1,transform:i?"translateY(-2px)":"none",transition:"opacity .22s ease, transform .22s ease",borderBottom:`1px solid ${x.divider}`,overflow:"hidden"},children:[d.jsxs(te,{component:"button",onClick:c,sx:{width:"100%",display:"flex",alignItems:"center",gap:"9px",p:"7px 11px",background:"transparent",border:"none",textAlign:"left",cursor:"pointer",fontFamily:"inherit"},children:[d.jsx(te,{sx:{width:32,height:32,borderRadius:"10px",background:x.iconTile,color:x.body,display:"grid",placeItems:"center",flexShrink:0,position:"relative"},children:t}),d.jsx(te,{sx:{flex:1,minWidth:0},children:d.jsx(te,{sx:{fontSize:`${v.tH5}px`,fontWeight:v.wH5,fontFamily:`${v.headFam},sans-serif`,lineHeight:1.25,color:S,letterSpacing:"-.2px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a})}),f&&d.jsx(te,{component:"span",title:"Change preview screen",onClick:z=>{z.stopPropagation(),f()},sx:{width:16,height:16,mr:"6px",flexShrink:0,cursor:"pointer",display:"grid",placeItems:"center",color:x.chevron,transition:"filter .15s ease, transform .1s ease","&:hover":{filter:"brightness(1.15)",transform:"scale(1.12)"}},children:d.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[d.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),d.jsx("path",{d:"M8 21h8M12 17v4"})]})}),o&&d.jsx(te,{component:"span",title:o,sx:{width:15,height:15,borderRadius:"50%",border:`1.2px solid ${x.chevron}`,color:x.chevron,fontSize:"9px",fontWeight:800,fontStyle:"italic",fontFamily:"Georgia, serif",display:"grid",placeItems:"center",mr:"7px",flexShrink:0,cursor:"help"},children:"i"}),d.jsx(te,{sx:{width:20,height:20,borderRadius:"6px",display:"grid",placeItems:"center",fontSize:"9px",color:R,flexShrink:0,transition:"background .18s, border-color .18s"},children:d.jsx(te,{component:"span",sx:{display:"block",lineHeight:1,transform:i?"rotate(180deg)":"none",transition:"transform .2s"},children:"▼"})})]}),d.jsx(Op,{in:i,unmountOnExit:!0,timeout:280,children:d.jsx(te,{sx:{p:"2px 13px 12px",borderTop:`1px solid ${x.divider}`},children:h})})]})}function ha(){const t=ke(a=>a.settings);return M.useMemo(()=>Bh(t),[t])}function Ro({tabs:t,active:a,onChange:o}){const i=ke(T=>T.settings.mode),s=ke(T=>T.settings.primaryHex)||"#1565c0",c=ke(T=>T.settings.highlightHex)||"#ffd400",f=ke(T=>T.settings.bodyWeight)||400,h=i==="dark",m=Math.min(900,f+200),g=ha(),y=h?"#e6edf3":"#1c2127",x=h?"#cdd4de":"#5a6573";return d.jsx(te,{sx:{display:"flex",gap:"2px",mb:"2px",px:"2px",borderBottom:"1.5px solid rgba(120,130,145,0.5)"},children:t.map(T=>{const v=T.key===a,w=d.jsx(xa,{onClick:()=>o(T.key),disableRipple:!0,sx:{flex:1,minWidth:0,px:"4px",pt:"9px",pb:"8px",borderRadius:"6px 6px 0 0",mb:"-1px",fontSize:`${g.tBodySm}px`,fontFamily:`${g.bodyFam},sans-serif`,fontWeight:v?m:f,letterSpacing:".2px",textTransform:"none",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:v?y:x,opacity:v?1:.3,bgcolor:v?Lt(c,h?.26:.18):"transparent",borderBottom:v?`3px solid ${s}`:"2px solid transparent",transition:"color .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease","&:hover":v?{bgcolor:Lt(c,h?.26:.18)}:{opacity:1,bgcolor:"rgba(150,160,175,0.35)",borderRadius:"8px",boxShadow:"0 6px 18px rgba(0,0,0,0.35)",transform:"translateY(-2px)"}},children:T.label},T.key);return T.info?d.jsx(kn,{title:T.info,arrow:!0,children:w},T.key):w})})}function t6(){var B,F;const[t,a]=M.useState("presets"),o=ke(_=>_.settings),i=o.mode==="dark",s=Sa(o.mode),c=o.highlightHex||"#ffd400",f=Lt(c,i?.3:.18),h=i?"#e6edf3":"#1c2127",m=i?"rgba(255,255,255,0.82)":"#2c333d",g=ke(_=>_.savedThemes),y=ke(_=>_.applyPreset),x=ke(_=>_.applySaved),T=ke(_=>_.saveTheme),v=ke(_=>_.renameSaved),w=ke(_=>_.deleteSaved),S=ke(_=>_.importTheme),R=ke(_=>_.set),z=ke(_=>_.isDirty),D=(_,V)=>{const ce=new Blob([JSON.stringify({name:_,snap:V},null,2)],{type:"application/json"}),E=URL.createObjectURL(ce),W=document.createElement("a");W.href=E,W.download=`${_.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}.theme.json`,W.click(),URL.revokeObjectURL(E)},O=_=>{var E;const V=(E=_.target.files)==null?void 0:E[0];if(!V)return;const ce=new FileReader;ce.onload=()=>{try{const W=JSON.parse(ce.result),Q=W.snap??W;S(W.name||"Imported Theme",Q)}catch{}},ce.readAsText(V),_.target.value=""},[j,k]=M.useState(null),[H,N]=M.useState(!1),[L,q]=M.useState(""),[I,Y]=M.useState(null),[C,$]=M.useState(null),P=((B=cu.find(_=>_.id===o.presetId))==null?void 0:B.name)||((F=g.find(_=>_.id===o.presetId))==null?void 0:F.name)||"Custom Theme",X=(_,V)=>{const ce=_.trim();return ce?g.some(E=>E.name.toLowerCase()===ce.toLowerCase()&&E.id!==V)?"Name already exists":"":"Name required"};return d.jsxs(d.Fragment,{children:[d.jsx(Ro,{active:t,onChange:a,tabs:[{key:"presets",label:"Presets",info:"Ready-made colour themes."},{key:"saved",label:"My Themes",info:"Your saved custom themes."},{key:"mode",label:"Mode",info:"Light / Dark."}]}),d.jsxs(te,{sx:{p:"12px 2px 2px"},children:[t==="presets"&&d.jsx(te,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"9px"},children:cu.map(_=>{const V=o.presetId===_.id;return d.jsxs(te,{onClick:()=>y(_.id,_.snap),title:`${_.name} — applies this colour palette`,sx:{display:"flex",alignItems:"center",gap:"9px",p:"9px 10px",borderRadius:"11px",cursor:"pointer",textAlign:"left",border:`1px solid ${V?c:i?"#363d48":"#e3e8ee"}`,bgcolor:V?f:i?"#262b34":"#ffffff",transition:"all .14s ease"},children:[d.jsxs(te,{sx:{display:"flex",flexDirection:"column",gap:"2px",flexShrink:0},children:[d.jsx(te,{sx:{width:20,height:11,borderRadius:"3px",bgcolor:_.snap.primaryHex}}),d.jsx(te,{sx:{width:20,height:7,borderRadius:"2px",bgcolor:_.snap.secondaryHex}})]}),d.jsx(te,{component:"span",sx:{fontSize:"11px",fontWeight:600,color:V?h:m,lineHeight:1.3},children:_.name})]},_.id)})}),t==="saved"&&d.jsxs(te,{sx:{display:"flex",flexDirection:"column",gap:1},children:[g.length===0&&d.jsx(Et,{variant:"caption",sx:{color:"text.secondary",py:2,textAlign:"center"},children:"No saved themes yet."}),d.jsx(te,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:.9},children:g.map(_=>{const V=o.presetId===_.id;return d.jsxs(te,{onClick:()=>x(_),title:"Apply this saved theme",sx:{display:"flex",flexDirection:"column",gap:.9,p:"9px 10px",borderRadius:"11px",cursor:"pointer",border:`1px solid ${V?c:i?"#363d48":"#e3e8ee"}`,bgcolor:V?f:i?"#262b34":"#ffffff",transition:"all .14s ease"},children:[d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsxs(te,{sx:{display:"flex",flexDirection:"column",gap:"2px",flexShrink:0},children:[d.jsx(te,{sx:{width:20,height:11,borderRadius:"3px",bgcolor:_.snap.primaryHex}}),d.jsx(te,{sx:{width:20,height:7,borderRadius:"2px",bgcolor:_.snap.secondaryHex}})]}),d.jsx(te,{component:"span",sx:{flex:1,minWidth:0,fontSize:"11px",fontWeight:600,color:V?h:m,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:_.name})]}),d.jsx(te,{sx:{display:"flex",justifyContent:"flex-end"},children:d.jsx(te,{component:"span",onClick:ce=>{ce.stopPropagation(),k({el:ce.currentTarget,id:_.id})},sx:{cursor:"pointer",color:s.muted,px:.5},children:"⋮"})})]},_.id)})}),d.jsxs(te,{sx:{display:"flex",gap:1,mt:1},children:[d.jsxs(xa,{size:"small",variant:"outlined",component:"label",sx:{flex:1,textTransform:"none"},children:["↑ Import",d.jsx("input",{hidden:!0,type:"file",accept:".json,application/json",onChange:O})]}),d.jsx(xa,{size:"small",variant:"outlined",onClick:()=>D(P,o),sx:{flex:1,textTransform:"none"},children:"⤓ Download"}),d.jsx(xa,{size:"small",variant:"contained",disabled:!z(),onClick:()=>{q(""),N(!0)},sx:{flex:1,textTransform:"none"},children:"+ Save"})]})]}),t==="mode"&&d.jsx(te,{sx:{display:"flex",gap:1},children:["light","dark"].map(_=>d.jsx(xa,{onClick:()=>R({mode:_}),variant:o.mode===_?"contained":"outlined",sx:{flex:1,textTransform:"capitalize"},children:_},_))})]}),d.jsxs(Rv,{open:!!j,anchorEl:j==null?void 0:j.el,onClose:()=>k(null),children:[d.jsx(yi,{onClick:()=>{const _=g.find(V=>V.id===j.id);x(_),k(null)},children:"✏️ Edit"}),d.jsx(yi,{onClick:()=>{const _=g.find(V=>V.id===j.id);Y({id:_.id,name:_.name}),k(null)},children:"✎ Rename"}),d.jsx(yi,{onClick:()=>{const _=g.find(V=>V.id===j.id);$({id:_.id,name:_.name}),k(null)},children:"🗑 Delete"}),d.jsx(yi,{onClick:()=>{const _=g.find(V=>V.id===j.id);D(_.name,_.snap),k(null)},children:"⤓ Download"})]}),d.jsxs(Xc,{open:H,onClose:()=>N(!1),children:[d.jsx(mp,{children:"Save theme"}),d.jsx(hp,{children:d.jsx(tx,{autoFocus:!0,fullWidth:!0,size:"small",label:"Theme name",value:L,onChange:_=>q(_.target.value),error:!!X(L),helperText:X(L),sx:{mt:1}})}),d.jsxs(pp,{children:[d.jsx(xa,{onClick:()=>N(!1),children:"Cancel"}),d.jsx(xa,{variant:"contained",disabled:!!X(L),onClick:()=>{T(L.trim()),N(!1)},children:"Save"})]})]}),d.jsxs(Xc,{open:!!I,onClose:()=>Y(null),children:[d.jsx(mp,{children:"Rename theme"}),d.jsx(hp,{children:d.jsx(tx,{autoFocus:!0,fullWidth:!0,size:"small",label:"New name",value:(I==null?void 0:I.name)??"",onChange:_=>Y(V=>V&&{...V,name:_.target.value}),error:!!(I&&X(I.name,I.id)),helperText:I?X(I.name,I.id):"",sx:{mt:1}})}),d.jsxs(pp,{children:[d.jsx(xa,{onClick:()=>Y(null),children:"Cancel"}),d.jsx(xa,{variant:"contained",disabled:!!(I&&X(I.name,I.id)),onClick:()=>{v(I.id,I.name.trim()),Y(null)},children:"Rename"})]})]}),d.jsxs(Xc,{open:!!C,onClose:()=>$(null),children:[d.jsx(mp,{children:"Delete theme"}),d.jsx(hp,{children:d.jsxs(Et,{variant:"body2",children:["Delete “",C==null?void 0:C.name,"”? This cannot be undone."]})}),d.jsxs(pp,{children:[d.jsx(xa,{onClick:()=>$(null),children:"Cancel"}),d.jsx(xa,{color:"error",variant:"contained",onClick:()=>{w(C.id),$(null)},children:"Delete"})]})]})]})}function n6({tip:t,sk:a}){return d.jsx(te,{component:"span",title:t,sx:{width:13,height:13,borderRadius:"50%",border:`1.1px solid ${a.chevron}`,color:a.chevron,fontSize:8,fontWeight:800,fontStyle:"italic",fontFamily:"Georgia, serif",display:"inline-grid",placeItems:"center",flexShrink:0,cursor:"help",verticalAlign:"middle"},children:"i"})}function mo({children:t,tip:a,sk:o,mt:i}){const s=ha();return d.jsxs(te,{sx:{fontSize:`${s.tCaption}px`,fontWeight:s.bwEmph,fontFamily:`${s.bodyFam},sans-serif`,color:o.label2,textTransform:"uppercase",letterSpacing:".5px",mb:"6px",mt:i?`${i}px`:0,display:"flex",alignItems:"center",gap:"5px"},children:[t,a&&d.jsx(n6,{tip:a,sk:o})]})}function hi({value:t,onChange:a,w:o=30,h:i=24,r:s=7,border:c,sk:f}){return d.jsx(te,{sx:{width:o,height:i,borderRadius:`${s}px`,position:"relative",overflow:"hidden",flexShrink:0,background:t,border:c?`1px solid ${f.insetBd}`:"none"},children:d.jsx(te,{component:"input",type:"color",value:t,onChange:h=>a(h.target.value),sx:{position:"absolute",top:-4,left:-4,width:o+10,height:i+10,opacity:0,cursor:"pointer",border:"none",p:0}})})}function a6(){const[t,a]=M.useState("brand"),o=ke(S=>S.settings),i=ke(S=>S.set),s=Sa(o.mode),c=ha(),f={fontSize:"11.5px",color:s.body,fontWeight:600},h={fontSize:`${c.tBodySm}px`,color:s.body,fontWeight:c.bodyWeightEff,fontFamily:`${c.bodyFam},sans-serif`,lineHeight:c.bodyLH},m=o.primaryHex||"#1565c0",g=Wn(m),y=[50,100,200,300,400,500,600,700,800,900].map(S=>g[S]),x=S=>i({...S,presetId:"custom"}),T=[{key:"h1Color",label:"H1 · Page Title"},{key:"h2Color",label:"H2 · Metric"},{key:"h3Color",label:"H3 · Card Title"},{key:"h4Color",label:"H4 · Section Label"},{key:"h5Color",label:"H5 · Caption"},{key:"h6Color",label:"H6 · Overline"}],v=[{key:"successHex",label:"Success"},{key:"warningHex",label:"Warning"},{key:"infoHex",label:"Info"},{key:"errorHex",label:"Error"}],w=[{key:"cardBgHex",label:"Card background",fb:"#ffffff"},{key:"cardHdrHex",label:"Card header",fb:"#f6f8fb"},{key:"pageBgHex",label:"Page background",fb:"#f4f6f9"},{key:"notifCardHex",label:"Notification background",fb:"#ffffff"}];return d.jsxs(te,{sx:{display:"flex",flexDirection:"column",gap:"11px"},children:[d.jsx(Ro,{active:t,onChange:a,tabs:[{key:"brand",label:"Brand",info:"Core brand colours — primary, secondary and the selection highlight colour used across the app."},{key:"text",label:"Text",info:"Heading and body text colours"},{key:"status",label:"Status",info:"Status colours & surface overrides"}]}),d.jsxs(te,{sx:{p:"12px 2px 2px",display:"flex",flexDirection:"column",gap:"11px"},children:[t==="brand"&&d.jsxs(te,{sx:{display:"flex",flexDirection:"column",gap:"11px"},children:[d.jsxs(te,{children:[d.jsx(mo,{sk:s,tip:"Primary brand colour — main/filled buttons, active sidebar item, links, focus rings, first chart series, and the login Sign-in button.",children:"Brand Color"}),d.jsxs(te,{sx:{position:"relative",height:46,borderRadius:"11px",background:m,overflow:"hidden",display:"flex",alignItems:"center",px:"14px",boxShadow:`0 3px 10px ${m}44`},children:[d.jsxs(te,{component:"span",sx:{color:"rgba(255,255,255,.85)",fontSize:"12.5px",fontWeight:700,pointerEvents:"none"},children:[m," · tap to change"]}),d.jsx(te,{component:"input",type:"color",value:m,onChange:S=>x({primaryHex:S.target.value}),sx:{position:"absolute",inset:0,width:"100%",height:"100%",opacity:0,cursor:"pointer",border:"none",p:0}})]}),d.jsx(te,{sx:{display:"flex",gap:"2px",borderRadius:"7px",overflow:"hidden",height:14,mt:"7px"},children:y.map((S,R)=>d.jsx(te,{sx:{flex:1,background:S}},R))})]}),d.jsxs(te,{children:[d.jsx(mo,{sk:s,tip:"Secondary accent — secondary/outlined buttons, switches & toggles, selected chips, and the second data series in charts.",children:"Secondary / Accent"}),d.jsx(te,{sx:{position:"relative",height:34,borderRadius:"9px",background:o.secondaryHex,overflow:"hidden"},children:d.jsx(te,{component:"input",type:"color",value:o.secondaryHex,onChange:S=>x({secondaryHex:S.target.value}),sx:{position:"absolute",inset:0,width:"100%",height:"100%",opacity:0,cursor:"pointer",border:"none",p:0}})})]}),d.jsxs(te,{children:[d.jsx(mo,{sk:s,tip:"Accent colour used to draw attention — highlight panels, featured badges, callouts. Defaults to the brand colour.",children:"Highlight Colour"}),d.jsx(te,{sx:{position:"relative",height:34,borderRadius:"8px",background:o.highlightHex||"#ffd400",overflow:"hidden",border:`1px solid ${s.insetBd}`},children:d.jsx(te,{component:"input",type:"color",value:o.highlightHex||"#ffd400",onChange:S=>x({highlightHex:S.target.value}),sx:{position:"absolute",inset:0,width:"100%",height:"100%",opacity:0,cursor:"pointer",border:"none",p:0}})})]})]}),t==="text"&&d.jsxs(te,{sx:{display:"flex",flexDirection:"column",gap:"11px"},children:[d.jsx(mo,{sk:s,children:"Heading Text Colors"}),d.jsx(te,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"9px"},children:T.map(S=>d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:"9px"},children:[d.jsx(hi,{sk:s,border:!0,value:o[S.key]||"#1c2127",onChange:R=>i({[S.key]:R})}),d.jsx(te,{component:"span",sx:h,children:S.label})]},S.key))}),d.jsx(mo,{sk:s,children:"Body Text Colors"}),d.jsxs(te,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"7px"},children:[d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:"9px"},children:[d.jsx(hi,{sk:s,border:!0,value:o.textPrimaryHex||"#1c2127",onChange:S=>i({textPrimaryHex:S})}),d.jsx(te,{component:"span",sx:f,title:"Main body text colour.",children:"Primary Text"})]}),d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:"9px"},children:[d.jsx(hi,{sk:s,border:!0,value:o.textSecondaryHex||"#5a6573",onChange:S=>i({textSecondaryHex:S})}),d.jsx(te,{component:"span",sx:f,title:"Muted text colour.",children:"Secondary Text"})]}),d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:"9px"},children:[d.jsx(hi,{sk:s,border:!0,value:o.dividerHex||"#e3e8ee",onChange:S=>i({dividerHex:S})}),d.jsx(te,{component:"span",sx:f,title:"Divider / border colour.",children:"Divider"})]})]})]}),t==="status"&&d.jsxs(te,{sx:{display:"flex",flexDirection:"column",gap:"7px"},children:[d.jsxs(te,{children:[d.jsx(mo,{sk:s,tip:"Success, warning, error & info colours — used for alerts, status pills, toasts and validation states.",children:"Status Colors"}),d.jsx(te,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"7px"},children:v.map(S=>d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:"8px",background:s.card,border:`1px solid ${s.insetBd}`,borderRadius:"9px",px:"9px",py:"7px"},children:[d.jsx(hi,{sk:s,w:22,h:22,r:6,value:o[S.key],onChange:R=>i({[S.key]:R})}),d.jsx(te,{component:"span",sx:f,children:S.label})]},S.key))})]}),d.jsxs(te,{children:[d.jsx(mo,{sk:s,tip:"Override the auto-generated surface colours. Leave on Auto to follow the surface tint & mode.",children:"Surfaces"}),d.jsx(te,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"7px"},children:w.map(S=>{const R=!!o[S.key];return d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:"8px",background:s.card,border:`1px solid ${s.insetBd}`,borderRadius:"9px",px:"9px",py:"5px"},children:[d.jsx(hi,{sk:s,w:22,h:22,r:6,border:!0,value:o[S.key]||S.fb,onChange:z=>i({[S.key]:z})}),d.jsx(te,{component:"span",sx:{...f,flex:1},children:S.label}),R&&d.jsx(te,{component:"button",title:"Reset to Auto",onClick:()=>i({[S.key]:""}),sx:{background:"transparent",border:`1px solid ${s.insetBd}`,borderRadius:"6px",color:s.muted,fontSize:"10px",fontWeight:700,px:"7px",py:"3px",cursor:"pointer"},children:"Auto"})]},S.key)})})]})]})]})]})}function an(t){const{label:a,info:o,value:i,effective:s,min:c,max:f,step:h=1,unit:m="",autoLabel:g,softMin:y,softMax:x,extra:T,onChange:v}=t,w=Sa(ke(q=>q.settings.mode)),S=ha(),R=`${S.bodyFam},sans-serif`,[z,D]=M.useState(!1),[O,j]=M.useState(String(s)),[k,H]=M.useState("");M.useEffect(()=>{z||j(String(s))},[s,z]);const N=q=>{const I=parseFloat(q);if(isNaN(I)){H("Enter a number");return}y!=null&&I<y?H(`Below ${y}${m} may break the UI`):x!=null&&I>x?H(`Above ${x}${m} may break the UI`):H(""),v(I)},L=i===0&&g?g:`${s}${m}`;return d.jsxs(te,{sx:{mb:1.5},children:[d.jsxs(te,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:"8px"},children:[d.jsxs(Et,{sx:{fontSize:`${S.tBodySm}px`,fontWeight:S.bwEmph,fontFamily:R,lineHeight:S.bodyLH,color:w.label2,display:"flex",alignItems:"center",gap:"5px"},children:[a,o&&d.jsx(kn,{title:o,arrow:!0,children:d.jsx(te,{component:"span",sx:{width:13,height:13,borderRadius:"50%",border:`1.1px solid ${w.chevron}`,color:w.chevron,fontSize:8,fontWeight:800,fontStyle:"italic",fontFamily:"Georgia, serif",display:"inline-grid",placeItems:"center",cursor:"help"},children:"i"})})]}),d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:"5px",flexShrink:0},children:[z?d.jsx(ls,{autoFocus:!0,value:O,onChange:q=>j(q.target.value),onBlur:()=>{N(O),D(!1)},onKeyDown:q=>{q.key==="Enter"&&(N(O),D(!1)),q.key==="Escape"&&D(!1)},sx:{width:56,fontSize:`${S.tBodySm}px`,fontWeight:700,fontFamily:R,border:"1.5px solid",borderColor:"primary.main",borderRadius:"6px",px:"6px",py:"3px","& input":{p:0,textAlign:"center"}}}):d.jsxs(te,{component:"button",onClick:()=>{j(String(s)),D(!0)},sx:{display:"inline-flex",alignItems:"center",gap:"5px",fontFamily:R,fontSize:`${S.tBodySm}px`,fontWeight:800,color:w.body,bgcolor:"rgba(130,140,155,0.14)",border:"1px solid rgba(130,140,155,0.28)",borderRadius:"6px",px:"7px",py:"2px",cursor:"pointer",lineHeight:1.3,"&:hover":{bgcolor:"rgba(130,140,155,0.24)"}},children:[L,d.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"block",flexShrink:0},children:[d.jsx("path",{d:"M12 20h9"}),d.jsx("path",{d:"M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z"})]})]}),T]})]}),d.jsx(te,{component:"input",type:"range",min:c,max:f,step:h,value:s,onChange:q=>{H(""),v(parseFloat(q.target.value))},sx:{WebkitAppearance:"none",appearance:"none",width:"100%",height:"4px",m:0,p:0,display:"block",borderRadius:"2px",outline:"none",cursor:"pointer",background:"#dde3ea",accentColor:"primary.main","&::-webkit-slider-thumb":{WebkitAppearance:"none",width:18,height:18,borderRadius:"50%",background:"#fff",cursor:"pointer",boxShadow:"0 1px 4px rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.05)"},"&::-moz-range-thumb":{width:18,height:18,border:"none",borderRadius:"50%",background:"#fff",cursor:"pointer",boxShadow:"0 1px 4px rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.05)"}}}),k&&d.jsx(Et,{variant:"caption",sx:{color:"warning.main",fontSize:10},children:k})]})}const r6=[{key:"Roboto",label:"Roboto",sub:"Material"},{key:"Inter",label:"Inter",sub:"Enterprise"},{key:"DM Sans",label:"DM Sans",sub:"Modern"},{key:"Manrope",label:"Manrope",sub:"Geometric"},{key:"Plus Jakarta Sans",label:"Jakarta",sub:"Friendly"},{key:"Nunito Sans",label:"Nunito",sub:"Rounded"}],o6=[{key:"Figtree",label:"Google Sans"},{key:"Roboto",label:"Roboto"},{key:"Inter",label:"Inter"},{key:"Arial",label:"Arial"},{key:"Manrope",label:"Manrope"},{key:"Plus Jakarta Sans",label:"Jakarta"}];function Ic({label:t,fam:a,active:o,onClick:i}){const s=ke(y=>y.settings.mode),c=ke(y=>y.settings.primaryHex)||"#1565c0",f=ke(y=>y.settings.highlightHex)||"#ffd400",h=s==="dark",m=Wn(c),g=Lt(f,h?.3:.18);return d.jsx(te,{onClick:i,sx:{py:"17px",px:"4px",borderRadius:"10px",textAlign:"center",cursor:"pointer",border:`1px solid ${o?h?m[400]:c:h?"#363d48":"#e3e8ee"}`,bgcolor:o?g:h?"#262b34":"#ffffff",transition:"all .14s ease","&:hover":o?{}:{borderColor:h?"#4a5361":"#c9d0d9"}},children:d.jsx(te,{sx:{fontFamily:`${a}, sans-serif`,fontSize:13,fontWeight:700,lineHeight:1,color:o?h?m[200]:m[700]:h?"#aeb6c0":"#5a6573"},children:t})})}function rx({label:t,current:a,onLoad:o}){const i=Sa(ke(c=>c.settings.mode)),s=c=>{var y;const f=(y=c.target.files)==null?void 0:y[0];if(!f)return;const h=f.name.replace(/\.[^.]+$/,""),m=URL.createObjectURL(f),g=document.createElement("style");g.textContent=`@font-face{font-family:'${h}';src:url('${m}');font-display:swap;}`,document.head.appendChild(g),o(h,m)};return d.jsxs(te,{sx:{mt:1.5},children:[d.jsxs(te,{component:"label",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.75,bgcolor:i.inset,border:`1.5px dashed ${i.insetBd}`,borderRadius:"9px",p:1.5,cursor:"pointer",color:i.body,fontSize:11.5,fontWeight:600,textAlign:"center"},children:["⬆ ",t,d.jsx(te,{component:"span",sx:{color:i.muted},children:".woff2 / .ttf / .otf"}),d.jsx("input",{type:"file",accept:".woff2,.woff,.ttf,.otf",onChange:s,style:{display:"none"}})]}),a&&d.jsxs(te,{sx:{mt:.9,display:"flex",alignItems:"center",gap:.9,bgcolor:"success.main",borderRadius:2,px:1.4,py:.9,color:"success.contrastText"},children:[d.jsx(te,{component:"span",sx:{fontWeight:900,fontSize:12},children:"✓"}),d.jsxs(te,{component:"span",sx:{fontSize:11.5},children:["Loaded: ",d.jsx("b",{children:a})]})]})]})}const i6={compact:1.15,default:1.25,airy:1.414};function l6(){const t=ke(g=>g.settings),a=ke(g=>g.set),o=Sa(t.mode),[i,s]=M.useState(!1),c=t.scaleRatioCustom>0?t.scaleRatioCustom:i6[t.scaleRatio]??1.25,[f,h]=M.useState(c.toFixed(2));M.useEffect(()=>{i||h(c.toFixed(2))},[c,i]);const m=()=>{const g=parseFloat(f);isNaN(g)||a({scaleRatioCustom:g}),s(!1)};return i?d.jsx(ls,{autoFocus:!0,value:f,onChange:g=>h(g.target.value),onBlur:m,onKeyDown:g=>{g.key==="Enter"&&m(),g.key==="Escape"&&s(!1)},sx:{width:56,fontSize:"11.5px",fontWeight:700,border:"1.5px solid",borderColor:"primary.main",borderRadius:"6px",px:"6px",py:"3px","& input":{p:0,textAlign:"center"}}}):d.jsx(te,{component:"button",title:"Configure scale ratio — each heading is the one above ÷ this value",onClick:()=>{h(c.toFixed(2)),s(!0)},sx:{display:"inline-grid",placeItems:"center",color:o.body,bgcolor:"rgba(130,140,155,0.14)",border:"1px solid rgba(130,140,155,0.28)",borderRadius:"6px",px:"6px",py:"3px",cursor:"pointer","&:hover":{bgcolor:"rgba(130,140,155,0.24)"}},children:d.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"block"},children:[d.jsx("circle",{cx:"12",cy:"12",r:"3"}),d.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]})})}function s6(){const[t,a]=M.useState("bodyFont"),o=ke(s=>s.settings),i=ke(s=>s.set);return d.jsxs(d.Fragment,{children:[d.jsx(Ro,{active:t,onChange:a,tabs:[{key:"bodyFont",label:"Body Font",info:"Typeface used for body / paragraph text (headings use the Heading Font)"},{key:"headFont",label:"Heading Font",info:"Choose a separate typeface for headings (or match the body font)"},{key:"headText",label:"Heading Text",info:"Fine-tune size & weight per heading level (H1–H4)"},{key:"bodyText",label:"Body Text",info:"Adjust base font size and line height for body copy"}]}),d.jsxs(te,{sx:{p:"12px 2px 2px"},children:[t==="bodyFont"&&d.jsxs(d.Fragment,{children:[d.jsxs(te,{sx:{display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:"10px"},children:[r6.map(s=>d.jsx(Ic,{label:s.label,sub:s.sub,fam:s.key,active:o.fontFamily===s.key,onClick:()=>i({fontFamily:s.key})},s.key)),o.customFont&&d.jsx(Ic,{label:o.customFont,sub:"Custom",fam:o.customFont,active:o.fontFamily===o.customFont,onClick:()=>i({fontFamily:o.customFont})})]}),d.jsx(rx,{label:"Upload custom font",current:o.customFont,onLoad:s=>i({customFont:s,fontFamily:s})})]}),t==="headFont"&&d.jsxs(d.Fragment,{children:[d.jsxs(te,{sx:{display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:"10px"},children:[o6.map(s=>d.jsx(Ic,{label:s.label,fam:s.key,active:o.headingFont===s.key,onClick:()=>i({headingFont:s.key})},s.key)),o.customHeadFont&&d.jsx(Ic,{label:o.customHeadFont,sub:"Custom",fam:o.customHeadFont,active:o.headingFont===o.customHeadFont,onClick:()=>i({headingFont:o.customHeadFont})})]}),d.jsx(rx,{label:"Upload heading font",current:o.customHeadFont,onLoad:s=>i({customHeadFont:s,headingFont:s})})]}),t==="headText"&&d.jsxs(d.Fragment,{children:[d.jsx(an,{label:"H1 size",info:"All heading levels scale from H1 by a modular ratio (configurable via the gear icon).",value:o.h1Size,effective:o.h1Size||20,min:18,max:56,unit:"px",extra:d.jsx(l6,{}),onChange:s=>i({h1Size:s})}),d.jsx(an,{label:"Weight (all headings)",value:o.headingWeight,effective:o.headingWeight,min:300,max:900,step:100,onChange:s=>i({headingWeight:s})}),d.jsx(an,{label:"Line height (all headings)",value:o.headingLH,effective:o.headingLH||1.2,min:.9,max:2,step:.05,autoLabel:"Auto (1.20)",onChange:s=>i({headingLH:s})})]}),t==="bodyText"&&d.jsxs(d.Fragment,{children:[d.jsx(an,{label:"Base font size",info:"Root body text size.",value:o.baseFontPx,effective:o.baseFontPx||12,min:9,max:20,unit:"px",softMin:9,onChange:s=>i({baseFontPx:s})}),d.jsx(an,{label:"Body weight",value:o.bodyWeight,effective:o.bodyWeight||400,min:300,max:900,step:100,autoLabel:"Auto (400)",onChange:s=>i({bodyWeight:s})}),d.jsx(an,{label:"Body line height",value:o.bodyLineHeight,effective:o.bodyLineHeight||1.5,min:1.2,max:2,step:.05,autoLabel:"Auto (1.50)",onChange:s=>i({bodyLineHeight:s})})]})]})]})}function qn({options:t,value:a,columns:o=3,onChange:i}){const s=ke(z=>z.settings.mode),c=ke(z=>z.settings.primaryHex)||"#1565c0",f=ke(z=>z.settings.highlightHex)||"#ffd400",h=ke(z=>z.settings.bodyWeight)||400,m=s==="dark",g=Wn(c),y=Math.min(900,h+200),x=Lt(f,m?.3:.18),T=m?g[400]:c,v=m?g[200]:g[700],w=m?"#262b34":"#ffffff",S=m?"#363d48":"#e3e8ee",R=m?"#aeb6c0":"#5a6573";return d.jsx(te,{sx:{display:"grid",gridTemplateColumns:`repeat(${o}, 1fr)`,gap:"6px"},children:t.map(z=>{const D=z.key===a,O=d.jsx(te,{onClick:()=>i(z.key),sx:{py:"9px",px:"4px",borderRadius:"10px",textAlign:"center",cursor:"pointer",userSelect:"none",fontSize:"11px",fontWeight:D?y:h,border:`1px solid ${D?T:S}`,bgcolor:D?x:w,color:D?v:R,transition:"color .14s ease, background .14s ease, border-color .14s ease","&:hover":D?{}:{borderColor:m?"#4a5361":"#c9d0d9"}},children:z.label},z.key);return z.info?d.jsx(kn,{title:z.info,arrow:!0,children:O},z.key):O})})}const c6={outlined:0,soft:6,floating:24},u6={plain:0,tinted:40,accent:60},d6={bordered:0,recessed:6,lighter:4};function f6(){const[t,a]=M.useState("style"),o=ke(m=>m.settings),i=ke(m=>m.set),s=o.cardShadowPx>0?o.cardShadowPx:c6[o.cardStyle]??24,c=o.headerStrength>0?o.headerStrength:u6[o.cardHeader]??45,f=o.nestedDepth>0?o.nestedDepth:d6[o.nestedStyle]??6,h=o.tintIntensity>0?o.tintIntensity:o.surfaceTint==="snow"?0:50;return d.jsxs(d.Fragment,{children:[d.jsx(Ro,{active:t,onChange:a,tabs:[{key:"style",label:"Style",info:"Card border vs shadow depth."},{key:"header",label:"Header",info:"Card header treatment."},{key:"nested",label:"Nested",info:"How cards-within-cards look."},{key:"tint",label:"Tint",info:"Overall surface tint colour & strength."}]}),d.jsxs(te,{sx:{p:"12px 2px 2px"},children:[t==="style"&&d.jsxs(d.Fragment,{children:[d.jsx(qn,{value:o.cardStyle,onChange:m=>i({cardStyle:m}),options:[{key:"outlined",label:"Outlined"},{key:"soft",label:"Soft"},{key:"floating",label:"Floating"}]}),d.jsx(te,{sx:{mt:1.5},children:d.jsx(an,{label:"Shadow depth",info:"Card elevation (px).",value:o.cardShadowPx,effective:s,min:0,max:40,unit:"px",onChange:m=>i({cardShadowPx:m})})})]}),t==="header"&&d.jsxs(d.Fragment,{children:[d.jsx(qn,{value:o.cardHeader,onChange:m=>i({cardHeader:m}),options:[{key:"plain",label:"Plain"},{key:"tinted",label:"Tinted"},{key:"accent",label:"Accent"}]}),d.jsx(te,{sx:{mt:1.5},children:d.jsx(an,{label:"Header strength",info:"Header tint / accent intensity.",value:o.headerStrength,effective:c,min:0,max:100,unit:"%",onChange:m=>i({headerStrength:m})})})]}),t==="nested"&&d.jsxs(d.Fragment,{children:[d.jsx(qn,{value:o.nestedStyle,onChange:m=>i({nestedStyle:m}),options:[{key:"recessed",label:"Recessed"},{key:"lighter",label:"Lighter"},{key:"bordered",label:"Bordered"}]}),d.jsx(te,{sx:{mt:1.5},children:d.jsx(an,{label:"Nested depth",info:"Inset depth of cards-within-cards.",value:o.nestedDepth,effective:f,min:0,max:24,unit:"px",onChange:m=>i({nestedDepth:m})})})]}),t==="tint"&&d.jsxs(d.Fragment,{children:[d.jsx(qn,{value:o.surfaceTint,onChange:m=>i({surfaceTint:m}),options:[{key:"snow",label:"None"},{key:"neutral",label:"Low"},{key:"brand",label:"High"}]}),d.jsx(te,{sx:{mt:1.5},children:d.jsx(an,{label:"Tint intensity",info:"Strength of the page surface tint.",value:o.tintIntensity,effective:h,min:0,max:100,unit:"%",onChange:m=>i({tintIntensity:m})})})]})]})]})}function p6(){const[t,a]=M.useState("rows"),o=ke(s=>s.settings),i=ke(s=>s.set);return d.jsxs(d.Fragment,{children:[d.jsx(Ro,{active:t,onChange:a,tabs:[{key:"rows",label:"Rows",info:"Row density & dividers."},{key:"cols",label:"Columns",info:"Column density & dividers."},{key:"cells",label:"Cells",info:"Cell text & vertical alignment."},{key:"styling",label:"Styling",info:"Header background & row striping."}]}),d.jsxs(te,{sx:{p:"12px 2px 2px"},children:[t==="rows"&&d.jsxs(d.Fragment,{children:[d.jsx(qn,{value:o.tableDensity,onChange:s=>i({tableDensity:s}),options:[{key:"compact",label:"Compact"},{key:"default",label:"Default"},{key:"comfortable",label:"Comfortable"}]}),d.jsx(Il,{sx:{mt:1},control:d.jsx(vi,{checked:o.tableDividers,onChange:s=>i({tableDividers:s.target.checked})}),label:"Row dividers"}),o.tableDividers&&d.jsx(an,{label:"Divider width",value:o.tableRowDivW,effective:o.tableRowDivW,min:1,max:4,unit:"px",onChange:s=>i({tableRowDivW:s})})]}),t==="cols"&&d.jsxs(d.Fragment,{children:[d.jsx(qn,{value:o.tableColDensity,onChange:s=>i({tableColDensity:s}),options:[{key:"compact",label:"Compact"},{key:"default",label:"Default"},{key:"comfortable",label:"Comfortable"}]}),d.jsx(Il,{sx:{mt:1},control:d.jsx(vi,{checked:o.tableColDividers,onChange:s=>i({tableColDividers:s.target.checked})}),label:"Column dividers"}),o.tableColDividers&&d.jsx(an,{label:"Divider width",value:o.tableColDivW,effective:o.tableColDivW,min:1,max:4,unit:"px",onChange:s=>i({tableColDivW:s})})]}),t==="cells"&&d.jsxs(d.Fragment,{children:[d.jsx(qn,{value:o.tableCellAlignH,onChange:s=>i({tableCellAlignH:s}),options:[{key:"left",label:"Left"},{key:"center",label:"Center"},{key:"right",label:"Right"}]}),d.jsx(te,{sx:{mt:1},children:d.jsx(qn,{value:o.tableCellAlignV,onChange:s=>i({tableCellAlignV:s}),options:[{key:"top",label:"Top"},{key:"middle",label:"Middle"},{key:"bottom",label:"Bottom"}]})})]}),t==="styling"&&d.jsxs(d.Fragment,{children:[d.jsx(qn,{value:o.tableHeaderStyle,onChange:s=>i({tableHeaderStyle:s}),options:[{key:"plain",label:"Plain"},{key:"tinted",label:"Tinted"},{key:"accent",label:"Accent"}]}),d.jsx(Il,{sx:{mt:1},control:d.jsx(vi,{checked:o.tableStripe,onChange:s=>i({tableStripe:s.target.checked})}),label:"Striped rows"})]})]})]})}const bp={compact:.82,default:1,comfortable:1.16};function h6(){const[t,a]=M.useState("shape"),o=ke(m=>m.settings),i=ke(m=>m.set),s=Sa(o.mode),c=o.densityScale>0?o.densityScale:Math.round((bp[o.density]??1)*100),f=o.cardGapPx>0?o.cardGapPx:Math.round(16*(bp[o.density]??1)),h=o.containerPadPx>0?o.containerPadPx:Math.round(10*(bp[o.density]??1));return d.jsxs(d.Fragment,{children:[d.jsx(Ro,{active:t,onChange:a,tabs:[{key:"shape",label:"Shape",info:"Corner radius & layout density."},{key:"effects",label:"Effects",info:"Spacing, button case & status chips."}]}),d.jsxs(te,{sx:{p:"12px 2px 2px"},children:[t==="shape"&&d.jsxs(d.Fragment,{children:[d.jsx(Et,{variant:"caption",sx:{fontWeight:700,color:s.label2,textTransform:"uppercase",letterSpacing:".6px",display:"block",mb:.75},children:"Corner Radius"}),d.jsx(qn,{value:o.radiusPreset,onChange:m=>i({radiusPreset:m,radiusVal:m==="sharp"?0:m==="round"?18:9}),options:[{key:"sharp",label:"Sharp"},{key:"rounded",label:"Rounded"},{key:"round",label:"Round"}]}),d.jsx(te,{sx:{mt:1.25},children:d.jsx(an,{label:"Exact radius",value:o.radiusVal,effective:o.radiusVal,min:0,max:28,unit:"px",onChange:m=>i({radiusVal:m,radiusPreset:"rounded"})})}),d.jsx(Et,{variant:"caption",sx:{fontWeight:700,color:s.label2,textTransform:"uppercase",letterSpacing:".6px",display:"block",mb:.75,mt:.5},children:"Density"}),d.jsx(qn,{value:o.densityScale>0?"":o.density,onChange:m=>i({density:m,densityScale:0}),options:[{key:"compact",label:"Compact"},{key:"default",label:"Default"},{key:"comfortable",label:"Comfortable"}]}),d.jsx(te,{sx:{mt:1.25},children:d.jsx(an,{label:"Exact density",info:"Fine-tune spacing scale (%).",value:o.densityScale,effective:c,min:60,max:140,unit:"%",onChange:m=>i({densityScale:m})})})]}),t==="effects"&&d.jsxs(d.Fragment,{children:[d.jsx(an,{label:"Card-to-card gap",value:o.cardGapPx,effective:f,min:0,max:40,step:2,unit:"px",onChange:m=>i({cardGapPx:m})}),d.jsx(an,{label:"Container padding",value:o.containerPadPx,effective:h,min:0,max:40,step:2,unit:"px",onChange:m=>i({containerPadPx:m})}),d.jsx(an,{label:"Edge gap",info:"Space between the preview frame and the outer app card.",value:o.edgePadPx,effective:o.edgePadPx,min:0,max:40,step:2,unit:"px",autoLabel:"0px (flush)",onChange:m=>i({edgePadPx:m})}),d.jsxs(te,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:1},children:[d.jsx(Et,{variant:"caption",sx:{fontWeight:700,color:s.label2},children:"Uppercase button labels"}),d.jsx(vi,{size:"small",checked:o.btnCase==="upper",onChange:m=>i({btnCase:m.target.checked?"upper":"none"})})]}),d.jsxs(te,{sx:{mt:1.25},children:[d.jsx(Et,{variant:"caption",sx:{fontWeight:700,color:s.label2,textTransform:"uppercase",letterSpacing:".6px",display:"block",mb:.75},children:"Status Chips"}),d.jsx(qn,{columns:2,value:o.statusBold?"bold":"soft",onChange:m=>i({statusBold:m==="bold"}),options:[{key:"soft",label:"Soft"},{key:"bold",label:"Bold"}]})]})]})]})]})}function m6(){const[t,a]=M.useState("placement"),o=ke(s=>s.settings),i=ke(s=>s.set);return d.jsxs(d.Fragment,{children:[d.jsx(Ro,{active:t,onChange:a,tabs:[{key:"placement",label:"Placement",info:"Where toasts appear."},{key:"behaviour",label:"Behaviour",info:"Width & auto-dismiss."}]}),d.jsxs(te,{sx:{p:"12px 2px 2px"},children:[t==="placement"&&d.jsx(qn,{columns:2,value:o.notifPosition,onChange:s=>i({notifPosition:s}),options:[{key:"top-center",label:"Top Center"},{key:"top-right",label:"Top Right"},{key:"bottom-left",label:"Bottom Left"},{key:"bottom-right",label:"Bottom Right"}]}),t==="behaviour"&&d.jsxs(d.Fragment,{children:[d.jsx(an,{label:"Toast width",value:o.toastW,effective:o.toastW||252,min:200,max:500,unit:"px",softMax:500,onChange:s=>i({toastW:s})}),d.jsx(Il,{sx:{mt:.5},control:d.jsx(vi,{checked:o.notifBadge,onChange:s=>i({notifBadge:s.target.checked})}),label:"Show unread badge"}),d.jsx(Il,{sx:{mt:.5,display:"flex"},control:d.jsx(vi,{checked:o.notifAutoDismiss,onChange:s=>i({notifAutoDismiss:s.target.checked})}),label:"Auto-dismiss toasts"}),o.notifAutoDismiss&&d.jsx(an,{label:"Dismiss after",value:o.autoDismissSec,effective:o.autoDismissSec||5,min:5,max:30,unit:"s",onChange:s=>i({autoDismissSec:s})})]})]})]})}function g6({label:t,info:a,value:o,fallback:i,onChange:s,onReset:c}){const f=Sa(ke(y=>y.settings.mode)),[h,m]=M.useState(null),g=o||i;return d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:1,py:.5},children:[d.jsx(te,{onClick:y=>m(y.currentTarget),sx:{width:22,height:22,borderRadius:1.5,border:`1px solid ${f.insetBd}`,bgcolor:g,cursor:"pointer",flexShrink:0}}),d.jsxs(Et,{variant:"caption",sx:{flex:1,color:f.body,display:"flex",alignItems:"center",gap:.5},children:[t,a&&d.jsx(kn,{title:a,arrow:!0,children:d.jsx(te,{component:"span",sx:{width:13,height:13,borderRadius:"50%",border:`1.1px solid ${f.chevron}`,color:f.chevron,fontSize:8,fontWeight:800,fontStyle:"italic",fontFamily:"Georgia, serif",display:"inline-grid",placeItems:"center",cursor:"help"},children:"i"})})]}),o&&c&&d.jsx(te,{component:"span",onClick:c,title:"Reset to theme default",sx:{fontSize:13,color:f.muted,cursor:"pointer"},children:"↺"}),d.jsx(Tv,{open:!!h,anchorEl:h,onClose:()=>m(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:d.jsx(te,{sx:{p:1},children:d.jsx("input",{type:"color",value:g,onChange:y=>s(y.target.value),style:{width:160,height:40,border:"none",background:"none"}})})})]})}function y6({src:t,aspect:a,onCancel:o,onConfirm:i}){const[s,c]=M.useState(1),[f,h]=M.useState({x:0,y:0}),m=M.useRef(null),g=M.useRef(null),y=M.useRef(null),x=M.useRef(null);M.useEffect(()=>{const w=R=>{x.current&&h({x:x.current.ox+(R.clientX-x.current.sx),y:x.current.oy+(R.clientY-x.current.sy)})},S=()=>{x.current=null};return document.addEventListener("pointermove",w),document.addEventListener("pointerup",S),()=>{document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",S)}},[]);const T=w=>{w.preventDefault(),x.current={sx:w.clientX,sy:w.clientY,ox:f.x,oy:f.y}},v=()=>{const w=m.current,S=g.current,R=y.current;if(!w||!S){i(t);return}const z=(R||w).getBoundingClientRect(),D=1e3,O=Math.round(D*a),j=O/z.width,k=document.createElement("canvas");k.width=O,k.height=D;const H=k.getContext("2d");if(!H){i(t);return}const N=S.getBoundingClientRect(),L=(N.left-z.left)*j,q=(N.top-z.top)*j,I=N.width*j,Y=N.height*j;try{H.drawImage(S,L,q,I,Y),i(k.toDataURL("image/png"))}catch{i(t)}};return gh.createPortal(d.jsx(te,{sx:{position:"fixed",inset:0,zIndex:1400,bgcolor:"rgba(15,23,42,.6)",display:"flex",alignItems:"center",justifyContent:"center",p:2.25,overflow:"auto"},children:d.jsxs(te,{sx:{width:"100%",maxWidth:320,bgcolor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:3,boxShadow:"0 20px 50px rgba(15,23,42,.4)",p:2},children:[d.jsx(Et,{sx:{fontSize:14,fontWeight:800,mb:.5},children:"Adjust brand image"}),d.jsx(Et,{sx:{fontSize:11.5,color:"text.secondary",mb:1.5,lineHeight:1.45},children:"Drag and zoom to fit your image inside the bright frame. Anything in the dimmed area is cropped out."}),d.jsxs(te,{ref:m,onPointerDown:T,sx:{position:"relative",width:"100%",aspectRatio:"1.55",borderRadius:2.5,overflow:"hidden",bgcolor:"#e9edf2",cursor:"grab",touchAction:"none",display:"grid",placeItems:"center","&:active":{cursor:"grabbing"}},children:[d.jsx("img",{ref:g,src:t,alt:"",draggable:!1,style:{position:"absolute",left:"50%",top:"50%",transform:`translate(-50%,-50%) translate(${f.x}px,${f.y}px) scale(${s})`,transformOrigin:"center",maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",userSelect:"none",pointerEvents:"none"}}),d.jsx(te,{ref:y,sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",height:"72%",aspectRatio:String(a),maxWidth:"90%",boxShadow:"0 0 0 9999px rgba(10,15,25,.62)",border:"2px solid #fff",borderRadius:"3px",pointerEvents:"none"}})]}),d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:1,my:1.5},children:[d.jsx(Et,{sx:{fontSize:12,fontWeight:700,color:"text.secondary"},children:"Zoom"}),d.jsx(lE,{size:"small",min:.3,max:4,step:.02,value:s,onChange:(w,S)=>c(S)})]}),d.jsxs(te,{sx:{display:"flex",gap:1},children:[d.jsx(te,{component:"button",onClick:o,sx:{flex:1,p:1.25,borderRadius:2.5,border:"1px solid",borderColor:"divider",bgcolor:"action.hover",color:"text.secondary",fontSize:12.5,fontWeight:700,cursor:"pointer"},children:"Cancel"}),d.jsx(te,{component:"button",onClick:v,sx:{flex:1,p:1.25,borderRadius:2.5,border:"none",bgcolor:"primary.main",color:"primary.contrastText",fontSize:12.5,fontWeight:700,cursor:"pointer"},children:"Confirm"})]})]})}),document.body)}function b6(){const t=ke(y=>y.settings),a=ke(y=>y.set),o=Sa(t.mode),[i,s]=M.useState(null),c=(y,x)=>{var w;const T=(w=y.target.files)==null?void 0:w[0];if(!T)return;const v=new FileReader;v.onload=()=>s({src:v.result,aspect:x==="logoUrl"?3.5:1.55,target:x}),v.readAsDataURL(T),y.target.value=""},f=y=>{i&&(i.target==="logoUrl"?a({logoUrl:y,logoMode:"image"}):a({loginImage:y}),s(null))},h={fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:".6px"},m={display:"flex",alignItems:"center",justifyContent:"center",gap:1,border:`1.5px dashed ${o.insetBd}`,borderRadius:2.5,p:1.75,cursor:"pointer",color:o.body,fontSize:12.5,fontWeight:600,bgcolor:o.inset},g=(y,x)=>d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:1,mt:1,p:.9,bgcolor:o.inset,border:`1px solid ${o.insetBd}`,borderRadius:2},children:[d.jsx(Et,{variant:"caption",sx:{flex:1,minWidth:0,color:o.body,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:y}),d.jsx(te,{component:"button",onClick:x,title:"Remove",sx:{border:"none",background:"transparent",color:o.muted,cursor:"pointer",fontSize:14},children:"✕"})]});return d.jsxs(te,{sx:{display:"flex",flexDirection:"column",gap:1.75},children:[d.jsxs(te,{children:[d.jsx(Et,{variant:"caption",sx:{...h,color:o.label2,display:"block",mb:1},children:"Brand Image"}),d.jsxs(te,{component:"label",sx:m,children:["⬆ Choose image",d.jsx("input",{hidden:!0,type:"file",accept:"image/*",onChange:y=>c(y,"loginImage")})]}),t.loginImage&&g("Uploaded image",()=>a({loginImage:""}))]}),d.jsxs(te,{children:[d.jsx(Et,{variant:"caption",sx:{...h,color:o.label2,display:"block",mb:1},children:"Logo"}),d.jsxs(te,{component:"label",sx:m,children:["⬆ Choose logo file",d.jsx("input",{hidden:!0,type:"file",accept:"image/png,image/svg+xml,image/webp",onChange:y=>c(y,"logoUrl")})]}),t.logoMode==="image"&&t.logoUrl&&g("Uploaded logo",()=>a({logoUrl:"",logoMode:"icon"}))]}),d.jsxs(te,{children:[d.jsx(Et,{variant:"caption",sx:{...h,color:o.label2,display:"block",mb:.5},children:"Panel Colour"}),d.jsx(g6,{label:"Login panel background",value:t.loginPanelColor,fallback:t.primaryHex,onChange:y=>a({loginPanelColor:y}),onReset:()=>a({loginPanelColor:""})})]}),i&&d.jsx(y6,{src:i.src,aspect:i.aspect,onCancel:()=>s(null),onConfirm:f})]})}function x6({onClose:t}){var V,ce;const a=Ba(E=>E.openSection),o=Ba(E=>E.setOpenSection),i=Ba(E=>E.setPreviewScreen),s=Ba(E=>E.previewScreen),c=Ba(E=>E.previewMenuOpen),f=Ba(E=>E.setPreviewMenuOpen),h=ke(E=>E.settings),m=ke(E=>E.savedThemes),g=ke(E=>E.set),y=ke(E=>E.reset),x=Sa(h.mode),T=M.useRef("theme"),v=(E,W)=>{const Q=a!==E;o(Q?E:""),f(!1),Q&&T.current!==E&&(i(W),T.current=E)},w=((V=cu.find(E=>E.id===h.presetId))==null?void 0:V.name)||((ce=m.find(E=>E.id===h.presetId))==null?void 0:ce.name)||"Custom Theme",S={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},R=({children:E})=>d.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",...S,children:E}),z=d.jsxs(R,{children:[d.jsx("circle",{cx:"13.5",cy:"6.5",r:"2.5"}),d.jsx("circle",{cx:"17.5",cy:"10.5",r:"2.5"}),d.jsx("circle",{cx:"8.5",cy:"7.5",r:"2.5"}),d.jsx("circle",{cx:"6.5",cy:"12.5",r:"2.5"}),d.jsx("path",{d:"M12 2a10 10 0 0 0 0 20 3 3 0 0 0 0-6 2 2 0 0 1 0-4 4 4 0 0 0 4-4 6 6 0 0 0-4-6z"})]}),D=d.jsxs(te,{sx:{display:"flex",gap:"2px",width:14,height:14},children:[d.jsx(te,{sx:{flex:1,background:h.secondaryHex,borderRadius:"2px"}}),d.jsx(te,{sx:{flex:1,background:h.errorHex,borderRadius:"2px"}}),d.jsx(te,{sx:{flex:1,background:h.successHex,borderRadius:"2px"}})]}),O=d.jsxs(R,{children:[d.jsx("path",{d:"M4 20 9 5l5 15M6 14h6"}),d.jsx("path",{d:"M15 20l3-9 3 9M16.2 17h3.6"})]}),j=d.jsxs(R,{children:[d.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),d.jsx("path",{d:"M3 9h18"})]}),k=d.jsxs(R,{children:[d.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),d.jsx("path",{d:"M3 9h18M3 15h18M9 3v18"})]}),H=d.jsx(R,{children:d.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"4"})}),N=d.jsxs(d.Fragment,{children:[d.jsxs(R,{children:[d.jsx("path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"}),d.jsx("path",{d:"M10 21a2 2 0 0 0 4 0"})]}),d.jsx(te,{sx:{position:"absolute",top:"6px",right:"6px",width:7,height:7,borderRadius:"50%",background:h.primaryHex,border:`1.5px solid ${x.iconTile}`}})]}),L=d.jsxs(R,{children:[d.jsx("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}),d.jsx("path",{d:"M10 17l5-5-5-5"}),d.jsx("path",{d:"M15 12H3"})]}),q=h.mode==="dark",I=E=>E.charAt(0).toUpperCase()+E.slice(1),Y={sm:"Small",df:"Default",lg:"Large"},C={sharp:"Sharp",rounded:"Rounded",round:"Round"},$={compact:"Compact",default:"Default",comfortable:"Comfortable"},P={flat:"Flat",outlined:"Outlined",soft:"Soft",raised:"Raised",elevated:"Elevated",floating:"Floating"},X={split:"Split Brand",centered:"Centered Card"},B={"top-center":"Top Center","top-right":"Top Right","bottom-left":"Bottom Left","bottom-right":"Bottom Right"},F={theme:`${w} · ${q?"Dark":"Light"}`,color:"Secondary & status colours",type:`${h.fontFamily} · ${Y[h.textSize]??"Default"}`,cards:"Card style, header, nesting & surface tint",tables:"Table row density, dividers, striping & header style — previewed on the Orders screen",shape:`${C[h.radiusPreset]??"Custom"} · ${$[h.density]??"Default"} · ${P[h.cardStyle]??""}`,notif:`${B[h.notifPosition]??""} · ${I(h.notifStyle)}`,login:`${X[h.loginLayout]??""}${h.loginImage?" · image":""}`},_=[{id:"theme",title:"Theme Settings",info:"Presets, saved themes & light/dark mode.",icon:z,screen:"dashboard",body:d.jsx(t6,{})},{id:"color",title:"Colour Settings",info:"Brand, text & status colours.",icon:D,screen:"components",body:d.jsx(a6,{})},{id:"type",title:"Typography",info:"Fonts, sizes, weight & line-height.",icon:O,screen:"components",body:d.jsx(s6,{})},{id:"cards",title:"Cards",info:"Card style, header, nesting & tint.",icon:j,screen:"dashboard",body:d.jsx(f6,{})},{id:"tables",title:"Tables",info:"Row/column density, dividers & alignment.",icon:k,screen:"orders",body:d.jsx(p6,{})},{id:"shape",title:"Surface & Shape",info:"Radius, density, elevation & spacing.",icon:H,screen:"dashboard",body:d.jsx(h6,{})},{id:"notif",title:"Notifications",info:"Toast placement & behaviour.",icon:N,screen:"operations",body:d.jsx(m6,{})},{id:"login",title:"Login Screen",info:"Brand image, logo & panel colour.",icon:L,screen:"login",body:d.jsx(b6,{})}];return d.jsxs(te,{sx:{display:"flex",flexDirection:"column",bgcolor:x.card},children:[d.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1.1,borderBottom:`1px solid ${x.divider}`,bgcolor:x.card},children:[d.jsxs(te,{sx:{display:"flex",gap:.5,flexShrink:0},children:[d.jsx(te,{sx:{width:13,height:13,borderRadius:"3px",bgcolor:h.primaryHex}}),d.jsx(te,{sx:{width:13,height:13,borderRadius:"3px",bgcolor:h.secondaryHex}})]}),d.jsx(Et,{variant:"caption",sx:{flex:1,minWidth:0,fontWeight:800,color:x.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:w}),d.jsx(kn,{title:"Reset to defaults",arrow:!0,children:d.jsx(_r,{size:"small",onClick:y,sx:{bgcolor:"action.selected"},children:d.jsx(ZE,{sx:{fontSize:16}})})}),d.jsx(kn,{title:h.mode==="dark"?"Switch to light":"Switch to dark",arrow:!0,children:d.jsx(_r,{size:"small",onClick:()=>g({mode:h.mode==="dark"?"light":"dark"}),sx:{bgcolor:"action.selected"},children:h.mode==="dark"?d.jsx(Ov,{sx:{fontSize:16}}):d.jsx(Bv,{sx:{fontSize:16}})})}),t&&d.jsx(kn,{title:"Close studio",arrow:!0,children:d.jsx(_r,{size:"small",onClick:t,sx:{bgcolor:"action.selected"},children:d.jsx(JE,{sx:{fontSize:16}})})})]}),c&&d.jsxs(te,{sx:{borderBottom:"1px solid",borderColor:"divider",borderLeft:"3px solid #eab308",bgcolor:E=>E.palette.mode==="dark"?"rgba(234,179,8,0.14)":"#fef9c3",px:1.6,py:1.5},children:[d.jsx(Et,{sx:{fontSize:10,fontWeight:800,textTransform:"uppercase",letterSpacing:".6px",color:E=>E.palette.mode==="dark"?"#f2cd5c":"#854d0e",mb:1},children:"Previewing Screen"}),d.jsx(te,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:.75},children:YE.map(E=>{const W=s===E.key;return d.jsx(te,{component:"button",onClick:()=>{s!==E.key&&i(E.key),f(!1)},sx:{px:.75,py:1,borderRadius:2,cursor:"pointer",fontSize:11,fontWeight:W?800:600,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",border:"1.5px solid",borderColor:W?"#d4a915":"#e6dca8",bgcolor:W?"#fde68a":"background.paper",color:W?"#713f12":"text.secondary"},children:E.label},E.key)})})]}),_.map(E=>d.jsx(e6,{icon:E.icon,title:E.title,info:F[E.id]??E.info,open:a===E.id,dimmed:a!==""&&a!==E.id,onToggle:()=>v(E.id,E.screen),onPreviewMenu:()=>f(!c),children:E.body},E.id))]})}const v6=pn(d.jsx("path",{d:"M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H3V4h18z"}));function Dh(t,a,o){const i=M.useRef(null),[s,c]=M.useState(t);return M.useLayoutEffect(()=>{const f=i.current;if(!f)return;const h=()=>{const x=f.children.length;if(!x)return;const T=parseFloat(getComputedStyle(f).rowGap)||0;let v=0;for(const R of Array.from(f.children))v+=R.offsetHeight;const w=v/x,S=f.clientHeight;S<=0||w<=0||c(Math.max(a,Math.min(o,Math.floor((S+T)/(w+T)))))};h();const m=requestAnimationFrame(h),g=setTimeout(h,300),y=new ResizeObserver(h);return y.observe(f),()=>{cancelAnimationFrame(m),clearTimeout(g),y.disconnect()}},[a,o]),[i,s]}function Dv(t,a,o){const i=M.useRef(null),s=M.useRef(null),[c,f]=M.useState(t);return M.useLayoutEffect(()=>{const h=s.current;if(!h)return;const m=()=>{var S;const T=Array.from(h.children).filter(R=>getComputedStyle(R).position!=="absolute"),v=T.length?T[0].offsetHeight:((S=i.current)==null?void 0:S.offsetHeight)||36,w=h.clientHeight;w<=0||v<=0||f(Math.max(a,Math.min(o,Math.floor(w/v))))};m();const g=requestAnimationFrame(m),y=setTimeout(m,300),x=new ResizeObserver(m);return x.observe(h),()=>{cancelAnimationFrame(g),clearTimeout(y),x.disconnect()}},[a,o]),[i,s,c]}const S6=["Jan","Feb","Mar","Apr","May","Jun"],C6=[44,60,50,74,88,96],w6=[24,32,30,42,52,60];function T6(){const t=ha(),a=ke(J=>J.settings),{t:o,rad:i,radSm:s,pad:c,padSm:f,gap:h,screenPad:m,tH1:g,tH2:y,tTitle:x,tH4:T,wH1:v,headFam:w,headLH:S,accentBg:R,btnText:z,tBodySm:D,bwEmph:O,btnCase:j,bodyWeightEff:k,bodyLH:H,tCaption:N,pMain:L,sMain:q}=t,I=w+",sans-serif",Y=a.fontFamily+",sans-serif",C=t.hc1||o.textPrimary,$=t.hc2||o.textPrimary,P=t.hc3||o.textPrimary,X=[{label:"Revenue",val:"$2.41M",chg:"+12.5%",up:!0},{label:"Open Orders",val:"1,284",chg:"+3.2%",up:!0},{label:"Inventory",val:"8,540",chg:"-1.8%",up:!1},{label:"Active Users",val:"342",chg:"+5",up:!0}].map(J=>({...J,cc:J.up?t.sucTxt:t.errTxt,cb:J.up?t.sucSoft:t.errSoft,arrow:J.up?"▲":"▼"})),B=J=>J==="✓"?{cb:t.sucSoft,cc:t.sucTxt}:J==="!"?{cb:t.warnSoft,cc:t.warnTxt}:J==="+"?{cb:t.infoSoft,cc:t.infoTxt}:{cb:o.pContainer,cc:t.isDark?o.pLight:o.pDark},F=[{title:"Order ORD-1042 delivered to Acme Corp",time:"2m ago",ic:"✓"},{title:"Invoice #4821 paid — $12,400",time:"18m ago",ic:"$"},{title:"Low stock alert: Widget Pro (12 left)",time:"1h ago",ic:"!"},{title:"New customer onboarded: Globex Ltd",time:"3h ago",ic:"+"},{title:'Report "Q2 Summary" exported to PDF',time:"5h ago",ic:"▤"},{title:"Shipment SHP-2093 dispatched — Initech",time:"6h ago",ic:"✓"},{title:"Refund processed — $840 to Umbrella Co",time:"7h ago",ic:"$"},{title:"Payment overdue: Waystar Royco",time:"8h ago",ic:"!"},{title:"New support ticket — Stark Industries",time:"9h ago",ic:"+"},{title:"Backup completed — 12,480 records",time:"11h ago",ic:"✓"},{title:"Purchase order PO-771 approved",time:"13h ago",ic:"$"},{title:"Inventory reconciled — Warehouse 3",time:"15h ago",ic:"▤"},{title:"SLA breach warning — Hooli Inc",time:"17h ago",ic:"!"},{title:"New user invited — M. Fernandez",time:"19h ago",ic:"+"},{title:"Quarterly report scheduled",time:"21h ago",ic:"▤"},{title:"Order ORD-1039 delivered to Oscorp",time:"23h ago",ic:"✓"}].map(J=>({...J,...B(J.ic)})),[_,V]=Dh(5,4,F.length),ce=F.slice(0,V),E=t.cardBorder==="none"?"none":t.cardBorder,W={background:o.paper,border:E,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden"},Q={padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent,display:"flex",alignItems:"center",justifyContent:"space-between"},ie={fontSize:x,lineHeight:S,fontWeight:v,color:P,fontFamily:I};return d.jsxs("div",{style:{display:"flex",flexDirection:"column",background:o.paper,border:E,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden",fontFamily:Y,fontWeight:k,color:o.textPrimary},children:[d.jsxs("div",{style:{padding:c,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent,display:"flex",alignItems:"center",justifyContent:"space-between",gap:14},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{fontSize:g,lineHeight:1.15,fontWeight:v,color:C,letterSpacing:"-.3px",fontFamily:I},children:"Dashboard"}),d.jsx("span",{title:"Good morning, Admin · Jun 21, 2026",style:{width:16,height:16,borderRadius:"50%",border:"1.2px solid "+o.textSecondary,color:o.textSecondary,fontSize:9.5,fontWeight:O,fontStyle:"italic",fontFamily:"Georgia,serif",display:"grid",placeItems:"center",flexShrink:0,cursor:"help"},children:"i"})]}),d.jsx("button",{style:{padding:"10px 20px",borderRadius:s,border:"none",background:R,color:z,fontSize:D,fontWeight:O,textTransform:j,letterSpacing:".4px",boxShadow:t.btnShadow,whiteSpace:"nowrap",cursor:"pointer"},children:"+ New"})]}),d.jsxs("div",{style:{padding:m,background:o.bgDefault,display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[d.jsxs("div",{style:{...W,marginBottom:h},children:[d.jsxs("div",{style:Q,children:[d.jsx("span",{style:{...ie},children:"Performance Overview"}),d.jsx("span",{style:{fontSize:N,color:o.textSecondary,fontWeight:O},children:"This month"})]}),d.jsx("div",{style:{padding:c,display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:h},children:X.map(J=>d.jsxs("div",{style:{background:o.paper2,border:t.nestBorder,borderRadius:s,boxShadow:t.nestShadow,padding:f},children:[d.jsx("div",{style:{fontSize:T,color:o.textSecondary,fontWeight:v,fontFamily:I,textTransform:"uppercase",letterSpacing:".6px",marginBottom:8},children:J.label}),d.jsx("div",{style:{fontSize:y,fontWeight:v,color:$,letterSpacing:"-.8px",lineHeight:1,marginBottom:6},children:J.val}),d.jsxs("span",{style:{fontSize:N,fontWeight:O,color:J.cc,background:J.cb,padding:"3px 9px",borderRadius:999},children:[J.arrow," ",J.chg]})]},J.label))})]}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 300px",gap:h,flex:1,minHeight:0},children:[d.jsxs("div",{style:{...W,display:"flex",flexDirection:"column",minHeight:0},children:[d.jsxs("div",{style:Q,children:[d.jsx("span",{style:ie,children:"Revenue Trend"}),d.jsx("div",{style:{display:"flex",gap:12},children:[["Revenue",L],["Profit",q]].map(([J,pe])=>d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:5},children:[d.jsx("div",{style:{width:10,height:10,borderRadius:2,background:pe}}),d.jsx("span",{style:{fontSize:N,color:o.textSecondary},children:J})]},J))})]}),d.jsx("div",{style:{padding:`${f}px ${c}px`,display:"flex",alignItems:"flex-end",gap:12,flex:1,minHeight:200},children:S6.map((J,pe)=>d.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",gap:6,height:"100%"},children:[d.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-end",gap:3,flex:1},children:[d.jsx("div",{style:{width:"100%",height:w6[pe]+"%",background:q,opacity:.55,borderRadius:`${s} ${s} 0 0`}}),d.jsx("div",{style:{width:"100%",height:C6[pe]+"%",background:L,borderRadius:`${s} ${s} 0 0`}})]}),d.jsx("span",{style:{fontSize:N,color:o.textSecondary},children:J})]},J))})]}),d.jsxs("div",{style:{...W,display:"flex",flexDirection:"column",minHeight:0},children:[d.jsx("div",{style:{padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent},children:d.jsx("span",{style:ie,children:"Recent Activity"})}),d.jsx("div",{ref:_,style:{padding:f,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:4,flex:1,minHeight:0},children:ce.map((J,pe)=>d.jsxs("div",{style:{display:"flex",gap:11,alignItems:"flex-start",padding:8,borderRadius:s},children:[d.jsx("div",{style:{width:28,height:28,borderRadius:s,background:J.cb,color:J.cc,display:"grid",placeItems:"center",flexShrink:0,fontSize:13,fontWeight:O},children:J.ic}),d.jsxs("div",{style:{flex:1,minWidth:0},children:[d.jsx("div",{style:{fontSize:D,color:o.textPrimary,fontFamily:Y,fontWeight:k,lineHeight:H,marginBottom:2},children:J.title}),d.jsx("div",{style:{fontSize:N,color:o.textSecondary,fontFamily:Y},children:J.time})]})]},pe))})]})]})]})]})}const R6=[{id:"ORD-1042",cust:"Acme Corporation",status:"Delivered",amt:"$12,400",date:"Jun 18"},{id:"ORD-1041",cust:"Globex Ltd",status:"Processing",amt:"$8,750",date:"Jun 17"},{id:"ORD-1040",cust:"Initech",status:"Pending",amt:"$5,200",date:"Jun 16"},{id:"ORD-1039",cust:"Umbrella Co",status:"Shipped",amt:"$22,100",date:"Jun 15"},{id:"ORD-1038",cust:"Waystar Royco",status:"Delivered",amt:"$9,800",date:"Jun 14"},{id:"ORD-1037",cust:"Stark Industries",status:"Processing",amt:"$31,500",date:"Jun 13"},{id:"ORD-1036",cust:"Wayne Enterprises",status:"Delivered",amt:"$18,240",date:"Jun 12"},{id:"ORD-1035",cust:"Soylent Corp",status:"Pending",amt:"$4,120",date:"Jun 11"},{id:"ORD-1034",cust:"Hooli Inc",status:"Shipped",amt:"$27,900",date:"Jun 10"},{id:"ORD-1033",cust:"Cyberdyne Systems",status:"Delivered",amt:"$14,650",date:"Jun 09"},{id:"ORD-1032",cust:"Massive Dynamic",status:"Processing",amt:"$10,300",date:"Jun 08"},{id:"ORD-1031",cust:"Tyrell Corp",status:"Delivered",amt:"$16,780",date:"Jun 07"},{id:"ORD-1030",cust:"Oscorp",status:"Shipped",amt:"$7,940",date:"Jun 06"},{id:"ORD-1029",cust:"Nakatomi Trading",status:"Pending",amt:"$3,560",date:"Jun 05"},{id:"ORD-1028",cust:"Gekko & Co",status:"Delivered",amt:"$25,300",date:"Jun 04"},{id:"ORD-1027",cust:"Bluth Company",status:"Processing",amt:"$6,410",date:"Jun 03"}],xp="100px 1fr 120px 100px 80px 70px";function j6(){const t=ha(),a=ke(V=>V.settings),{t:o,rad:i,radSm:s,pad:c,padSm:f,screenPad:h,rowPy:m,tH1:g,wH1:y,headFam:x,headLH:T,accentBg:v,btnText:w,btnShadow:S,tBody:R,tBodySm:z,tCaption:D,tOverline:O,bwEmph:j,btnCase:k,bodyWeightEff:H,pMain:N,table:L}=t,q=x+",sans-serif",I=a.fontFamily+",sans-serif",Y=t.hc1||o.textPrimary,[C,$,P]=Dv(12,3,16),X=R6.slice(0,P).map((V,ce)=>({...V,...L.statusMap[V.status]||{sb:o.divider,sc:o.textSecondary},rowBg:a.tableStripe&&ce%2===1?L.stripeBg:"transparent"})),B=t.cardBorder==="none"?"none":t.cardBorder,F=V=>({fontSize:O,fontWeight:j,color:o.textSecondary,textTransform:"uppercase",letterSpacing:".5px",borderRight:L.colBorder,alignSelf:"stretch",display:"flex",alignItems:L.cellAI,justifyContent:L.cellJC,padding:`${L.rowPy} ${L.cellPx}`}),_={alignSelf:"stretch",display:"flex",alignItems:L.cellAI,justifyContent:L.cellJC,padding:`${L.rowPy} ${L.cellPx}`};return d.jsxs("div",{style:{display:"flex",flexDirection:"column",background:o.paper,border:B,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden",fontFamily:I,fontWeight:H,color:o.textPrimary},children:[d.jsxs("div",{style:{padding:c,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent,display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:14},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{fontSize:g,lineHeight:T,fontWeight:y,color:Y,letterSpacing:"-.3px",fontFamily:q},children:"Orders"}),d.jsx("span",{title:"1,284 orders · June 2026",style:{width:16,height:16,borderRadius:"50%",border:"1.2px solid "+o.textSecondary,color:o.textSecondary,fontSize:9.5,fontWeight:j,fontStyle:"italic",fontFamily:"Georgia,serif",display:"grid",placeItems:"center",flexShrink:0,cursor:"help"},children:"i"})]}),d.jsx("button",{style:{padding:"10px 20px",borderRadius:s,border:"none",background:v,color:w,fontSize:z,fontWeight:j,textTransform:k,letterSpacing:".4px",boxShadow:S,whiteSpace:"nowrap",cursor:"pointer"},children:"+ New Order"})]}),d.jsx("div",{style:{padding:h,background:o.bgDefault,display:"flex",flexDirection:"column",flex:1,minHeight:0},children:d.jsxs("div",{style:{display:"flex",flexDirection:"column",background:o.paper,border:B,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden",flex:1,minHeight:0},children:[d.jsxs("div",{style:{padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent,display:"flex",gap:9,alignItems:"center",flexWrap:"wrap"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,background:o.paper,border:"1.5px solid "+o.divider,borderRadius:999,padding:"8px 15px",flex:1,minWidth:170},children:[d.jsx("span",{style:{color:o.textSecondary,fontSize:13},children:"⌕"}),d.jsx("span",{style:{fontSize:z,color:o.textSecondary},children:"Search orders…"})]}),L.filters.map(V=>d.jsx("button",{style:{padding:"7px 14px",borderRadius:999,border:"1px solid "+V.brd,background:V.bg,color:V.c,fontSize:D,fontWeight:j,whiteSpace:"nowrap",cursor:"pointer"},children:V.label},V.label))]}),d.jsxs("div",{ref:C,style:{display:"grid",gridTemplateColumns:xp,padding:`0 ${c}px`,borderBottom:L.rowBorder,background:L.headBg},children:[["Order ID","Customer","Status","Amount","Date"].map(V=>d.jsx("div",{style:F(),children:V},V)),d.jsx("div",{style:{alignSelf:"stretch",padding:`${L.rowPy} 0`}})]}),d.jsxs("div",{ref:$,style:{position:"relative",display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[d.jsxs("div",{style:{position:"absolute",inset:0,padding:`0 ${c}px`,display:"grid",gridTemplateColumns:xp,pointerEvents:"none",zIndex:2},children:[d.jsx("div",{style:{borderRight:L.colBorder}}),d.jsx("div",{style:{borderRight:L.colBorder}}),d.jsx("div",{style:{borderRight:L.colBorder}}),d.jsx("div",{style:{borderRight:L.colBorder}}),d.jsx("div",{style:{borderRight:L.colBorder}}),d.jsx("div",{})]}),X.map(V=>d.jsxs("div",{style:{display:"grid",gridTemplateColumns:xp,padding:`0 ${c}px`,borderBottom:L.rowBorder,alignItems:"stretch",background:V.rowBg},children:[d.jsx("div",{style:{..._,fontSize:z,fontWeight:j,color:N,fontFamily:I},children:V.id}),d.jsx("div",{style:{..._,fontSize:R,color:o.textPrimary,fontWeight:j},children:V.cust}),d.jsx("div",{style:_,children:d.jsx("span",{style:{padding:"4px 11px",borderRadius:999,fontSize:D,fontWeight:j,background:V.sb,color:V.sc,whiteSpace:"nowrap"},children:V.status})}),d.jsx("div",{style:{..._,fontSize:R,color:o.textPrimary,fontWeight:j},children:V.amt}),d.jsx("div",{style:{..._,fontSize:z,color:o.textSecondary},children:V.date}),d.jsx("div",{style:_,children:d.jsx("button",{style:{fontSize:D,color:N,background:o.pContainer,border:"none",fontWeight:j,padding:"5px 11px",borderRadius:s,cursor:"pointer"},children:"View"})})]},V.id))]}),d.jsxs("div",{style:{padding:`${m}px ${c}px`,display:"flex",alignItems:"center",gap:7,borderTop:"1px solid "+o.divider},children:[d.jsxs("span",{style:{fontSize:z,color:o.textSecondary,flex:1},children:["Showing 1–",X.length," of 1,284"]}),d.jsx("button",{style:{width:32,height:32,borderRadius:s,border:"1px solid "+o.outline,background:"transparent",color:o.textSecondary,cursor:"pointer"},children:"‹"}),d.jsx("button",{style:{width:32,height:32,borderRadius:s,border:"none",background:v,color:w,fontWeight:j,cursor:"pointer"},children:"1"}),d.jsx("button",{style:{width:32,height:32,borderRadius:s,border:"1px solid "+o.outline,background:"transparent",color:o.textSecondary,cursor:"pointer"},children:"2"}),d.jsx("button",{style:{width:32,height:32,borderRadius:s,border:"1px solid "+o.outline,background:"transparent",color:o.textSecondary,cursor:"pointer"},children:"›"})]})]})})]})}function E6(){const t=ha(),a=ke(Te=>Te.settings),{t:o,rad:i,radSm:s,pad:c,padSm:f,gap:h,screenPad:m,tH1:g,tH2:y,tTitle:x,tH4:T,tH5:v,tH6:w,tBody:S,tBodySm:R,tCaption:z,wH1:D,headFam:O,headLH:j,accentBg:k,btnText:H,btnShadow:N,bwEmph:L,btnCase:q,bodyWeightEff:I,bodyLH:Y,pMain:C,errSoft:$,errTxt:P,warnSoft:X,warnTxt:B,infoSoft:F,infoTxt:_,sucSoft:V,sucTxt:ce}=t,E=O+",sans-serif",W=a.fontFamily+",sans-serif",Q=t.t.highlight,ie=t.t.highlightSoft,J=t.t.highlightBd,pe=o.pContainer,fe=o.onPContainer,le=o.pContrast,ve=t.hc1||o.textPrimary,we=t.hc2||o.textPrimary,je=t.hc3||o.textPrimary,Me=t.hc4||o.textPrimary,_e=t.hc5||o.textPrimary,me=t.hc6||o.textPrimary,Le=t.cardBorder==="none"?"none":t.cardBorder,He={display:"flex",flexDirection:"column",background:o.paper,border:Le,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden",height:"100%"},Ee={padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent},Pe={fontSize:x,lineHeight:j,fontWeight:D,color:je,fontFamily:E},Xe=[{label:"Dashboard Overview",size:g,w:D,color:ve,lh:1.1,ls:"-.5px",name:"H1",border:!0},{label:"Revenue Report",size:y,w:D,color:we,lh:1.1,ls:"-.4px",name:"H2",border:!0},{label:"Performance Overview",size:x,w:D,color:je,lh:1.15,name:"H3",border:!0},{label:"Active Users",size:T,w:D,color:Me,lh:1.2,name:"H4",border:!0},{label:"Last updated 2m ago",size:v,w:D,color:_e,lh:1.25,name:"H5",border:!0},{label:"Status · Live",size:w,w:D,color:me,lh:1.3,name:"H6",border:!0}],Ye=Te=>d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"11px 12px",borderBottom:"1px solid "+o.divider,background:Te?ie:"transparent",boxShadow:Te?"inset 3px 0 0 "+Q:"none"},children:[d.jsx("div",{style:{width:16,height:16,borderRadius:"50%",border:"2px solid "+(Te?Q:o.outline),display:"grid",placeItems:"center",flexShrink:0},children:Te&&d.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:Q}})}),d.jsx("span",{style:{flex:1,fontSize:R,fontFamily:W,fontWeight:Te?L:I,color:o.textPrimary},children:Te?"Selected item":"Unselected item"}),Te&&d.jsx("span",{style:{fontSize:z,fontFamily:W,fontWeight:L,color:o.textSecondary},children:"Active"})]}),Ve=(Te,ue,he)=>d.jsxs("div",{style:{position:"relative",border:Te?"2px solid "+C:"1.5px solid "+o.outline,borderRadius:s,padding:"12px 13px"},children:[d.jsx("span",{style:{position:"absolute",top:-8,left:10,background:o.paper,padding:"0 5px",fontSize:z,color:Te?C:o.textSecondary,fontWeight:Te?L:void 0},children:ue}),d.jsx("span",{style:{fontSize:S,color:Te?o.textPrimary:o.textSecondary},children:he})]}),Ce=(Te,ue,he)=>d.jsx("span",{style:{padding:"5px 13px",borderRadius:999,background:Te,color:ue,fontSize:z,fontWeight:L},children:he}),ct=Te=>({padding:"9px 20px",borderRadius:s,fontSize:R,fontWeight:L,textTransform:q,letterSpacing:".4px",cursor:"pointer",...Te});return d.jsxs("div",{style:{display:"flex",flexDirection:"column",background:o.paper,border:Le,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden",fontFamily:W,fontWeight:I,color:o.textPrimary},children:[d.jsx("div",{style:{padding:c,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent},children:d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{fontSize:g,lineHeight:j,fontWeight:D,color:ve,letterSpacing:"-.3px",fontFamily:E},children:"Component Library"}),d.jsx("span",{title:"Every Material UI component reflects your live theme",style:{width:16,height:16,borderRadius:"50%",border:"1.2px solid "+o.textSecondary,color:o.textSecondary,fontSize:9.5,fontWeight:L,fontStyle:"italic",fontFamily:"Georgia,serif",display:"grid",placeItems:"center",flexShrink:0,cursor:"help"},children:"i"})]})}),d.jsxs("div",{style:{padding:m,background:o.bgDefault,display:"flex",flexDirection:"column",gap:h,flex:1,minHeight:0},children:[d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:h,alignItems:"stretch"},children:[d.jsxs("div",{style:He,children:[d.jsx("div",{style:Ee,children:d.jsx("span",{style:Pe,children:"Typography Scale"})}),d.jsxs("div",{style:{padding:c,display:"flex",flexDirection:"column",justifyContent:"space-between",flex:1,minHeight:0,gap:6},children:[Xe.map(Te=>d.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:12,borderBottom:"1px solid "+o.divider,paddingBottom:14},children:[d.jsx("span",{style:{fontSize:Te.size,lineHeight:Te.lh,fontWeight:Te.w,color:Te.color,fontFamily:E,letterSpacing:Te.ls},children:Te.label}),d.jsxs("span",{style:{fontSize:Te.size,color:o.textSecondary,fontWeight:Te.w,whiteSpace:"nowrap",flexShrink:0,fontFamily:E},children:[Te.name," · ",Te.size]})]},Te.name)),d.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:12},children:[d.jsx("span",{style:{fontSize:S,lineHeight:Y,color:o.textPrimary,fontFamily:W,fontWeight:I},children:"Body text — the quick brown fox jumps over the lazy dog."}),d.jsxs("span",{style:{fontSize:S,color:o.textSecondary,fontWeight:I,whiteSpace:"nowrap",flexShrink:0,fontFamily:W},children:["Body · ",S]})]}),d.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:12},children:[d.jsx("span",{style:{fontSize:z,lineHeight:Y,color:o.textSecondary,fontFamily:W,fontWeight:I},children:"Caption & helper text style"}),d.jsxs("span",{style:{fontSize:z,color:o.textSecondary,fontWeight:I,whiteSpace:"nowrap",flexShrink:0,fontFamily:W},children:["Caption · ",z]})]})]})]}),d.jsxs("div",{style:He,children:[d.jsx("div",{style:Ee,children:d.jsx("span",{style:Pe,children:"Selection States"})}),d.jsxs("div",{style:{padding:c,display:"flex",flexDirection:"column",gap:14},children:[d.jsxs("div",{style:{display:"flex",gap:2,borderBottom:"1.5px solid "+o.divider},children:[d.jsx("div",{style:{flex:1,textAlign:"center",padding:"8px 4px",fontSize:R,fontWeight:L,color:o.textPrimary,background:ie,borderBottom:"2.5px solid "+C,marginBottom:-1.5,borderRadius:"6px 6px 0 0"},children:"Overview"}),d.jsx("div",{style:{flex:1,textAlign:"center",padding:"8px 4px",fontSize:R,fontWeight:L,color:o.textSecondary},children:"Activity"}),d.jsx("div",{style:{flex:1,textAlign:"center",padding:"8px 4px",fontSize:R,fontWeight:L,color:o.textSecondary},children:"Settings"})]}),d.jsxs("div",{style:{display:"flex",flexDirection:"column",border:"1px solid "+o.divider,borderRadius:s,overflow:"hidden"},children:[Ye(!0),Ye(!1),Ye(!1),Ye(!1),Ye(!0),Ye(!1)]}),d.jsx("div",{style:{display:"inline-flex",alignSelf:"flex-start",padding:"6px 12px",borderRadius:s,background:ie,border:"1px solid "+J},children:d.jsx("span",{style:{fontSize:z,fontWeight:L,color:Q},children:"2 selected items"})})]})]})]}),d.jsxs("div",{style:{...He,height:"auto"},children:[d.jsx("div",{style:Ee,children:d.jsx("span",{style:Pe,children:"Inputs & Selection"})}),d.jsxs("div",{style:{padding:c},children:[d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:h,marginBottom:h},children:[Ve(!1,"Outlined","Placeholder…"),Ve(!0,"Focused","Active value")]}),d.jsxs("div",{style:{display:"flex",gap:22,alignItems:"center",flexWrap:"wrap",paddingTop:f,borderTop:"1px solid "+o.divider},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{width:18,height:18,borderRadius:4,background:C,display:"grid",placeItems:"center",color:le,fontSize:11,fontWeight:L},children:"✓"}),d.jsx("span",{style:{fontSize:R,color:o.textPrimary},children:"Checkbox"})]}),d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{width:18,height:18,borderRadius:"50%",border:"2px solid "+C,display:"grid",placeItems:"center"},children:d.jsx("div",{style:{width:9,height:9,borderRadius:"50%",background:C}})}),d.jsx("span",{style:{fontSize:R,color:o.textPrimary},children:"Radio"})]}),d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{width:38,height:22,borderRadius:999,background:C,position:"relative"},children:d.jsx("div",{style:{position:"absolute",top:3,right:3,width:16,height:16,borderRadius:"50%",background:"#fff"}})}),d.jsx("span",{style:{fontSize:R,color:o.textPrimary},children:"Switch"})]})]})]})]}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:h,alignItems:"stretch"},children:[d.jsxs("div",{style:He,children:[d.jsx("div",{style:Ee,children:d.jsx("span",{style:Pe,children:"Buttons"})}),d.jsxs("div",{style:{padding:c,display:"flex",gap:10,flexWrap:"wrap",alignItems:"center"},children:[d.jsx("button",{style:ct({border:"none",background:k,color:H,boxShadow:N}),children:"Contained"}),d.jsx("button",{style:ct({border:"1.5px solid "+C,background:"transparent",color:C}),children:"Outlined"}),d.jsx("button",{style:ct({border:"none",background:"transparent",color:C}),children:"Text"}),d.jsx("button",{style:ct({border:"none",background:pe,color:fe}),children:"Tonal"}),d.jsx("button",{style:ct({border:"none",background:k,color:H,boxShadow:N,borderRadius:999}),children:"Rounded"}),d.jsx("button",{style:ct({border:"none",background:$,color:P}),children:"Error"})]})]}),d.jsxs("div",{style:He,children:[d.jsx("div",{style:Ee,children:d.jsx("span",{style:Pe,children:"Chips, Alerts & Progress"})}),d.jsxs("div",{style:{padding:c},children:[d.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",marginBottom:h},children:[Ce(pe,fe,"Primary"),Ce(V,ce,"Success"),Ce(X,B,"Warning"),Ce(F,_,"Info"),Ce($,P,"Error")]}),d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:7},children:[d.jsx("span",{style:{fontSize:R,color:o.textPrimary,fontWeight:L},children:"Revenue goal"}),d.jsx("span",{style:{fontSize:R,color:C,fontWeight:L},children:"74%"})]}),d.jsx("div",{style:{height:8,background:o.paper2,border:"1px solid "+o.divider,borderRadius:999,overflow:"hidden"},children:d.jsx("div",{style:{height:"100%",width:"74%",background:C,borderRadius:999}})})]})]})]})]})]})}const M6=[{label:"Cameras Online",val:"5 / 6"},{label:"Recording",val:"4"},{label:"Motion Alerts",val:"2"},{label:"Storage Used",val:"82%"}],A6=[{name:"CAM 01",loc:"Main Lobby",rec:!0,online:!0,time:"14:32:08"},{name:"CAM 02",loc:"North Gate",rec:!0,online:!0,time:"14:32:08"},{name:"CAM 03",loc:"Loading Bay",rec:!1,online:!0,time:"14:32:07"},{name:"CAM 04",loc:"Rooftop",rec:!0,online:!0,time:"14:32:08"},{name:"CAM 05",loc:"Parking Deck",rec:!1,online:!1,time:"—"},{name:"CAM 06",loc:"Server Room",rec:!0,online:!0,time:"14:32:08"}],k6=[{cam:"CAM 04",label:"Motion detected — Rooftop",time:"just now",sev:"error"},{cam:"CAM 02",label:"Person identified — North Gate",time:"6m ago",sev:"info"},{cam:"CAM 01",label:"Loitering cleared — Main Lobby",time:"22m ago",sev:"success"},{cam:"CAM 06",label:"Door forced — Server Room",time:"34m ago",sev:"error"},{cam:"CAM 03",label:"Vehicle detected — Loading Bay",time:"48m ago",sev:"info"},{cam:"CAM 05",label:"Signal restored — Parking Deck",time:"1h ago",sev:"success"},{cam:"CAM 02",label:"Tailgating flagged — North Gate",time:"1h ago",sev:"error"},{cam:"CAM 04",label:"Crowd density normal — Rooftop",time:"2h ago",sev:"success"},{cam:"CAM 01",label:"Object left behind — Main Lobby",time:"2h ago",sev:"info"},{cam:"CAM 03",label:"Motion detected — Loading Bay",time:"3h ago",sev:"error"},{cam:"CAM 06",label:"Access granted — Server Room",time:"3h ago",sev:"success"},{cam:"CAM 05",label:"Camera offline — Parking Deck",time:"4h ago",sev:"error"},{cam:"CAM 02",label:"Face match — North Gate",time:"5h ago",sev:"info"},{cam:"CAM 01",label:"Queue length normal — Main Lobby",time:"6h ago",sev:"success"},{cam:"CAM 04",label:"Perimeter breach — Rooftop",time:"7h ago",sev:"error"},{cam:"CAM 03",label:"Package scanned — Loading Bay",time:"8h ago",sev:"info"}];function z6(){const t=ha(),a=ke(le=>le.settings),{t:o,rad:i,radSm:s,pad:c,padSm:f,gap:h,screenPad:m,tH1:g,tH2:y,tTitle:x,wH1:T,headFam:v,headLH:w,accentBg:S,btnText:R,btnShadow:z,tBodySm:D,tCaption:O,tOverline:j,bwEmph:k,btnCase:H,bodyWeightEff:N,errSoft:L,errTxt:q,mediaBg:I,overlaySurface:Y,overlayBorder:C,onOverlay:$,sevMap:P}=t,X=v+",sans-serif",B=a.fontFamily+",sans-serif",F=t.hc1||o.textPrimary,_=t.hc2||o.textPrimary,V=t.hc3||o.textPrimary,ce=t.cardBorder==="none"?"none":t.cardBorder,E=A6.map(le=>({...le,dotC:le.online?a.successHex:o.textDisabled})),[W,Q]=Dh(3,3,16),ie=k6.slice(0,Q).map(le=>({...le,...P[le.sev]})),J={background:o.paper,border:ce,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden"},pe={padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent,display:"flex",alignItems:"center",justifyContent:"space-between"},fe={fontSize:x,lineHeight:w,fontWeight:T,color:V,fontFamily:X};return d.jsxs("div",{style:{display:"flex",flexDirection:"column",background:o.paper,border:ce,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden",fontFamily:B,fontWeight:N,color:o.textPrimary},children:[d.jsxs("div",{style:{padding:c,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent,display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:14},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{fontSize:g,lineHeight:w,fontWeight:T,color:F,letterSpacing:"-.3px",fontFamily:X},children:"Camera Surveillance"}),d.jsx("span",{title:"6 feeds · live monitoring & recording",style:{width:16,height:16,borderRadius:"50%",border:"1.2px solid "+o.textSecondary,color:o.textSecondary,fontSize:9.5,fontWeight:k,fontStyle:"italic",fontFamily:"Georgia,serif",display:"grid",placeItems:"center",flexShrink:0,cursor:"help"},children:"i"})]}),d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:O,fontWeight:k,color:q,background:L,padding:"6px 12px",borderRadius:999},children:[d.jsx("span",{style:{width:7,height:7,borderRadius:"50%",background:a.errorHex}}),"LIVE"]}),d.jsx("button",{style:{padding:"10px 18px",borderRadius:s,border:"none",background:S,color:R,fontSize:D,fontWeight:k,textTransform:H,letterSpacing:".4px",boxShadow:z,whiteSpace:"nowrap",cursor:"pointer"},children:"+ Add Camera"})]})]}),d.jsxs("div",{style:{padding:m,background:o.bgDefault,display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[d.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:h,marginBottom:h},children:M6.map(le=>d.jsxs("div",{style:J,children:[d.jsx("div",{style:{padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent},children:d.jsx("span",{style:{fontSize:j,color:o.textSecondary,textTransform:"uppercase",letterSpacing:".6px",fontWeight:k},children:le.label})}),d.jsx("div",{style:{padding:`${f}px ${c}px`},children:d.jsx("div",{style:{fontSize:y,fontWeight:T,color:_,letterSpacing:"-.8px",lineHeight:1},children:le.val})})]},le.label))}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 300px",gap:h,flex:1,minHeight:0},children:[d.jsxs("div",{style:{...J,display:"flex",flexDirection:"column"},children:[d.jsxs("div",{style:pe,children:[d.jsx("span",{style:fe,children:"Camera Wall"}),d.jsx("span",{style:{fontSize:O,color:o.textSecondary,fontWeight:k},children:"2 × 3 grid"})]}),d.jsx("div",{style:{padding:c,display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gridAutoRows:"1fr",gap:h},children:E.map(le=>d.jsxs("div",{style:{position:"relative",borderRadius:s,overflow:"hidden",background:I,minHeight:104,border:"1px solid "+o.divider},children:[d.jsx("div",{style:{position:"absolute",inset:0,display:"grid",placeItems:"center"},children:d.jsx("span",{style:{fontFamily:"monospace",fontSize:O,color:"rgba(255,255,255,.3)",letterSpacing:1},children:le.loc})}),d.jsxs("div",{style:{position:"absolute",top:7,left:7,display:"flex",alignItems:"center",gap:5,background:Y,border:"1px solid "+C,borderRadius:999,padding:"2px 8px"},children:[d.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:le.dotC}}),d.jsx("span",{style:{color:$,fontSize:O,fontWeight:700,letterSpacing:".4px"},children:le.name})]}),le.rec&&d.jsxs("div",{style:{position:"absolute",top:7,right:7,display:"flex",alignItems:"center",gap:4,background:Y,borderRadius:999,padding:"2px 7px"},children:[d.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:a.errorHex}}),d.jsx("span",{style:{color:$,fontSize:8,fontWeight:800,letterSpacing:".5px"},children:"REC"})]}),le.online&&d.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,padding:"5px 8px",background:"linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,0))",display:"flex",justifyContent:"space-between",alignItems:"center"},children:d.jsx("span",{style:{color:"#fff",fontSize:O,fontWeight:600,fontFamily:"monospace"},children:le.time})})]},le.name))})]}),d.jsxs("div",{style:{...J,display:"flex",flexDirection:"column"},children:[d.jsx("div",{style:{padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent},children:d.jsx("span",{style:fe,children:"Recent Detections"})}),d.jsx("div",{ref:W,style:{padding:f,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:2,flex:1,minHeight:0},children:ie.map((le,ve)=>d.jsxs("div",{style:{display:"flex",gap:11,alignItems:"flex-start",padding:"9px 8px",borderRadius:s},children:[d.jsx("div",{style:{width:28,height:28,borderRadius:s,background:le.cb,color:le.cc,display:"grid",placeItems:"center",flexShrink:0,fontSize:11,fontWeight:800,fontFamily:"monospace"},children:"●"}),d.jsxs("div",{style:{flex:1,minWidth:0},children:[d.jsx("div",{style:{fontSize:D,color:o.textPrimary,fontWeight:N,lineHeight:1.35},children:le.label}),d.jsxs("div",{style:{fontSize:O,color:o.textSecondary,marginTop:2},children:[le.cam," · ",le.time]})]})]},ve))})]})]})]})]})}const O6=[{ic:"!",label:"Camera 04 motion detected — Loading Bay",time:"just now",sev:"error",unread:!0},{ic:"✓",label:"Stream reconnected — North Gate feed",time:"4m ago",sev:"success",unread:!0},{ic:"i",label:"Access request — J. Okoro (Operator)",time:"22m ago",sev:"info",unread:!1},{ic:"!",label:"Report archive storage 82% full",time:"1h ago",sev:"warning",unread:!1},{ic:"✓",label:"Backup completed — 12,480 clips archived",time:"2h ago",sev:"success",unread:!1},{ic:"i",label:"Firmware update available — 3 devices",time:"3h ago",sev:"info",unread:!1},{ic:"!",label:"Camera 02 lens obstruction detected",time:"5h ago",sev:"error",unread:!1},{ic:"✓",label:"Nightly health check passed — all nodes",time:"6h ago",sev:"success",unread:!1},{ic:"i",label:"New operator invited — M. Fernandez",time:"7h ago",sev:"info",unread:!1},{ic:"!",label:"Bandwidth spike on West Wing uplink",time:"8h ago",sev:"warning",unread:!1},{ic:"✓",label:"Retention policy applied — 30 day window",time:"9h ago",sev:"success",unread:!1},{ic:"i",label:"Scheduled maintenance — Sat 02:00 UTC",time:"11h ago",sev:"info",unread:!1},{ic:"!",label:"Motion zone breach — Perimeter Gate 3",time:"12h ago",sev:"error",unread:!1},{ic:"✓",label:"Clip export finished — Incident #4821",time:"14h ago",sev:"success",unread:!1},{ic:"i",label:"Analytics model updated — v2.4.1",time:"16h ago",sev:"info",unread:!1},{ic:"!",label:"Disk latency elevated — NVR-02",time:"18h ago",sev:"warning",unread:!1}];function B6(){const t=ha(),a=ke(fe=>fe.settings),{t:o,rad:i,radSm:s,pad:c,padSm:f,gap:h,screenPad:m,tH1:g,tTitle:y,wH1:x,headFam:T,headLH:v,accentBg:w,btnText:S,tBodySm:R,tCaption:z,tOverline:D,bwEmph:O,bodyWeightEff:j,bodyLH:k,errSoft:H,errTxt:N,pMain:L,mediaBg:q,overlaySurface:I,overlayBorder:Y,onOverlay:C,sevMap:$}=t,P=T+",sans-serif",X=a.fontFamily+",sans-serif",B=t.hc1||o.textPrimary,F=t.hc3||o.textPrimary,_=t.cardBorder==="none"?"none":t.cardBorder,[V,ce]=Dh(7,4,16),E=O6.slice(0,ce).map(fe=>({...fe,...$[fe.sev],rowBg:fe.unread?Lt(a.primaryHex,t.isDark?.12:.05):"transparent"})),W=E.filter(fe=>fe.unread).length,Q={display:"flex",flexDirection:"column",minHeight:0,background:o.paper,border:_,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden"},ie={padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent,display:"flex",alignItems:"center",justifyContent:"space-between"},J={fontSize:y,lineHeight:v,fontWeight:x,color:F,fontFamily:P},pe={height:30,borderRadius:s,border:"none",background:"rgba(255,255,255,.14)",color:C,fontSize:z,fontWeight:O,cursor:"pointer",fontFamily:"inherit"};return d.jsxs("div",{style:{display:"flex",flexDirection:"column",background:o.paper,border:_,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden",fontFamily:X,fontWeight:j,color:o.textPrimary},children:[d.jsx("div",{style:{padding:c,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent},children:d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{fontSize:g,lineHeight:v,fontWeight:x,color:B,letterSpacing:"-.3px",fontFamily:P},children:"Operations Center"}),d.jsx("span",{title:"Live map, camera feeds, alerts & access — every module themed end to end",style:{width:16,height:16,borderRadius:"50%",border:"1.2px solid "+o.textSecondary,color:o.textSecondary,fontSize:9.5,fontWeight:O,fontStyle:"italic",fontFamily:"Georgia,serif",display:"grid",placeItems:"center",flexShrink:0,cursor:"help"},children:"i"})]})}),d.jsx("div",{style:{padding:m,background:o.bgDefault,display:"flex",flexDirection:"column",flex:1,minHeight:0},children:d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 320px",gap:h,flex:1,minHeight:0},children:[d.jsxs("div",{style:Q,children:[d.jsxs("div",{style:ie,children:[d.jsx("span",{style:J,children:"Live Map · Street View"}),d.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:z,fontWeight:O,color:N,background:H,padding:"3px 10px",borderRadius:999},children:[d.jsx("span",{style:{width:7,height:7,borderRadius:"50%",background:a.errorHex}}),"LIVE"]})]}),d.jsxs("div",{style:{position:"relative",flex:1,minHeight:320,background:q,display:"flex",alignItems:"center",justifyContent:"center"},children:[d.jsx("span",{style:{fontFamily:"monospace",fontSize:z,color:"rgba(255,255,255,.42)",letterSpacing:1.5},children:"◍ GOOGLE STREET VIEW / EARTH EMBED"}),d.jsx("div",{style:{position:"absolute",top:12,left:12,display:"flex",alignItems:"center",gap:7,background:I,border:"1px solid "+Y,borderRadius:999,padding:"6px 12px"},children:d.jsx("span",{style:{color:C,fontSize:z,fontWeight:O},children:"◎ 40.7128, -74.0060 · Manhattan"})}),d.jsxs("div",{style:{position:"absolute",bottom:12,left:"50%",transform:"translateX(-50%)",display:"flex",alignItems:"center",gap:4,background:I,border:"1px solid "+Y,borderRadius:s,padding:5},children:[d.jsx("button",{style:{width:30,height:30,borderRadius:s,border:"none",background:w,color:S,fontSize:16,fontWeight:O,cursor:"pointer"},children:"+"}),d.jsx("button",{style:{width:30,height:30,borderRadius:s,border:"none",background:"rgba(255,255,255,.14)",color:C,fontSize:16,fontWeight:O,cursor:"pointer"},children:"−"}),d.jsx("div",{style:{width:1,height:18,background:Y,margin:"0 3px"}}),d.jsx("button",{style:{...pe,padding:"0 12px"},children:"Layers"}),d.jsx("button",{style:{...pe,padding:"0 12px"},children:"◎ Locate"})]})]})]}),d.jsxs("div",{style:Q,children:[d.jsxs("div",{style:ie,children:[d.jsx("span",{style:J,children:"Notifications"}),d.jsxs("span",{style:{fontSize:D,fontWeight:O,color:o.pContrast,background:L,padding:"2px 9px",borderRadius:999},children:[W," NEW"]})]}),d.jsx("div",{ref:V,style:{padding:f,display:"flex",flexDirection:"column",gap:2,flex:1,minHeight:0},children:E.map((fe,le)=>d.jsxs("div",{style:{display:"flex",gap:11,alignItems:"flex-start",padding:"9px 8px",borderRadius:s,background:fe.rowBg},children:[d.jsx("div",{style:{width:26,height:26,borderRadius:s,background:fe.cb,color:fe.cc,display:"grid",placeItems:"center",flexShrink:0,fontSize:13,fontWeight:O},children:fe.ic}),d.jsxs("div",{style:{flex:1,minWidth:0},children:[d.jsx("div",{style:{fontSize:R,color:o.textPrimary,fontWeight:j,lineHeight:k},children:fe.label}),d.jsx("div",{style:{fontSize:z,color:o.textSecondary,marginTop:2},children:fe.time})]}),fe.unread&&d.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:L,flexShrink:0,marginTop:6}})]},le))})]})]})})]})}const D6=[{label:"Reports Generated",val:"248"},{label:"Avg Generation",val:"1.2s"},{label:"Data Points",val:"84.2K"},{label:"Scheduled",val:"12"}],H6=["Jan","Feb","Mar","Apr","May","Jun"],N6=[44,60,50,74,88,96],L6=[24,32,30,42,52,60],$6=[{l:"Reports",h:72},{l:"Cameras",h:92},{l:"Alerts",h:40},{l:"Users",h:58},{l:"Storage",h:80}],_6=[{name:"Q2 Revenue Summary",type:"Financial",date:"Jun 20",status:"Ready"},{name:"Camera Uptime Audit",type:"Operations",date:"Jun 19",status:"Ready"},{name:"User Access Log",type:"Security",date:"Jun 18",status:"Ready"},{name:"Inventory Forecast",type:"Analytics",date:"Jun 17",status:"Processing"},{name:"Monthly KPI Digest",type:"Executive",date:"Jun 15",status:"Ready"},{name:"Incident Response Log",type:"Security",date:"Jun 14",status:"Ready"},{name:"Storage Utilization Report",type:"Operations",date:"Jun 13",status:"Ready"},{name:"Weekly Traffic Analysis",type:"Analytics",date:"Jun 12",status:"Processing"},{name:"Vendor SLA Compliance",type:"Financial",date:"Jun 11",status:"Ready"},{name:"Motion Event Rollup",type:"Operations",date:"Jun 10",status:"Ready"},{name:"Quarterly Audit Trail",type:"Security",date:"Jun 09",status:"Ready"},{name:"Energy Consumption Digest",type:"Analytics",date:"Jun 08",status:"Processing"},{name:"Executive Board Pack",type:"Executive",date:"Jun 07",status:"Ready"},{name:"Device Firmware Ledger",type:"Operations",date:"Jun 06",status:"Ready"},{name:"Access Anomaly Report",type:"Security",date:"Jun 05",status:"Ready"},{name:"Cost Allocation Summary",type:"Financial",date:"Jun 04",status:"Ready"}],ox="1fr 130px 110px 90px 70px";function U6(){const t=ha(),a=ke(le=>le.settings),{t:o,rad:i,radSm:s,pad:c,padSm:f,gap:h,screenPad:m,rowPy:g,tH1:y,tH2:x,tTitle:T,wH1:v,headFam:w,headLH:S,accentBg:R,btnText:z,btnShadow:D,tBody:O,tBodySm:j,tCaption:k,tOverline:H,bwEmph:N,btnCase:L,bodyWeightEff:q,pMain:I,sMain:Y,chartPalette:C}=t,$=w+",sans-serif",P=a.fontFamily+",sans-serif",X=t.hc1||o.textPrimary,B=t.hc2||o.textPrimary,F=t.hc3||o.textPrimary,_=t.cardBorder==="none"?"none":t.cardBorder,[V,ce,E]=Dv(5,3,16),W=_6.slice(0,E).map(le=>({...le,sb:le.status==="Ready"?t.sucSoft:t.warnSoft,sc:le.status==="Ready"?t.sucTxt:t.warnTxt})),Q=$6.map((le,ve)=>({...le,c:C[ve%C.length]})),ie={background:o.paper,border:_,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden"},J={padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent,display:"flex",alignItems:"center",justifyContent:"space-between"},pe={fontSize:T,lineHeight:S,fontWeight:v,color:F,fontFamily:$},fe={fontSize:H,fontWeight:N,color:o.textSecondary,textTransform:"uppercase",letterSpacing:".5px"};return d.jsxs("div",{style:{display:"flex",flexDirection:"column",background:o.paper,border:_,borderRadius:i,boxShadow:t.cardShadow,overflow:"hidden",fontFamily:P,fontWeight:q,color:o.textPrimary},children:[d.jsxs("div",{style:{padding:c,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent,display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:14},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{fontSize:y,lineHeight:S,fontWeight:v,color:X,letterSpacing:"-.3px",fontFamily:$},children:"Reports"}),d.jsx("span",{title:"Generated insights across every module",style:{width:16,height:16,borderRadius:"50%",border:"1.2px solid "+o.textSecondary,color:o.textSecondary,fontSize:9.5,fontWeight:N,fontStyle:"italic",fontFamily:"Georgia,serif",display:"grid",placeItems:"center",flexShrink:0,cursor:"help"},children:"i"})]}),d.jsx("button",{style:{padding:"10px 20px",borderRadius:s,border:"none",background:R,color:z,fontSize:j,fontWeight:N,textTransform:L,letterSpacing:".4px",boxShadow:D,whiteSpace:"nowrap",cursor:"pointer"},children:"↓ Export PDF"})]}),d.jsxs("div",{style:{padding:m,background:o.bgDefault,display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[d.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:h,marginBottom:h},children:D6.map(le=>d.jsxs("div",{style:ie,children:[d.jsx("div",{style:{padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent},children:d.jsx("span",{style:{fontSize:H,color:o.textSecondary,textTransform:"uppercase",letterSpacing:".6px",fontWeight:N},children:le.label})}),d.jsx("div",{style:{padding:`${f}px ${c}px`},children:d.jsx("div",{style:{fontSize:x,fontWeight:v,color:B,letterSpacing:"-.8px",lineHeight:1},children:le.val})})]},le.label))}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 300px",gap:h,marginBottom:h},children:[d.jsxs("div",{style:ie,children:[d.jsxs("div",{style:J,children:[d.jsx("span",{style:pe,children:"Revenue & Profit Trend"}),d.jsx("span",{style:{fontSize:k,color:o.textSecondary,fontWeight:N},children:"6 months"})]}),d.jsx("div",{style:{padding:c,display:"flex",alignItems:"flex-end",gap:12,height:160},children:H6.map((le,ve)=>d.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",gap:6,height:"100%"},children:[d.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-end",gap:3,flex:1},children:[d.jsx("div",{style:{width:"100%",height:L6[ve]+"%",background:Y,opacity:.55,borderRadius:`${s} ${s} 0 0`}}),d.jsx("div",{style:{width:"100%",height:N6[ve]+"%",background:I,borderRadius:`${s} ${s} 0 0`}})]}),d.jsx("span",{style:{fontSize:k,color:o.textSecondary},children:le})]},le))})]}),d.jsxs("div",{style:ie,children:[d.jsx("div",{style:{padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent},children:d.jsx("span",{style:pe,children:"By Module"})}),d.jsx("div",{style:{padding:c,display:"flex",alignItems:"flex-end",gap:10,height:128},children:Q.map(le=>d.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",height:"100%"},children:d.jsx("div",{style:{width:"100%",height:le.h+"%",background:le.c,borderRadius:`${s} ${s} 0 0`}})},le.l))})]})]}),d.jsxs("div",{style:{...ie,display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[d.jsx("div",{style:{padding:`${f}px ${c}px`,background:t.cardHdrBg,borderBottom:t.cardHdrBorder,boxShadow:t.cardHdrAccent},children:d.jsx("span",{style:pe,children:"Recent Reports"})}),d.jsxs("div",{ref:V,style:{display:"grid",gridTemplateColumns:ox,padding:`${g}px ${c}px`,borderBottom:"1px solid "+o.divider,background:o.paper2},children:[["Report","Type","Status","Date"].map(le=>d.jsx("div",{style:fe,children:le},le)),d.jsx("div",{})]}),d.jsx("div",{ref:ce,style:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:W.map(le=>d.jsxs("div",{style:{display:"grid",gridTemplateColumns:ox,padding:`${g}px ${c}px`,borderBottom:"1px solid "+o.divider,alignItems:"center"},children:[d.jsx("div",{style:{fontSize:O,color:o.textPrimary,fontWeight:N},children:le.name}),d.jsx("div",{style:{fontSize:j,color:o.textSecondary},children:le.type}),d.jsx("div",{children:d.jsx("span",{style:{padding:"4px 11px",borderRadius:999,fontSize:k,fontWeight:N,background:le.sb,color:le.sc,whiteSpace:"nowrap"},children:le.status})}),d.jsx("div",{style:{fontSize:j,color:o.textSecondary},children:le.date}),d.jsx("div",{children:d.jsx("button",{style:{fontSize:k,color:I,background:o.pContainer,border:"none",fontWeight:N,padding:"5px 11px",borderRadius:s,cursor:"pointer"},children:"↓ PDF"})})]},le.name))})]})]})]})}const ix=({size:t})=>d.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),d.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),d.jsx("path",{d:"m21 15-5-5L5 21"})]});function P6(){const t=ha(),a=ke(B=>B.settings),{t:o,rad:i,radSm:s,pad:c,tH1:f,tBody:h,tBodySm:m,tCaption:g,wH1:y,headLH:x,accentBg:T,btnText:v,btnShadow:w,bwEmph:S,pMain:R,iconInitials:z,hasLoginImage:D,loginCenteredGrad:O,loginScrimGradC:j}=t,k=a.fontFamily+",sans-serif",H=t.hc1||o.textPrimary,N=o.pContrast,L=t.cardBorder==="none"?"none":t.cardBorder,q=a.logoMode==="image"&&!!a.logoUrl,I=t.isDark?o.paper2:"#ffffff",Y=a.loginPanelColor||o.bgDefault,C=a.loginImgOpacity>0?a.loginImgOpacity:1,$=D?d.jsx("img",{src:a.loginImage,alt:"",style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",zIndex:0,opacity:C}}):null,P={background:o.paper,border:L,borderRadius:i,boxShadow:t.cardShadow,padding:c,display:"flex",flexDirection:"column",gap:20},X=B=>({position:"relative",background:o.paper2,border:"1.5px solid "+(B?R:o.outline),borderRadius:s});return a.loginLayout==="centered"?d.jsxs("div",{style:{minHeight:560,background:O,display:"flex",alignItems:"center",justifyContent:"center",padding:40,position:"relative",overflow:"hidden",fontFamily:k,borderRadius:i},children:[$,D&&d.jsx("div",{style:{position:"absolute",inset:0,background:j,zIndex:0}}),d.jsxs("div",{style:{position:"relative",zIndex:1,width:"100%",maxWidth:380,background:o.paper,border:L,borderRadius:i,boxShadow:"0 24px 60px rgba(0,0,0,.35)",padding:c,display:"flex",flexDirection:"column",gap:20,alignItems:"center"},children:[d.jsx("div",{style:{width:72,height:72,borderRadius:20,background:a.iconColor,display:"grid",placeItems:"center",boxShadow:"0 6px 18px "+a.iconColor+"55"},children:d.jsx("span",{style:{color:"#fff",fontSize:24,fontWeight:S,letterSpacing:"-1px"},children:z})}),d.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:14},children:[d.jsxs("div",{style:{position:"relative",border:"1.5px solid "+o.outline,borderRadius:s,padding:"13px 14px"},children:[d.jsx("span",{style:{position:"absolute",top:-8,left:11,background:o.paper,padding:"0 5px",fontSize:11,color:o.textSecondary},children:"Email"}),d.jsx("span",{style:{fontSize:h,color:o.textPrimary},children:"admin@company.com"})]}),d.jsxs("div",{style:{position:"relative",border:"1.5px solid "+o.outline,borderRadius:s,padding:"13px 14px"},children:[d.jsx("span",{style:{position:"absolute",top:-8,left:11,background:o.paper,padding:"0 5px",fontSize:11,color:o.textSecondary},children:"Password"}),d.jsx("span",{style:{fontSize:h,color:o.textPrimary,letterSpacing:3},children:"••••••••"})]}),d.jsx("button",{style:{padding:13,borderRadius:s,border:"none",background:T,color:v,fontSize:h,fontWeight:S,textTransform:"uppercase",letterSpacing:".5px",boxShadow:w,cursor:"pointer"},children:"Sign in"})]})]})]}):d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"3fr 1fr",minHeight:560,fontFamily:k,borderRadius:i,overflow:"hidden"},children:[d.jsxs("div",{style:{background:I,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"48px 40px",gap:22,position:"relative",overflow:"hidden"},children:[$,!D&&d.jsxs("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,color:o.textSecondary,border:"1.5px dashed "+o.outline,padding:24,boxSizing:"border-box"},children:[d.jsx(ix,{size:46}),d.jsx("div",{style:{fontSize:14,fontWeight:S,color:o.textPrimary},children:"No brand image"}),d.jsx("div",{style:{fontSize:12,color:o.textSecondary,textAlign:"center",maxWidth:220},children:"Upload an image in the Login Screen settings to fill this panel."})]})]}),d.jsxs("div",{style:{background:Y,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:22,padding:"48px 40px"},children:[q?d.jsx("img",{src:a.logoUrl,alt:a.appName,style:{maxHeight:64,maxWidth:200,objectFit:"contain"}}):d.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:6,maxWidth:200,maxHeight:64,border:"1.5px dashed "+o.outline,borderRadius:s,boxSizing:"border-box",color:o.textSecondary,padding:"8px 16px"},children:[d.jsx(ix,{size:20}),d.jsx("span",{style:{fontSize:g,fontWeight:S,color:o.textSecondary,whiteSpace:"nowrap"},children:"No logo uploaded"})]}),d.jsxs("div",{style:{width:"100%",maxWidth:340,...P},children:[d.jsxs("div",{style:{textAlign:"center"},children:[d.jsx("div",{style:{fontSize:f,lineHeight:x,fontWeight:y,color:H,letterSpacing:"-.4px",marginBottom:5},children:"Welcome back"}),d.jsx("div",{style:{fontSize:m,color:o.textSecondary},children:"Sign in to continue"})]}),d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[d.jsxs("div",{children:[d.jsx("div",{style:{fontSize:g,fontWeight:S,color:o.textPrimary,marginBottom:7},children:"Email Address"}),d.jsxs("div",{style:{...X(!1),padding:"12px 14px 12px 40px"},children:[d.jsx("span",{style:{position:"absolute",left:13,top:"50%",transform:"translateY(-50%)",color:o.textSecondary,fontSize:14},children:"✉"}),d.jsx("span",{style:{fontSize:h,color:o.textPrimary},children:"admin@company.com"})]})]}),d.jsxs("div",{children:[d.jsx("div",{style:{fontSize:g,fontWeight:S,color:o.textPrimary,marginBottom:7},children:"Password"}),d.jsxs("div",{style:{...X(!0),padding:"12px 40px 12px 40px"},children:[d.jsx("span",{style:{position:"absolute",left:13,top:"50%",transform:"translateY(-50%)",color:o.textSecondary,fontSize:14},children:"🔒"}),d.jsx("span",{style:{fontSize:h,color:o.textPrimary,letterSpacing:3},children:"••••••••"}),d.jsx("span",{style:{position:"absolute",right:13,top:"50%",transform:"translateY(-50%)",color:o.textSecondary,fontSize:14},children:"👁"})]})]}),d.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{width:17,height:17,borderRadius:4,background:R,display:"grid",placeItems:"center",color:N,fontSize:11,fontWeight:S},children:"✓"}),d.jsx("span",{style:{fontSize:m,color:o.textPrimary},children:"Remember me"})]}),d.jsx("span",{style:{fontSize:m,color:R,fontWeight:S},children:"Forgot password?"})]}),d.jsxs("button",{style:{padding:13,borderRadius:s,border:"none",background:T,color:v,fontSize:h,fontWeight:S,letterSpacing:".3px",boxShadow:w,marginTop:2,display:"flex",alignItems:"center",justifyContent:"center",gap:8,cursor:"pointer"},children:["Login ",d.jsx("span",{style:{fontSize:15},children:"→"})]})]}),d.jsxs("div",{style:{textAlign:"center",fontSize:g,color:o.textSecondary},children:["Powered by ",d.jsx("span",{style:{color:R,fontWeight:S},children:a.appName})," © 2026"]})]})]})]})}function I6(){const t=ha(),a=ke(w=>w.settings),[o,i]=M.useState(!1);if(o)return null;const{t:s,npos:c,nacc:f,toastDeco:h,toastBg:m,rad:g,radSm:y,tBodySm:x,tCaption:T}=t,v=(a.toastW>0?a.toastW:252)+"px";return d.jsxs("div",{style:{position:"absolute",zIndex:40,width:v,maxWidth:"70%",boxSizing:"border-box",background:m,borderRadius:g,display:"flex",gap:"10px",alignItems:"flex-start",padding:"12px 13px",fontFamily:a.fontFamily+",sans-serif",...c,...h},children:[d.jsx("div",{style:{width:"30px",height:"30px",borderRadius:y,background:f.icbg,color:f.icc,display:"grid",placeItems:"center",flexShrink:0,fontSize:"15px",fontWeight:800},children:"!"}),d.jsxs("div",{style:{flex:1,minWidth:0},children:[d.jsx("div",{style:{fontSize:x+"px",fontWeight:700,color:s.textPrimary,marginBottom:"2px"},children:"Low stock alert"}),d.jsx("div",{style:{fontSize:T+"px",color:s.textSecondary,lineHeight:1.4},children:"Widget Pro is down to 12 units left."})]}),a.notifAutoDismiss&&d.jsx("div",{title:"Auto-dismiss countdown",style:{flexShrink:0,marginTop:"1px",minWidth:"26px",height:"20px",padding:"0 7px",borderRadius:"999px",background:Lt(f.dot,.14),color:f.dot,fontSize:T-.5+"px",fontWeight:800,display:"grid",placeItems:"center",fontVariantNumeric:"tabular-nums"},children:(a.autoDismissSec>0?a.autoDismissSec:8)+"s"}),d.jsx("button",{title:"Dismiss notification",onClick:()=>i(!0),style:{flexShrink:0,width:"20px",height:"20px",marginTop:"1px",border:"none",background:"transparent",color:s.textSecondary,cursor:"pointer",borderRadius:"6px",display:"grid",placeItems:"center",padding:0,lineHeight:1},children:d.jsx("svg",{width:13,height:13,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.4,strokeLinecap:"round",children:d.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})})]})}const F6=[75,90,100,125];function W6(){var y;const t=Ba(x=>x.previewScreen),a=ke(x=>x.settings.edgePadPx)||0,o=t==="operations"?0:a,[i,s]=M.useState("fit"),c=M.useRef(null),f=M.useRef(null),[h,m]=M.useState(100);M.useLayoutEffect(()=>{const x=c.current,T=f.current;if(!x||!T)return;const v=()=>{const D=getComputedStyle(x),O=(parseFloat(D.paddingTop)||0)+(parseFloat(D.paddingBottom)||0);if(i!=="fit"){const C=i/100;T.style.zoom=String(C);const $=x.clientHeight-O;T.style.minHeight=($>0?Math.floor($/C):0)+"px",m(i);return}T.style.zoom="1",T.style.minHeight="0px",T.offsetHeight;const j=(parseFloat(D.paddingLeft)||0)+(parseFloat(D.paddingRight)||0),k=x.clientWidth-j,H=x.clientHeight-O,N=T.scrollWidth,L=T.scrollHeight;if(N<=0||L<=0||k<=0||H<=0)return;const q=Math.min(k/N,H/L,1),I=q<.985?Math.max(.36,q):1;T.style.zoom=String(I);const Y=Math.min(k/N,1);T.style.minHeight=Math.floor(H/Math.max(Y,.36))+"px",m(Math.round(I*100))};let w=0,S=0;const R=()=>{v(),++S<36&&(w=requestAnimationFrame(R))};R();const z=new ResizeObserver(v);return z.observe(x),z.observe(T),()=>{cancelAnimationFrame(w),z.disconnect()}},[i,o,t]);const g=((y=GE.find(x=>x.key===t))==null?void 0:y.label)??"";return d.jsxs(te,{sx:{flex:1,minWidth:0,display:"flex",flexDirection:"column",bgcolor:"background.default"},children:[d.jsxs(te,{sx:{px:2.5,py:1.25,borderBottom:"1px solid",borderColor:"divider",display:"flex",alignItems:"center",gap:1.5,bgcolor:"background.paper"},children:[d.jsx(v6,{sx:{fontSize:22,color:"text.secondary"}}),d.jsxs(Et,{variant:"h5",sx:{flex:1,fontSize:18,fontWeight:700,letterSpacing:"-.2px"},children:["Previewing ",g]}),d.jsxs(Oh,{size:"small",value:i,onChange:x=>s(x.target.value==="fit"?"fit":Number(x.target.value)),sx:{minWidth:128,fontSize:13,fontWeight:600,"& .MuiSelect-select":{py:.75}},children:[d.jsxs(yi,{value:"fit",children:["Fit (",h,"%)"]}),F6.map(x=>d.jsxs(yi,{value:x,children:[x,"%"]},x))]})]}),d.jsxs(te,{ref:c,sx:{flex:1,overflow:"auto",p:`${o}px`,position:"relative",bgcolor:"background.default"},children:[d.jsxs(te,{ref:f,sx:{width:"100%",display:"flex",flexDirection:"column","& > *":{flex:"1 1 0%",minHeight:0}},children:[t==="dashboard"&&d.jsx(T6,{}),t==="orders"&&d.jsx(j6,{}),t==="reports"&&d.jsx(U6,{}),t==="cameras"&&d.jsx(z6,{}),t==="operations"&&d.jsx(B6,{}),t==="components"&&d.jsx(E6,{}),t==="login"&&d.jsx(P6,{})]}),t!=="login"&&d.jsx(I6,{})]})]})}const V6=300,q6=520;function G6(){const[t,a]=M.useState(!0),[o,i]=M.useState(300),[s,c]=M.useState(!1),f=ke(w=>w.isDirty),h=ke(w=>w.captureBaseline),m=ke(w=>w.restoreBaseline),g=Sa(ke(w=>w.settings.mode)),y=M.useRef(null),x=w=>{w.preventDefault(),y.current={x:w.clientX,w:o};const S=z=>{if(!y.current)return;const D=Math.max(V6,Math.min(q6,y.current.w+(z.clientX-y.current.x)));i(D)},R=()=>{y.current=null,window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",R)};window.addEventListener("mousemove",S),window.addEventListener("mouseup",R)},T=()=>{f()?c(!0):a(!1)},v=()=>{a(!0),h()};return d.jsxs(te,{sx:{position:"fixed",inset:0,display:"flex",flexDirection:"column",bgcolor:"background.paper"},children:[d.jsx(_E,{}),d.jsx(PE,{}),d.jsxs(te,{sx:{flex:1,minHeight:0,display:"flex"},children:[d.jsx(KE,{}),d.jsxs(te,{sx:{flex:1,minWidth:0,display:"flex",bgcolor:"background.default",borderTop:"1px solid",borderColor:"divider"},children:[t?d.jsxs(te,{sx:{display:"flex",flexShrink:0},children:[d.jsx(te,{sx:{width:o,flexShrink:0,borderRight:`1px solid ${g.studioBd}`,display:"flex",flexDirection:"column",bgcolor:g.card,overflow:"auto"},children:d.jsx(x6,{onClose:T})}),d.jsx(te,{onMouseDown:x,sx:{width:5,cursor:"col-resize",flexShrink:0,bgcolor:"divider",opacity:.4,"&:hover":{opacity:1,bgcolor:"primary.main"}}})]}):d.jsx(kn,{title:"Open Theme Studio",placement:"right",arrow:!0,children:d.jsx(_r,{onClick:v,sx:{position:"absolute",left:68,bottom:56,zIndex:10,bgcolor:"primary.main",color:"primary.contrastText",boxShadow:4,"&:hover":{bgcolor:"primary.dark"}},children:d.jsx(HE,{})})}),d.jsx(W6,{})]})]}),d.jsx(QE,{}),d.jsxs(Xc,{open:s,onClose:()=>c(!1),PaperProps:{sx:{borderRadius:3,width:300,p:2.5}},children:[d.jsx(Et,{sx:{fontSize:15,fontWeight:800,mb:.75},children:"Save changes?"}),d.jsx(Et,{sx:{fontSize:12.5,color:"text.secondary",lineHeight:1.5,mb:2.25},children:"You've made changes to the theme. Do you want to save them before leaving?"}),d.jsxs(te,{sx:{display:"flex",flexDirection:"column",gap:1},children:[d.jsx(te,{component:"button",onClick:()=>{h(),c(!1),a(!1)},sx:{p:1.4,borderRadius:2.5,border:"none",bgcolor:"primary.main",color:"primary.contrastText",fontSize:13,fontWeight:700,cursor:"pointer"},children:"Save & exit"}),d.jsx(te,{component:"button",onClick:()=>{m(),c(!1),a(!1)},sx:{p:1.4,borderRadius:2.5,border:"1px solid",borderColor:"divider",bgcolor:"action.hover",color:"text.secondary",fontSize:13,fontWeight:600,cursor:"pointer"},children:"Discard & exit"}),d.jsx(te,{component:"button",onClick:()=>c(!1),sx:{p:1.1,borderRadius:2.5,border:"none",bgcolor:"transparent",color:"text.secondary",fontSize:12.5,fontWeight:600,cursor:"pointer"},children:"Keep editing"})]})]})]})}function Y6(){const t=ke(o=>o.settings),a=bn.useMemo(()=>DE(t),[t]);return d.jsxs(xw,{theme:a,children:[d.jsx(N4,{}),d.jsx(G6,{})]})}e2.createRoot(document.getElementById("root")).render(d.jsx(bn.StrictMode,{children:d.jsx(Y6,{})}));
|