hfs 0.29.1-rc1 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/assets/index-cbb42a0e.js +415 -0
- package/admin/assets/index-f8049da8.css +1 -0
- package/admin/assets/sha512-3273321f.js +8 -0
- package/admin/index.html +3 -1
- package/admin/{public/logo.svg → logo.svg} +0 -0
- package/frontend/assets/index-72e96bb2.js +85 -0
- package/frontend/assets/index-cbcc6ac5.css +1 -0
- package/frontend/assets/sha512-2c2fa926.js +8 -0
- package/frontend/{public/fontello.css → fontello.css} +0 -0
- package/frontend/{public/fontello.woff2 → fontello.woff2} +0 -0
- package/frontend/index.html +3 -1
- package/package.json +1 -1
- package/src/QuickZipStream.js +285 -0
- package/src/ThrottledStream.js +93 -0
- package/src/adminApis.js +167 -0
- package/src/api.accounts.js +59 -0
- package/src/api.auth.js +132 -0
- package/src/api.file_list.js +110 -0
- package/src/api.helpers.js +32 -0
- package/src/api.monitor.js +104 -0
- package/src/api.plugins.js +128 -0
- package/src/api.vfs.js +162 -0
- package/src/apiMiddleware.js +127 -0
- package/src/block.js +34 -0
- package/src/commands.js +125 -0
- package/src/config.js +169 -0
- package/src/connections.js +57 -0
- package/src/const.js +95 -0
- package/src/crypt.js +21 -0
- package/src/debounceAsync.js +49 -0
- package/src/events.js +9 -0
- package/src/frontEndApis.js +59 -0
- package/src/github.js +106 -0
- package/src/index.js +58 -0
- package/src/listen.js +238 -0
- package/src/log.js +137 -0
- package/src/middlewares.js +181 -0
- package/src/misc.js +185 -0
- package/src/pbkdf2.js +74 -0
- package/src/perm.js +183 -0
- package/src/plugins.js +341 -0
- package/src/serveFile.js +107 -0
- package/src/serveGuiFiles.js +113 -0
- package/src/sse.js +30 -0
- package/src/throttler.js +91 -0
- package/src/update.js +70 -0
- package/src/upload.js +92 -0
- package/src/util-files.js +154 -0
- package/src/util-generators.js +31 -0
- package/src/util-http.js +32 -0
- package/src/util-os.js +41 -0
- package/src/vfs.js +237 -0
- package/src/watchLoad.js +73 -0
- package/src/zip.js +75 -0
- package/admin/.DS_Store +0 -0
- package/admin/.eslintrc +0 -8
- package/admin/.gitignore +0 -23
- package/admin/package.json +0 -66
- package/admin/src/AccountForm.ts +0 -95
- package/admin/src/AccountsPage.ts +0 -144
- package/admin/src/App.ts +0 -83
- package/admin/src/ArrayField.ts +0 -86
- package/admin/src/ConfigPage.ts +0 -314
- package/admin/src/FileField.ts +0 -54
- package/admin/src/FileForm.ts +0 -147
- package/admin/src/FilePicker.ts +0 -166
- package/admin/src/HomePage.ts +0 -96
- package/admin/src/InstalledPlugins.ts +0 -163
- package/admin/src/LoginRequired.ts +0 -82
- package/admin/src/LogoutPage.ts +0 -29
- package/admin/src/LogsPage.ts +0 -80
- package/admin/src/MainMenu.ts +0 -74
- package/admin/src/MenuButton.ts +0 -38
- package/admin/src/MonitorPage.ts +0 -205
- package/admin/src/OnlinePlugins.ts +0 -103
- package/admin/src/PermField.ts +0 -80
- package/admin/src/PluginsPage.ts +0 -27
- package/admin/src/VfsMenuBar.ts +0 -58
- package/admin/src/VfsPage.ts +0 -124
- package/admin/src/VfsTree.ts +0 -99
- package/admin/src/addFiles.ts +0 -59
- package/admin/src/api.ts +0 -250
- package/admin/src/dialog.ts +0 -203
- package/admin/src/index.css +0 -22
- package/admin/src/index.ts +0 -10
- package/admin/src/md.ts +0 -31
- package/admin/src/misc.ts +0 -141
- package/admin/src/react-app-env.d.ts +0 -1
- package/admin/src/reportWebVitals.ts +0 -15
- package/admin/src/setupTests.ts +0 -5
- package/admin/src/state.ts +0 -40
- package/admin/src/theme.ts +0 -37
- package/admin/tsconfig.json +0 -26
- package/admin/vite.config.ts +0 -32
- package/frontend/.DS_Store +0 -0
- package/frontend/.eslintrc +0 -8
- package/frontend/.gitignore +0 -23
- package/frontend/package.json +0 -50
- package/frontend/src/App.ts +0 -25
- package/frontend/src/Breadcrumbs.ts +0 -43
- package/frontend/src/BrowseFiles.ts +0 -141
- package/frontend/src/Head.ts +0 -45
- package/frontend/src/UserPanel.ts +0 -57
- package/frontend/src/api.ts +0 -93
- package/frontend/src/components.ts +0 -55
- package/frontend/src/dialog.css +0 -83
- package/frontend/src/dialog.ts +0 -125
- package/frontend/src/icons.ts +0 -46
- package/frontend/src/index.scss +0 -324
- package/frontend/src/index.ts +0 -10
- package/frontend/src/login.ts +0 -63
- package/frontend/src/menu.ts +0 -187
- package/frontend/src/misc.ts +0 -54
- package/frontend/src/options.ts +0 -56
- package/frontend/src/react-app-env.d.ts +0 -1
- package/frontend/src/reportWebVitals.ts +0 -15
- package/frontend/src/setupTests.ts +0 -5
- package/frontend/src/state.ts +0 -84
- package/frontend/src/upload.ts +0 -306
- package/frontend/src/useAuthorized.ts +0 -19
- package/frontend/src/useFetchList.ts +0 -162
- package/frontend/src/useTheme.ts +0 -23
- package/frontend/tsconfig.json +0 -26
- package/frontend/vite.config.ts +0 -21
- package/src/QuickZipStream.ts +0 -279
- package/src/ThrottledStream.ts +0 -98
- package/src/adminApis.ts +0 -161
- package/src/api.accounts.ts +0 -78
- package/src/api.auth.ts +0 -142
- package/src/api.file_list.ts +0 -109
- package/src/api.helpers.ts +0 -30
- package/src/api.monitor.ts +0 -109
- package/src/api.plugins.ts +0 -141
- package/src/api.vfs.ts +0 -182
- package/src/apiMiddleware.ts +0 -131
- package/src/block.ts +0 -37
- package/src/commands.ts +0 -124
- package/src/config.ts +0 -167
- package/src/connections.ts +0 -60
- package/src/const.ts +0 -69
- package/src/crypt.ts +0 -16
- package/src/debounceAsync.ts +0 -53
- package/src/events.ts +0 -6
- package/src/frontEndApis.ts +0 -37
- package/src/github.ts +0 -107
- package/src/index.ts +0 -55
- package/src/listen.ts +0 -223
- package/src/log.ts +0 -128
- package/src/middlewares.ts +0 -183
- package/src/misc.ts +0 -176
- package/src/pbkdf2.ts +0 -83
- package/src/perm.ts +0 -197
- package/src/plugins.ts +0 -340
- package/src/serveFile.ts +0 -114
- package/src/serveGuiFiles.ts +0 -95
- package/src/sse.ts +0 -30
- package/src/throttler.ts +0 -106
- package/src/update.ts +0 -69
- package/src/upload.ts +0 -98
- package/src/util-files.ts +0 -141
- package/src/util-generators.ts +0 -31
- package/src/util-http.ts +0 -32
- package/src/util-os.ts +0 -38
- package/src/vfs.ts +0 -264
- package/src/watchLoad.ts +0 -75
- package/src/zip.ts +0 -71
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
var c6=Object.defineProperty,u6=Object.defineProperties;var d6=Object.getOwnPropertyDescriptors;var sh=Object.getOwnPropertySymbols;var ZP=Object.prototype.hasOwnProperty,ek=Object.prototype.propertyIsEnumerable;var is=Math.pow,JP=(e,t,n)=>t in e?c6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ae=(e,t)=>{for(var n in t||(t={}))ZP.call(t,n)&&JP(e,n,t[n]);if(sh)for(var n of sh(t))ek.call(t,n)&&JP(e,n,t[n]);return e},Ht=(e,t)=>u6(e,d6(t));var un=(e,t)=>{var n={};for(var r in e)ZP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&sh)for(var r of sh(e))t.indexOf(r)<0&&ek.call(e,r)&&(n[r]=e[r]);return n};var ft=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(f){o(f)}},s=c=>{try{a(n.throw(c))}catch(f){o(f)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function f6(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var co=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Yb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _$(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var u={},p6={get exports(){return u},set exports(e){u=e}},Ft={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Df=Symbol.for("react.element"),h6=Symbol.for("react.portal"),m6=Symbol.for("react.fragment"),g6=Symbol.for("react.strict_mode"),v6=Symbol.for("react.profiler"),y6=Symbol.for("react.provider"),b6=Symbol.for("react.context"),w6=Symbol.for("react.forward_ref"),C6=Symbol.for("react.suspense"),x6=Symbol.for("react.memo"),S6=Symbol.for("react.lazy"),tk=Symbol.iterator;function E6(e){return e===null||typeof e!="object"?null:(e=tk&&e[tk]||e["@@iterator"],typeof e=="function"?e:null)}var $$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M$=Object.assign,T$={};function gu(e,t,n){this.props=e,this.context=t,this.refs=T$,this.updater=n||$$}gu.prototype.isReactComponent={};gu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};gu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function R$(){}R$.prototype=gu.prototype;function Xb(e,t,n){this.props=e,this.context=t,this.refs=T$,this.updater=n||$$}var Qb=Xb.prototype=new R$;Qb.constructor=Xb;M$(Qb,gu.prototype);Qb.isPureReactComponent=!0;var nk=Array.isArray,O$=Object.prototype.hasOwnProperty,Jb={current:null},L$={key:!0,ref:!0,__self:!0,__source:!0};function A$(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)O$.call(t,r)&&!L$.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var c=Array(a),f=0;f<a;f++)c[f]=arguments[f+2];o.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Df,type:e,key:i,ref:s,props:o,_owner:Jb.current}}function P6(e,t){return{$$typeof:Df,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zb(e){return typeof e=="object"&&e!==null&&e.$$typeof===Df}function k6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var rk=/\/+/g;function Xy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?k6(""+e.key):t.toString(36)}function jh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Df:case h6:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Xy(s,0):r,nk(o)?(n="",e!=null&&(n=e.replace(rk,"$&/")+"/"),jh(o,t,n,"",function(f){return f})):o!=null&&(Zb(o)&&(o=P6(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(rk,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",nk(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+Xy(i,a);s+=jh(i,t,n,c,o)}else if(c=E6(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+Xy(i,a++),s+=jh(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function lh(e,t,n){if(e==null)return e;var r=[],o=0;return jh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function I6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Or={current:null},Hh={transition:null},_6={ReactCurrentDispatcher:Or,ReactCurrentBatchConfig:Hh,ReactCurrentOwner:Jb};Ft.Children={map:lh,forEach:function(e,t,n){lh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return lh(e,function(){t++}),t},toArray:function(e){return lh(e,function(t){return t})||[]},only:function(e){if(!Zb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ft.Component=gu;Ft.Fragment=m6;Ft.Profiler=v6;Ft.PureComponent=Xb;Ft.StrictMode=g6;Ft.Suspense=C6;Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_6;Ft.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=M$({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Jb.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)O$.call(t,c)&&!L$.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var f=0;f<c;f++)a[f]=arguments[f+2];r.children=a}return{$$typeof:Df,type:e.type,key:o,ref:i,props:r,_owner:s}};Ft.createContext=function(e){return e={$$typeof:b6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:y6,_context:e},e.Consumer=e};Ft.createElement=A$;Ft.createFactory=function(e){var t=A$.bind(null,e);return t.type=e,t};Ft.createRef=function(){return{current:null}};Ft.forwardRef=function(e){return{$$typeof:w6,render:e}};Ft.isValidElement=Zb;Ft.lazy=function(e){return{$$typeof:S6,_payload:{_status:-1,_result:e},_init:I6}};Ft.memo=function(e,t){return{$$typeof:x6,type:e,compare:t===void 0?null:t}};Ft.startTransition=function(e){var t=Hh.transition;Hh.transition={};try{e()}finally{Hh.transition=t}};Ft.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ft.useCallback=function(e,t){return Or.current.useCallback(e,t)};Ft.useContext=function(e){return Or.current.useContext(e)};Ft.useDebugValue=function(){};Ft.useDeferredValue=function(e){return Or.current.useDeferredValue(e)};Ft.useEffect=function(e,t){return Or.current.useEffect(e,t)};Ft.useId=function(){return Or.current.useId()};Ft.useImperativeHandle=function(e,t,n){return Or.current.useImperativeHandle(e,t,n)};Ft.useInsertionEffect=function(e,t){return Or.current.useInsertionEffect(e,t)};Ft.useLayoutEffect=function(e,t){return Or.current.useLayoutEffect(e,t)};Ft.useMemo=function(e,t){return Or.current.useMemo(e,t)};Ft.useReducer=function(e,t,n){return Or.current.useReducer(e,t,n)};Ft.useRef=function(e){return Or.current.useRef(e)};Ft.useState=function(e){return Or.current.useState(e)};Ft.useSyncExternalStore=function(e,t,n){return Or.current.useSyncExternalStore(e,t,n)};Ft.useTransition=function(){return Or.current.useTransition()};Ft.version="18.2.0";(function(e){e.exports=Ft})(p6);const No=Yb(u),qc=f6({__proto__:null,default:No},[u]);var bl={},$6={get exports(){return bl},set exports(e){bl=e}},vo={},i1={},M6={get exports(){return i1},set exports(e){i1=e}},F$={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/(function(e){function t(A,z){var G=A.length;A.push(z);e:for(;0<G;){var q=G-1>>>1,X=A[q];if(0<o(X,z))A[q]=z,A[G]=X,G=q;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var z=A[0],G=A.pop();if(G!==z){A[0]=G;e:for(var q=0,X=A.length,ie=X>>>1;q<ie;){var ee=2*(q+1)-1,se=A[ee],ae=ee+1,we=A[ae];if(0>o(se,G))ae<X&&0>o(we,se)?(A[q]=we,A[ae]=G,q=ae):(A[q]=se,A[ee]=G,q=ee);else if(ae<X&&0>o(we,G))A[q]=we,A[ae]=G,q=ae;else break e}}return z}function o(A,z){var G=A.sortIndex-z.sortIndex;return G!==0?G:A.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],f=[],p=1,h=null,m=3,v=!1,C=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var z=n(f);z!==null;){if(z.callback===null)r(f);else if(z.startTime<=A)r(f),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(f)}}function E(A){if(g=!1,w(A),!C)if(n(c)!==null)C=!0,B(I);else{var z=n(f);z!==null&&W(E,z.startTime-A)}}function I(A,z){C=!1,g&&(g=!1,b($),$=-1),v=!0;var G=m;try{for(w(z),h=n(c);h!==null&&(!(h.expirationTime>z)||A&&!N());){var q=h.callback;if(typeof q=="function"){h.callback=null,m=h.priorityLevel;var X=q(h.expirationTime<=z);z=e.unstable_now(),typeof X=="function"?h.callback=X:h===n(c)&&r(c),w(z)}else r(c);h=n(c)}if(h!==null)var ie=!0;else{var ee=n(f);ee!==null&&W(E,ee.startTime-z),ie=!1}return ie}finally{h=null,m=G,v=!1}}var _=!1,k=null,$=-1,R=5,O=-1;function N(){return!(e.unstable_now()-O<R)}function U(){if(k!==null){var A=e.unstable_now();O=A;var z=!0;try{z=k(!0,A)}finally{z?H():(_=!1,k=null)}}else _=!1}var H;if(typeof P=="function")H=function(){P(U)};else if(typeof MessageChannel!="undefined"){var L=new MessageChannel,D=L.port2;L.port1.onmessage=U,H=function(){D.postMessage(null)}}else H=function(){x(U,0)};function B(A){k=A,_||(_=!0,H())}function W(A,z){$=x(function(){A(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){C||v||(C=!0,B(I))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(A){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var G=m;m=z;try{return A()}finally{m=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,z){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var G=m;m=A;try{return z()}finally{m=G}},e.unstable_scheduleCallback=function(A,z,G){var q=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?q+G:q):G=q,A){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=G+X,A={id:p++,callback:z,priorityLevel:A,startTime:G,expirationTime:X,sortIndex:-1},G>q?(A.sortIndex=G,t(f,A),n(c)===null&&A===n(f)&&(g?(b($),$=-1):g=!0,W(E,G-q))):(A.sortIndex=X,t(c,A),C||v||(C=!0,B(I))),A},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(A){var z=m;return function(){var G=m;m=z;try{return A.apply(this,arguments)}finally{m=G}}}})(F$);(function(e){e.exports=F$})(M6);/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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 N$=u,ho=i1;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var D$=new Set,Xd={};function Ta(e,t){Yc(e,t),Yc(e+"Capture",t)}function Yc(e,t){for(Xd[e]=t,e=0;e<t.length;e++)D$.add(t[e])}var bs=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),s1=Object.prototype.hasOwnProperty,T6=/^[: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]*$/,ok={},ik={};function R6(e){return s1.call(ik,e)?!0:s1.call(ok,e)?!1:T6.test(e)?ik[e]=!0:(ok[e]=!0,!1)}function O6(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function L6(e,t,n,r){if(t===null||typeof t=="undefined"||O6(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Lr(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ur[e]=new Lr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ur[t]=new Lr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ur[e]=new Lr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ur[e]=new Lr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ur[e]=new Lr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ur[e]=new Lr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ur[e]=new Lr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ur[e]=new Lr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ur[e]=new Lr(e,5,!1,e.toLowerCase(),null,!1,!1)});var ew=/[\-:]([a-z])/g;function tw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ew,tw);ur[t]=new Lr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ew,tw);ur[t]=new Lr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ew,tw);ur[t]=new Lr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ur[e]=new Lr(e,1,!1,e.toLowerCase(),null,!1,!1)});ur.xlinkHref=new Lr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ur[e]=new Lr(e,1,!1,e.toLowerCase(),null,!0,!0)});function nw(e,t,n,r){var o=ur.hasOwnProperty(t)?ur[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(L6(t,n,o,r)&&(n=null),r||o===null?R6(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var _s=N$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ah=Symbol.for("react.element"),Cc=Symbol.for("react.portal"),xc=Symbol.for("react.fragment"),rw=Symbol.for("react.strict_mode"),l1=Symbol.for("react.profiler"),B$=Symbol.for("react.provider"),z$=Symbol.for("react.context"),ow=Symbol.for("react.forward_ref"),a1=Symbol.for("react.suspense"),c1=Symbol.for("react.suspense_list"),iw=Symbol.for("react.memo"),qs=Symbol.for("react.lazy"),j$=Symbol.for("react.offscreen"),sk=Symbol.iterator;function Qu(e){return e===null||typeof e!="object"?null:(e=sk&&e[sk]||e["@@iterator"],typeof e=="function"?e:null)}var Tn=Object.assign,Qy;function vd(e){if(Qy===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Qy=t&&t[1]||""}return`
|
|
26
|
+
`+Qy+e}var Jy=!1;function Zy(e,t){if(!e||Jy)return"";Jy=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var o=f.stack.split(`
|
|
27
|
+
`),i=r.stack.split(`
|
|
28
|
+
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var c=`
|
|
29
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{Jy=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vd(e):""}function A6(e){switch(e.tag){case 5:return vd(e.type);case 16:return vd("Lazy");case 13:return vd("Suspense");case 19:return vd("SuspenseList");case 0:case 2:case 15:return e=Zy(e.type,!1),e;case 11:return e=Zy(e.type.render,!1),e;case 1:return e=Zy(e.type,!0),e;default:return""}}function u1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xc:return"Fragment";case Cc:return"Portal";case l1:return"Profiler";case rw:return"StrictMode";case a1:return"Suspense";case c1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case z$:return(e.displayName||"Context")+".Consumer";case B$:return(e._context.displayName||"Context")+".Provider";case ow:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case iw:return t=e.displayName||null,t!==null?t:u1(e.type)||"Memo";case qs:t=e._payload,e=e._init;try{return u1(e(t))}catch(n){}}return null}function F6(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return u1(t);case 8:return t===rw?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function H$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function N6(e){var t=H$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ch(e){e._valueTracker||(e._valueTracker=N6(e))}function V$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cm(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function d1(e,t){var n=t.checked;return Tn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function lk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function U$(e,t){t=t.checked,t!=null&&nw(e,"checked",t,!1)}function f1(e,t){U$(e,t);var n=wl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?p1(e,t.type,n):t.hasOwnProperty("defaultValue")&&p1(e,t.type,wl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ak(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function p1(e,t,n){(t!=="number"||cm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yd=Array.isArray;function Ac(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+wl(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function h1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Me(91));return Tn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ck(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Me(92));if(yd(n)){if(1<n.length)throw Error(Me(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:wl(n)}}function W$(e,t){var n=wl(t.value),r=wl(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function uk(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function G$(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function m1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?G$(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var uh,K$=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(uh=uh||document.createElement("div"),uh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $d={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},D6=["Webkit","ms","Moz","O"];Object.keys($d).forEach(function(e){D6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$d[t]=$d[e]})});function q$(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$d.hasOwnProperty(e)&&$d[e]?(""+t).trim():t+"px"}function Y$(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=q$(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var B6=Tn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function g1(e,t){if(t){if(B6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function v1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 y1=null;function sw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var b1=null,Fc=null,Nc=null;function dk(e){if(e=jf(e)){if(typeof b1!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=cg(t),b1(e.stateNode,e.type,t))}}function X$(e){Fc?Nc?Nc.push(e):Nc=[e]:Fc=e}function Q$(){if(Fc){var e=Fc,t=Nc;if(Nc=Fc=null,dk(e),t)for(e=0;e<t.length;e++)dk(t[e])}}function J$(e,t){return e(t)}function Z$(){}var e0=!1;function eM(e,t,n){if(e0)return e(t,n);e0=!0;try{return J$(e,t,n)}finally{e0=!1,(Fc!==null||Nc!==null)&&(Z$(),Q$())}}function Jd(e,t){var n=e.stateNode;if(n===null)return null;var r=cg(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Me(231,t,typeof n));return n}var w1=!1;if(bs)try{var Ju={};Object.defineProperty(Ju,"passive",{get:function(){w1=!0}}),window.addEventListener("test",Ju,Ju),window.removeEventListener("test",Ju,Ju)}catch(e){w1=!1}function z6(e,t,n,r,o,i,s,a,c){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(p){this.onError(p)}}var Md=!1,um=null,dm=!1,C1=null,j6={onError:function(e){Md=!0,um=e}};function H6(e,t,n,r,o,i,s,a,c){Md=!1,um=null,z6.apply(j6,arguments)}function V6(e,t,n,r,o,i,s,a,c){if(H6.apply(this,arguments),Md){if(Md){var f=um;Md=!1,um=null}else throw Error(Me(198));dm||(dm=!0,C1=f)}}function Ra(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tM(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function fk(e){if(Ra(e)!==e)throw Error(Me(188))}function U6(e){var t=e.alternate;if(!t){if(t=Ra(e),t===null)throw Error(Me(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return fk(o),e;if(i===r)return fk(o),t;i=i.sibling}throw Error(Me(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(Me(189))}}if(n.alternate!==r)throw Error(Me(190))}if(n.tag!==3)throw Error(Me(188));return n.stateNode.current===n?e:t}function nM(e){return e=U6(e),e!==null?rM(e):null}function rM(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rM(e);if(t!==null)return t;e=e.sibling}return null}var oM=ho.unstable_scheduleCallback,pk=ho.unstable_cancelCallback,W6=ho.unstable_shouldYield,G6=ho.unstable_requestPaint,Bn=ho.unstable_now,K6=ho.unstable_getCurrentPriorityLevel,lw=ho.unstable_ImmediatePriority,iM=ho.unstable_UserBlockingPriority,fm=ho.unstable_NormalPriority,q6=ho.unstable_LowPriority,sM=ho.unstable_IdlePriority,ig=null,Ai=null;function Y6(e){if(Ai&&typeof Ai.onCommitFiberRoot=="function")try{Ai.onCommitFiberRoot(ig,e,void 0,(e.current.flags&128)===128)}catch(t){}}var di=Math.clz32?Math.clz32:J6,X6=Math.log,Q6=Math.LN2;function J6(e){return e>>>=0,e===0?32:31-(X6(e)/Q6|0)|0}var dh=64,fh=4194304;function bd(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pm(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=bd(a):(i&=s,i!==0&&(r=bd(i)))}else s=n&~o,s!==0?r=bd(s):i!==0&&(r=bd(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-di(t),o=1<<n,r|=e[n],t&=~o;return r}function Z6(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ej(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-di(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=Z6(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function x1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function lM(){var e=dh;return dh<<=1,!(dh&4194240)&&(dh=64),e}function t0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-di(t),e[t]=n}function tj(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-di(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function aw(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-di(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var tn=0;function aM(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var cM,cw,uM,dM,fM,S1=!1,ph=[],ll=null,al=null,cl=null,Zd=new Map,ef=new Map,Zs=[],nj="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 submit".split(" ");function hk(e,t){switch(e){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":al=null;break;case"mouseover":case"mouseout":cl=null;break;case"pointerover":case"pointerout":Zd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ef.delete(t.pointerId)}}function Zu(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=jf(t),t!==null&&cw(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function rj(e,t,n,r,o){switch(t){case"focusin":return ll=Zu(ll,e,t,n,r,o),!0;case"dragenter":return al=Zu(al,e,t,n,r,o),!0;case"mouseover":return cl=Zu(cl,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Zd.set(i,Zu(Zd.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ef.set(i,Zu(ef.get(i)||null,e,t,n,r,o)),!0}return!1}function pM(e){var t=Zl(e.target);if(t!==null){var n=Ra(t);if(n!==null){if(t=n.tag,t===13){if(t=tM(n),t!==null){e.blockedOn=t,fM(e.priority,function(){uM(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=E1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);y1=r,n.target.dispatchEvent(r),y1=null}else return t=jf(n),t!==null&&cw(t),e.blockedOn=n,!1;t.shift()}return!0}function mk(e,t,n){Vh(e)&&n.delete(t)}function oj(){S1=!1,ll!==null&&Vh(ll)&&(ll=null),al!==null&&Vh(al)&&(al=null),cl!==null&&Vh(cl)&&(cl=null),Zd.forEach(mk),ef.forEach(mk)}function ed(e,t){e.blockedOn===t&&(e.blockedOn=null,S1||(S1=!0,ho.unstable_scheduleCallback(ho.unstable_NormalPriority,oj)))}function tf(e){function t(o){return ed(o,e)}if(0<ph.length){ed(ph[0],e);for(var n=1;n<ph.length;n++){var r=ph[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ll!==null&&ed(ll,e),al!==null&&ed(al,e),cl!==null&&ed(cl,e),Zd.forEach(t),ef.forEach(t),n=0;n<Zs.length;n++)r=Zs[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Zs.length&&(n=Zs[0],n.blockedOn===null);)pM(n),n.blockedOn===null&&Zs.shift()}var Dc=_s.ReactCurrentBatchConfig,hm=!0;function ij(e,t,n,r){var o=tn,i=Dc.transition;Dc.transition=null;try{tn=1,uw(e,t,n,r)}finally{tn=o,Dc.transition=i}}function sj(e,t,n,r){var o=tn,i=Dc.transition;Dc.transition=null;try{tn=4,uw(e,t,n,r)}finally{tn=o,Dc.transition=i}}function uw(e,t,n,r){if(hm){var o=E1(e,t,n,r);if(o===null)d0(e,t,r,mm,n),hk(e,r);else if(rj(o,e,t,n,r))r.stopPropagation();else if(hk(e,r),t&4&&-1<nj.indexOf(e)){for(;o!==null;){var i=jf(o);if(i!==null&&cM(i),i=E1(e,t,n,r),i===null&&d0(e,t,r,mm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else d0(e,t,r,null,n)}}var mm=null;function E1(e,t,n,r){if(mm=null,e=sw(r),e=Zl(e),e!==null)if(t=Ra(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tM(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return mm=e,null}function hM(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(K6()){case lw:return 1;case iM:return 4;case fm:case q6:return 16;case sM:return 536870912;default:return 16}default:return 16}}var tl=null,dw=null,Uh=null;function mM(){if(Uh)return Uh;var e,t=dw,n=t.length,r,o="value"in tl?tl.value:tl.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Uh=o.slice(e,1<r?1-r:void 0)}function Wh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function hh(){return!0}function gk(){return!1}function yo(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?hh:gk,this.isPropagationStopped=gk,this}return Tn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=hh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hh)},persist:function(){},isPersistent:hh}),t}var vu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fw=yo(vu),zf=Tn({},vu,{view:0,detail:0}),lj=yo(zf),n0,r0,td,sg=Tn({},zf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pw,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!==td&&(td&&e.type==="mousemove"?(n0=e.screenX-td.screenX,r0=e.screenY-td.screenY):r0=n0=0,td=e),n0)},movementY:function(e){return"movementY"in e?e.movementY:r0}}),vk=yo(sg),aj=Tn({},sg,{dataTransfer:0}),cj=yo(aj),uj=Tn({},zf,{relatedTarget:0}),o0=yo(uj),dj=Tn({},vu,{animationName:0,elapsedTime:0,pseudoElement:0}),fj=yo(dj),pj=Tn({},vu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hj=yo(pj),mj=Tn({},vu,{data:0}),yk=yo(mj),gj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vj={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"},yj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yj[e])?!!t[e]:!1}function pw(){return bj}var wj=Tn({},zf,{key:function(e){if(e.key){var t=gj[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vj[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pw,charCode:function(e){return e.type==="keypress"?Wh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Cj=yo(wj),xj=Tn({},sg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bk=yo(xj),Sj=Tn({},zf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pw}),Ej=yo(Sj),Pj=Tn({},vu,{propertyName:0,elapsedTime:0,pseudoElement:0}),kj=yo(Pj),Ij=Tn({},sg,{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}),_j=yo(Ij),$j=[9,13,27,32],hw=bs&&"CompositionEvent"in window,Td=null;bs&&"documentMode"in document&&(Td=document.documentMode);var Mj=bs&&"TextEvent"in window&&!Td,gM=bs&&(!hw||Td&&8<Td&&11>=Td),wk=String.fromCharCode(32),Ck=!1;function vM(e,t){switch(e){case"keyup":return $j.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sc=!1;function Tj(e,t){switch(e){case"compositionend":return yM(t);case"keypress":return t.which!==32?null:(Ck=!0,wk);case"textInput":return e=t.data,e===wk&&Ck?null:e;default:return null}}function Rj(e,t){if(Sc)return e==="compositionend"||!hw&&vM(e,t)?(e=mM(),Uh=dw=tl=null,Sc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return gM&&t.locale!=="ko"?null:t.data;default:return null}}var Oj={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 xk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Oj[e.type]:t==="textarea"}function bM(e,t,n,r){X$(r),t=gm(t,"onChange"),0<t.length&&(n=new fw("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rd=null,nf=null;function Lj(e){MM(e,0)}function lg(e){var t=kc(e);if(V$(t))return e}function Aj(e,t){if(e==="change")return t}var wM=!1;if(bs){var i0;if(bs){var s0="oninput"in document;if(!s0){var Sk=document.createElement("div");Sk.setAttribute("oninput","return;"),s0=typeof Sk.oninput=="function"}i0=s0}else i0=!1;wM=i0&&(!document.documentMode||9<document.documentMode)}function Ek(){Rd&&(Rd.detachEvent("onpropertychange",CM),nf=Rd=null)}function CM(e){if(e.propertyName==="value"&&lg(nf)){var t=[];bM(t,nf,e,sw(e)),eM(Lj,t)}}function Fj(e,t,n){e==="focusin"?(Ek(),Rd=t,nf=n,Rd.attachEvent("onpropertychange",CM)):e==="focusout"&&Ek()}function Nj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lg(nf)}function Dj(e,t){if(e==="click")return lg(t)}function Bj(e,t){if(e==="input"||e==="change")return lg(t)}function zj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hi=typeof Object.is=="function"?Object.is:zj;function rf(e,t){if(hi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!s1.call(t,o)||!hi(e[o],t[o]))return!1}return!0}function Pk(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kk(e,t){var n=Pk(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pk(n)}}function xM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function SM(){for(var e=window,t=cm();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=cm(e.document)}return t}function mw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jj(e){var t=SM(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xM(n.ownerDocument.documentElement,n)){if(r!==null&&mw(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=kk(n,i);var s=kk(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hj=bs&&"documentMode"in document&&11>=document.documentMode,Ec=null,P1=null,Od=null,k1=!1;function Ik(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;k1||Ec==null||Ec!==cm(r)||(r=Ec,"selectionStart"in r&&mw(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Od&&rf(Od,r)||(Od=r,r=gm(P1,"onSelect"),0<r.length&&(t=new fw("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ec)))}function mh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pc={animationend:mh("Animation","AnimationEnd"),animationiteration:mh("Animation","AnimationIteration"),animationstart:mh("Animation","AnimationStart"),transitionend:mh("Transition","TransitionEnd")},l0={},EM={};bs&&(EM=document.createElement("div").style,"AnimationEvent"in window||(delete Pc.animationend.animation,delete Pc.animationiteration.animation,delete Pc.animationstart.animation),"TransitionEvent"in window||delete Pc.transitionend.transition);function ag(e){if(l0[e])return l0[e];if(!Pc[e])return e;var t=Pc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in EM)return l0[e]=t[n];return e}var PM=ag("animationend"),kM=ag("animationiteration"),IM=ag("animationstart"),_M=ag("transitionend"),$M=new Map,_k="abort auxClick 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(" ");function $l(e,t){$M.set(e,t),Ta(t,[e])}for(var a0=0;a0<_k.length;a0++){var c0=_k[a0],Vj=c0.toLowerCase(),Uj=c0[0].toUpperCase()+c0.slice(1);$l(Vj,"on"+Uj)}$l(PM,"onAnimationEnd");$l(kM,"onAnimationIteration");$l(IM,"onAnimationStart");$l("dblclick","onDoubleClick");$l("focusin","onFocus");$l("focusout","onBlur");$l(_M,"onTransitionEnd");Yc("onMouseEnter",["mouseout","mouseover"]);Yc("onMouseLeave",["mouseout","mouseover"]);Yc("onPointerEnter",["pointerout","pointerover"]);Yc("onPointerLeave",["pointerout","pointerover"]);Ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ta("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wd="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(" "),Wj=new Set("cancel close invalid load scroll toggle".split(" ").concat(wd));function $k(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,V6(r,t,void 0,e),e.currentTarget=null}function MM(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,f=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;$k(o,a,f),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,f=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;$k(o,a,f),i=c}}}if(dm)throw e=C1,dm=!1,C1=null,e}function gn(e,t){var n=t[T1];n===void 0&&(n=t[T1]=new Set);var r=e+"__bubble";n.has(r)||(TM(t,e,2,!1),n.add(r))}function u0(e,t,n){var r=0;t&&(r|=4),TM(n,e,r,t)}var gh="_reactListening"+Math.random().toString(36).slice(2);function of(e){if(!e[gh]){e[gh]=!0,D$.forEach(function(n){n!=="selectionchange"&&(Wj.has(n)||u0(n,!1,e),u0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gh]||(t[gh]=!0,u0("selectionchange",!1,t))}}function TM(e,t,n,r){switch(hM(t)){case 1:var o=ij;break;case 4:o=sj;break;default:o=uw}n=o.bind(null,t,n,e),o=void 0,!w1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function d0(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Zl(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}eM(function(){var f=i,p=sw(n),h=[];e:{var m=$M.get(e);if(m!==void 0){var v=fw,C=e;switch(e){case"keypress":if(Wh(n)===0)break e;case"keydown":case"keyup":v=Cj;break;case"focusin":C="focus",v=o0;break;case"focusout":C="blur",v=o0;break;case"beforeblur":case"afterblur":v=o0;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=vk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=cj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Ej;break;case PM:case kM:case IM:v=fj;break;case _M:v=kj;break;case"scroll":v=lj;break;case"wheel":v=_j;break;case"copy":case"cut":case"paste":v=hj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=bk}var g=(t&4)!==0,x=!g&&e==="scroll",b=g?m!==null?m+"Capture":null:m;g=[];for(var P=f,w;P!==null;){w=P;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,b!==null&&(E=Jd(P,b),E!=null&&g.push(sf(P,E,w)))),x)break;P=P.return}0<g.length&&(m=new v(m,C,null,n,p),h.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==y1&&(C=n.relatedTarget||n.fromElement)&&(Zl(C)||C[ws]))break e;if((v||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,v?(C=n.relatedTarget||n.toElement,v=f,C=C?Zl(C):null,C!==null&&(x=Ra(C),C!==x||C.tag!==5&&C.tag!==6)&&(C=null)):(v=null,C=f),v!==C)){if(g=vk,E="onMouseLeave",b="onMouseEnter",P="mouse",(e==="pointerout"||e==="pointerover")&&(g=bk,E="onPointerLeave",b="onPointerEnter",P="pointer"),x=v==null?m:kc(v),w=C==null?m:kc(C),m=new g(E,P+"leave",v,n,p),m.target=x,m.relatedTarget=w,E=null,Zl(p)===f&&(g=new g(b,P+"enter",C,n,p),g.target=w,g.relatedTarget=x,E=g),x=E,v&&C)t:{for(g=v,b=C,P=0,w=g;w;w=oc(w))P++;for(w=0,E=b;E;E=oc(E))w++;for(;0<P-w;)g=oc(g),P--;for(;0<w-P;)b=oc(b),w--;for(;P--;){if(g===b||b!==null&&g===b.alternate)break t;g=oc(g),b=oc(b)}g=null}else g=null;v!==null&&Mk(h,m,v,g,!1),C!==null&&x!==null&&Mk(h,x,C,g,!0)}}e:{if(m=f?kc(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var I=Aj;else if(xk(m))if(wM)I=Bj;else{I=Nj;var _=Fj}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(I=Dj);if(I&&(I=I(e,f))){bM(h,I,n,p);break e}_&&_(e,m,f),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&p1(m,"number",m.value)}switch(_=f?kc(f):window,e){case"focusin":(xk(_)||_.contentEditable==="true")&&(Ec=_,P1=f,Od=null);break;case"focusout":Od=P1=Ec=null;break;case"mousedown":k1=!0;break;case"contextmenu":case"mouseup":case"dragend":k1=!1,Ik(h,n,p);break;case"selectionchange":if(Hj)break;case"keydown":case"keyup":Ik(h,n,p)}var k;if(hw)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else Sc?vM(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(gM&&n.locale!=="ko"&&(Sc||$!=="onCompositionStart"?$==="onCompositionEnd"&&Sc&&(k=mM()):(tl=p,dw="value"in tl?tl.value:tl.textContent,Sc=!0)),_=gm(f,$),0<_.length&&($=new yk($,e,null,n,p),h.push({event:$,listeners:_}),k?$.data=k:(k=yM(n),k!==null&&($.data=k)))),(k=Mj?Tj(e,n):Rj(e,n))&&(f=gm(f,"onBeforeInput"),0<f.length&&(p=new yk("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:f}),p.data=k))}MM(h,t)})}function sf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function gm(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Jd(e,n),i!=null&&r.unshift(sf(e,i,o)),i=Jd(e,t),i!=null&&r.push(sf(e,i,o))),e=e.return}return r}function oc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mk(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,f=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&f!==null&&(a=f,o?(c=Jd(n,i),c!=null&&s.unshift(sf(n,c,a))):o||(c=Jd(n,i),c!=null&&s.push(sf(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Gj=/\r\n?/g,Kj=/\u0000|\uFFFD/g;function Tk(e){return(typeof e=="string"?e:""+e).replace(Gj,`
|
|
30
|
+
`).replace(Kj,"")}function vh(e,t,n){if(t=Tk(t),Tk(e)!==t&&n)throw Error(Me(425))}function vm(){}var I1=null,_1=null;function $1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var M1=typeof setTimeout=="function"?setTimeout:void 0,qj=typeof clearTimeout=="function"?clearTimeout:void 0,Rk=typeof Promise=="function"?Promise:void 0,Yj=typeof queueMicrotask=="function"?queueMicrotask:typeof Rk!="undefined"?function(e){return Rk.resolve(null).then(e).catch(Xj)}:M1;function Xj(e){setTimeout(function(){throw e})}function f0(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),tf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);tf(t)}function ul(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ok(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var yu=Math.random().toString(36).slice(2),Oi="__reactFiber$"+yu,lf="__reactProps$"+yu,ws="__reactContainer$"+yu,T1="__reactEvents$"+yu,Qj="__reactListeners$"+yu,Jj="__reactHandles$"+yu;function Zl(e){var t=e[Oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ws]||n[Oi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ok(e);e!==null;){if(n=e[Oi])return n;e=Ok(e)}return t}e=n,n=e.parentNode}return null}function jf(e){return e=e[Oi]||e[ws],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function kc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function cg(e){return e[lf]||null}var R1=[],Ic=-1;function Ml(e){return{current:e}}function vn(e){0>Ic||(e.current=R1[Ic],R1[Ic]=null,Ic--)}function dn(e,t){Ic++,R1[Ic]=e.current,e.current=t}var Cl={},Sr=Ml(Cl),Gr=Ml(!1),ga=Cl;function Xc(e,t){var n=e.type.contextTypes;if(!n)return Cl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Kr(e){return e=e.childContextTypes,e!=null}function ym(){vn(Gr),vn(Sr)}function Lk(e,t,n){if(Sr.current!==Cl)throw Error(Me(168));dn(Sr,t),dn(Gr,n)}function RM(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Me(108,F6(e)||"Unknown",o));return Tn({},n,r)}function bm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cl,ga=Sr.current,dn(Sr,e),dn(Gr,Gr.current),!0}function Ak(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=RM(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,vn(Gr),vn(Sr),dn(Sr,e)):vn(Gr),dn(Gr,n)}var ds=null,ug=!1,p0=!1;function OM(e){ds===null?ds=[e]:ds.push(e)}function Zj(e){ug=!0,OM(e)}function Tl(){if(!p0&&ds!==null){p0=!0;var e=0,t=tn;try{var n=ds;for(tn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ds=null,ug=!1}catch(o){throw ds!==null&&(ds=ds.slice(e+1)),oM(lw,Tl),o}finally{tn=t,p0=!1}}return null}var _c=[],$c=0,wm=null,Cm=0,Lo=[],Ao=0,va=null,fs=1,ps="";function Kl(e,t){_c[$c++]=Cm,_c[$c++]=wm,wm=e,Cm=t}function LM(e,t,n){Lo[Ao++]=fs,Lo[Ao++]=ps,Lo[Ao++]=va,va=e;var r=fs;e=ps;var o=32-di(r)-1;r&=~(1<<o),n+=1;var i=32-di(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,fs=1<<32-di(t)+o|n<<o|r,ps=i+e}else fs=1<<i|n<<o|r,ps=e}function gw(e){e.return!==null&&(Kl(e,1),LM(e,1,0))}function vw(e){for(;e===wm;)wm=_c[--$c],_c[$c]=null,Cm=_c[--$c],_c[$c]=null;for(;e===va;)va=Lo[--Ao],Lo[Ao]=null,ps=Lo[--Ao],Lo[Ao]=null,fs=Lo[--Ao],Lo[Ao]=null}var fo=null,uo=null,xn=!1,ai=null;function AM(e,t){var n=Do(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Fk(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,fo=e,uo=ul(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,fo=e,uo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=va!==null?{id:fs,overflow:ps}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Do(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,fo=e,uo=null,!0):!1;default:return!1}}function O1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function L1(e){if(xn){var t=uo;if(t){var n=t;if(!Fk(e,t)){if(O1(e))throw Error(Me(418));t=ul(n.nextSibling);var r=fo;t&&Fk(e,t)?AM(r,n):(e.flags=e.flags&-4097|2,xn=!1,fo=e)}}else{if(O1(e))throw Error(Me(418));e.flags=e.flags&-4097|2,xn=!1,fo=e}}}function Nk(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;fo=e}function yh(e){if(e!==fo)return!1;if(!xn)return Nk(e),xn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$1(e.type,e.memoizedProps)),t&&(t=uo)){if(O1(e))throw FM(),Error(Me(418));for(;t;)AM(e,t),t=ul(t.nextSibling)}if(Nk(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Me(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){uo=ul(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}uo=null}}else uo=fo?ul(e.stateNode.nextSibling):null;return!0}function FM(){for(var e=uo;e;)e=ul(e.nextSibling)}function Qc(){uo=fo=null,xn=!1}function yw(e){ai===null?ai=[e]:ai.push(e)}var e9=_s.ReactCurrentBatchConfig;function ii(e,t){if(e&&e.defaultProps){t=Tn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var xm=Ml(null),Sm=null,Mc=null,bw=null;function ww(){bw=Mc=Sm=null}function Cw(e){var t=xm.current;vn(xm),e._currentValue=t}function A1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Bc(e,t){Sm=e,bw=Mc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wr=!0),e.firstContext=null)}function Uo(e){var t=e._currentValue;if(bw!==e)if(e={context:e,memoizedValue:t,next:null},Mc===null){if(Sm===null)throw Error(Me(308));Mc=e,Sm.dependencies={lanes:0,firstContext:e}}else Mc=Mc.next=e;return t}var ea=null;function xw(e){ea===null?ea=[e]:ea.push(e)}function NM(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,xw(t)):(n.next=o.next,o.next=n),t.interleaved=n,Cs(e,r)}function Cs(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ys=!1;function Sw(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function DM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ut&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Cs(e,n)}return o=r.interleaved,o===null?(t.next=t,xw(r)):(t.next=o.next,o.next=t),r.interleaved=t,Cs(e,n)}function Gh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,aw(e,n)}}function Dk(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Em(e,t,n,r){var o=e.updateQueue;Ys=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,f=c.next;c.next=null,s===null?i=f:s.next=f,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=f:a.next=f,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=f=c=null,a=i;do{var m=a.lane,v=a.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var C=e,g=a;switch(m=t,v=n,g.tag){case 1:if(C=g.payload,typeof C=="function"){h=C.call(v,h,m);break e}h=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=g.payload,m=typeof C=="function"?C.call(v,h,m):C,m==null)break e;h=Tn({},h,m);break e;case 2:Ys=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else v={eventTime:v,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(f=p=v,c=h):p=p.next=v,s|=m;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;m=a,a=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=f,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ba|=s,e.lanes=s,e.memoizedState=h}}function Bk(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Me(191,o));o.call(r)}}}var BM=new N$.Component().refs;function F1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Tn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dg={isMounted:function(e){return(e=e._reactInternals)?Ra(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Tr(),o=pl(e),i=gs(r,o);i.payload=t,n!=null&&(i.callback=n),t=dl(e,i,o),t!==null&&(fi(t,e,o,r),Gh(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Tr(),o=pl(e),i=gs(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=dl(e,i,o),t!==null&&(fi(t,e,o,r),Gh(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tr(),r=pl(e),o=gs(n,r);o.tag=2,t!=null&&(o.callback=t),t=dl(e,o,r),t!==null&&(fi(t,e,r,n),Gh(t,e,r))}};function zk(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!rf(n,r)||!rf(o,i):!0}function zM(e,t,n){var r=!1,o=Cl,i=t.contextType;return typeof i=="object"&&i!==null?i=Uo(i):(o=Kr(t)?ga:Sr.current,r=t.contextTypes,i=(r=r!=null)?Xc(e,o):Cl),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=dg,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function jk(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&dg.enqueueReplaceState(t,t.state,null)}function N1(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=BM,Sw(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Uo(i):(i=Kr(t)?ga:Sr.current,o.context=Xc(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(F1(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&dg.enqueueReplaceState(o,o.state,null),Em(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function nd(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Me(309));var r=n.stateNode}if(!r)throw Error(Me(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===BM&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(Me(284));if(!n._owner)throw Error(Me(290,e))}return e}function bh(e,t){throw e=Object.prototype.toString.call(t),Error(Me(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hk(e){var t=e._init;return t(e._payload)}function jM(e){function t(b,P){if(e){var w=b.deletions;w===null?(b.deletions=[P],b.flags|=16):w.push(P)}}function n(b,P){if(!e)return null;for(;P!==null;)t(b,P),P=P.sibling;return null}function r(b,P){for(b=new Map;P!==null;)P.key!==null?b.set(P.key,P):b.set(P.index,P),P=P.sibling;return b}function o(b,P){return b=hl(b,P),b.index=0,b.sibling=null,b}function i(b,P,w){return b.index=w,e?(w=b.alternate,w!==null?(w=w.index,w<P?(b.flags|=2,P):w):(b.flags|=2,P)):(b.flags|=1048576,P)}function s(b){return e&&b.alternate===null&&(b.flags|=2),b}function a(b,P,w,E){return P===null||P.tag!==6?(P=w0(w,b.mode,E),P.return=b,P):(P=o(P,w),P.return=b,P)}function c(b,P,w,E){var I=w.type;return I===xc?p(b,P,w.props.children,E,w.key):P!==null&&(P.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===qs&&Hk(I)===P.type)?(E=o(P,w.props),E.ref=nd(b,P,w),E.return=b,E):(E=Jh(w.type,w.key,w.props,null,b.mode,E),E.ref=nd(b,P,w),E.return=b,E)}function f(b,P,w,E){return P===null||P.tag!==4||P.stateNode.containerInfo!==w.containerInfo||P.stateNode.implementation!==w.implementation?(P=C0(w,b.mode,E),P.return=b,P):(P=o(P,w.children||[]),P.return=b,P)}function p(b,P,w,E,I){return P===null||P.tag!==7?(P=ca(w,b.mode,E,I),P.return=b,P):(P=o(P,w),P.return=b,P)}function h(b,P,w){if(typeof P=="string"&&P!==""||typeof P=="number")return P=w0(""+P,b.mode,w),P.return=b,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case ah:return w=Jh(P.type,P.key,P.props,null,b.mode,w),w.ref=nd(b,null,P),w.return=b,w;case Cc:return P=C0(P,b.mode,w),P.return=b,P;case qs:var E=P._init;return h(b,E(P._payload),w)}if(yd(P)||Qu(P))return P=ca(P,b.mode,w,null),P.return=b,P;bh(b,P)}return null}function m(b,P,w,E){var I=P!==null?P.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return I!==null?null:a(b,P,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ah:return w.key===I?c(b,P,w,E):null;case Cc:return w.key===I?f(b,P,w,E):null;case qs:return I=w._init,m(b,P,I(w._payload),E)}if(yd(w)||Qu(w))return I!==null?null:p(b,P,w,E,null);bh(b,w)}return null}function v(b,P,w,E,I){if(typeof E=="string"&&E!==""||typeof E=="number")return b=b.get(w)||null,a(P,b,""+E,I);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ah:return b=b.get(E.key===null?w:E.key)||null,c(P,b,E,I);case Cc:return b=b.get(E.key===null?w:E.key)||null,f(P,b,E,I);case qs:var _=E._init;return v(b,P,w,_(E._payload),I)}if(yd(E)||Qu(E))return b=b.get(w)||null,p(P,b,E,I,null);bh(P,E)}return null}function C(b,P,w,E){for(var I=null,_=null,k=P,$=P=0,R=null;k!==null&&$<w.length;$++){k.index>$?(R=k,k=null):R=k.sibling;var O=m(b,k,w[$],E);if(O===null){k===null&&(k=R);break}e&&k&&O.alternate===null&&t(b,k),P=i(O,P,$),_===null?I=O:_.sibling=O,_=O,k=R}if($===w.length)return n(b,k),xn&&Kl(b,$),I;if(k===null){for(;$<w.length;$++)k=h(b,w[$],E),k!==null&&(P=i(k,P,$),_===null?I=k:_.sibling=k,_=k);return xn&&Kl(b,$),I}for(k=r(b,k);$<w.length;$++)R=v(k,b,$,w[$],E),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?$:R.key),P=i(R,P,$),_===null?I=R:_.sibling=R,_=R);return e&&k.forEach(function(N){return t(b,N)}),xn&&Kl(b,$),I}function g(b,P,w,E){var I=Qu(w);if(typeof I!="function")throw Error(Me(150));if(w=I.call(w),w==null)throw Error(Me(151));for(var _=I=null,k=P,$=P=0,R=null,O=w.next();k!==null&&!O.done;$++,O=w.next()){k.index>$?(R=k,k=null):R=k.sibling;var N=m(b,k,O.value,E);if(N===null){k===null&&(k=R);break}e&&k&&N.alternate===null&&t(b,k),P=i(N,P,$),_===null?I=N:_.sibling=N,_=N,k=R}if(O.done)return n(b,k),xn&&Kl(b,$),I;if(k===null){for(;!O.done;$++,O=w.next())O=h(b,O.value,E),O!==null&&(P=i(O,P,$),_===null?I=O:_.sibling=O,_=O);return xn&&Kl(b,$),I}for(k=r(b,k);!O.done;$++,O=w.next())O=v(k,b,$,O.value,E),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?$:O.key),P=i(O,P,$),_===null?I=O:_.sibling=O,_=O);return e&&k.forEach(function(U){return t(b,U)}),xn&&Kl(b,$),I}function x(b,P,w,E){if(typeof w=="object"&&w!==null&&w.type===xc&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ah:e:{for(var I=w.key,_=P;_!==null;){if(_.key===I){if(I=w.type,I===xc){if(_.tag===7){n(b,_.sibling),P=o(_,w.props.children),P.return=b,b=P;break e}}else if(_.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===qs&&Hk(I)===_.type){n(b,_.sibling),P=o(_,w.props),P.ref=nd(b,_,w),P.return=b,b=P;break e}n(b,_);break}else t(b,_);_=_.sibling}w.type===xc?(P=ca(w.props.children,b.mode,E,w.key),P.return=b,b=P):(E=Jh(w.type,w.key,w.props,null,b.mode,E),E.ref=nd(b,P,w),E.return=b,b=E)}return s(b);case Cc:e:{for(_=w.key;P!==null;){if(P.key===_)if(P.tag===4&&P.stateNode.containerInfo===w.containerInfo&&P.stateNode.implementation===w.implementation){n(b,P.sibling),P=o(P,w.children||[]),P.return=b,b=P;break e}else{n(b,P);break}else t(b,P);P=P.sibling}P=C0(w,b.mode,E),P.return=b,b=P}return s(b);case qs:return _=w._init,x(b,P,_(w._payload),E)}if(yd(w))return C(b,P,w,E);if(Qu(w))return g(b,P,w,E);bh(b,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,P!==null&&P.tag===6?(n(b,P.sibling),P=o(P,w),P.return=b,b=P):(n(b,P),P=w0(w,b.mode,E),P.return=b,b=P),s(b)):n(b,P)}return x}var Jc=jM(!0),HM=jM(!1),Hf={},Fi=Ml(Hf),af=Ml(Hf),cf=Ml(Hf);function ta(e){if(e===Hf)throw Error(Me(174));return e}function Ew(e,t){switch(dn(cf,t),dn(af,e),dn(Fi,Hf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:m1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=m1(t,e)}vn(Fi),dn(Fi,t)}function Zc(){vn(Fi),vn(af),vn(cf)}function VM(e){ta(cf.current);var t=ta(Fi.current),n=m1(t,e.type);t!==n&&(dn(af,e),dn(Fi,n))}function Pw(e){af.current===e&&(vn(Fi),vn(af))}var In=Ml(0);function Pm(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var h0=[];function kw(){for(var e=0;e<h0.length;e++)h0[e]._workInProgressVersionPrimary=null;h0.length=0}var Kh=_s.ReactCurrentDispatcher,m0=_s.ReactCurrentBatchConfig,ya=0,Mn=null,Yn=null,er=null,km=!1,Ld=!1,uf=0,t9=0;function hr(){throw Error(Me(321))}function Iw(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!hi(e[n],t[n]))return!1;return!0}function _w(e,t,n,r,o,i){if(ya=i,Mn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kh.current=e===null||e.memoizedState===null?i9:s9,e=n(r,o),Ld){i=0;do{if(Ld=!1,uf=0,25<=i)throw Error(Me(301));i+=1,er=Yn=null,t.updateQueue=null,Kh.current=l9,e=n(r,o)}while(Ld)}if(Kh.current=Im,t=Yn!==null&&Yn.next!==null,ya=0,er=Yn=Mn=null,km=!1,t)throw Error(Me(300));return e}function $w(){var e=uf!==0;return uf=0,e}function Ei(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return er===null?Mn.memoizedState=er=e:er=er.next=e,er}function Wo(){if(Yn===null){var e=Mn.alternate;e=e!==null?e.memoizedState:null}else e=Yn.next;var t=er===null?Mn.memoizedState:er.next;if(t!==null)er=t,Yn=e;else{if(e===null)throw Error(Me(310));Yn=e,e={memoizedState:Yn.memoizedState,baseState:Yn.baseState,baseQueue:Yn.baseQueue,queue:Yn.queue,next:null},er===null?Mn.memoizedState=er=e:er=er.next=e}return er}function df(e,t){return typeof t=="function"?t(e):t}function g0(e){var t=Wo(),n=t.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=e;var r=Yn,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,c=null,f=i;do{var p=f.lane;if((ya&p)===p)c!==null&&(c=c.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var h={lane:p,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,Mn.lanes|=p,ba|=p}f=f.next}while(f!==null&&f!==i);c===null?s=r:c.next=a,hi(r,t.memoizedState)||(Wr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Mn.lanes|=i,ba|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function v0(e){var t=Wo(),n=t.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);hi(i,t.memoizedState)||(Wr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function UM(){}function WM(e,t){var n=Mn,r=Wo(),o=t(),i=!hi(r.memoizedState,o);if(i&&(r.memoizedState=o,Wr=!0),r=r.queue,Mw(qM.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||er!==null&&er.memoizedState.tag&1){if(n.flags|=2048,ff(9,KM.bind(null,n,r,o,t),void 0,null),nr===null)throw Error(Me(349));ya&30||GM(n,t,o)}return o}function GM(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Mn.updateQueue,t===null?(t={lastEffect:null,stores:null},Mn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function KM(e,t,n,r){t.value=n,t.getSnapshot=r,YM(t)&&XM(e)}function qM(e,t,n){return n(function(){YM(t)&&XM(e)})}function YM(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hi(e,n)}catch(r){return!0}}function XM(e){var t=Cs(e,1);t!==null&&fi(t,e,1,-1)}function Vk(e){var t=Ei();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:df,lastRenderedState:e},t.queue=e,e=e.dispatch=o9.bind(null,Mn,e),[t.memoizedState,e]}function ff(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Mn.updateQueue,t===null?(t={lastEffect:null,stores:null},Mn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function QM(){return Wo().memoizedState}function qh(e,t,n,r){var o=Ei();Mn.flags|=e,o.memoizedState=ff(1|t,n,void 0,r===void 0?null:r)}function fg(e,t,n,r){var o=Wo();r=r===void 0?null:r;var i=void 0;if(Yn!==null){var s=Yn.memoizedState;if(i=s.destroy,r!==null&&Iw(r,s.deps)){o.memoizedState=ff(t,n,i,r);return}}Mn.flags|=e,o.memoizedState=ff(1|t,n,i,r)}function Uk(e,t){return qh(8390656,8,e,t)}function Mw(e,t){return fg(2048,8,e,t)}function JM(e,t){return fg(4,2,e,t)}function ZM(e,t){return fg(4,4,e,t)}function eT(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tT(e,t,n){return n=n!=null?n.concat([e]):null,fg(4,4,eT.bind(null,t,e),n)}function Tw(){}function nT(e,t){var n=Wo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Iw(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rT(e,t){var n=Wo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Iw(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oT(e,t,n){return ya&21?(hi(n,t)||(n=lM(),Mn.lanes|=n,ba|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Wr=!0),e.memoizedState=n)}function n9(e,t){var n=tn;tn=n!==0&&4>n?n:4,e(!0);var r=m0.transition;m0.transition={};try{e(!1),t()}finally{tn=n,m0.transition=r}}function iT(){return Wo().memoizedState}function r9(e,t,n){var r=pl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sT(e))lT(t,n);else if(n=NM(e,t,n,r),n!==null){var o=Tr();fi(n,e,r,o),aT(n,t,r)}}function o9(e,t,n){var r=pl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sT(e))lT(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,hi(a,s)){var c=t.interleaved;c===null?(o.next=o,xw(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch(f){}finally{}n=NM(e,t,o,r),n!==null&&(o=Tr(),fi(n,e,r,o),aT(n,t,r))}}function sT(e){var t=e.alternate;return e===Mn||t!==null&&t===Mn}function lT(e,t){Ld=km=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function aT(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,aw(e,n)}}var Im={readContext:Uo,useCallback:hr,useContext:hr,useEffect:hr,useImperativeHandle:hr,useInsertionEffect:hr,useLayoutEffect:hr,useMemo:hr,useReducer:hr,useRef:hr,useState:hr,useDebugValue:hr,useDeferredValue:hr,useTransition:hr,useMutableSource:hr,useSyncExternalStore:hr,useId:hr,unstable_isNewReconciler:!1},i9={readContext:Uo,useCallback:function(e,t){return Ei().memoizedState=[e,t===void 0?null:t],e},useContext:Uo,useEffect:Uk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qh(4194308,4,eT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qh(4194308,4,e,t)},useInsertionEffect:function(e,t){return qh(4,2,e,t)},useMemo:function(e,t){var n=Ei();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ei();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=r9.bind(null,Mn,e),[r.memoizedState,e]},useRef:function(e){var t=Ei();return e={current:e},t.memoizedState=e},useState:Vk,useDebugValue:Tw,useDeferredValue:function(e){return Ei().memoizedState=e},useTransition:function(){var e=Vk(!1),t=e[0];return e=n9.bind(null,e[1]),Ei().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Mn,o=Ei();if(xn){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),nr===null)throw Error(Me(349));ya&30||GM(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Uk(qM.bind(null,r,i,e),[e]),r.flags|=2048,ff(9,KM.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ei(),t=nr.identifierPrefix;if(xn){var n=ps,r=fs;n=(r&~(1<<32-di(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=uf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=t9++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},s9={readContext:Uo,useCallback:nT,useContext:Uo,useEffect:Mw,useImperativeHandle:tT,useInsertionEffect:JM,useLayoutEffect:ZM,useMemo:rT,useReducer:g0,useRef:QM,useState:function(){return g0(df)},useDebugValue:Tw,useDeferredValue:function(e){var t=Wo();return oT(t,Yn.memoizedState,e)},useTransition:function(){var e=g0(df)[0],t=Wo().memoizedState;return[e,t]},useMutableSource:UM,useSyncExternalStore:WM,useId:iT,unstable_isNewReconciler:!1},l9={readContext:Uo,useCallback:nT,useContext:Uo,useEffect:Mw,useImperativeHandle:tT,useInsertionEffect:JM,useLayoutEffect:ZM,useMemo:rT,useReducer:v0,useRef:QM,useState:function(){return v0(df)},useDebugValue:Tw,useDeferredValue:function(e){var t=Wo();return Yn===null?t.memoizedState=e:oT(t,Yn.memoizedState,e)},useTransition:function(){var e=v0(df)[0],t=Wo().memoizedState;return[e,t]},useMutableSource:UM,useSyncExternalStore:WM,useId:iT,unstable_isNewReconciler:!1};function eu(e,t){try{var n="",r=t;do n+=A6(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
31
|
+
Error generating stack: `+i.message+`
|
|
32
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function y0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function D1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var a9=typeof WeakMap=="function"?WeakMap:Map;function cT(e,t,n){n=gs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$m||($m=!0,q1=r),D1(e,t)},n}function uT(e,t,n){n=gs(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){D1(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){D1(e,t),typeof r!="function"&&(fl===null?fl=new Set([this]):fl.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Wk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new a9;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=x9.bind(null,e,t,n),t.then(e,e))}function Gk(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Kk(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gs(-1,1),t.tag=2,dl(n,t,1))),n.lanes|=1),e)}var c9=_s.ReactCurrentOwner,Wr=!1;function _r(e,t,n,r){t.child=e===null?HM(t,null,n,r):Jc(t,e.child,n,r)}function qk(e,t,n,r,o){n=n.render;var i=t.ref;return Bc(t,o),r=_w(e,t,n,r,i,o),n=$w(),e!==null&&!Wr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,xs(e,t,o)):(xn&&n&&gw(t),t.flags|=1,_r(e,t,r,o),t.child)}function Yk(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Bw(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,dT(e,t,i,r,o)):(e=Jh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:rf,n(s,r)&&e.ref===t.ref)return xs(e,t,o)}return t.flags|=1,e=hl(i,r),e.ref=t.ref,e.return=t,t.child=e}function dT(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(rf(i,r)&&e.ref===t.ref)if(Wr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Wr=!0);else return t.lanes=e.lanes,xs(e,t,o)}return B1(e,t,n,r,o)}function fT(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},dn(Rc,lo),lo|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,dn(Rc,lo),lo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,dn(Rc,lo),lo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,dn(Rc,lo),lo|=r;return _r(e,t,o,n),t.child}function pT(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function B1(e,t,n,r,o){var i=Kr(n)?ga:Sr.current;return i=Xc(t,i),Bc(t,o),n=_w(e,t,n,r,i,o),r=$w(),e!==null&&!Wr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,xs(e,t,o)):(xn&&r&&gw(t),t.flags|=1,_r(e,t,n,o),t.child)}function Xk(e,t,n,r,o){if(Kr(n)){var i=!0;bm(t)}else i=!1;if(Bc(t,o),t.stateNode===null)Yh(e,t),zM(t,n,r),N1(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=Uo(f):(f=Kr(n)?ga:Sr.current,f=Xc(t,f));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==f)&&jk(t,s,r,f),Ys=!1;var m=t.memoizedState;s.state=m,Em(t,r,s,o),c=t.memoizedState,a!==r||m!==c||Gr.current||Ys?(typeof p=="function"&&(F1(t,n,p,r),c=t.memoizedState),(a=Ys||zk(t,n,a,r,m,c,f))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=f,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,DM(e,t),a=t.memoizedProps,f=t.type===t.elementType?a:ii(t.type,a),s.props=f,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Uo(c):(c=Kr(n)?ga:Sr.current,c=Xc(t,c));var v=n.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||m!==c)&&jk(t,s,r,c),Ys=!1,m=t.memoizedState,s.state=m,Em(t,r,s,o);var C=t.memoizedState;a!==h||m!==C||Gr.current||Ys?(typeof v=="function"&&(F1(t,n,v,r),C=t.memoizedState),(f=Ys||zk(t,n,f,r,m,C,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,C,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,C,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=C),s.props=r,s.state=C,s.context=c,r=f):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return z1(e,t,n,r,i,o)}function z1(e,t,n,r,o,i){pT(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Ak(t,n,!1),xs(e,t,i);r=t.stateNode,c9.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Jc(t,e.child,null,i),t.child=Jc(t,null,a,i)):_r(e,t,a,i),t.memoizedState=r.state,o&&Ak(t,n,!0),t.child}function hT(e){var t=e.stateNode;t.pendingContext?Lk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lk(e,t.context,!1),Ew(e,t.containerInfo)}function Qk(e,t,n,r,o){return Qc(),yw(o),t.flags|=256,_r(e,t,n,r),t.child}var j1={dehydrated:null,treeContext:null,retryLane:0};function H1(e){return{baseLanes:e,cachePool:null,transitions:null}}function mT(e,t,n){var r=t.pendingProps,o=In.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),dn(In,o&1),e===null)return L1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=mg(s,r,0,null),e=ca(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=H1(n),t.memoizedState=j1,e):Rw(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return u9(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=hl(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=hl(a,i):(i=ca(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?H1(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=j1,r}return i=e.child,e=i.sibling,r=hl(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Rw(e,t){return t=mg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wh(e,t,n,r){return r!==null&&yw(r),Jc(t,e.child,null,n),e=Rw(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function u9(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=y0(Error(Me(422))),wh(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=mg({mode:"visible",children:r.children},o,0,null),i=ca(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Jc(t,e.child,null,s),t.child.memoizedState=H1(s),t.memoizedState=j1,i);if(!(t.mode&1))return wh(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(Me(419)),r=y0(i,r,void 0),wh(e,t,s,r)}if(a=(s&e.childLanes)!==0,Wr||a){if(r=nr,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Cs(e,o),fi(r,e,o,-1))}return Dw(),r=y0(Error(Me(421))),wh(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=S9.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,uo=ul(o.nextSibling),fo=t,xn=!0,ai=null,e!==null&&(Lo[Ao++]=fs,Lo[Ao++]=ps,Lo[Ao++]=va,fs=e.id,ps=e.overflow,va=t),t=Rw(t,r.children),t.flags|=4096,t)}function Jk(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),A1(e.return,t,n)}function b0(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function gT(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(_r(e,t,r.children,n),r=In.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jk(e,n,t);else if(e.tag===19)Jk(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(dn(In,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Pm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),b0(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Pm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}b0(t,!0,n,null,i);break;case"together":b0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ba|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Me(153));if(t.child!==null){for(e=t.child,n=hl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function d9(e,t,n){switch(t.tag){case 3:hT(t),Qc();break;case 5:VM(t);break;case 1:Kr(t.type)&&bm(t);break;case 4:Ew(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;dn(xm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(dn(In,In.current&1),t.flags|=128,null):n&t.child.childLanes?mT(e,t,n):(dn(In,In.current&1),e=xs(e,t,n),e!==null?e.sibling:null);dn(In,In.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return gT(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),dn(In,In.current),r)break;return null;case 22:case 23:return t.lanes=0,fT(e,t,n)}return xs(e,t,n)}var vT,V1,yT,bT;vT=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};V1=function(){};yT=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ta(Fi.current);var i=null;switch(n){case"input":o=d1(e,o),r=d1(e,r),i=[];break;case"select":o=Tn({},o,{value:void 0}),r=Tn({},r,{value:void 0}),i=[];break;case"textarea":o=h1(e,o),r=h1(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vm)}g1(n,r);var s;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var a=o[f];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Xd.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(a=o!=null?o[f]:void 0,r.hasOwnProperty(f)&&c!==a&&(c!=null||a!=null))if(f==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Xd.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&gn("scroll",e),i||a===c||(i=[])):(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};bT=function(e,t,n,r){n!==r&&(t.flags|=4)};function rd(e,t){if(!xn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function mr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function f9(e,t,n){var r=t.pendingProps;switch(vw(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mr(t),null;case 1:return Kr(t.type)&&ym(),mr(t),null;case 3:return r=t.stateNode,Zc(),vn(Gr),vn(Sr),kw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ai!==null&&(Q1(ai),ai=null))),V1(e,t),mr(t),null;case 5:Pw(t);var o=ta(cf.current);if(n=t.type,e!==null&&t.stateNode!=null)yT(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Me(166));return mr(t),null}if(e=ta(Fi.current),yh(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Oi]=t,r[lf]=i,e=(t.mode&1)!==0,n){case"dialog":gn("cancel",r),gn("close",r);break;case"iframe":case"object":case"embed":gn("load",r);break;case"video":case"audio":for(o=0;o<wd.length;o++)gn(wd[o],r);break;case"source":gn("error",r);break;case"img":case"image":case"link":gn("error",r),gn("load",r);break;case"details":gn("toggle",r);break;case"input":lk(r,i),gn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},gn("invalid",r);break;case"textarea":ck(r,i),gn("invalid",r)}g1(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&vh(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&vh(r.textContent,a,e),o=["children",""+a]):Xd.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&gn("scroll",r)}switch(n){case"input":ch(r),ak(r,i,!0);break;case"textarea":ch(r),uk(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=vm)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=G$(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Oi]=t,e[lf]=r,vT(e,t,!1,!1),t.stateNode=e;e:{switch(s=v1(n,r),n){case"dialog":gn("cancel",e),gn("close",e),o=r;break;case"iframe":case"object":case"embed":gn("load",e),o=r;break;case"video":case"audio":for(o=0;o<wd.length;o++)gn(wd[o],e);o=r;break;case"source":gn("error",e),o=r;break;case"img":case"image":case"link":gn("error",e),gn("load",e),o=r;break;case"details":gn("toggle",e),o=r;break;case"input":lk(e,r),o=d1(e,r),gn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Tn({},r,{value:void 0}),gn("invalid",e);break;case"textarea":ck(e,r),o=h1(e,r),gn("invalid",e);break;default:o=r}g1(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?Y$(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&K$(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Qd(e,c):typeof c=="number"&&Qd(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Xd.hasOwnProperty(i)?c!=null&&i==="onScroll"&&gn("scroll",e):c!=null&&nw(e,i,c,s))}switch(n){case"input":ch(e),ak(e,r,!1);break;case"textarea":ch(e),uk(e);break;case"option":r.value!=null&&e.setAttribute("value",""+wl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Ac(e,!!r.multiple,i,!1):r.defaultValue!=null&&Ac(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=vm)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return mr(t),null;case 6:if(e&&t.stateNode!=null)bT(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Me(166));if(n=ta(cf.current),ta(Fi.current),yh(t)){if(r=t.stateNode,n=t.memoizedProps,r[Oi]=t,(i=r.nodeValue!==n)&&(e=fo,e!==null))switch(e.tag){case 3:vh(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vh(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Oi]=t,t.stateNode=r}return mr(t),null;case 13:if(vn(In),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xn&&uo!==null&&t.mode&1&&!(t.flags&128))FM(),Qc(),t.flags|=98560,i=!1;else if(i=yh(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Me(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Me(317));i[Oi]=t}else Qc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;mr(t),i=!1}else ai!==null&&(Q1(ai),ai=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||In.current&1?Xn===0&&(Xn=3):Dw())),t.updateQueue!==null&&(t.flags|=4),mr(t),null);case 4:return Zc(),V1(e,t),e===null&&of(t.stateNode.containerInfo),mr(t),null;case 10:return Cw(t.type._context),mr(t),null;case 17:return Kr(t.type)&&ym(),mr(t),null;case 19:if(vn(In),i=t.memoizedState,i===null)return mr(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)rd(i,!1);else{if(Xn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Pm(e),s!==null){for(t.flags|=128,rd(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return dn(In,In.current&1|2),t.child}e=e.sibling}i.tail!==null&&Bn()>tu&&(t.flags|=128,r=!0,rd(i,!1),t.lanes=4194304)}else{if(!r)if(e=Pm(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rd(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xn)return mr(t),null}else 2*Bn()-i.renderingStartTime>tu&&n!==1073741824&&(t.flags|=128,r=!0,rd(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Bn(),t.sibling=null,n=In.current,dn(In,r?n&1|2:n&1),t):(mr(t),null);case 22:case 23:return Nw(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lo&1073741824&&(mr(t),t.subtreeFlags&6&&(t.flags|=8192)):mr(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function p9(e,t){switch(vw(t),t.tag){case 1:return Kr(t.type)&&ym(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zc(),vn(Gr),vn(Sr),kw(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pw(t),null;case 13:if(vn(In),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));Qc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vn(In),null;case 4:return Zc(),null;case 10:return Cw(t.type._context),null;case 22:case 23:return Nw(),null;case 24:return null;default:return null}}var Ch=!1,yr=!1,h9=typeof WeakSet=="function"?WeakSet:Set,He=null;function Tc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ln(e,t,r)}else n.current=null}function U1(e,t,n){try{n()}catch(r){Ln(e,t,r)}}var Zk=!1;function m9(e,t){if(I1=hm,e=SM(),mw(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(E){n=null;break e}var s=0,a=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(a=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===o&&(a=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(_1={focusedElem:e,selectionRange:n},hm=!1,He=t;He!==null;)if(t=He,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,He=e;else for(;He!==null;){t=He;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var g=C.memoizedProps,x=C.memoizedState,b=t.stateNode,P=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:ii(t.type,g),x);b.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(E){Ln(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,He=e;break}He=t.return}return C=Zk,Zk=!1,C}function Ad(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&U1(t,n,i)}o=o.next}while(o!==r)}}function pg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function W1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function wT(e){var t=e.alternate;t!==null&&(e.alternate=null,wT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Oi],delete t[lf],delete t[T1],delete t[Qj],delete t[Jj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function CT(e){return e.tag===5||e.tag===3||e.tag===4}function e2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||CT(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.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 G1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vm));else if(r!==4&&(e=e.child,e!==null))for(G1(e,t,n),e=e.sibling;e!==null;)G1(e,t,n),e=e.sibling}function K1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(K1(e,t,n),e=e.sibling;e!==null;)K1(e,t,n),e=e.sibling}var lr=null,li=!1;function Hs(e,t,n){for(n=n.child;n!==null;)xT(e,t,n),n=n.sibling}function xT(e,t,n){if(Ai&&typeof Ai.onCommitFiberUnmount=="function")try{Ai.onCommitFiberUnmount(ig,n)}catch(a){}switch(n.tag){case 5:yr||Tc(n,t);case 6:var r=lr,o=li;lr=null,Hs(e,t,n),lr=r,li=o,lr!==null&&(li?(e=lr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lr.removeChild(n.stateNode));break;case 18:lr!==null&&(li?(e=lr,n=n.stateNode,e.nodeType===8?f0(e.parentNode,n):e.nodeType===1&&f0(e,n),tf(e)):f0(lr,n.stateNode));break;case 4:r=lr,o=li,lr=n.stateNode.containerInfo,li=!0,Hs(e,t,n),lr=r,li=o;break;case 0:case 11:case 14:case 15:if(!yr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&U1(n,t,s),o=o.next}while(o!==r)}Hs(e,t,n);break;case 1:if(!yr&&(Tc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ln(n,t,a)}Hs(e,t,n);break;case 21:Hs(e,t,n);break;case 22:n.mode&1?(yr=(r=yr)||n.memoizedState!==null,Hs(e,t,n),yr=r):Hs(e,t,n);break;default:Hs(e,t,n)}}function t2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h9),t.forEach(function(r){var o=E9.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ri(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:lr=a.stateNode,li=!1;break e;case 3:lr=a.stateNode.containerInfo,li=!0;break e;case 4:lr=a.stateNode.containerInfo,li=!0;break e}a=a.return}if(lr===null)throw Error(Me(160));xT(i,s,o),lr=null,li=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(f){Ln(o,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ST(t,e),t=t.sibling}function ST(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ri(t,e),xi(e),r&4){try{Ad(3,e,e.return),pg(3,e)}catch(g){Ln(e,e.return,g)}try{Ad(5,e,e.return)}catch(g){Ln(e,e.return,g)}}break;case 1:ri(t,e),xi(e),r&512&&n!==null&&Tc(n,n.return);break;case 5:if(ri(t,e),xi(e),r&512&&n!==null&&Tc(n,n.return),e.flags&32){var o=e.stateNode;try{Qd(o,"")}catch(g){Ln(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&U$(o,i),v1(a,s);var f=v1(a,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?Y$(o,h):p==="dangerouslySetInnerHTML"?K$(o,h):p==="children"?Qd(o,h):nw(o,p,h,f)}switch(a){case"input":f1(o,i);break;case"textarea":W$(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?Ac(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?Ac(o,!!i.multiple,i.defaultValue,!0):Ac(o,!!i.multiple,i.multiple?[]:"",!1))}o[lf]=i}catch(g){Ln(e,e.return,g)}}break;case 6:if(ri(t,e),xi(e),r&4){if(e.stateNode===null)throw Error(Me(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Ln(e,e.return,g)}}break;case 3:if(ri(t,e),xi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{tf(t.containerInfo)}catch(g){Ln(e,e.return,g)}break;case 4:ri(t,e),xi(e);break;case 13:ri(t,e),xi(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Aw=Bn())),r&4&&t2(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(yr=(f=yr)||p,ri(t,e),yr=f):ri(t,e),xi(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!p&&e.mode&1)for(He=e,p=e.child;p!==null;){for(h=He=p;He!==null;){switch(m=He,v=m.child,m.tag){case 0:case 11:case 14:case 15:Ad(4,m,m.return);break;case 1:Tc(m,m.return);var C=m.stateNode;if(typeof C.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,C.props=t.memoizedProps,C.state=t.memoizedState,C.componentWillUnmount()}catch(g){Ln(r,n,g)}}break;case 5:Tc(m,m.return);break;case 22:if(m.memoizedState!==null){r2(h);continue}}v!==null?(v.return=m,He=v):r2(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,f?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=q$("display",s))}catch(g){Ln(e,e.return,g)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(g){Ln(e,e.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ri(t,e),xi(e),r&4&&t2(e);break;case 21:break;default:ri(t,e),xi(e)}}function xi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(CT(n)){var r=n;break e}n=n.return}throw Error(Me(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Qd(o,""),r.flags&=-33);var i=e2(e);K1(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=e2(e);G1(e,a,s);break;default:throw Error(Me(161))}}catch(c){Ln(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function g9(e,t,n){He=e,ET(e)}function ET(e,t,n){for(var r=(e.mode&1)!==0;He!==null;){var o=He,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ch;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||yr;a=Ch;var f=yr;if(Ch=s,(yr=c)&&!f)for(He=o;He!==null;)s=He,c=s.child,s.tag===22&&s.memoizedState!==null?o2(o):c!==null?(c.return=s,He=c):o2(o);for(;i!==null;)He=i,ET(i),i=i.sibling;He=o,Ch=a,yr=f}n2(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,He=i):n2(e)}}function n2(e){for(;He!==null;){var t=He;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:yr||pg(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!yr)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ii(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Bk(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Bk(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&tf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Me(163))}yr||t.flags&512&&W1(t)}catch(m){Ln(t,t.return,m)}}if(t===e){He=null;break}if(n=t.sibling,n!==null){n.return=t.return,He=n;break}He=t.return}}function r2(e){for(;He!==null;){var t=He;if(t===e){He=null;break}var n=t.sibling;if(n!==null){n.return=t.return,He=n;break}He=t.return}}function o2(e){for(;He!==null;){var t=He;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{pg(4,t)}catch(c){Ln(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Ln(t,o,c)}}var i=t.return;try{W1(t)}catch(c){Ln(t,i,c)}break;case 5:var s=t.return;try{W1(t)}catch(c){Ln(t,s,c)}}}catch(c){Ln(t,t.return,c)}if(t===e){He=null;break}var a=t.sibling;if(a!==null){a.return=t.return,He=a;break}He=t.return}}var v9=Math.ceil,_m=_s.ReactCurrentDispatcher,Ow=_s.ReactCurrentOwner,zo=_s.ReactCurrentBatchConfig,Ut=0,nr=null,Un=null,ar=0,lo=0,Rc=Ml(0),Xn=0,pf=null,ba=0,hg=0,Lw=0,Fd=null,Vr=null,Aw=0,tu=1/0,ls=null,$m=!1,q1=null,fl=null,xh=!1,nl=null,Mm=0,Nd=0,Y1=null,Xh=-1,Qh=0;function Tr(){return Ut&6?Bn():Xh!==-1?Xh:Xh=Bn()}function pl(e){return e.mode&1?Ut&2&&ar!==0?ar&-ar:e9.transition!==null?(Qh===0&&(Qh=lM()),Qh):(e=tn,e!==0||(e=window.event,e=e===void 0?16:hM(e.type)),e):1}function fi(e,t,n,r){if(50<Nd)throw Nd=0,Y1=null,Error(Me(185));Bf(e,n,r),(!(Ut&2)||e!==nr)&&(e===nr&&(!(Ut&2)&&(hg|=n),Xn===4&&el(e,ar)),qr(e,r),n===1&&Ut===0&&!(t.mode&1)&&(tu=Bn()+500,ug&&Tl()))}function qr(e,t){var n=e.callbackNode;ej(e,t);var r=pm(e,e===nr?ar:0);if(r===0)n!==null&&pk(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&pk(n),t===1)e.tag===0?Zj(i2.bind(null,e)):OM(i2.bind(null,e)),Yj(function(){!(Ut&6)&&Tl()}),n=null;else{switch(aM(r)){case 1:n=lw;break;case 4:n=iM;break;case 16:n=fm;break;case 536870912:n=sM;break;default:n=fm}n=RT(n,PT.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function PT(e,t){if(Xh=-1,Qh=0,Ut&6)throw Error(Me(327));var n=e.callbackNode;if(zc()&&e.callbackNode!==n)return null;var r=pm(e,e===nr?ar:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Tm(e,r);else{t=r;var o=Ut;Ut|=2;var i=IT();(nr!==e||ar!==t)&&(ls=null,tu=Bn()+500,aa(e,t));do try{w9();break}catch(a){kT(e,a)}while(1);ww(),_m.current=i,Ut=o,Un!==null?t=0:(nr=null,ar=0,t=Xn)}if(t!==0){if(t===2&&(o=x1(e),o!==0&&(r=o,t=X1(e,o))),t===1)throw n=pf,aa(e,0),el(e,r),qr(e,Bn()),n;if(t===6)el(e,r);else{if(o=e.current.alternate,!(r&30)&&!y9(o)&&(t=Tm(e,r),t===2&&(i=x1(e),i!==0&&(r=i,t=X1(e,i))),t===1))throw n=pf,aa(e,0),el(e,r),qr(e,Bn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Me(345));case 2:ql(e,Vr,ls);break;case 3:if(el(e,r),(r&130023424)===r&&(t=Aw+500-Bn(),10<t)){if(pm(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Tr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=M1(ql.bind(null,e,Vr,ls),t);break}ql(e,Vr,ls);break;case 4:if(el(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-di(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Bn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*v9(r/1960))-r,10<r){e.timeoutHandle=M1(ql.bind(null,e,Vr,ls),r);break}ql(e,Vr,ls);break;case 5:ql(e,Vr,ls);break;default:throw Error(Me(329))}}}return qr(e,Bn()),e.callbackNode===n?PT.bind(null,e):null}function X1(e,t){var n=Fd;return e.current.memoizedState.isDehydrated&&(aa(e,t).flags|=256),e=Tm(e,t),e!==2&&(t=Vr,Vr=n,t!==null&&Q1(t)),e}function Q1(e){Vr===null?Vr=e:Vr.push.apply(Vr,e)}function y9(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!hi(i(),o))return!1}catch(s){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function el(e,t){for(t&=~Lw,t&=~hg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-di(t),r=1<<n;e[n]=-1,t&=~r}}function i2(e){if(Ut&6)throw Error(Me(327));zc();var t=pm(e,0);if(!(t&1))return qr(e,Bn()),null;var n=Tm(e,t);if(e.tag!==0&&n===2){var r=x1(e);r!==0&&(t=r,n=X1(e,r))}if(n===1)throw n=pf,aa(e,0),el(e,t),qr(e,Bn()),n;if(n===6)throw Error(Me(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ql(e,Vr,ls),qr(e,Bn()),null}function Fw(e,t){var n=Ut;Ut|=1;try{return e(t)}finally{Ut=n,Ut===0&&(tu=Bn()+500,ug&&Tl())}}function wa(e){nl!==null&&nl.tag===0&&!(Ut&6)&&zc();var t=Ut;Ut|=1;var n=zo.transition,r=tn;try{if(zo.transition=null,tn=1,e)return e()}finally{tn=r,zo.transition=n,Ut=t,!(Ut&6)&&Tl()}}function Nw(){lo=Rc.current,vn(Rc)}function aa(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,qj(n)),Un!==null)for(n=Un.return;n!==null;){var r=n;switch(vw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ym();break;case 3:Zc(),vn(Gr),vn(Sr),kw();break;case 5:Pw(r);break;case 4:Zc();break;case 13:vn(In);break;case 19:vn(In);break;case 10:Cw(r.type._context);break;case 22:case 23:Nw()}n=n.return}if(nr=e,Un=e=hl(e.current,null),ar=lo=t,Xn=0,pf=null,Lw=hg=ba=0,Vr=Fd=null,ea!==null){for(t=0;t<ea.length;t++)if(n=ea[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}ea=null}return e}function kT(e,t){do{var n=Un;try{if(ww(),Kh.current=Im,km){for(var r=Mn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}km=!1}if(ya=0,er=Yn=Mn=null,Ld=!1,uf=0,Ow.current=null,n===null||n.return===null){Xn=1,pf=t,Un=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=ar,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=c,p=a,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=Gk(s);if(v!==null){v.flags&=-257,Kk(v,s,a,i,t),v.mode&1&&Wk(i,f,t),t=v,c=f;var C=t.updateQueue;if(C===null){var g=new Set;g.add(c),t.updateQueue=g}else C.add(c);break e}else{if(!(t&1)){Wk(i,f,t),Dw();break e}c=Error(Me(426))}}else if(xn&&a.mode&1){var x=Gk(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Kk(x,s,a,i,t),yw(eu(c,a));break e}}i=c=eu(c,a),Xn!==4&&(Xn=2),Fd===null?Fd=[i]:Fd.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=cT(i,c,t);Dk(i,b);break e;case 1:a=c;var P=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof P.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(fl===null||!fl.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=uT(i,a,t);Dk(i,E);break e}}i=i.return}while(i!==null)}$T(n)}catch(I){t=I,Un===n&&n!==null&&(Un=n=n.return);continue}break}while(1)}function IT(){var e=_m.current;return _m.current=Im,e===null?Im:e}function Dw(){(Xn===0||Xn===3||Xn===2)&&(Xn=4),nr===null||!(ba&268435455)&&!(hg&268435455)||el(nr,ar)}function Tm(e,t){var n=Ut;Ut|=2;var r=IT();(nr!==e||ar!==t)&&(ls=null,aa(e,t));do try{b9();break}catch(o){kT(e,o)}while(1);if(ww(),Ut=n,_m.current=r,Un!==null)throw Error(Me(261));return nr=null,ar=0,Xn}function b9(){for(;Un!==null;)_T(Un)}function w9(){for(;Un!==null&&!W6();)_T(Un)}function _T(e){var t=TT(e.alternate,e,lo);e.memoizedProps=e.pendingProps,t===null?$T(e):Un=t,Ow.current=null}function $T(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=p9(n,t),n!==null){n.flags&=32767,Un=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xn=6,Un=null;return}}else if(n=f9(n,t,lo),n!==null){Un=n;return}if(t=t.sibling,t!==null){Un=t;return}Un=t=e}while(t!==null);Xn===0&&(Xn=5)}function ql(e,t,n){var r=tn,o=zo.transition;try{zo.transition=null,tn=1,C9(e,t,n,r)}finally{zo.transition=o,tn=r}return null}function C9(e,t,n,r){do zc();while(nl!==null);if(Ut&6)throw Error(Me(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Me(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(tj(e,i),e===nr&&(Un=nr=null,ar=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xh||(xh=!0,RT(fm,function(){return zc(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=zo.transition,zo.transition=null;var s=tn;tn=1;var a=Ut;Ut|=4,Ow.current=null,m9(e,n),ST(n,e),jj(_1),hm=!!I1,_1=I1=null,e.current=n,g9(n),G6(),Ut=a,tn=s,zo.transition=i}else e.current=n;if(xh&&(xh=!1,nl=e,Mm=o),i=e.pendingLanes,i===0&&(fl=null),Y6(n.stateNode),qr(e,Bn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if($m)throw $m=!1,e=q1,q1=null,e;return Mm&1&&e.tag!==0&&zc(),i=e.pendingLanes,i&1?e===Y1?Nd++:(Nd=0,Y1=e):Nd=0,Tl(),null}function zc(){if(nl!==null){var e=aM(Mm),t=zo.transition,n=tn;try{if(zo.transition=null,tn=16>e?16:e,nl===null)var r=!1;else{if(e=nl,nl=null,Mm=0,Ut&6)throw Error(Me(331));var o=Ut;for(Ut|=4,He=e.current;He!==null;){var i=He,s=i.child;if(He.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var f=a[c];for(He=f;He!==null;){var p=He;switch(p.tag){case 0:case 11:case 15:Ad(8,p,i)}var h=p.child;if(h!==null)h.return=p,He=h;else for(;He!==null;){p=He;var m=p.sibling,v=p.return;if(wT(p),p===f){He=null;break}if(m!==null){m.return=v,He=m;break}He=v}}}var C=i.alternate;if(C!==null){var g=C.child;if(g!==null){C.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}He=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,He=s;else e:for(;He!==null;){if(i=He,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ad(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,He=b;break e}He=i.return}}var P=e.current;for(He=P;He!==null;){s=He;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,He=w;else e:for(s=P;He!==null;){if(a=He,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:pg(9,a)}}catch(I){Ln(a,a.return,I)}if(a===s){He=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,He=E;break e}He=a.return}}if(Ut=o,Tl(),Ai&&typeof Ai.onPostCommitFiberRoot=="function")try{Ai.onPostCommitFiberRoot(ig,e)}catch(I){}r=!0}return r}finally{tn=n,zo.transition=t}}return!1}function s2(e,t,n){t=eu(n,t),t=cT(e,t,1),e=dl(e,t,1),t=Tr(),e!==null&&(Bf(e,1,t),qr(e,t))}function Ln(e,t,n){if(e.tag===3)s2(e,e,n);else for(;t!==null;){if(t.tag===3){s2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(fl===null||!fl.has(r))){e=eu(n,e),e=uT(t,e,1),t=dl(t,e,1),e=Tr(),t!==null&&(Bf(t,1,e),qr(t,e));break}}t=t.return}}function x9(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Tr(),e.pingedLanes|=e.suspendedLanes&n,nr===e&&(ar&n)===n&&(Xn===4||Xn===3&&(ar&130023424)===ar&&500>Bn()-Aw?aa(e,0):Lw|=n),qr(e,t)}function MT(e,t){t===0&&(e.mode&1?(t=fh,fh<<=1,!(fh&130023424)&&(fh=4194304)):t=1);var n=Tr();e=Cs(e,t),e!==null&&(Bf(e,t,n),qr(e,n))}function S9(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),MT(e,n)}function E9(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Me(314))}r!==null&&r.delete(t),MT(e,n)}var TT;TT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gr.current)Wr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Wr=!1,d9(e,t,n);Wr=!!(e.flags&131072)}else Wr=!1,xn&&t.flags&1048576&&LM(t,Cm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yh(e,t),e=t.pendingProps;var o=Xc(t,Sr.current);Bc(t,n),o=_w(null,t,r,e,o,n);var i=$w();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Kr(r)?(i=!0,bm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Sw(t),o.updater=dg,t.stateNode=o,o._reactInternals=t,N1(t,r,e,n),t=z1(null,t,r,!0,i,n)):(t.tag=0,xn&&i&&gw(t),_r(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=k9(r),e=ii(r,e),o){case 0:t=B1(null,t,r,e,n);break e;case 1:t=Xk(null,t,r,e,n);break e;case 11:t=qk(null,t,r,e,n);break e;case 14:t=Yk(null,t,r,ii(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ii(r,o),B1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ii(r,o),Xk(e,t,r,o,n);case 3:e:{if(hT(t),e===null)throw Error(Me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,DM(e,t),Em(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=eu(Error(Me(423)),t),t=Qk(e,t,r,n,o);break e}else if(r!==o){o=eu(Error(Me(424)),t),t=Qk(e,t,r,n,o);break e}else for(uo=ul(t.stateNode.containerInfo.firstChild),fo=t,xn=!0,ai=null,n=HM(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qc(),r===o){t=xs(e,t,n);break e}_r(e,t,r,n)}t=t.child}return t;case 5:return VM(t),e===null&&L1(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,$1(r,o)?s=null:i!==null&&$1(r,i)&&(t.flags|=32),pT(e,t),_r(e,t,s,n),t.child;case 6:return e===null&&L1(t),null;case 13:return mT(e,t,n);case 4:return Ew(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Jc(t,null,r,n):_r(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ii(r,o),qk(e,t,r,o,n);case 7:return _r(e,t,t.pendingProps,n),t.child;case 8:return _r(e,t,t.pendingProps.children,n),t.child;case 12:return _r(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,dn(xm,r._currentValue),r._currentValue=s,i!==null)if(hi(i.value,s)){if(i.children===o.children&&!Gr.current){t=xs(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=gs(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),A1(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Me(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),A1(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}_r(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Bc(t,n),o=Uo(o),r=r(o),t.flags|=1,_r(e,t,r,n),t.child;case 14:return r=t.type,o=ii(r,t.pendingProps),o=ii(r.type,o),Yk(e,t,r,o,n);case 15:return dT(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ii(r,o),Yh(e,t),t.tag=1,Kr(r)?(e=!0,bm(t)):e=!1,Bc(t,n),zM(t,r,o),N1(t,r,o,n),z1(null,t,r,!0,e,n);case 19:return gT(e,t,n);case 22:return fT(e,t,n)}throw Error(Me(156,t.tag))};function RT(e,t){return oM(e,t)}function P9(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Do(e,t,n,r){return new P9(e,t,n,r)}function Bw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function k9(e){if(typeof e=="function")return Bw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ow)return 11;if(e===iw)return 14}return 2}function hl(e,t){var n=e.alternate;return n===null?(n=Do(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Jh(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Bw(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xc:return ca(n.children,o,i,t);case rw:s=8,o|=8;break;case l1:return e=Do(12,n,t,o|2),e.elementType=l1,e.lanes=i,e;case a1:return e=Do(13,n,t,o),e.elementType=a1,e.lanes=i,e;case c1:return e=Do(19,n,t,o),e.elementType=c1,e.lanes=i,e;case j$:return mg(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B$:s=10;break e;case z$:s=9;break e;case ow:s=11;break e;case iw:s=14;break e;case qs:s=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=Do(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ca(e,t,n,r){return e=Do(7,e,r,t),e.lanes=n,e}function mg(e,t,n,r){return e=Do(22,e,r,t),e.elementType=j$,e.lanes=n,e.stateNode={isHidden:!1},e}function w0(e,t,n){return e=Do(6,e,null,t),e.lanes=n,e}function C0(e,t,n){return t=Do(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function I9(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=t0(0),this.expirationTimes=t0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=t0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zw(e,t,n,r,o,i,s,a,c){return e=new I9(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Do(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sw(i),e}function _9(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Cc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function OT(e){if(!e)return Cl;e=e._reactInternals;e:{if(Ra(e)!==e||e.tag!==1)throw Error(Me(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Kr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Me(171))}if(e.tag===1){var n=e.type;if(Kr(n))return RM(e,n,t)}return t}function LT(e,t,n,r,o,i,s,a,c){return e=zw(n,r,!0,e,o,i,s,a,c),e.context=OT(null),n=e.current,r=Tr(),o=pl(n),i=gs(r,o),i.callback=t!=null?t:null,dl(n,i,o),e.current.lanes=o,Bf(e,o,r),qr(e,r),e}function gg(e,t,n,r){var o=t.current,i=Tr(),s=pl(o);return n=OT(n),t.context===null?t.context=n:t.pendingContext=n,t=gs(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=dl(o,t,s),e!==null&&(fi(e,o,s,i),Gh(e,o,s)),s}function Rm(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function l2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jw(e,t){l2(e,t),(e=e.alternate)&&l2(e,t)}function $9(){return null}var AT=typeof reportError=="function"?reportError:function(e){console.error(e)};function Hw(e){this._internalRoot=e}vg.prototype.render=Hw.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Me(409));gg(e,t,null,null)};vg.prototype.unmount=Hw.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wa(function(){gg(null,e,null,null)}),t[ws]=null}};function vg(e){this._internalRoot=e}vg.prototype.unstable_scheduleHydration=function(e){if(e){var t=dM();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zs.length&&t!==0&&t<Zs[n].priority;n++);Zs.splice(n,0,e),n===0&&pM(e)}};function Vw(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function a2(){}function M9(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var f=Rm(s);i.call(f)}}var s=LT(t,r,e,0,null,!1,!1,"",a2);return e._reactRootContainer=s,e[ws]=s.current,of(e.nodeType===8?e.parentNode:e),wa(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var f=Rm(c);a.call(f)}}var c=zw(e,0,!1,null,null,!1,!1,"",a2);return e._reactRootContainer=c,e[ws]=c.current,of(e.nodeType===8?e.parentNode:e),wa(function(){gg(t,c,n,r)}),c}function bg(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var c=Rm(s);a.call(c)}}gg(t,s,e,o)}else s=M9(n,t,e,o,r);return Rm(s)}cM=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bd(t.pendingLanes);n!==0&&(aw(t,n|1),qr(t,Bn()),!(Ut&6)&&(tu=Bn()+500,Tl()))}break;case 13:wa(function(){var r=Cs(e,1);if(r!==null){var o=Tr();fi(r,e,1,o)}}),jw(e,1)}};cw=function(e){if(e.tag===13){var t=Cs(e,134217728);if(t!==null){var n=Tr();fi(t,e,134217728,n)}jw(e,134217728)}};uM=function(e){if(e.tag===13){var t=pl(e),n=Cs(e,t);if(n!==null){var r=Tr();fi(n,e,t,r)}jw(e,t)}};dM=function(){return tn};fM=function(e,t){var n=tn;try{return tn=e,t()}finally{tn=n}};b1=function(e,t,n){switch(t){case"input":if(f1(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=cg(r);if(!o)throw Error(Me(90));V$(r),f1(r,o)}}}break;case"textarea":W$(e,n);break;case"select":t=n.value,t!=null&&Ac(e,!!n.multiple,t,!1)}};J$=Fw;Z$=wa;var T9={usingClientEntryPoint:!1,Events:[jf,kc,cg,X$,Q$,Fw]},od={findFiberByHostInstance:Zl,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},R9={bundleType:od.bundleType,version:od.version,rendererPackageName:od.rendererPackageName,rendererConfig:od.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_s.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nM(e),e===null?null:e.stateNode},findFiberByHostInstance:od.findFiberByHostInstance||$9,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Sh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sh.isDisabled&&Sh.supportsFiber)try{ig=Sh.inject(R9),Ai=Sh}catch(e){}}vo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T9;vo.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vw(t))throw Error(Me(200));return _9(e,t,null,n)};vo.createRoot=function(e,t){if(!Vw(e))throw Error(Me(299));var n=!1,r="",o=AT;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=zw(e,1,!1,null,null,n,!1,r,o),e[ws]=t.current,of(e.nodeType===8?e.parentNode:e),new Hw(t)};vo.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Me(188)):(e=Object.keys(e).join(","),Error(Me(268,e)));return e=nM(t),e=e===null?null:e.stateNode,e};vo.flushSync=function(e){return wa(e)};vo.hydrate=function(e,t,n){if(!yg(t))throw Error(Me(200));return bg(null,e,t,!0,n)};vo.hydrateRoot=function(e,t,n){if(!Vw(e))throw Error(Me(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=AT;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=LT(t,null,e,1,n!=null?n:null,o,!1,i,s),e[ws]=t.current,of(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new vg(t)};vo.render=function(e,t,n){if(!yg(t))throw Error(Me(200));return bg(null,e,t,!1,n)};vo.unmountComponentAtNode=function(e){if(!yg(e))throw Error(Me(40));return e._reactRootContainer?(wa(function(){bg(null,null,e,!1,function(){e._reactRootContainer=null,e[ws]=null})}),!0):!1};vo.unstable_batchedUpdates=Fw;vo.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yg(n))throw Error(Me(200));if(e==null||e._reactInternals===void 0)throw Error(Me(38));return bg(e,t,n,!1,r)};vo.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=vo})($6);const Eh=Yb(bl);var FT,c2=bl;FT=c2.createRoot,c2.hydrateRoot;const O9="modulepreload",L9=function(e){return"/"+e},u2={},A9=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=L9(i),i in u2)return;u2[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const h=o[p];if(h.href===i&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":O9,s||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),s)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var I$;if(!((I$=window.crypto)!=null&&I$.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return ft(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const i=(yield A9(()=>import("./sha512-3273321f.js").then(s=>s.s),[])).default.arrayBuffer;return i(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}var na;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(na||(na={}));var d2=function(e){return e},f2="beforeunload",F9="hashchange",N9="popstate";function D9(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function i(){var $=xl(r.location.hash.substr(1)),R=$.pathname,O=R===void 0?"/":R,N=$.search,U=N===void 0?"":N,H=$.hash,L=H===void 0?"":H,D=o.state||{};return[D.idx,d2({pathname:O,search:U,hash:L,state:D.usr||null,key:D.key||"default"})]}var s=null;function a(){if(s)v.call(s),s=null;else{var $=na.Pop,R=i(),O=R[0],N=R[1];if(v.length){if(O!=null){var U=p-O;U&&(s={action:$,location:N,retry:function(){_(U*-1)}},_(U))}}else w($)}}r.addEventListener(N9,a),r.addEventListener(F9,function(){var $=i(),R=$[1];Dd(R)!==Dd(h)&&a()});var c=na.Pop,f=i(),p=f[0],h=f[1],m=h2(),v=h2();p==null&&(p=0,o.replaceState(S({},o.state,{idx:p}),""));function C(){var $=document.querySelector("base"),R="";if($&&$.getAttribute("href")){var O=r.location.href,N=O.indexOf("#");R=N===-1?O:O.slice(0,N)}return R}function g($){return C()+"#"+(typeof $=="string"?$:Dd($))}function x($,R){return R===void 0&&(R=null),d2(S({pathname:h.pathname,hash:"",search:""},typeof $=="string"?xl($):$,{state:R,key:B9()}))}function b($,R){return[{usr:$.state,key:$.key,idx:R},g($)]}function P($,R,O){return!v.length||(v.call({action:$,location:R,retry:O}),!1)}function w($){c=$;var R=i();p=R[0],h=R[1],m.call({action:c,location:h})}function E($,R){var O=na.Push,N=x($,R);function U(){E($,R)}if(P(O,N,U)){var H=b(N,p+1),L=H[0],D=H[1];try{o.pushState(L,"",D)}catch(B){r.location.assign(D)}w(O)}}function I($,R){var O=na.Replace,N=x($,R);function U(){I($,R)}if(P(O,N,U)){var H=b(N,p),L=H[0],D=H[1];o.replaceState(L,"",D),w(O)}}function _($){o.go($)}var k={get action(){return c},get location(){return h},createHref:g,push:E,replace:I,go:_,back:function(){_(-1)},forward:function(){_(1)},listen:function(R){return m.push(R)},block:function(R){var O=v.push(R);return v.length===1&&r.addEventListener(f2,p2),function(){O(),v.length||r.removeEventListener(f2,p2)}}};return k}function p2(e){e.preventDefault(),e.returnValue=""}function h2(){var e=[];return{get length(){return e.length},push:function(n){return e.push(n),function(){e=e.filter(function(r){return r!==n})}},call:function(n){e.forEach(function(r){return r&&r(n)})}}}function B9(){return Math.random().toString(36).substr(2,8)}function Dd(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,o=r===void 0?"":r,i=e.hash,s=i===void 0?"":i;return o&&o!=="?"&&(n+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function xl(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/**
|
|
33
|
+
* React Router v6.3.0
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Remix Software Inc.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
39
|
+
*
|
|
40
|
+
* @license MIT
|
|
41
|
+
*/const Uw=u.createContext(null),Ww=u.createContext(null),wg=u.createContext({outlet:null,matches:[]});function Ui(e,t){if(!e)throw new Error(t)}function z9(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?xl(t):t,o=BT(r.pathname||"/",n);if(o==null)return null;let i=NT(e);j9(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=X9(i[a],o);return s}function NT(e,t,n,r){return t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=""),e.forEach((o,i)=>{let s={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(s.relativePath.startsWith(r)||Ui(!1),s.relativePath=s.relativePath.slice(r.length));let a=ml([r,s.relativePath]),c=n.concat(s);o.children&&o.children.length>0&&(o.index===!0&&Ui(!1),NT(o.children,t,c,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:q9(a,o.index),routesMeta:c})}),t}function j9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Y9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const H9=/^:\w+$/,V9=3,U9=2,W9=1,G9=10,K9=-2,m2=e=>e==="*";function q9(e,t){let n=e.split("/"),r=n.length;return n.some(m2)&&(r+=K9),t&&(r+=U9),n.filter(o=>!m2(o)).reduce((o,i)=>o+(H9.test(i)?V9:i===""?W9:G9),r)}function Y9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function X9(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s<n.length;++s){let a=n[s],c=s===n.length-1,f=o==="/"?t:t.slice(o.length)||"/",p=Q9({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},f);if(!p)return null;Object.assign(r,p.params);let h=a.route;i.push({params:r,pathname:ml([o,p.pathname]),pathnameBase:zT(ml([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=ml([o,p.pathnameBase]))}return i}function Q9(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=J9(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((f,p,h)=>{if(p==="*"){let m=a[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return f[p]=Z9(a[h]||""),f},{}),pathname:i,pathnameBase:s,pattern:e}}function J9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(s,a)=>(r.push(a),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(o,t?void 0:"i"),r]}function Z9(e,t){try{return decodeURIComponent(e)}catch(n){return e}}function eH(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?xl(e):e;return{pathname:n?n.startsWith("/")?n:tH(n,t):t,search:rH(r),hash:oH(o)}}function tH(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function DT(e,t,n){let r=typeof e=="string"?xl(e):e,o=e===""||r.pathname===""?"/":r.pathname,i;if(o==null)i=n;else{let a=t.length-1;if(o.startsWith("..")){let c=o.split("/");for(;c[0]==="..";)c.shift(),a-=1;r.pathname=c.join("/")}i=a>=0?t[a]:"/"}let s=eH(r,i);return o&&o!=="/"&&o.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}function nH(e){return e===""||e.pathname===""?"/":typeof e=="string"?xl(e).pathname:e.pathname}function BT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const ml=e=>e.join("/").replace(/\/\/+/g,"/"),zT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iH(e){Vf()||Ui(!1);let{basename:t,navigator:n}=u.useContext(Uw),{hash:r,pathname:o,search:i}=Gw(e),s=o;if(t!=="/"){let a=nH(e),c=a!=null&&a.endsWith("/");s=o==="/"?t+(c?"/":""):ml([t,o])}return n.createHref({pathname:s,search:i,hash:r})}function Vf(){return u.useContext(Ww)!=null}function bu(){return Vf()||Ui(!1),u.useContext(Ww).location}function sH(){Vf()||Ui(!1);let{basename:e,navigator:t}=u.useContext(Uw),{matches:n}=u.useContext(wg),{pathname:r}=bu(),o=JSON.stringify(n.map(a=>a.pathnameBase)),i=u.useRef(!1);return u.useEffect(()=>{i.current=!0}),u.useCallback(function(a,c){if(c===void 0&&(c={}),!i.current)return;if(typeof a=="number"){t.go(a);return}let f=DT(a,JSON.parse(o),r);e!=="/"&&(f.pathname=ml([e,f.pathname])),(c.replace?t.replace:t.push)(f,c.state)},[e,t,o,r])}function Gw(e){let{matches:t}=u.useContext(wg),{pathname:n}=bu(),r=JSON.stringify(t.map(o=>o.pathnameBase));return u.useMemo(()=>DT(e,JSON.parse(r),n),[e,r,n])}function lH(e,t){Vf()||Ui(!1);let{matches:n}=u.useContext(wg),r=n[n.length-1],o=r?r.params:{};r&&r.pathname;let i=r?r.pathnameBase:"/";r&&r.route;let s=bu(),a;if(t){var c;let m=typeof t=="string"?xl(t):t;i==="/"||(c=m.pathname)!=null&&c.startsWith(i)||Ui(!1),a=m}else a=s;let f=a.pathname||"/",p=i==="/"?f:f.slice(i.length)||"/",h=z9(e,{pathname:p});return aH(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},o,m.params),pathname:ml([i,m.pathname]),pathnameBase:m.pathnameBase==="/"?i:ml([i,m.pathnameBase])})),n)}function aH(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,o)=>u.createElement(wg.Provider,{children:r.route.element!==void 0?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,o+1))}}),null)}function jT(e){Ui(!1)}function cH(e){let{basename:t="/",children:n=null,location:r,navigationType:o=na.Pop,navigator:i,static:s=!1}=e;Vf()&&Ui(!1);let a=zT(t),c=u.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=xl(r));let{pathname:f="/",search:p="",hash:h="",state:m=null,key:v="default"}=r,C=u.useMemo(()=>{let g=BT(f,a);return g==null?null:{pathname:g,search:p,hash:h,state:m,key:v}},[a,f,p,h,m,v]);return C==null?null:u.createElement(Uw.Provider,{value:c},u.createElement(Ww.Provider,{children:n,value:{location:C,navigationType:o}}))}function uH(e){let{children:t,location:n}=e;return lH(J1(t),n)}function J1(e){let t=[];return u.Children.forEach(e,n=>{if(!u.isValidElement(n))return;if(n.type===u.Fragment){t.push.apply(t,J1(n.props.children));return}n.type!==jT&&Ui(!1);let r={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(r.children=J1(n.props.children)),t.push(r)}),t}/**
|
|
42
|
+
* React Router DOM v6.3.0
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Remix Software Inc.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
48
|
+
*
|
|
49
|
+
* @license MIT
|
|
50
|
+
*/function Om(){return Om=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Om.apply(this,arguments)}function HT(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const dH=["onClick","reloadDocument","replace","state","target","to"],fH=["aria-current","caseSensitive","className","end","style","to","children"];function pH(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=D9({window:r}));let i=o.current,[s,a]=u.useState({action:i.action,location:i.location});return u.useLayoutEffect(()=>i.listen(a),[i]),u.createElement(cH,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}function hH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const VT=u.forwardRef(function(t,n){let{onClick:r,reloadDocument:o,replace:i=!1,state:s,target:a,to:c}=t,f=HT(t,dH),p=iH(c),h=gH(c,{replace:i,state:s,target:a});function m(v){r&&r(v),!v.defaultPrevented&&!o&&h(v)}return u.createElement("a",Om({},f,{href:p,onClick:m,ref:n,target:a}))}),mH=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:c,children:f}=t,p=HT(t,fH),h=bu(),m=Gw(c),v=h.pathname,C=m.pathname;o||(v=v.toLowerCase(),C=C.toLowerCase());let g=v===C||!s&&v.startsWith(C)&&v.charAt(C.length)==="/",x=g?r:void 0,b;typeof i=="function"?b=i({isActive:g}):b=[i,g?"active":null].filter(Boolean).join(" ");let P=typeof a=="function"?a({isActive:g}):a;return u.createElement(VT,Om({},p,{"aria-current":x,className:b,ref:n,style:P,to:c}),typeof f=="function"?f({isActive:g}):f)});function gH(e,t){let{target:n,replace:r,state:o}=t===void 0?{}:t,i=sH(),s=bu(),a=Gw(e);return u.useCallback(c=>{if(c.button===0&&(!n||n==="_self")&&!hH(c)){c.preventDefault();let f=!!r||Dd(s)===Dd(a);i(e,{replace:f,state:o})}},[s,i,a,r,o,n,e])}const vH={black:"#000",white:"#fff"},hf=vH,yH={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ic=yH,bH={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},sc=bH,wH={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lc=wH,CH={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ac=CH,xH={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},cc=xH,SH={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},id=SH,EH={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"},PH=EH;function oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function UT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var kH=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,IH=UT(function(e){return kH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function _H(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function $H(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var MH=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag($H(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=_H(o);try{i.insertRule(r,i.cssRules.length)}catch(s){}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),gr="-ms-",Lm="-moz-",Yt="-webkit-",WT="comm",Kw="rule",qw="decl",TH="@import",GT="@keyframes",RH=Math.abs,Cg=String.fromCharCode,OH=Object.assign;function LH(e,t){return(((t<<2^Hr(e,0))<<2^Hr(e,1))<<2^Hr(e,2))<<2^Hr(e,3)}function KT(e){return e.trim()}function AH(e,t){return(e=t.exec(e))?e[0]:e}function Jt(e,t,n){return e.replace(t,n)}function Z1(e,t){return e.indexOf(t)}function Hr(e,t){return e.charCodeAt(t)|0}function mf(e,t,n){return e.slice(t,n)}function $i(e){return e.length}function Yw(e){return e.length}function Ph(e,t){return t.push(e),e}function FH(e,t){return e.map(t).join("")}var xg=1,nu=1,qT=0,Qr=0,Vn=0,wu="";function Sg(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:xg,column:nu,length:s,return:""}}function sd(e,t){return OH(Sg("",null,null,"",null,null,0),e,{length:-e.length},t)}function NH(){return Vn}function DH(){return Vn=Qr>0?Hr(wu,--Qr):0,nu--,Vn===10&&(nu=1,xg--),Vn}function po(){return Vn=Qr<qT?Hr(wu,Qr++):0,nu++,Vn===10&&(nu=1,xg++),Vn}function Ni(){return Hr(wu,Qr)}function Zh(){return Qr}function Uf(e,t){return mf(wu,e,t)}function gf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function YT(e){return xg=nu=1,qT=$i(wu=e),Qr=0,[]}function XT(e){return wu="",e}function em(e){return KT(Uf(Qr-1,eb(e===91?e+2:e===40?e+1:e)))}function BH(e){for(;(Vn=Ni())&&Vn<33;)po();return gf(e)>2||gf(Vn)>3?"":" "}function zH(e,t){for(;--t&&po()&&!(Vn<48||Vn>102||Vn>57&&Vn<65||Vn>70&&Vn<97););return Uf(e,Zh()+(t<6&&Ni()==32&&po()==32))}function eb(e){for(;po();)switch(Vn){case e:return Qr;case 34:case 39:e!==34&&e!==39&&eb(Vn);break;case 40:e===41&&eb(e);break;case 92:po();break}return Qr}function jH(e,t){for(;po()&&e+Vn!==47+10;)if(e+Vn===42+42&&Ni()===47)break;return"/*"+Uf(t,Qr-1)+"*"+Cg(e===47?e:po())}function HH(e){for(;!gf(Ni());)po();return Uf(e,Qr)}function VH(e){return XT(tm("",null,null,null,[""],e=YT(e),0,[0],e))}function tm(e,t,n,r,o,i,s,a,c){for(var f=0,p=0,h=s,m=0,v=0,C=0,g=1,x=1,b=1,P=0,w="",E=o,I=i,_=r,k=w;x;)switch(C=P,P=po()){case 40:if(C!=108&&k.charCodeAt(h-1)==58){Z1(k+=Jt(em(P),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:k+=em(P);break;case 9:case 10:case 13:case 32:k+=BH(C);break;case 92:k+=zH(Zh()-1,7);continue;case 47:switch(Ni()){case 42:case 47:Ph(UH(jH(po(),Zh()),t,n),c);break;default:k+="/"}break;case 123*g:a[f++]=$i(k)*b;case 125*g:case 59:case 0:switch(P){case 0:case 125:x=0;case 59+p:v>0&&$i(k)-h&&Ph(v>32?v2(k+";",r,n,h-1):v2(Jt(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(Ph(_=g2(k,t,n,f,p,o,a,w,E=[],I=[],h),i),P===123)if(p===0)tm(k,t,_,_,E,i,h,a,I);else switch(m){case 100:case 109:case 115:tm(e,_,_,r&&Ph(g2(e,_,_,0,0,o,a,w,o,E=[],h),I),o,I,h,a,r?E:I);break;default:tm(k,_,_,_,[""],I,0,a,I)}}f=p=v=0,g=b=1,w=k="",h=s;break;case 58:h=1+$i(k),v=C;default:if(g<1){if(P==123)--g;else if(P==125&&g++==0&&DH()==125)continue}switch(k+=Cg(P),P*g){case 38:b=p>0?1:(k+="\f",-1);break;case 44:a[f++]=($i(k)-1)*b,b=1;break;case 64:Ni()===45&&(k+=em(po())),m=Ni(),p=h=$i(w=k+=HH(Zh())),P++;break;case 45:C===45&&$i(k)==2&&(g=0)}}return i}function g2(e,t,n,r,o,i,s,a,c,f,p){for(var h=o-1,m=o===0?i:[""],v=Yw(m),C=0,g=0,x=0;C<r;++C)for(var b=0,P=mf(e,h+1,h=RH(g=s[C])),w=e;b<v;++b)(w=KT(g>0?m[b]+" "+P:Jt(P,/&\f/g,m[b])))&&(c[x++]=w);return Sg(e,t,n,o===0?Kw:a,c,f,p)}function UH(e,t,n){return Sg(e,t,n,WT,Cg(NH()),mf(e,2,-2),0)}function v2(e,t,n,r){return Sg(e,t,n,qw,mf(e,0,r),mf(e,r+1,-1),r)}function QT(e,t){switch(LH(e,t)){case 5103:return Yt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+e+Lm+e+gr+e+e;case 6828:case 4268:return Yt+e+gr+e+e;case 6165:return Yt+e+gr+"flex-"+e+e;case 5187:return Yt+e+Jt(e,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+gr+"flex-$1$2")+e;case 5443:return Yt+e+gr+"flex-item-"+Jt(e,/flex-|-self/,"")+e;case 4675:return Yt+e+gr+"flex-line-pack"+Jt(e,/align-content|flex-|-self/,"")+e;case 5548:return Yt+e+gr+Jt(e,"shrink","negative")+e;case 5292:return Yt+e+gr+Jt(e,"basis","preferred-size")+e;case 6060:return Yt+"box-"+Jt(e,"-grow","")+Yt+e+gr+Jt(e,"grow","positive")+e;case 4554:return Yt+Jt(e,/([^-])(transform)/g,"$1"+Yt+"$2")+e;case 6187:return Jt(Jt(Jt(e,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),e,"")+e;case 5495:case 3959:return Jt(e,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return Jt(Jt(e,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+gr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yt+e+e;case 4095:case 3583:case 4068:case 2532:return Jt(e,/(.+)-inline(.+)/,Yt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if($i(e)-1-t>6)switch(Hr(e,t+1)){case 109:if(Hr(e,t+4)!==45)break;case 102:return Jt(e,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+Lm+(Hr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Z1(e,"stretch")?QT(Jt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Hr(e,t+1)!==115)break;case 6444:switch(Hr(e,$i(e)-3-(~Z1(e,"!important")&&10))){case 107:return Jt(e,":",":"+Yt)+e;case 101:return Jt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yt+(Hr(e,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+gr+"$2box$3")+e}break;case 5936:switch(Hr(e,t+11)){case 114:return Yt+e+gr+Jt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yt+e+gr+Jt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yt+e+gr+Jt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yt+e+gr+e+e}return e}function jc(e,t){for(var n="",r=Yw(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function WH(e,t,n,r){switch(e.type){case TH:case qw:return e.return=e.return||e.value;case WT:return"";case GT:return e.return=e.value+"{"+jc(e.children,r)+"}";case Kw:e.value=e.props.join(",")}return $i(n=jc(e.children,r))?e.return=e.value+"{"+n+"}":""}function GH(e){var t=Yw(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function KH(e){return function(t){t.root||(t=t.return)&&e(t)}}function qH(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qw:e.return=QT(e.value,e.length);break;case GT:return jc([sd(e,{value:Jt(e.value,"@","@"+Yt)})],r);case Kw:if(e.length)return FH(e.props,function(o){switch(AH(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jc([sd(e,{props:[Jt(o,/:(read-\w+)/,":"+Lm+"$1")]})],r);case"::placeholder":return jc([sd(e,{props:[Jt(o,/:(plac\w+)/,":"+Yt+"input-$1")]}),sd(e,{props:[Jt(o,/:(plac\w+)/,":"+Lm+"$1")]}),sd(e,{props:[Jt(o,/:(plac\w+)/,gr+"input-$1")]})],r)}return""})}}var YH=function(t,n,r){for(var o=0,i=0;o=i,i=Ni(),o===38&&i===12&&(n[r]=1),!gf(i);)po();return Uf(t,Qr)},XH=function(t,n){var r=-1,o=44;do switch(gf(o)){case 0:o===38&&Ni()===12&&(n[r]=1),t[r]+=YH(Qr-1,n,r);break;case 2:t[r]+=em(o);break;case 4:if(o===44){t[++r]=Ni()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Cg(o)}while(o=po());return t},QH=function(t,n){return XT(XH(YT(t),n))},y2=new WeakMap,JH=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!y2.get(r))&&!o){y2.set(t,!0);for(var i=[],s=QH(n,i),a=r.props,c=0,f=0;c<s.length;c++)for(var p=0;p<a.length;p++,f++)t.props[f]=i[c]?s[c].replace(/&\f/g,a[p]):a[p]+" "+s[c]}}},ZH=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},e8=[qH],t8=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var x=g.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||e8,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var x=g.getAttribute("data-emotion").split(" "),b=1;b<x.length;b++)i[x[b]]=!0;a.push(g)});var c,f=[JH,ZH];{var p,h=[WH,KH(function(g){p.insert(g)})],m=GH(f.concat(o,h)),v=function(x){return jc(VH(x),m)};c=function(x,b,P,w){p=P,v(x?x+"{"+b.styles+"}":b.styles),w&&(C.inserted[b.name]=!0)}}var C={key:n,sheet:new MH({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return C.sheet.hydrate(a),C},tb={},n8={get exports(){return tb},set exports(e){tb=e}},nn={};/** @license React v16.13.1
|
|
51
|
+
* react-is.production.min.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var or=typeof Symbol=="function"&&Symbol.for,Xw=or?Symbol.for("react.element"):60103,Qw=or?Symbol.for("react.portal"):60106,Eg=or?Symbol.for("react.fragment"):60107,Pg=or?Symbol.for("react.strict_mode"):60108,kg=or?Symbol.for("react.profiler"):60114,Ig=or?Symbol.for("react.provider"):60109,_g=or?Symbol.for("react.context"):60110,Jw=or?Symbol.for("react.async_mode"):60111,$g=or?Symbol.for("react.concurrent_mode"):60111,Mg=or?Symbol.for("react.forward_ref"):60112,Tg=or?Symbol.for("react.suspense"):60113,r8=or?Symbol.for("react.suspense_list"):60120,Rg=or?Symbol.for("react.memo"):60115,Og=or?Symbol.for("react.lazy"):60116,o8=or?Symbol.for("react.block"):60121,i8=or?Symbol.for("react.fundamental"):60117,s8=or?Symbol.for("react.responder"):60118,l8=or?Symbol.for("react.scope"):60119;function bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Xw:switch(e=e.type,e){case Jw:case $g:case Eg:case kg:case Pg:case Tg:return e;default:switch(e=e&&e.$$typeof,e){case _g:case Mg:case Og:case Rg:case Ig:return e;default:return t}}case Qw:return t}}}function JT(e){return bo(e)===$g}nn.AsyncMode=Jw;nn.ConcurrentMode=$g;nn.ContextConsumer=_g;nn.ContextProvider=Ig;nn.Element=Xw;nn.ForwardRef=Mg;nn.Fragment=Eg;nn.Lazy=Og;nn.Memo=Rg;nn.Portal=Qw;nn.Profiler=kg;nn.StrictMode=Pg;nn.Suspense=Tg;nn.isAsyncMode=function(e){return JT(e)||bo(e)===Jw};nn.isConcurrentMode=JT;nn.isContextConsumer=function(e){return bo(e)===_g};nn.isContextProvider=function(e){return bo(e)===Ig};nn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xw};nn.isForwardRef=function(e){return bo(e)===Mg};nn.isFragment=function(e){return bo(e)===Eg};nn.isLazy=function(e){return bo(e)===Og};nn.isMemo=function(e){return bo(e)===Rg};nn.isPortal=function(e){return bo(e)===Qw};nn.isProfiler=function(e){return bo(e)===kg};nn.isStrictMode=function(e){return bo(e)===Pg};nn.isSuspense=function(e){return bo(e)===Tg};nn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Eg||e===$g||e===kg||e===Pg||e===Tg||e===r8||typeof e=="object"&&e!==null&&(e.$$typeof===Og||e.$$typeof===Rg||e.$$typeof===Ig||e.$$typeof===_g||e.$$typeof===Mg||e.$$typeof===i8||e.$$typeof===s8||e.$$typeof===l8||e.$$typeof===o8)};nn.typeOf=bo;(function(e){e.exports=nn})(n8);var ZT=tb,a8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eR={};eR[ZT.ForwardRef]=a8;eR[ZT.Memo]=c8;var u8=!0;function d8(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var tR=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||u8===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},nR=function(t,n,r){tR(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function f8(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var p8={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},h8=/[A-Z]|^ms/g,m8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rR=function(t){return t.charCodeAt(1)===45},b2=function(t){return t!=null&&typeof t!="boolean"},x0=UT(function(e){return rR(e)?e:e.replace(h8,"-$&").toLowerCase()}),w2=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(m8,function(r,o,i){return Mi={name:o,styles:i,next:Mi},o})}return p8[t]!==1&&!rR(t)&&typeof n=="number"&&n!==0?n+"px":n};function vf(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Mi={name:n.name,styles:n.styles,next:Mi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Mi={name:r.name,styles:r.styles,next:Mi},r=r.next;var o=n.styles+";";return o}return g8(e,t,n)}case"function":{if(e!==void 0){var i=Mi,s=n(e);return Mi=i,vf(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function g8(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=vf(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":b2(s)&&(r+=x0(i)+":"+w2(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)b2(s[a])&&(r+=x0(i)+":"+w2(i,s[a])+";");else{var c=vf(e,t,s);switch(i){case"animation":case"animationName":{r+=x0(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var C2=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Mi,Zw=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Mi=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=vf(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=vf(r,n,t[a]),o&&(i+=s[a]);C2.lastIndex=0;for(var c="",f;(f=C2.exec(i))!==null;)c+="-"+f[1];var p=f8(i)+c;return{name:p,styles:i,next:Mi}},oR=u.createContext(typeof HTMLElement!="undefined"?t8({key:"css"}):null);oR.Provider;var iR=function(t){return u.forwardRef(function(n,r){var o=u.useContext(oR);return t(n,o,r)})},eC=u.createContext({}),x2=qc["useInsertionEffect"]?qc["useInsertionEffect"]:u.useLayoutEffect,v8=iR(function(e,t){var n=e.styles,r=Zw([n],void 0,u.useContext(eC)),o=u.useRef();return x2(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,a],function(){s.flush()}},[t]),x2(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&nR(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Cu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Zw(t)}var Rl=function(){var t=Cu.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},y8=IH,b8=function(t){return t!=="theme"},S2=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?y8:b8},E2=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},w8=qc["useInsertionEffect"]?qc["useInsertionEffect"]:function(t){t()};function C8(e){w8(e)}var x8=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return tR(n,r,o),C8(function(){return nR(n,r,o)}),null},S8=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=E2(t,n,r),c=a||S2(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v<m;v++)h.push(p[v],p[0][v])}var C=iR(function(g,x,b){var P=f&&g.as||o,w="",E=[],I=g;if(g.theme==null){I={};for(var _ in g)I[_]=g[_];I.theme=u.useContext(eC)}typeof g.className=="string"?w=d8(x.registered,E,g.className):g.className!=null&&(w=g.className+" ");var k=Zw(h.concat(E),x.registered,I);w+=x.key+"-"+k.name,s!==void 0&&(w+=" "+s);var $=f&&a===void 0?S2(P):c,R={};for(var O in g)f&&O==="as"||$(O)&&(R[O]=g[O]);return R.className=w,R.ref=b,u.createElement(u.Fragment,null,u.createElement(x8,{cache:x,serialized:k,isStringTag:typeof P=="string"}),u.createElement(P,R))});return C.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=o,C.__emotion_styles=h,C.__emotion_forwardProp=a,Object.defineProperty(C,"toString",{value:function(){return"."+s}}),C.withComponent=function(g,x){return e(g,S({},n,x,{shouldForwardProp:E2(C,x,!0)})).apply(void 0,h)},C}},E8=["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"],nb=S8.bind();E8.forEach(function(e){nb[e]=nb(e)});const P8=nb;var ue={},k8={get exports(){return ue},set exports(e){ue=e}},I8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_8=I8,$8=_8;function sR(){}function lR(){}lR.resetWarningCache=sR;var M8=function(){function e(r,o,i,s,a,c){if(c!==$8){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:lR,resetWarningCache:sR};return n.PropTypes=n,n};k8.exports=M8();var Am={},T8={get exports(){return Am},set exports(e){Am=e}},ld={};/**
|
|
58
|
+
* @license React
|
|
59
|
+
* react-jsx-runtime.production.min.js
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/var P2;function R8(){if(P2)return ld;P2=1;var e=u,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,c,f){var p,h={},m=null,v=null;f!==void 0&&(m=""+f),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(v=c.ref);for(p in c)r.call(c,p)&&!i.hasOwnProperty(p)&&(h[p]=c[p]);if(a&&a.defaultProps)for(p in c=a.defaultProps,c)h[p]===void 0&&(h[p]=c[p]);return{$$typeof:t,type:a,key:m,ref:v,props:h,_owner:o.current}}return ld.Fragment=n,ld.jsx=s,ld.jsxs=s,ld}var k2;function ht(){return k2||(k2=1,function(e){e.exports=R8()}(T8)),Am}var T=ht();function O8(e){return e==null||Object.keys(e).length===0}function L8(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(O8(o)?n:o):t;return T.jsx(v8,{styles:r})}/** @license MUI v5.10.2
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/function aR(e,t){return P8(e,t)}const A8=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function S0(e,t){return()=>null}function Cd(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function jo(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return Cd(e)&&Cd(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Cd(t[o])&&o in e&&Cd(e[o])?r[o]=jo(e[o],t[o],n):r[o]=t[o])}),r}function Sl(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var I2={},F8={get exports(){return I2},set exports(e){I2=e}},rn={};/**
|
|
70
|
+
* @license React
|
|
71
|
+
* react-is.production.min.js
|
|
72
|
+
*
|
|
73
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/var tC=Symbol.for("react.element"),nC=Symbol.for("react.portal"),Lg=Symbol.for("react.fragment"),Ag=Symbol.for("react.strict_mode"),Fg=Symbol.for("react.profiler"),Ng=Symbol.for("react.provider"),Dg=Symbol.for("react.context"),N8=Symbol.for("react.server_context"),Bg=Symbol.for("react.forward_ref"),zg=Symbol.for("react.suspense"),jg=Symbol.for("react.suspense_list"),Hg=Symbol.for("react.memo"),Vg=Symbol.for("react.lazy"),D8=Symbol.for("react.offscreen"),cR;cR=Symbol.for("react.module.reference");function Yo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case tC:switch(e=e.type,e){case Lg:case Fg:case Ag:case zg:case jg:return e;default:switch(e=e&&e.$$typeof,e){case N8:case Dg:case Bg:case Vg:case Hg:case Ng:return e;default:return t}}case nC:return t}}}rn.ContextConsumer=Dg;rn.ContextProvider=Ng;rn.Element=tC;rn.ForwardRef=Bg;rn.Fragment=Lg;rn.Lazy=Vg;rn.Memo=Hg;rn.Portal=nC;rn.Profiler=Fg;rn.StrictMode=Ag;rn.Suspense=zg;rn.SuspenseList=jg;rn.isAsyncMode=function(){return!1};rn.isConcurrentMode=function(){return!1};rn.isContextConsumer=function(e){return Yo(e)===Dg};rn.isContextProvider=function(e){return Yo(e)===Ng};rn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===tC};rn.isForwardRef=function(e){return Yo(e)===Bg};rn.isFragment=function(e){return Yo(e)===Lg};rn.isLazy=function(e){return Yo(e)===Vg};rn.isMemo=function(e){return Yo(e)===Hg};rn.isPortal=function(e){return Yo(e)===nC};rn.isProfiler=function(e){return Yo(e)===Fg};rn.isStrictMode=function(e){return Yo(e)===Ag};rn.isSuspense=function(e){return Yo(e)===zg};rn.isSuspenseList=function(e){return Yo(e)===jg};rn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lg||e===Fg||e===Ag||e===zg||e===jg||e===D8||typeof e=="object"&&e!==null&&(e.$$typeof===Vg||e.$$typeof===Hg||e.$$typeof===Ng||e.$$typeof===Dg||e.$$typeof===Bg||e.$$typeof===cR||e.getModuleId!==void 0)};rn.typeOf=Yo;(function(e){e.exports=rn})(F8);function fe(e){if(typeof e!="string")throw new Error(Sl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function rb(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Ss(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function B8(e,t){return()=>null}function Bd(e,t){return u.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function yn(e){return e&&e.ownerDocument||document}function Jr(e){return yn(e).defaultView||window}function z8(e,t){return()=>null}function ru(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const j8=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,Rn=j8;let _2=0;function H8(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(_2+=1,n(`mui-${_2}`))},[t]),r}const $2=qc["useId"];function En(e){if($2!==void 0){const t=$2();return e!=null?e:t}return H8(e)}function V8(e,t,n,r,o){return null}function Di({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=u.useRef(e!==void 0),[i,s]=u.useState(t),a=o?e:i,c=u.useCallback(f=>{o||s(f)},[]);return[a,c]}function zn(e){const t=u.useRef(e);return Rn(()=>{t.current=e}),u.useCallback((...n)=>(0,t.current)(...n),[])}function St(e,t){return u.useMemo(()=>e==null&&t==null?null:n=>{ru(e,n),ru(t,n)},[e,t])}let Ug=!0,ob=!1,M2;const U8={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function W8(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&U8[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function G8(e){e.metaKey||e.altKey||e.ctrlKey||(Ug=!0)}function E0(){Ug=!1}function K8(){this.visibilityState==="hidden"&&ob&&(Ug=!0)}function q8(e){e.addEventListener("keydown",G8,!0),e.addEventListener("mousedown",E0,!0),e.addEventListener("pointerdown",E0,!0),e.addEventListener("touchstart",E0,!0),e.addEventListener("visibilitychange",K8,!0)}function Y8(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Ug||W8(t)}function Wg(){const e=u.useCallback(o=>{o!=null&&q8(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(ob=!0,window.clearTimeout(M2),M2=window.setTimeout(()=>{ob=!1},100),t.current=!1,!0):!1}function r(o){return Y8(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function uR(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let uc;function dR(){if(uc)return uc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),uc="reverse",e.scrollLeft>0?uc="default":(e.scrollLeft=1,e.scrollLeft===0&&(uc="negative")),document.body.removeChild(e),uc}function T2(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(dR()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const X8=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},fR=X8;function pR(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{n[r]===void 0&&(n[r]=e[r])}),n}function Ie(e,t,n){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>(s&&(i.push(t(s)),n&&n[s]&&i.push(n[s])),i),[]).join(" ")}),r}const R2=e=>e,Q8=()=>{let e=R2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=R2}}},J8=Q8(),rC=J8,Z8={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ke(e,t,n="Mui"){const r=Z8[t];return r?`${n}-${r}`:`${rC.generate(e)}-${t}`}function Ve(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ke(e,o,n)}),r}function zd(e,t){return t?jo(e,t,{clone:!1}):e}const oC={xs:0,sm:600,md:900,lg:1200,xl:1536},O2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${oC[e]}px)`};function mi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||O2;return t.reduce((s,a,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||O2;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||oC).indexOf(a)!==-1){const c=i.up(a);s[c]=n(t[a],a)}else{const c=a;s[c]=t[c]}return s},{})}return n(t)}function eV(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function tV(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function nV(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Gg({values:e,breakpoints:t,base:n}){const r=n||nV(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,c)=>(Array.isArray(e)?(s[a]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function yf(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function L2(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=yf(e,n)||r,t&&(o=t(o)),o}function We(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,f=yf(c,r)||{};return mi(s,a,h=>{let m=L2(f,o,h);return h===m&&typeof h=="string"&&(m=L2(f,o,`${t}${h==="default"?"":fe(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function Ol(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?zd(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function rV(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const oV={m:"margin",p:"padding"},iV={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},A2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sV=rV(e=>{if(e.length>2)if(A2[e])e=A2[e];else return[e];const[t,n]=e.split(""),r=oV[t],o=iV[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),lV=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aV=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],hR=[...lV,...aV];function Wf(e,t,n,r){var o;const i=(o=yf(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function mR(e){return Wf(e,"spacing",8)}function Gf(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function cV(e,t){return n=>e.reduce((r,o)=>(r[o]=Gf(t,n),r),{})}function uV(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=sV(n),i=cV(o,r),s=e[n];return mi(e,s,i)}function dV(e,t){const n=mR(e.theme);return Object.keys(e).map(r=>uV(e,t,r,n)).reduce(zd,{})}function Kg(e){return dV(e,hR)}Kg.propTypes={};Kg.filterProps=hR;function Kf(e){return typeof e!="number"?e:`${e}px solid`}const fV=We({prop:"border",themeKey:"borders",transform:Kf}),pV=We({prop:"borderTop",themeKey:"borders",transform:Kf}),hV=We({prop:"borderRight",themeKey:"borders",transform:Kf}),mV=We({prop:"borderBottom",themeKey:"borders",transform:Kf}),gV=We({prop:"borderLeft",themeKey:"borders",transform:Kf}),vV=We({prop:"borderColor",themeKey:"palette"}),yV=We({prop:"borderTopColor",themeKey:"palette"}),bV=We({prop:"borderRightColor",themeKey:"palette"}),wV=We({prop:"borderBottomColor",themeKey:"palette"}),CV=We({prop:"borderLeftColor",themeKey:"palette"}),iC=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Wf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gf(t,r)});return mi(e,e.borderRadius,n)}return null};iC.propTypes={};iC.filterProps=["borderRadius"];const xV=Ol(fV,pV,hV,mV,gV,vV,yV,bV,wV,CV,iC),gR=xV,SV=We({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),EV=We({prop:"display"}),PV=We({prop:"overflow"}),kV=We({prop:"textOverflow"}),IV=We({prop:"visibility"}),_V=We({prop:"whiteSpace"}),vR=Ol(SV,EV,PV,kV,IV,_V),$V=We({prop:"flexBasis"}),MV=We({prop:"flexDirection"}),TV=We({prop:"flexWrap"}),RV=We({prop:"justifyContent"}),OV=We({prop:"alignItems"}),LV=We({prop:"alignContent"}),AV=We({prop:"order"}),FV=We({prop:"flex"}),NV=We({prop:"flexGrow"}),DV=We({prop:"flexShrink"}),BV=We({prop:"alignSelf"}),zV=We({prop:"justifyItems"}),jV=We({prop:"justifySelf"}),HV=Ol($V,MV,TV,RV,OV,LV,AV,FV,NV,DV,BV,zV,jV),yR=HV,sC=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Wf(e.theme,"spacing",8),n=r=>({gap:Gf(t,r)});return mi(e,e.gap,n)}return null};sC.propTypes={};sC.filterProps=["gap"];const lC=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Wf(e.theme,"spacing",8),n=r=>({columnGap:Gf(t,r)});return mi(e,e.columnGap,n)}return null};lC.propTypes={};lC.filterProps=["columnGap"];const aC=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Wf(e.theme,"spacing",8),n=r=>({rowGap:Gf(t,r)});return mi(e,e.rowGap,n)}return null};aC.propTypes={};aC.filterProps=["rowGap"];const VV=We({prop:"gridColumn"}),UV=We({prop:"gridRow"}),WV=We({prop:"gridAutoFlow"}),GV=We({prop:"gridAutoColumns"}),KV=We({prop:"gridAutoRows"}),qV=We({prop:"gridTemplateColumns"}),YV=We({prop:"gridTemplateRows"}),XV=We({prop:"gridTemplateAreas"}),QV=We({prop:"gridArea"}),JV=Ol(sC,lC,aC,VV,UV,WV,GV,KV,qV,YV,XV,QV),bR=JV,ZV=We({prop:"color",themeKey:"palette"}),e7=We({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),t7=We({prop:"backgroundColor",themeKey:"palette"}),n7=Ol(ZV,e7,t7),wR=n7,r7=We({prop:"position"}),o7=We({prop:"zIndex",themeKey:"zIndex"}),i7=We({prop:"top"}),s7=We({prop:"right"}),l7=We({prop:"bottom"}),a7=We({prop:"left"}),CR=Ol(r7,o7,i7,s7,l7,a7),c7=We({prop:"boxShadow",themeKey:"shadows"}),xR=c7;function Ll(e){return e<=1&&e!==0?`${e*100}%`:e}const u7=We({prop:"width",transform:Ll}),SR=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||oC[n]||Ll(n)}};return mi(e,e.maxWidth,t)}return null};SR.filterProps=["maxWidth"];const d7=We({prop:"minWidth",transform:Ll}),f7=We({prop:"height",transform:Ll}),p7=We({prop:"maxHeight",transform:Ll}),h7=We({prop:"minHeight",transform:Ll});We({prop:"size",cssProperty:"width",transform:Ll});We({prop:"size",cssProperty:"height",transform:Ll});const m7=We({prop:"boxSizing"}),g7=Ol(u7,SR,d7,f7,p7,h7,m7),ER=g7,v7=We({prop:"fontFamily",themeKey:"typography"}),y7=We({prop:"fontSize",themeKey:"typography"}),b7=We({prop:"fontStyle",themeKey:"typography"}),w7=We({prop:"fontWeight",themeKey:"typography"}),C7=We({prop:"letterSpacing"}),x7=We({prop:"textTransform"}),S7=We({prop:"lineHeight"}),E7=We({prop:"textAlign"}),P7=We({prop:"typography",cssProperty:!1,themeKey:"typography"}),k7=Ol(P7,v7,y7,b7,w7,C7,S7,E7,x7),PR=k7,F2={borders:gR.filterProps,display:vR.filterProps,flexbox:yR.filterProps,grid:bR.filterProps,positions:CR.filterProps,palette:wR.filterProps,shadows:xR.filterProps,sizing:ER.filterProps,spacing:Kg.filterProps,typography:PR.filterProps},kR={borders:gR,display:vR,flexbox:yR,grid:bR,positions:CR,palette:wR,shadows:xR,sizing:ER,spacing:Kg,typography:PR},I7=Object.keys(F2).reduce((e,t)=>(F2[t].forEach(n=>{e[n]=kR[t]}),e),{});function _7(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function $7(e,t){return typeof e=="function"?e(t):e}function M7(e=kR){const t=Object.keys(e).reduce((o,i)=>(e[i].filterProps.forEach(s=>{o[s]=e[i]}),o),{});function n(o,i,s){const a={[o]:i,theme:s},c=t[o];return c?c(a):{[o]:i}}function r(o){const{sx:i,theme:s={}}=o||{};if(!i)return null;function a(c){let f=c;if(typeof c=="function")f=c(s);else if(typeof c!="object")return c;if(!f)return null;const p=eV(s.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(v=>{const C=$7(f[v],s);if(C!=null)if(typeof C=="object")if(t[v])m=zd(m,n(v,C,s));else{const g=mi({theme:s},C,x=>({[v]:x}));_7(g,C)?m[v]=r({sx:C,theme:s}):m=zd(m,g)}else m=zd(m,n(v,C,s))}),tV(h,m)}return Array.isArray(i)?i.map(a):a(i)}return r}const IR=M7();IR.filterProps=["sx"];const _R=IR,T7=["sx"],R7=e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach(n=>{I7[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function cC(e){const{sx:t}=e,n=oe(e,T7),{systemProps:r,otherProps:o}=R7(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Cd(a)?S({},r,a):r}:i=S({},r,t),S({},o,{sx:i})}function $R(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=$R(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function he(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=$R(e))&&(r&&(r+=" "),r+=t);return r}const O7=["values","unit","step"],L7=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function A7(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=oe(e,O7),i=L7(t),s=Object.keys(i);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,v){const C=s.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(C!==-1&&typeof t[s[C]]=="number"?t[s[C]]:v)-r/100}${n})`}function p(m){return s.indexOf(m)+1<s.length?f(m,s[s.indexOf(m)+1]):a(m)}function h(m){const v=s.indexOf(m);return v===0?a(s[1]):v===s.length-1?c(s[v]):f(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return S({keys:s,values:i,up:a,down:c,between:f,only:p,not:h,unit:n},o)}const F7={borderRadius:4},N7=F7;function D7(e=8){if(e.mui)return e;const t=mR({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}const B7=["breakpoints","palette","spacing","shape"];function uC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=oe(e,B7),a=A7(n),c=D7(o);let f=jo({breakpoints:a,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:c,shape:S({},N7,i)},s);return f=t.reduce((p,h)=>jo(p,h),f),f}const z7=u.createContext(null),MR=z7;function TR(){return u.useContext(MR)}const j7=typeof Symbol=="function"&&Symbol.for,H7=j7?Symbol.for("mui.nested"):"__THEME_NESTED__";function V7(e,t){return typeof t=="function"?t(e):S({},e,t)}function U7(e){const{children:t,theme:n}=e,r=TR(),o=u.useMemo(()=>{const i=r===null?n:V7(r,n);return i!=null&&(i[H7]=r!==null),i},[n,r]);return T.jsx(MR.Provider,{value:o,children:t})}function W7(e){return Object.keys(e).length===0}function dC(e=null){const t=TR();return!t||W7(t)?e:t}const G7=uC();function qg(e=G7){return dC(e)}const K7=["className","component"];function q7(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r,styleFunctionSx:o=_R}=e,i=aR("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(o);return u.forwardRef(function(c,f){const p=qg(t),h=cC(c),{className:m,component:v="div"}=h,C=oe(h,K7);return T.jsx(i,S({as:v,ref:f,className:he(m,r?r(n):n),theme:p},C))})}const Y7=["variant"];function N2(e){return e.length===0}function RR(e){const{variant:t}=e,n=oe(e,Y7);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=N2(r)?e[o]:fe(e[o]):r+=`${N2(r)?o:fe(o)}${fe(e[o].toString())}`}),r}const X7=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],Q7=["theme"],J7=["theme"];function ad(e){return Object.keys(e).length===0}function Z7(e){return typeof e=="string"&&e.charCodeAt(0)>96}const eU=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,tU=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=RR(o.props);r[i]=o.style}),r},nU=(e,t,n,r)=>{var o,i;const{ownerState:s={}}=e,a=[],c=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return c&&c.forEach(f=>{let p=!0;Object.keys(f.props).forEach(h=>{s[h]!==f.props[h]&&e[h]!==f.props[h]&&(p=!1)}),p&&a.push(t[RR(f.props)])}),a};function jd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const rU=uC();function oU(e={}){const{defaultTheme:t=rU,rootShouldForwardProp:n=jd,slotShouldForwardProp:r=jd,styleFunctionSx:o=_R}=e,i=s=>{const a=ad(s.theme)?t:s.theme;return o(S({},s,{theme:a}))};return i.__mui_systemSx=!0,(s,a={})=>{A8(s,E=>E.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m}=a,v=oe(a,X7),C=p!==void 0?p:f&&f!=="Root"||!1,g=h||!1;let x,b=jd;f==="Root"?b=n:f?b=r:Z7(s)&&(b=void 0);const P=aR(s,S({shouldForwardProp:b,label:x},v)),w=(E,...I)=>{const _=I?I.map(O=>typeof O=="function"&&O.__emotion_real!==O?N=>{let{theme:U}=N,H=oe(N,Q7);return O(S({theme:ad(U)?t:U},H))}:O):[];let k=E;c&&m&&_.push(O=>{const N=ad(O.theme)?t:O.theme,U=eU(c,N);if(U){const H={};return Object.entries(U).forEach(([L,D])=>{H[L]=typeof D=="function"?D(S({},O,{theme:N})):D}),m(O,H)}return null}),c&&!C&&_.push(O=>{const N=ad(O.theme)?t:O.theme;return nU(O,tU(c,N),N,c)}),g||_.push(i);const $=_.length-I.length;if(Array.isArray(E)&&$>0){const O=new Array($).fill("");k=[...E,...O],k.raw=[...E.raw,...O]}else typeof E=="function"&&E.__emotion_real!==E&&(k=O=>{let{theme:N}=O,U=oe(O,J7);return E(S({theme:ad(N)?t:N},U))});return P(k,..._)};return P.withConfig&&(w.withConfig=P.withConfig),w}}function OR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:pR(t.components[n].defaultProps,r)}function iU({props:e,name:t,defaultTheme:n}){const r=qg(n);return OR({theme:r,name:t,props:e})}function fC(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function sU(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ca(e){if(e.type)return e;if(e.charAt(0)==="#")return Ca(sU(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Sl(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Sl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Yg(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function lU(e){e=Ca(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(f,p=(f+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),Yg({type:a,values:c})}function D2(e){e=Ca(e);let t=e.type==="hsl"?Ca(lU(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:is((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function aU(e,t){const n=D2(e),r=D2(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rt(e,t){return e=Ca(e),t=fC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Yg(e)}function Es(e,t){if(e=Ca(e),t=fC(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Yg(e)}function Ps(e,t){if(e=Ca(e),t=fC(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Yg(e)}function cU(e){const t=qg();return T.jsx(eC.Provider,{value:typeof t=="object"?t:{},children:e.children})}function uU(e){const{children:t,theme:n}=e;return T.jsx(U7,{theme:n,children:T.jsx(cU,{children:t})})}function El(e){return typeof e=="string"}function xd(e,t={},n){return El(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}function dU(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function ib(e,t){return typeof e=="function"?e(t):e}function B2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function fU(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=he(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),C=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=S({},n,o,r);return v.length>0&&(g.className=v),Object.keys(C).length>0&&(g.style=C),{props:g,internalRef:void 0}}const s=dU(S({},o,r)),a=B2(r),c=B2(o),f=t(s),p=he(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=S({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},f,n,c,a);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}const pU=["elementType","externalSlotProps","ownerState"];function bf(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=oe(e,pU),s=ib(r,o),{props:a,internalRef:c}=fU(S({},i,{externalSlotProps:s})),f=St(c,St(s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref));return xd(n,S({},a,{ref:f}),o)}function z2(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function LR(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:c,getOptionLabel:f})=>{let p=s?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=z2(p));const h=a.filter(m=>{let v=(i||f)(m);return n&&(v=v.toLowerCase()),t&&(v=z2(v)),o==="start"?v.indexOf(p)===0:v.indexOf(p)>-1});return typeof r=="number"?h.slice(0,r):h}}function P0(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const hU=LR(),j2=5;function mU(e){const{autoComplete:t=!1,autoHighlight:n=!1,autoSelect:r=!1,blurOnSelect:o=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:s=!1,componentName:a="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:v=!1,filterOptions:C=hU,filterSelectedOptions:g=!1,freeSolo:x=!1,getOptionDisabled:b,getOptionLabel:P=ve=>{var ge;return(ge=ve.label)!=null?ge:ve},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:I,includeInputInList:_=!1,inputValue:k,isOptionEqualToValue:$=(ve,ge)=>ve===ge,multiple:R=!1,onChange:O,onClose:N,onHighlightChange:U,onInputChange:H,onOpen:L,open:D,openOnFocus:B=!1,options:W,readOnly:A=!1,selectOnFocus:z=!e.freeSolo,value:G}=e,q=En(I);let X=P;X=ve=>{const ge=P(ve);return typeof ge!="string"?String(ge):ge};const ie=u.useRef(!1),ee=u.useRef(!0),se=u.useRef(null),ae=u.useRef(null),[we,de]=u.useState(null),[le,te]=u.useState(-1),be=n?0:-1,_e=u.useRef(be),[Se,Fe]=Di({controlled:G,default:c,name:a}),[Re,Le]=Di({controlled:k,default:"",name:a,state:"inputValue"}),[Oe,Ze]=u.useState(!1),gt=u.useCallback((ve,ge)=>{if(!(R?Se.length<ge.length:ge!==null)&&!i)return;let lt;if(R)lt="";else if(ge==null)lt="";else{const Vt=X(ge);lt=typeof Vt=="string"?Vt:""}Re!==lt&&(Le(lt),H&&H(ve,lt,"reset"))},[X,Re,R,H,Le,i,Se]),tt=u.useRef();u.useEffect(()=>{const ve=Se!==tt.current;tt.current=Se,!(Oe&&!ve)&&(x&&!ve||gt(null,Se))},[Se,gt,Oe,tt,x]);const[et,Pt]=Di({controlled:D,default:!1,name:a,state:"open"}),[ut,ot]=u.useState(!0),It=!R&&Se!=null&&Re===X(Se),Xe=et&&!A,Te=Xe?C(W.filter(ve=>!(g&&(R?Se:[Se]).some(ge=>ge!==null&&$(ve,ge)))),{inputValue:It&&ut?"":Re,getOptionLabel:X}):[],ne=et&&Te.length>0&&!A,ke=zn(ve=>{ve===-1?se.current.focus():we.querySelector(`[data-tag-index="${ve}"]`).focus()});u.useEffect(()=>{R&&le>Se.length-1&&(te(-1),ke(-1))},[Se,R,le,ke]);function Ee(ve,ge){if(!ae.current||ve===-1)return-1;let nt=ve;for(;;){if(ge==="next"&&nt===Te.length||ge==="previous"&&nt===-1)return-1;const lt=ae.current.querySelector(`[data-option-index="${nt}"]`),Vt=m?!1:!lt||lt.disabled||lt.getAttribute("aria-disabled")==="true";if(lt&&!lt.hasAttribute("tabindex")||Vt)nt+=ge==="next"?1:-1;else return nt}}const $e=zn(({event:ve,index:ge,reason:nt="auto"})=>{if(_e.current=ge,ge===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${q}-option-${ge}`),U&&U(ve,ge===-1?null:Te[ge],nt),!ae.current)return;const lt=ae.current.querySelector('[role="option"].Mui-focused');lt&&(lt.classList.remove("Mui-focused"),lt.classList.remove("Mui-focusVisible"));const Vt=ae.current.parentElement.querySelector('[role="listbox"]');if(!Vt)return;if(ge===-1){Vt.scrollTop=0;return}const an=ae.current.querySelector(`[data-option-index="${ge}"]`);if(an&&(an.classList.add("Mui-focused"),nt==="keyboard"&&an.classList.add("Mui-focusVisible"),Vt.scrollHeight>Vt.clientHeight&&nt!=="mouse")){const bn=an,Fr=Vt.clientHeight+Vt.scrollTop,Va=bn.offsetTop+bn.offsetHeight;Va>Fr?Vt.scrollTop=Va-Vt.clientHeight:bn.offsetTop-bn.offsetHeight*(w?1.3:0)<Vt.scrollTop&&(Vt.scrollTop=bn.offsetTop-bn.offsetHeight*(w?1.3:0))}}),Ge=zn(({event:ve,diff:ge,direction:nt="next",reason:lt="auto"})=>{if(!Xe)return;const an=Ee((()=>{const bn=Te.length-1;if(ge==="reset")return be;if(ge==="start")return 0;if(ge==="end")return bn;const Fr=_e.current+ge;return Fr<0?Fr===-1&&_?-1:v&&_e.current!==-1||Math.abs(ge)>1?0:bn:Fr>bn?Fr===bn+1&&_?-1:v||Math.abs(ge)>1?bn:0:Fr})(),nt);if($e({index:an,reason:lt,event:ve}),t&&ge!=="reset")if(an===-1)se.current.value=Re;else{const bn=X(Te[an]);se.current.value=bn,bn.toLowerCase().indexOf(Re.toLowerCase())===0&&Re.length>0&&se.current.setSelectionRange(Re.length,bn.length)}}),Ct=u.useCallback(()=>{if(!Xe)return;const ve=R?Se[0]:Se;if(Te.length===0||ve==null){Ge({diff:"reset"});return}if(ae.current){if(ve!=null){const ge=Te[_e.current];if(R&&ge&&P0(Se,lt=>$(ge,lt))!==-1)return;const nt=P0(Te,lt=>$(lt,ve));nt===-1?Ge({diff:"reset"}):$e({index:nt});return}if(_e.current>=Te.length-1){$e({index:Te.length-1});return}$e({index:_e.current})}},[Te.length,R?!1:Se,g,Ge,$e,Xe,Re,R]),zt=zn(ve=>{ru(ae,ve),ve&&Ct()});u.useEffect(()=>{Ct()},[Ct]);const jt=ve=>{et||(Pt(!0),ot(!0),L&&L(ve))},Jn=(ve,ge)=>{et&&(Pt(!1),N&&N(ve,ge))},pn=(ve,ge,nt,lt)=>{if(R){if(Se.length===ge.length&&Se.every((Vt,an)=>Vt===ge[an]))return}else if(Se===ge)return;O&&O(ve,ge,nt,lt),Fe(ge)},Gn=u.useRef(!1),Er=(ve,ge,nt="selectOption",lt="options")=>{let Vt=nt,an=ge;if(R){an=Array.isArray(Se)?Se.slice():[];const bn=P0(an,Fr=>$(ge,Fr));bn===-1?an.push(ge):lt!=="freeSolo"&&(an.splice(bn,1),Vt="removeOption")}gt(ve,an),pn(ve,an,Vt,{option:ge}),!p&&(!ve||!ve.ctrlKey&&!ve.metaKey)&&Jn(ve,Vt),(o===!0||o==="touch"&&Gn.current||o==="mouse"&&!Gn.current)&&se.current.blur()};function hn(ve,ge){if(ve===-1)return-1;let nt=ve;for(;;){if(ge==="next"&&nt===Se.length||ge==="previous"&&nt===-1)return-1;const lt=we.querySelector(`[data-tag-index="${nt}"]`);if(!lt||!lt.hasAttribute("tabindex")||lt.disabled||lt.getAttribute("aria-disabled")==="true")nt+=ge==="next"?1:-1;else return nt}}const on=(ve,ge)=>{if(!R)return;Re===""&&Jn(ve,"toggleInput");let nt=le;le===-1?Re===""&&ge==="previous"&&(nt=Se.length-1):(nt+=ge==="next"?1:-1,nt<0&&(nt=0),nt===Se.length&&(nt=-1)),nt=hn(nt,ge),te(nt),ke(nt)},Zt=ve=>{ie.current=!0,Le(""),H&&H(ve,"","clear"),pn(ve,R?[]:null,"clear")},Co=ve=>ge=>{if(ve.onKeyDown&&ve.onKeyDown(ge),!ge.defaultMuiPrevented&&(le!==-1&&["ArrowLeft","ArrowRight"].indexOf(ge.key)===-1&&(te(-1),ke(-1)),ge.which!==229))switch(ge.key){case"Home":Xe&&E&&(ge.preventDefault(),Ge({diff:"start",direction:"next",reason:"keyboard",event:ge}));break;case"End":Xe&&E&&(ge.preventDefault(),Ge({diff:"end",direction:"previous",reason:"keyboard",event:ge}));break;case"PageUp":ge.preventDefault(),Ge({diff:-j2,direction:"previous",reason:"keyboard",event:ge}),jt(ge);break;case"PageDown":ge.preventDefault(),Ge({diff:j2,direction:"next",reason:"keyboard",event:ge}),jt(ge);break;case"ArrowDown":ge.preventDefault(),Ge({diff:1,direction:"next",reason:"keyboard",event:ge}),jt(ge);break;case"ArrowUp":ge.preventDefault(),Ge({diff:-1,direction:"previous",reason:"keyboard",event:ge}),jt(ge);break;case"ArrowLeft":on(ge,"previous");break;case"ArrowRight":on(ge,"next");break;case"Enter":if(_e.current!==-1&&Xe){const nt=Te[_e.current],lt=b?b(nt):!1;if(ge.preventDefault(),lt)return;Er(ge,nt,"selectOption"),t&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else x&&Re!==""&&It===!1&&(R&&ge.preventDefault(),Er(ge,Re,"createOption","freeSolo"));break;case"Escape":Xe?(ge.preventDefault(),ge.stopPropagation(),Jn(ge,"escape")):s&&(Re!==""||R&&Se.length>0)&&(ge.preventDefault(),ge.stopPropagation(),Zt(ge));break;case"Backspace":if(R&&!A&&Re===""&&Se.length>0){const nt=le===-1?Se.length-1:le,lt=Se.slice();lt.splice(nt,1),pn(ge,lt,"removeOption",{option:Se[nt]})}break}},yi=ve=>{Ze(!0),B&&!ie.current&&jt(ve)},Ar=ve=>{if(ae.current!==null&&ae.current.parentElement.contains(document.activeElement)){se.current.focus();return}Ze(!1),ee.current=!0,ie.current=!1,r&&_e.current!==-1&&Xe?Er(ve,Te[_e.current],"blur"):r&&x&&Re!==""?Er(ve,Re,"blur","freeSolo"):i&>(ve,Se),Jn(ve,"blur")},Jo=ve=>{const ge=ve.target.value;Re!==ge&&(Le(ge),ot(!1),H&&H(ve,ge,"input")),ge===""?!f&&!R&&pn(ve,null,"clear"):jt(ve)},xo=ve=>{$e({event:ve,index:Number(ve.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Ot=()=>{Gn.current=!0},Fn=ve=>{const ge=Number(ve.currentTarget.getAttribute("data-option-index"));Er(ve,Te[ge],"selectOption"),Gn.current=!1},ce=ve=>ge=>{const nt=Se.slice();nt.splice(ve,1),pn(ge,nt,"removeOption",{option:Se[ve]})},me=ve=>{et?Jn(ve,"toggleInput"):jt(ve)},ze=ve=>{ve.target.getAttribute("id")!==q&&ve.preventDefault()},dt=()=>{se.current.focus(),z&&ee.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),ee.current=!1},bt=ve=>{(Re===""||!et)&&me(ve)};let Be=x&&Re.length>0;Be=Be||(R?Se.length>0:Se!==null);let it=Te;return w&&(it=Te.reduce((ve,ge,nt)=>{const lt=w(ge);return ve.length>0&&ve[ve.length-1].group===lt?ve[ve.length-1].options.push(ge):ve.push({key:nt,index:nt,group:lt,options:[ge]}),ve},[])),h&&Oe&&Ar(),{getRootProps:(ve={})=>S({"aria-owns":ne?`${q}-listbox`:null},ve,{onKeyDown:Co(ve),onMouseDown:ze,onClick:dt}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Re,onBlur:Ar,onFocus:yi,onChange:Jo,onMouseDown:bt,"aria-activedescendant":Xe?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ne?`${q}-listbox`:void 0,"aria-expanded":ne,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox"}),getClearProps:()=>({tabIndex:-1,onClick:Zt}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:me}),getTagProps:({index:ve})=>S({key:ve,"data-tag-index":ve,tabIndex:-1},!A&&{onDelete:ce(ve)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:zt,onMouseDown:ve=>{ve.preventDefault()}}),getOptionProps:({index:ve,option:ge})=>{const nt=(R?Se:[Se]).some(Vt=>Vt!=null&&$(ge,Vt)),lt=b?b(ge):!1;return{key:X(ge),tabIndex:-1,role:"option",id:`${q}-option-${ve}`,onMouseOver:xo,onClick:Fn,onTouchStart:Ot,"data-option-index":ve,"aria-disabled":lt,"aria-selected":nt}},id:q,inputValue:Re,value:Se,dirty:Be,popupOpen:Xe,focused:Oe||le!==-1,anchorEl:we,setAnchorEl:de,focusedTag:le,groupedOptions:it}}function gU(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=fR({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:c=r}=s?i:e,f=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:s,max:c,displayValue:f}}function vU(e){return Ke("BaseBadge",e)}Ve("BaseBadge",["root","badge","invisible"]);const yU=["badgeContent","component","children","components","componentsProps","invisible","max","showZero"],bU=e=>{const{invisible:t}=e;return Ie({root:["root"],badge:["badge",t&&"invisible"]},vU,void 0)},wU=u.forwardRef(function(t,n){const{component:r,children:o,components:i={},componentsProps:s={},max:a=99,showZero:c=!1}=t,f=oe(t,yU),{badgeContent:p,max:h,displayValue:m,invisible:v}=gU(S({},t,{max:a})),C=S({},t,{badgeContent:p,invisible:v,max:h,showZero:c}),g=bU(C),x=r||i.Root||"span",b=bf({elementType:x,externalSlotProps:s.root,externalForwardedProps:f,additionalProps:{ref:n},ownerState:C,className:g.root}),P=i.Badge||"span",w=bf({elementType:P,externalSlotProps:s.badge,ownerState:C,className:g.badge});return T.jsxs(x,S({},b,{children:[o,T.jsx(P,S({},w,{children:m}))]}))}),CU=wU;function H2(e){return e.substring(2).toLowerCase()}function xU(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function AR(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=u.useRef(!1),a=u.useRef(null),c=u.useRef(!1),f=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=St(t.ref,a),h=zn(C=>{const g=f.current;f.current=!1;const x=yn(a.current);if(!c.current||!a.current||"clientX"in C&&xU(C,x))return;if(s.current){s.current=!1;return}let b;C.composedPath?b=C.composedPath().indexOf(a.current)>-1:b=!x.documentElement.contains(C.target)||a.current.contains(C.target),!b&&(n||!g)&&o(C)}),m=C=>g=>{f.current=!0;const x=t.props[C];x&&x(g)},v={ref:p};return i!==!1&&(v[i]=m(i)),u.useEffect(()=>{if(i!==!1){const C=H2(i),g=yn(a.current),x=()=>{s.current=!0};return g.addEventListener(C,h),g.addEventListener("touchmove",x),()=>{g.removeEventListener(C,h),g.removeEventListener("touchmove",x)}}},[h,i]),r!==!1&&(v[r]=m(r)),u.useEffect(()=>{if(r!==!1){const C=H2(r),g=yn(a.current);return g.addEventListener(C,h),()=>{g.removeEventListener(C,h)}}},[h,r]),T.jsx(u.Fragment,{children:u.cloneElement(t,v)})}var Yr="top",Go="bottom",Ko="right",Xr="left",pC="auto",qf=[Yr,Go,Ko,Xr],ou="start",wf="end",SU="clippingParents",FR="viewport",cd="popper",EU="reference",V2=qf.reduce(function(e,t){return e.concat([t+"-"+ou,t+"-"+wf])},[]),NR=[].concat(qf,[pC]).reduce(function(e,t){return e.concat([t,t+"-"+ou,t+"-"+wf])},[]),PU="beforeRead",kU="read",IU="afterRead",_U="beforeMain",$U="main",MU="afterMain",TU="beforeWrite",RU="write",OU="afterWrite",LU=[PU,kU,IU,_U,$U,MU,TU,RU,OU];function Wi(e){return e?(e.nodeName||"").toLowerCase():null}function Xo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xa(e){var t=Xo(e).Element;return e instanceof t||e instanceof Element}function Ho(e){var t=Xo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hC(e){if(typeof ShadowRoot=="undefined")return!1;var t=Xo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function AU(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Ho(i)||!Wi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function FU(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,f){return c[f]="",c},{});!Ho(o)||!Wi(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const NU={name:"applyStyles",enabled:!0,phase:"write",fn:AU,effect:FU,requires:["computeStyles"]};function Bi(e){return e.split("-")[0]}var ua=Math.max,Fm=Math.min,iu=Math.round;function sb(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function DR(){return!/^((?!chrome|android).)*safari/i.test(sb())}function su(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ho(e)&&(o=e.offsetWidth>0&&iu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&iu(r.height)/e.offsetHeight||1);var s=xa(e)?Xo(e):window,a=s.visualViewport,c=!DR()&&n,f=(r.left+(c&&a?a.offsetLeft:0))/o,p=(r.top+(c&&a?a.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function mC(e){var t=su(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function BR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ks(e){return Xo(e).getComputedStyle(e)}function DU(e){return["table","td","th"].indexOf(Wi(e))>=0}function Al(e){return((xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xg(e){return Wi(e)==="html"?e:e.assignedSlot||e.parentNode||(hC(e)?e.host:null)||Al(e)}function U2(e){return!Ho(e)||ks(e).position==="fixed"?null:e.offsetParent}function BU(e){var t=/firefox/i.test(sb()),n=/Trident/i.test(sb());if(n&&Ho(e)){var r=ks(e);if(r.position==="fixed")return null}var o=Xg(e);for(hC(o)&&(o=o.host);Ho(o)&&["html","body"].indexOf(Wi(o))<0;){var i=ks(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Yf(e){for(var t=Xo(e),n=U2(e);n&&DU(n)&&ks(n).position==="static";)n=U2(n);return n&&(Wi(n)==="html"||Wi(n)==="body"&&ks(n).position==="static")?t:n||BU(e)||t}function gC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hd(e,t,n){return ua(e,Fm(t,n))}function zU(e,t,n){var r=Hd(e,t,n);return r>n?n:r}function zR(){return{top:0,right:0,bottom:0,left:0}}function jR(e){return Object.assign({},zR(),e)}function HR(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var jU=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jR(typeof t!="number"?t:HR(t,qf))};function HU(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Bi(n.placement),c=gC(a),f=[Xr,Ko].indexOf(a)>=0,p=f?"height":"width";if(!(!i||!s)){var h=jU(o.padding,n),m=mC(i),v=c==="y"?Yr:Xr,C=c==="y"?Go:Ko,g=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],x=s[c]-n.rects.reference[c],b=Yf(i),P=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,w=g/2-x/2,E=h[v],I=P-m[p]-h[C],_=P/2-m[p]/2+w,k=Hd(E,_,I),$=c;n.modifiersData[r]=(t={},t[$]=k,t.centerOffset=k-_,t)}}function VU(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||BR(t.elements.popper,o)&&(t.elements.arrow=o))}const UU={name:"arrow",enabled:!0,phase:"main",fn:HU,effect:VU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lu(e){return e.split("-")[1]}var WU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function GU(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:iu(t*o)/o||0,y:iu(n*o)/o||0}}function W2(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,C=s.y,g=C===void 0?0:C,x=typeof p=="function"?p({x:v,y:g}):{x:v,y:g};v=x.x,g=x.y;var b=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),w=Xr,E=Yr,I=window;if(f){var _=Yf(n),k="clientHeight",$="clientWidth";if(_===Xo(n)&&(_=Al(n),ks(_).position!=="static"&&a==="absolute"&&(k="scrollHeight",$="scrollWidth")),_=_,o===Yr||(o===Xr||o===Ko)&&i===wf){E=Go;var R=h&&_===I&&I.visualViewport?I.visualViewport.height:_[k];g-=R-r.height,g*=c?1:-1}if(o===Xr||(o===Yr||o===Go)&&i===wf){w=Ko;var O=h&&_===I&&I.visualViewport?I.visualViewport.width:_[$];v-=O-r.width,v*=c?1:-1}}var N=Object.assign({position:a},f&&WU),U=p===!0?GU({x:v,y:g}):{x:v,y:g};if(v=U.x,g=U.y,c){var H;return Object.assign({},N,(H={},H[E]=P?"0":"",H[w]=b?"0":"",H.transform=(I.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",H))}return Object.assign({},N,(t={},t[E]=P?g+"px":"",t[w]=b?v+"px":"",t.transform="",t))}function KU(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:Bi(t.placement),variation:lu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,W2(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,W2(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:KU,data:{}};var kh={passive:!0};function YU(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,c=Xo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,kh)}),a&&c.addEventListener("resize",n.update,kh),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,kh)}),a&&c.removeEventListener("resize",n.update,kh)}}const XU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YU,data:{}};var QU={left:"right",right:"left",bottom:"top",top:"bottom"};function nm(e){return e.replace(/left|right|bottom|top/g,function(t){return QU[t]})}var JU={start:"end",end:"start"};function G2(e){return e.replace(/start|end/g,function(t){return JU[t]})}function vC(e){var t=Xo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function yC(e){return su(Al(e)).left+vC(e).scrollLeft}function ZU(e,t){var n=Xo(e),r=Al(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var f=DR();(f||!f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+yC(e),y:c}}function eW(e){var t,n=Al(e),r=vC(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ua(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ua(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+yC(e),c=-r.scrollTop;return ks(o||n).direction==="rtl"&&(a+=ua(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function bC(e){var t=ks(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function VR(e){return["html","body","#document"].indexOf(Wi(e))>=0?e.ownerDocument.body:Ho(e)&&bC(e)?e:VR(Xg(e))}function Vd(e,t){var n;t===void 0&&(t=[]);var r=VR(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Xo(r),s=o?[i].concat(i.visualViewport||[],bC(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Vd(Xg(s)))}function lb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tW(e,t){var n=su(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function K2(e,t,n){return t===FR?lb(ZU(e,n)):xa(t)?tW(t,n):lb(eW(Al(e)))}function nW(e){var t=Vd(Xg(e)),n=["absolute","fixed"].indexOf(ks(e).position)>=0,r=n&&Ho(e)?Yf(e):e;return xa(r)?t.filter(function(o){return xa(o)&&BR(o,r)&&Wi(o)!=="body"}):[]}function rW(e,t,n,r){var o=t==="clippingParents"?nW(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(c,f){var p=K2(e,f,r);return c.top=ua(p.top,c.top),c.right=Fm(p.right,c.right),c.bottom=Fm(p.bottom,c.bottom),c.left=ua(p.left,c.left),c},K2(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function UR(e){var t=e.reference,n=e.element,r=e.placement,o=r?Bi(r):null,i=r?lu(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Yr:c={x:s,y:t.y-n.height};break;case Go:c={x:s,y:t.y+t.height};break;case Ko:c={x:t.x+t.width,y:a};break;case Xr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?gC(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case ou:c[f]=c[f]-(t[p]/2-n[p]/2);break;case wf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Cf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,c=a===void 0?SU:a,f=n.rootBoundary,p=f===void 0?FR:f,h=n.elementContext,m=h===void 0?cd:h,v=n.altBoundary,C=v===void 0?!1:v,g=n.padding,x=g===void 0?0:g,b=jR(typeof x!="number"?x:HR(x,qf)),P=m===cd?EU:cd,w=e.rects.popper,E=e.elements[C?P:m],I=rW(xa(E)?E:E.contextElement||Al(e.elements.popper),c,p,s),_=su(e.elements.reference),k=UR({reference:_,element:w,strategy:"absolute",placement:o}),$=lb(Object.assign({},w,k)),R=m===cd?$:_,O={top:I.top-R.top+b.top,bottom:R.bottom-I.bottom+b.bottom,left:I.left-R.left+b.left,right:R.right-I.right+b.right},N=e.modifiersData.offset;if(m===cd&&N){var U=N[o];Object.keys(O).forEach(function(H){var L=[Ko,Go].indexOf(H)>=0?1:-1,D=[Yr,Go].indexOf(H)>=0?"y":"x";O[H]+=U[D]*L})}return O}function oW(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?NR:c,p=lu(r),h=p?a?V2:V2.filter(function(C){return lu(C)===p}):qf,m=h.filter(function(C){return f.indexOf(C)>=0});m.length===0&&(m=h);var v=m.reduce(function(C,g){return C[g]=Cf(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[Bi(g)],C},{});return Object.keys(v).sort(function(C,g){return v[C]-v[g]})}function iW(e){if(Bi(e)===pC)return[];var t=nm(e);return[G2(e),t,G2(t)]}function sW(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,C=v===void 0?!0:v,g=n.allowedAutoPlacements,x=t.options.placement,b=Bi(x),P=b===x,w=c||(P||!C?[nm(x)]:iW(x)),E=[x].concat(w).reduce(function(ee,se){return ee.concat(Bi(se)===pC?oW(t,{placement:se,boundary:p,rootBoundary:h,padding:f,flipVariations:C,allowedAutoPlacements:g}):se)},[]),I=t.rects.reference,_=t.rects.popper,k=new Map,$=!0,R=E[0],O=0;O<E.length;O++){var N=E[O],U=Bi(N),H=lu(N)===ou,L=[Yr,Go].indexOf(U)>=0,D=L?"width":"height",B=Cf(t,{placement:N,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),W=L?H?Ko:Xr:H?Go:Yr;I[D]>_[D]&&(W=nm(W));var A=nm(W),z=[];if(i&&z.push(B[U]<=0),a&&z.push(B[W]<=0,B[A]<=0),z.every(function(ee){return ee})){R=N,$=!1;break}k.set(N,z)}if($)for(var G=C?3:1,q=function(se){var ae=E.find(function(we){var de=k.get(we);if(de)return de.slice(0,se).every(function(le){return le})});if(ae)return R=ae,"break"},X=G;X>0;X--){var ie=q(X);if(ie==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const lW={name:"flip",enabled:!0,phase:"main",fn:sW,requiresIfExists:["offset"],data:{_skip:!1}};function q2(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Y2(e){return[Yr,Ko,Go,Xr].some(function(t){return e[t]>=0})}function aW(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Cf(t,{elementContext:"reference"}),a=Cf(t,{altBoundary:!0}),c=q2(s,r),f=q2(a,o,i),p=Y2(c),h=Y2(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const cW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aW};function uW(e,t,n){var r=Bi(e),o=[Xr,Yr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Xr,Ko].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function dW(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=NR.reduce(function(p,h){return p[h]=uW(h,t.rects,i),p},{}),a=s[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const fW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dW};function pW(e){var t=e.state,n=e.name;t.modifiersData[n]=UR({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const hW={name:"popperOffsets",enabled:!0,phase:"read",fn:pW,data:{}};function mW(e){return e==="x"?"y":"x"}function gW(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,C=n.tetherOffset,g=C===void 0?0:C,x=Cf(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),b=Bi(t.placement),P=lu(t.placement),w=!P,E=gC(b),I=mW(E),_=t.modifiersData.popperOffsets,k=t.rects.reference,$=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(_){if(i){var H,L=E==="y"?Yr:Xr,D=E==="y"?Go:Ko,B=E==="y"?"height":"width",W=_[E],A=W+x[L],z=W-x[D],G=v?-$[B]/2:0,q=P===ou?k[B]:$[B],X=P===ou?-$[B]:-k[B],ie=t.elements.arrow,ee=v&&ie?mC(ie):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zR(),ae=se[L],we=se[D],de=Hd(0,k[B],ee[B]),le=w?k[B]/2-G-de-ae-O.mainAxis:q-de-ae-O.mainAxis,te=w?-k[B]/2+G+de+we+O.mainAxis:X+de+we+O.mainAxis,be=t.elements.arrow&&Yf(t.elements.arrow),_e=be?E==="y"?be.clientTop||0:be.clientLeft||0:0,Se=(H=N==null?void 0:N[E])!=null?H:0,Fe=W+le-Se-_e,Re=W+te-Se,Le=Hd(v?Fm(A,Fe):A,W,v?ua(z,Re):z);_[E]=Le,U[E]=Le-W}if(a){var Oe,Ze=E==="x"?Yr:Xr,gt=E==="x"?Go:Ko,tt=_[I],et=I==="y"?"height":"width",Pt=tt+x[Ze],ut=tt-x[gt],ot=[Yr,Xr].indexOf(b)!==-1,It=(Oe=N==null?void 0:N[I])!=null?Oe:0,Xe=ot?Pt:tt-k[et]-$[et]-It+O.altAxis,Te=ot?tt+k[et]+$[et]-It-O.altAxis:ut,ne=v&&ot?zU(Xe,tt,Te):Hd(v?Xe:Pt,tt,v?Te:ut);_[I]=ne,U[I]=ne-tt}t.modifiersData[r]=U}}const vW={name:"preventOverflow",enabled:!0,phase:"main",fn:gW,requiresIfExists:["offset"]};function yW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bW(e){return e===Xo(e)||!Ho(e)?vC(e):yW(e)}function wW(e){var t=e.getBoundingClientRect(),n=iu(t.width)/e.offsetWidth||1,r=iu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function CW(e,t,n){n===void 0&&(n=!1);var r=Ho(t),o=Ho(t)&&wW(t),i=Al(t),s=su(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Wi(t)!=="body"||bC(i))&&(a=bW(t)),Ho(t)?(c=su(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=yC(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function xW(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function SW(e){var t=xW(e);return LU.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function EW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function PW(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var X2={placement:"bottom",modifiers:[],strategy:"absolute"};function Q2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function kW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?X2:o;return function(a,c,f){f===void 0&&(f=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},X2,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,v={state:p,setOptions:function(b){var P=typeof b=="function"?b(p.options):b;g(),p.options=Object.assign({},i,p.options,P),p.scrollParents={reference:xa(a)?Vd(a):a.contextElement?Vd(a.contextElement):[],popper:Vd(c)};var w=SW(PW([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(E){return E.enabled}),C(),v.update()},forceUpdate:function(){if(!m){var b=p.elements,P=b.reference,w=b.popper;if(Q2(P,w)){p.rects={reference:CW(P,Yf(w),p.options.strategy==="fixed"),popper:mC(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(O){return p.modifiersData[O.name]=Object.assign({},O.data)});for(var E=0;E<p.orderedModifiers.length;E++){if(p.reset===!0){p.reset=!1,E=-1;continue}var I=p.orderedModifiers[E],_=I.fn,k=I.options,$=k===void 0?{}:k,R=I.name;typeof _=="function"&&(p=_({state:p,options:$,name:R,instance:v})||p)}}}},update:EW(function(){return new Promise(function(x){v.forceUpdate(),x(p)})}),destroy:function(){g(),m=!0}};if(!Q2(a,c))return v;v.setOptions(f).then(function(x){!m&&f.onFirstUpdate&&f.onFirstUpdate(x)});function C(){p.orderedModifiers.forEach(function(x){var b=x.name,P=x.options,w=P===void 0?{}:P,E=x.effect;if(typeof E=="function"){var I=E({state:p,name:b,instance:v,options:w}),_=function(){};h.push(I||_)}})}function g(){h.forEach(function(x){return x()}),h=[]}return v}}var IW=[XU,hW,qU,NU,fW,lW,vW,UU,cW],_W=kW({defaultModifiers:IW});function $W(e){return typeof e=="function"?e():e}const MW=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=u.useState(null),c=St(u.isValidElement(r)?r.ref:null,n);return Rn(()=>{i||a($W(o)||document.body)},[o,i]),Rn(()=>{if(s&&!i)return ru(n,s),()=>{ru(n,null)}},[n,s,i]),i?u.isValidElement(r)?u.cloneElement(r,{ref:c}):r:s&&bl.createPortal(r,s)}),WR=MW;function TW(e){return Ke("MuiPopperUnstyled",e)}Ve("MuiPopperUnstyled",["root"]);const RW=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],OW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function LW(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function ab(e){return typeof e=="function"?e():e}const AW=()=>Ie({root:["root"]},TW,{}),FW={},NW=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:s,components:a={},componentsProps:c={},direction:f,disablePortal:p,modifiers:h,open:m,ownerState:v,placement:C,popperOptions:g,popperRef:x,TransitionProps:b}=t,P=oe(t,RW),w=u.useRef(null),E=St(w,n),I=u.useRef(null),_=St(I,x),k=u.useRef(_);Rn(()=>{k.current=_},[_]),u.useImperativeHandle(x,()=>I.current,[]);const $=LW(C,f),[R,O]=u.useState($);u.useEffect(()=>{I.current&&I.current.forceUpdate()}),Rn(()=>{if(!o||!m)return;const D=A=>{O(A.placement)};ab(o);let B=[{name:"preventOverflow",options:{altBoundary:p}},{name:"flip",options:{altBoundary:p}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{D(A)}}];h!=null&&(B=B.concat(h)),g&&g.modifiers!=null&&(B=B.concat(g.modifiers));const W=_W(ab(o),w.current,S({placement:$},g,{modifiers:B}));return k.current(W),()=>{W.destroy(),k.current(null)}},[o,p,h,m,g,$]);const N={placement:R};b!==null&&(N.TransitionProps=b);const U=AW(),H=(r=s!=null?s:a.Root)!=null?r:"div",L=bf({elementType:H,externalSlotProps:c.root,externalForwardedProps:P,additionalProps:{role:"tooltip",ref:E},ownerState:S({},t,v),className:U.root});return T.jsx(H,S({},L,{children:typeof i=="function"?i(N):i}))}),DW=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=FW,popperRef:v,style:C,transition:g=!1}=t,x=oe(t,OW),[b,P]=u.useState(!0),w=()=>{P(!1)},E=()=>{P(!0)};if(!c&&!p&&(!g||b))return null;const I=i||(r?yn(ab(r)).body:void 0);return T.jsx(WR,{disablePortal:a,container:I,children:T.jsx(NW,S({anchorEl:r,direction:s,disablePortal:a,modifiers:f,ref:n,open:g?!b:p,placement:h,popperOptions:m,popperRef:v},x,{style:S({position:"fixed",top:0,left:0,display:!p&&c&&(!g||b)?"none":null},C),TransitionProps:g?{in:p,onEnter:w,onExited:E}:null,children:o}))})}),BW=DW;function zW(e){const t=yn(e);return t.body===e?Jr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ud(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function J2(e){return parseInt(Jr(e).getComputedStyle(e).paddingRight,10)||0}function jW(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Z2(e,t,n,r=[],o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,c=!jW(s);a&&c&&Ud(s,o)})}function k0(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function HW(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(zW(r)){const s=uR(yn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${J2(r)+s}px`;const a=yn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${J2(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=yn(r).body;else{const s=r.parentElement,a=Jr(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function VW(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class UW{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ud(t.modalRef,!1);const o=VW(n);Z2(n,t.mount,t.modalRef,o,!0);const i=k0(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=k0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=HW(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=k0(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ud(t.modalRef,n),Z2(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Ud(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const WW=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function GW(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function KW(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function qW(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||KW(e))}function YW(e){const t=[],n=[];return Array.from(e.querySelectorAll(WW)).forEach((r,o)=>{const i=GW(r);i===-1||!qW(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function XW(){return!0}function GR(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=YW,isEnabled:s=XW,open:a}=e,c=u.useRef(),f=u.useRef(null),p=u.useRef(null),h=u.useRef(null),m=u.useRef(null),v=u.useRef(!1),C=u.useRef(null),g=St(t.ref,C),x=u.useRef(null);u.useEffect(()=>{!a||!C.current||(v.current=!n)},[n,a]),u.useEffect(()=>{if(!a||!C.current)return;const w=yn(C.current);return C.current.contains(w.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex",-1),v.current&&C.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),u.useEffect(()=>{if(!a||!C.current)return;const w=yn(C.current),E=k=>{const{current:$}=C;if($!==null){if(!w.hasFocus()||r||!s()||c.current){c.current=!1;return}if(!$.contains(w.activeElement)){if(k&&m.current!==k.target||w.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!v.current)return;let N=[];if((w.activeElement===f.current||w.activeElement===p.current)&&(N=i(C.current)),N.length>0){var R,O;const U=Boolean(((R=x.current)==null?void 0:R.shiftKey)&&((O=x.current)==null?void 0:O.key)==="Tab"),H=N[0],L=N[N.length-1];U?L.focus():H.focus()}else $.focus()}}},I=k=>{x.current=k,!(r||!s()||k.key!=="Tab")&&w.activeElement===C.current&&k.shiftKey&&(c.current=!0,p.current.focus())};w.addEventListener("focusin",E),w.addEventListener("keydown",I,!0);const _=setInterval(()=>{w.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(_),w.removeEventListener("focusin",E),w.removeEventListener("keydown",I,!0)}},[n,r,o,s,a,i]);const b=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0,m.current=w.target;const E=t.props.onFocus;E&&E(w)},P=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0};return T.jsxs(u.Fragment,{children:[T.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:f,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:g,onFocus:b}),T.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:p,"data-testid":"sentinelEnd"})]})}function QW(e){return Ke("MuiModal",e)}Ve("MuiModal",["root","hidden"]);const JW=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"],ZW=e=>{const{open:t,exited:n,classes:r}=e;return Ie({root:["root",!t&&n&&"hidden"]},QW,r)};function eG(e){return typeof e=="function"?e():e}function tG(e){return e.children?e.children.props.hasOwnProperty("in"):!1}const nG=new UW,rG=u.forwardRef(function(t,n){var r;const{children:o,classes:i,closeAfterTransition:s=!1,component:a="div",components:c={},componentsProps:f={},container:p,disableAutoFocus:h=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:C=!1,disableRestoreFocus:g=!1,disableScrollLock:x=!1,hideBackdrop:b=!1,keepMounted:P=!1,manager:w=nG,onBackdropClick:E,onClose:I,onKeyDown:_,open:k,onTransitionEnter:$,onTransitionExited:R}=t,O=oe(t,JW),[N,U]=u.useState(!0),H=u.useRef({}),L=u.useRef(null),D=u.useRef(null),B=St(D,n),W=tG(t),A=(r=t["aria-hidden"])!=null?r:!0,z=()=>yn(L.current),G=()=>(H.current.modalRef=D.current,H.current.mountNode=L.current,H.current),q=()=>{w.mount(G(),{disableScrollLock:x}),D.current.scrollTop=0},X=zn(()=>{const Oe=eG(p)||z().body;w.add(G(),Oe),D.current&&q()}),ie=u.useCallback(()=>w.isTopModal(G()),[w]),ee=zn(Oe=>{L.current=Oe,Oe&&(k&&ie()?q():Ud(D.current,A))}),se=u.useCallback(()=>{w.remove(G(),A)},[w,A]);u.useEffect(()=>()=>{se()},[se]),u.useEffect(()=>{k?X():(!W||!s)&&se()},[k,se,W,s,X]);const ae=S({},t,{classes:i,closeAfterTransition:s,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:C,disableRestoreFocus:g,disableScrollLock:x,exited:N,hideBackdrop:b,keepMounted:P}),we=ZW(ae),de=()=>{U(!1),$&&$()},le=()=>{U(!0),R&&R(),s&&se()},te=Oe=>{Oe.target===Oe.currentTarget&&(E&&E(Oe),I&&I(Oe,"backdropClick"))},be=Oe=>{_&&_(Oe),!(Oe.key!=="Escape"||!ie())&&(v||(Oe.stopPropagation(),I&&I(Oe,"escapeKeyDown")))},_e={};o.props.tabIndex===void 0&&(_e.tabIndex="-1"),W&&(_e.onEnter=rb(de,o.props.onEnter),_e.onExited=rb(le,o.props.onExited));const Se=c.Root||a,Fe=bf({elementType:Se,externalSlotProps:f.root,externalForwardedProps:O,additionalProps:{ref:B,role:"presentation",onKeyDown:be},className:we.root,ownerState:ae}),Re=c.Backdrop,Le=bf({elementType:Re,externalSlotProps:f.backdrop,additionalProps:{"aria-hidden":!0,onClick:te,open:k},ownerState:ae});return!P&&!k&&(!W||N)?null:T.jsx(WR,{ref:ee,container:p,disablePortal:C,children:T.jsxs(Se,S({},Fe,{children:[!b&&Re?T.jsx(Re,S({},Le)):null,T.jsx(GR,{disableEnforceFocus:m,disableAutoFocus:h,disableRestoreFocus:g,isEnabled:ie,open:k,children:u.cloneElement(o,_e)})]}))})}),oG=rG,iG=["onChange","maxRows","minRows","style","value"];function Ih(e,t){return parseInt(e[t],10)||0}const sG={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function eI(e){return e==null||Object.keys(e).length===0}const lG=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,c=oe(t,iG),{current:f}=u.useRef(a!=null),p=u.useRef(null),h=St(n,p),m=u.useRef(null),v=u.useRef(0),[C,g]=u.useState({}),x=u.useCallback(()=>{const I=p.current,k=Jr(I).getComputedStyle(I);if(k.width==="0px")return{};const $=m.current;$.style.width=k.width,$.value=I.value||t.placeholder||"x",$.value.slice(-1)===`
|
|
78
|
+
`&&($.value+=" ");const R=k["box-sizing"],O=Ih(k,"padding-bottom")+Ih(k,"padding-top"),N=Ih(k,"border-bottom-width")+Ih(k,"border-top-width"),U=$.scrollHeight;$.value="x";const H=$.scrollHeight;let L=U;i&&(L=Math.max(Number(i)*H,L)),o&&(L=Math.min(Number(o)*H,L)),L=Math.max(L,H);const D=L+(R==="border-box"?O+N:0),B=Math.abs(L-U)<=1;return{outerHeightStyle:D,overflow:B}},[o,i,t.placeholder]),b=(I,_)=>{const{outerHeightStyle:k,overflow:$}=_;return v.current<20&&(k>0&&Math.abs((I.outerHeightStyle||0)-k)>1||I.overflow!==$)?(v.current+=1,{overflow:$,outerHeightStyle:k}):I},P=u.useCallback(()=>{const I=x();eI(I)||g(_=>b(_,I))},[x]),w=()=>{const I=x();eI(I)||bl.flushSync(()=>{g(_=>b(_,I))})};u.useEffect(()=>{const I=Ss(()=>{v.current=0,p.current&&w()}),_=Jr(p.current);_.addEventListener("resize",I);let k;return typeof ResizeObserver!="undefined"&&(k=new ResizeObserver(I),k.observe(p.current)),()=>{I.clear(),_.removeEventListener("resize",I),k&&k.disconnect()}}),Rn(()=>{P()}),u.useEffect(()=>{v.current=0},[a]);const E=I=>{v.current=0,f||P(),r&&r(I)};return T.jsxs(u.Fragment,{children:[T.jsx("textarea",S({value:a,onChange:E,ref:h,rows:i,style:S({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},s)},c)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:S({},sG.shadow,s,{padding:0})})]})}),aG=lG;function cG(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const uG=["mode","contrastThreshold","tonalOffset"],tI={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:hf.white,default:hf.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}},I0={text:{primary:hf.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:hf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function nI(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ps(e.main,o):t==="dark"&&(e.dark=Es(e.main,i)))}function dG(e="light"){return e==="dark"?{main:lc[200],light:lc[50],dark:lc[400]}:{main:lc[700],light:lc[400],dark:lc[800]}}function fG(e="light"){return e==="dark"?{main:sc[200],light:sc[50],dark:sc[400]}:{main:sc[500],light:sc[300],dark:sc[700]}}function pG(e="light"){return e==="dark"?{main:ic[500],light:ic[300],dark:ic[700]}:{main:ic[700],light:ic[400],dark:ic[800]}}function hG(e="light"){return e==="dark"?{main:ac[400],light:ac[300],dark:ac[700]}:{main:ac[700],light:ac[500],dark:ac[900]}}function mG(e="light"){return e==="dark"?{main:cc[400],light:cc[300],dark:cc[700]}:{main:cc[800],light:cc[500],dark:cc[900]}}function gG(e="light"){return e==="dark"?{main:id[400],light:id[300],dark:id[700]}:{main:"#ed6c02",light:id[500],dark:id[900]}}function vG(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=oe(e,uG),i=e.primary||dG(t),s=e.secondary||fG(t),a=e.error||pG(t),c=e.info||hG(t),f=e.success||mG(t),p=e.warning||gG(t);function h(g){return aU(g,I0.text.primary)>=n?I0.text.primary:tI.text.primary}const m=({color:g,name:x,mainShade:b=500,lightShade:P=300,darkShade:w=700})=>{if(g=S({},g),!g.main&&g[b]&&(g.main=g[b]),!g.hasOwnProperty("main"))throw new Error(Sl(11,x?` (${x})`:"",b));if(typeof g.main!="string")throw new Error(Sl(12,x?` (${x})`:"",JSON.stringify(g.main)));return nI(g,"light",P,r),nI(g,"dark",w,r),g.contrastText||(g.contrastText=h(g.main)),g},v={dark:I0,light:tI};return jo(S({common:S({},hf),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:a,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:f,name:"success"}),grey:PH,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},v[t]),o)}const yG=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function bG(e){return Math.round(e*1e5)/1e5}const rI={textTransform:"uppercase"},oI='"Roboto", "Helvetica", "Arial", sans-serif';function wG(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=oI,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=oe(n,yG),v=o/14,C=h||(b=>`${b/f*v}rem`),g=(b,P,w,E,I)=>S({fontFamily:r,fontWeight:b,fontSize:C(P),lineHeight:w},r===oI?{letterSpacing:`${bG(E/P)}em`}:{},I,p),x={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,rI),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,rI)};return jo(S({htmlFontSize:f,pxToRem:C,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},x),m,{clone:!1})}const CG=.2,xG=.14,SG=.12;function Cn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${CG})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xG})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${SG})`].join(",")}const EG=["none",Cn(0,2,1,-1,0,1,1,0,0,1,3,0),Cn(0,3,1,-2,0,2,2,0,0,1,5,0),Cn(0,3,3,-2,0,3,4,0,0,1,8,0),Cn(0,2,4,-1,0,4,5,0,0,1,10,0),Cn(0,3,5,-1,0,5,8,0,0,1,14,0),Cn(0,3,5,-1,0,6,10,0,0,1,18,0),Cn(0,4,5,-2,0,7,10,1,0,2,16,1),Cn(0,5,5,-3,0,8,10,1,0,3,14,2),Cn(0,5,6,-3,0,9,12,1,0,3,16,2),Cn(0,6,6,-3,0,10,14,1,0,4,18,3),Cn(0,6,7,-4,0,11,15,1,0,4,20,3),Cn(0,7,8,-4,0,12,17,2,0,5,22,4),Cn(0,7,8,-4,0,13,19,2,0,5,24,4),Cn(0,7,9,-4,0,14,21,2,0,5,26,4),Cn(0,8,9,-5,0,15,22,2,0,6,28,5),Cn(0,8,10,-5,0,16,24,2,0,6,30,5),Cn(0,8,11,-5,0,17,26,2,0,6,32,5),Cn(0,9,11,-5,0,18,28,2,0,7,34,6),Cn(0,9,12,-6,0,19,29,2,0,7,36,6),Cn(0,10,13,-6,0,20,31,3,0,8,38,7),Cn(0,10,13,-6,0,21,33,3,0,8,40,7),Cn(0,10,14,-6,0,22,35,3,0,8,42,7),Cn(0,11,14,-7,0,23,36,3,0,9,44,8),Cn(0,11,15,-7,0,24,38,3,0,9,46,8)],PG=EG,kG=["duration","easing","delay"],IG={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)"},KR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function iI(e){return`${Math.round(e)}ms`}function _G(e){if(!e)return 0;const t=e/36;return Math.round((4+15*is(t,.25)+t/5)*10)}function $G(e){const t=S({},IG,e.easing),n=S({},KR,e.duration);return S({getAutoHeightDuration:_G,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return oe(i,kG),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof s=="string"?s:iI(s)} ${a} ${typeof c=="string"?c:iI(c)}`).join(",")}},e,{easing:t,duration:n})}const MG={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},TG=MG,RG=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function wC(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=oe(e,RG);if(e.vars)throw new Error(Sl(18));const a=vG(r),c=uC(e);let f=jo(c,{mixins:cG(c.breakpoints,n),palette:a,shadows:PG.slice(),typography:wG(a,i),transitions:$G(o),zIndex:S({},TG)});return f=jo(f,s),f=t.reduce((p,h)=>jo(p,h),f),f}const OG=wC(),Qg=OG;function Zr(){return qg(Qg)}function Qe({props:e,name:t}){return iU({props:e,name:t,defaultTheme:Qg})}const wo=e=>jd(e)&&e!=="classes",LG=jd,AG=oU({defaultTheme:Qg,rootShouldForwardProp:wo}),re=AG;function FG(e){return Ke("MuiPaper",e)}Ve("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 NG=["className","component","elevation","square","variant"],sI=e=>{let t;return e<1?t=5.11916*is(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},DG=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ie(i,FG,o)},BG=re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${rt("#fff",sI(t.elevation))}, ${rt("#fff",sI(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),zG=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,f=oe(r,NG),p=S({},r,{component:i,elevation:s,square:a,variant:c}),h=DG(p);return T.jsx(BG,S({as:i,ownerState:p,className:he(h.root,o),ref:n},f))}),Qo=zG;function jG(e){return Ke("MuiSvgIcon",e)}Ve("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const HG=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],VG=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${fe(t)}`,`fontSize${fe(n)}`]};return Ie(o,jG,r)},UG=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${fe(n.color)}`],t[`fontSize${fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,c,f,p,h,m,v,C,g,x,b,P;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem",medium:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,24))||"1.5rem",large:((p=e.typography)==null||(h=p.pxToRem)==null?void 0:h.call(p,35))||"2.1875"}[t.fontSize],color:(m=(v=(e.vars||e).palette)==null||(C=v[t.color])==null?void 0:C.main)!=null?m:{action:(g=(e.vars||e).palette)==null||(x=g.action)==null?void 0:x.active,disabled:(b=(e.vars||e).palette)==null||(P=b.action)==null?void 0:P.disabled,inherit:void 0}[t.color]}}),qR=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,v=oe(r,HG),C=S({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m}),g={};p||(g.viewBox=m);const x=VG(C);return T.jsxs(UG,S({as:a,className:he(x.root,i),ownerState:C,focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},g,v,{children:[o,h?T.jsx("title",{children:h}):null]}))});qR.muiName="SvgIcon";const lI=qR;function Mt(e,t){const n=(r,o)=>T.jsx(lI,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}));return n.muiName=lI.muiName,u.memo(u.forwardRef(n))}const WG={configure:e=>{console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
79
|
+
`)),rC.configure(e)}},GG=Object.freeze(Object.defineProperty({__proto__:null,capitalize:fe,createChainedFunction:rb,createSvgIcon:Mt,debounce:Ss,deprecatedPropType:B8,isMuiElement:Bd,ownerDocument:yn,ownerWindow:Jr,requirePropFactory:z8,setRef:ru,unstable_ClassNameGenerator:WG,unstable_useEnhancedEffect:Rn,unstable_useId:En,unsupportedProp:V8,useControlled:Di,useEventCallback:zn,useForkRef:St,useIsFocusVisible:Wg},Symbol.toStringTag,{value:"Module"}));function cb(e,t){return cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},cb(e,t)}function CC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cb(e,t)}const aI={disabled:!1},Nm=No.createContext(null);var KG=function(t){return t.scrollTop},Sd="unmounted",Yl="exited",Xl="entering",vc="entered",ub="exiting",$s=function(e){CC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?a?(c=Yl,i.appearStatus=Xl):c=vc:r.unmountOnExit||r.mountOnEnter?c=Sd:c=Yl,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Sd?{status:Yl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Xl&&s!==vc&&(i=Xl):(s===Xl||s===vc)&&(i=ub)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Xl){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Eh.findDOMNode(this);s&&KG(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yl&&this.setState({status:Sd})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[Eh.findDOMNode(this),a],f=c[0],p=c[1],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!o&&!s||aI.disabled){this.safeSetState({status:vc},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Xl},function(){i.props.onEntering(f,p),i.onTransitionEnd(m,function(){i.safeSetState({status:vc},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Eh.findDOMNode(this);if(!i||aI.disabled){this.safeSetState({status:Yl},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ub},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Yl},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Eh.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Sd)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=oe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return No.createElement(Nm.Provider,{value:null},typeof s=="function"?s(o,a):No.cloneElement(No.Children.only(s),a))},t}(No.Component);$s.contextType=Nm;$s.propTypes={};function dc(){}$s.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:dc,onEntering:dc,onEntered:dc,onExit:dc,onExiting:dc,onExited:dc};$s.UNMOUNTED=Sd;$s.EXITED=Yl;$s.ENTERING=Xl;$s.ENTERED=vc;$s.EXITING=ub;const Jg=$s;function db(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xC(e,t){var n=function(i){return t&&u.isValidElement(i)?t(i):i},r=Object.create(null);return e&&u.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function qG(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var f=r[c][s];a[r[c][s]]=n(f)}a[c]=n(c)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function ra(e,t,n){return n[t]!=null?n[t]:e.props[t]}function YG(e,t){return xC(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ra(n,"appear",e),enter:ra(n,"enter",e),exit:ra(n,"exit",e)})})}function XG(e,t,n){var r=xC(e.children),o=qG(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(u.isValidElement(s)){var a=i in t,c=i in r,f=t[i],p=u.isValidElement(f)&&!f.props.in;c&&(!a||p)?o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:ra(s,"exit",e),enter:ra(s,"enter",e)}):!c&&a&&!p?o[i]=u.cloneElement(s,{in:!1}):c&&a&&u.isValidElement(f)&&(o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:ra(s,"exit",e),enter:ra(s,"enter",e)}))}}),o}var QG=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},JG={component:"div",childFactory:function(t){return t}},SC=function(e){CC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(db(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,c=i.firstRender;return{children:c?YG(o,a):XG(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=xC(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=S({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=oe(o,["component","childFactory"]),c=this.state.contextValue,f=QG(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?No.createElement(Nm.Provider,{value:c},f):No.createElement(Nm.Provider,{value:c},No.createElement(i,a,f))},t}(No.Component);SC.propTypes={};SC.defaultProps=JG;const ZG=SC,EC=e=>e.scrollTop;function Pl(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function eK(e){return Ke("MuiCollapse",e)}Ve("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const tK=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],nK=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ie(r,eK,n)},rK=re("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>S({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&S({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),oK=re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>S({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),iK=re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),YR=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:c,easing:f,in:p,onEnter:h,onEntered:m,onEntering:v,onExit:C,onExited:g,onExiting:x,orientation:b="vertical",style:P,timeout:w=KR.standard,TransitionComponent:E=Jg}=r,I=oe(r,tK),_=S({},r,{orientation:b,collapsedSize:a}),k=nK(_),$=Zr(),R=u.useRef(),O=u.useRef(null),N=u.useRef(),U=typeof a=="number"?`${a}px`:a,H=b==="horizontal",L=H?"width":"height";u.useEffect(()=>()=>{clearTimeout(R.current)},[]);const D=u.useRef(null),B=St(n,D),W=ae=>we=>{if(ae){const de=D.current;we===void 0?ae(de):ae(de,we)}},A=()=>O.current?O.current[H?"clientWidth":"clientHeight"]:0,z=W((ae,we)=>{O.current&&H&&(O.current.style.position="absolute"),ae.style[L]=U,h&&h(ae,we)}),G=W((ae,we)=>{const de=A();O.current&&H&&(O.current.style.position="");const{duration:le,easing:te}=Pl({style:P,timeout:w,easing:f},{mode:"enter"});if(w==="auto"){const be=$.transitions.getAutoHeightDuration(de);ae.style.transitionDuration=`${be}ms`,N.current=be}else ae.style.transitionDuration=typeof le=="string"?le:`${le}ms`;ae.style[L]=`${de}px`,ae.style.transitionTimingFunction=te,v&&v(ae,we)}),q=W((ae,we)=>{ae.style[L]="auto",m&&m(ae,we)}),X=W(ae=>{ae.style[L]=`${A()}px`,C&&C(ae)}),ie=W(g),ee=W(ae=>{const we=A(),{duration:de,easing:le}=Pl({style:P,timeout:w,easing:f},{mode:"exit"});if(w==="auto"){const te=$.transitions.getAutoHeightDuration(we);ae.style.transitionDuration=`${te}ms`,N.current=te}else ae.style.transitionDuration=typeof de=="string"?de:`${de}ms`;ae.style[L]=U,ae.style.transitionTimingFunction=le,x&&x(ae)}),se=ae=>{w==="auto"&&(R.current=setTimeout(ae,N.current||0)),o&&o(D.current,ae)};return T.jsx(E,S({in:p,onEnter:z,onEntered:q,onEntering:G,onExit:X,onExited:ie,onExiting:ee,addEndListener:se,nodeRef:D,timeout:w==="auto"?null:w},I,{children:(ae,we)=>T.jsx(rK,S({as:c,className:he(k.root,s,{entered:k.entered,exited:!p&&U==="0px"&&k.hidden}[ae]),style:S({[H?"minWidth":"minHeight"]:U},P),ownerState:S({},_,{state:ae}),ref:B},we,{children:T.jsx(oK,{ownerState:S({},_,{state:ae}),className:k.wrapper,ref:O,children:T.jsx(iK,{ownerState:S({},_,{state:ae}),className:k.wrapperInner,children:i})})}))}))});YR.muiSupportAuto=!0;const XR=YR;function sK(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:c,timeout:f}=e,[p,h]=u.useState(!1),m=he(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},C=he(n.child,p&&n.childLeaving,r&&n.childPulsate);return!a&&!p&&h(!0),u.useEffect(()=>{if(!a&&c!=null){const g=setTimeout(c,f);return()=>{clearTimeout(g)}}},[c,a,f]),T.jsx("span",{className:m,style:v,children:T.jsx("span",{className:C})})}const lK=Ve("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Oo=lK,aK=["center","classes","className"];let Zg=e=>e,cI,uI,dI,fI;const fb=550,cK=80,uK=Rl(cI||(cI=Zg`
|
|
80
|
+
0% {
|
|
81
|
+
transform: scale(0);
|
|
82
|
+
opacity: 0.1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
100% {
|
|
86
|
+
transform: scale(1);
|
|
87
|
+
opacity: 0.3;
|
|
88
|
+
}
|
|
89
|
+
`)),dK=Rl(uI||(uI=Zg`
|
|
90
|
+
0% {
|
|
91
|
+
opacity: 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
100% {
|
|
95
|
+
opacity: 0;
|
|
96
|
+
}
|
|
97
|
+
`)),fK=Rl(dI||(dI=Zg`
|
|
98
|
+
0% {
|
|
99
|
+
transform: scale(1);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
50% {
|
|
103
|
+
transform: scale(0.92);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
100% {
|
|
107
|
+
transform: scale(1);
|
|
108
|
+
}
|
|
109
|
+
`)),pK=re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hK=re(sK,{name:"MuiTouchRipple",slot:"Ripple"})(fI||(fI=Zg`
|
|
110
|
+
opacity: 0;
|
|
111
|
+
position: absolute;
|
|
112
|
+
|
|
113
|
+
&.${0} {
|
|
114
|
+
opacity: 0.3;
|
|
115
|
+
transform: scale(1);
|
|
116
|
+
animation-name: ${0};
|
|
117
|
+
animation-duration: ${0}ms;
|
|
118
|
+
animation-timing-function: ${0};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&.${0} {
|
|
122
|
+
animation-duration: ${0}ms;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
& .${0} {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
display: block;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: 100%;
|
|
130
|
+
border-radius: 50%;
|
|
131
|
+
background-color: currentColor;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
& .${0} {
|
|
135
|
+
opacity: 0;
|
|
136
|
+
animation-name: ${0};
|
|
137
|
+
animation-duration: ${0}ms;
|
|
138
|
+
animation-timing-function: ${0};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
& .${0} {
|
|
142
|
+
position: absolute;
|
|
143
|
+
/* @noflip */
|
|
144
|
+
left: 0px;
|
|
145
|
+
top: 0;
|
|
146
|
+
animation-name: ${0};
|
|
147
|
+
animation-duration: 2500ms;
|
|
148
|
+
animation-timing-function: ${0};
|
|
149
|
+
animation-iteration-count: infinite;
|
|
150
|
+
animation-delay: 200ms;
|
|
151
|
+
}
|
|
152
|
+
`),Oo.rippleVisible,uK,fb,({theme:e})=>e.transitions.easing.easeInOut,Oo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Oo.child,Oo.childLeaving,dK,fb,({theme:e})=>e.transitions.easing.easeInOut,Oo.childPulsate,fK,({theme:e})=>e.transitions.easing.easeInOut),mK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=oe(r,aK),[c,f]=u.useState([]),p=u.useRef(0),h=u.useRef(null);u.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=u.useRef(!1),v=u.useRef(null),C=u.useRef(null),g=u.useRef(null);u.useEffect(()=>()=>{clearTimeout(v.current)},[]);const x=u.useCallback(E=>{const{pulsate:I,rippleX:_,rippleY:k,rippleSize:$,cb:R}=E;f(O=>[...O,T.jsx(hK,{classes:{ripple:he(i.ripple,Oo.ripple),rippleVisible:he(i.rippleVisible,Oo.rippleVisible),ripplePulsate:he(i.ripplePulsate,Oo.ripplePulsate),child:he(i.child,Oo.child),childLeaving:he(i.childLeaving,Oo.childLeaving),childPulsate:he(i.childPulsate,Oo.childPulsate)},timeout:fb,pulsate:I,rippleX:_,rippleY:k,rippleSize:$},p.current)]),p.current+=1,h.current=R},[i]),b=u.useCallback((E={},I={},_)=>{const{pulsate:k=!1,center:$=o||I.pulsate,fakeElement:R=!1}=I;if((E==null?void 0:E.type)==="mousedown"&&m.current){m.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(m.current=!0);const O=R?null:g.current,N=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,H,L;if($||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)U=Math.round(N.width/2),H=Math.round(N.height/2);else{const{clientX:D,clientY:B}=E.touches&&E.touches.length>0?E.touches[0]:E;U=Math.round(D-N.left),H=Math.round(B-N.top)}if($)L=Math.sqrt((2*is(N.width,2)+is(N.height,2))/3),L%2===0&&(L+=1);else{const D=Math.max(Math.abs((O?O.clientWidth:0)-U),U)*2+2,B=Math.max(Math.abs((O?O.clientHeight:0)-H),H)*2+2;L=Math.sqrt(is(D,2)+is(B,2))}E!=null&&E.touches?C.current===null&&(C.current=()=>{x({pulsate:k,rippleX:U,rippleY:H,rippleSize:L,cb:_})},v.current=setTimeout(()=>{C.current&&(C.current(),C.current=null)},cK)):x({pulsate:k,rippleX:U,rippleY:H,rippleSize:L,cb:_})},[o,x]),P=u.useCallback(()=>{b({},{pulsate:!0})},[b]),w=u.useCallback((E,I)=>{if(clearTimeout(v.current),(E==null?void 0:E.type)==="touchend"&&C.current){C.current(),C.current=null,v.current=setTimeout(()=>{w(E,I)});return}C.current=null,f(_=>_.length>0?_.slice(1):_),h.current=I},[]);return u.useImperativeHandle(n,()=>({pulsate:P,start:b,stop:w}),[P,b,w]),T.jsx(pK,S({className:he(Oo.root,i.root,s),ref:g},a,{children:T.jsx(ZG,{component:null,exit:!0,children:c})}))}),gK=mK;function vK(e){return Ke("MuiButtonBase",e)}const yK=Ve("MuiButtonBase",["root","disabled","focusVisible"]),bK=yK,wK=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],CK=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},vK,o);return n&&r&&(s.root+=` ${r}`),s},xK=re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bK.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),SK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:v="a",onBlur:C,onClick:g,onContextMenu:x,onDragLeave:b,onFocus:P,onFocusVisible:w,onKeyDown:E,onKeyUp:I,onMouseDown:_,onMouseLeave:k,onMouseUp:$,onTouchEnd:R,onTouchMove:O,onTouchStart:N,tabIndex:U=0,TouchRippleProps:H,touchRippleRef:L,type:D}=r,B=oe(r,wK),W=u.useRef(null),A=u.useRef(null),z=St(A,L),{isFocusVisibleRef:G,onFocus:q,onBlur:X,ref:ie}=Wg(),[ee,se]=u.useState(!1);f&&ee&&se(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{se(!0),W.current.focus()}}),[]);const[ae,we]=u.useState(!1);u.useEffect(()=>{we(!0)},[]);const de=ae&&!p&&!f;u.useEffect(()=>{ee&&m&&!p&&ae&&A.current.pulsate()},[p,m,ee,ae]);function le(Ee,$e,Ge=h){return zn(Ct=>($e&&$e(Ct),!Ge&&A.current&&A.current[Ee](Ct),!0))}const te=le("start",_),be=le("stop",x),_e=le("stop",b),Se=le("stop",$),Fe=le("stop",Ee=>{ee&&Ee.preventDefault(),k&&k(Ee)}),Re=le("start",N),Le=le("stop",R),Oe=le("stop",O),Ze=le("stop",Ee=>{X(Ee),G.current===!1&&se(!1),C&&C(Ee)},!1),gt=zn(Ee=>{W.current||(W.current=Ee.currentTarget),q(Ee),G.current===!0&&(se(!0),w&&w(Ee)),P&&P(Ee)}),tt=()=>{const Ee=W.current;return c&&c!=="button"&&!(Ee.tagName==="A"&&Ee.href)},et=u.useRef(!1),Pt=zn(Ee=>{m&&!et.current&&ee&&A.current&&Ee.key===" "&&(et.current=!0,A.current.stop(Ee,()=>{A.current.start(Ee)})),Ee.target===Ee.currentTarget&&tt()&&Ee.key===" "&&Ee.preventDefault(),E&&E(Ee),Ee.target===Ee.currentTarget&&tt()&&Ee.key==="Enter"&&!f&&(Ee.preventDefault(),g&&g(Ee))}),ut=zn(Ee=>{m&&Ee.key===" "&&A.current&&ee&&!Ee.defaultPrevented&&(et.current=!1,A.current.stop(Ee,()=>{A.current.pulsate(Ee)})),I&&I(Ee),g&&Ee.target===Ee.currentTarget&&tt()&&Ee.key===" "&&!Ee.defaultPrevented&&g(Ee)});let ot=c;ot==="button"&&(B.href||B.to)&&(ot=v);const It={};ot==="button"?(It.type=D===void 0?"button":D,It.disabled=f):(!B.href&&!B.to&&(It.role="button"),f&&(It["aria-disabled"]=f));const Xe=St(ie,W),Te=St(n,Xe),ne=S({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:U,focusVisible:ee}),ke=CK(ne);return T.jsxs(xK,S({as:ot,className:he(ke.root,a),ownerState:ne,onBlur:Ze,onClick:g,onContextMenu:be,onFocus:gt,onKeyDown:Pt,onKeyUp:ut,onMouseDown:te,onMouseLeave:Fe,onMouseUp:Se,onDragLeave:_e,onTouchEnd:Le,onTouchMove:Oe,onTouchStart:Re,ref:Te,tabIndex:f?-1:U,type:D},It,B,{children:[s,de?T.jsx(gK,S({ref:z,center:i},H)):null]}))}),Gi=SK;function EK(e){return Ke("MuiAlert",e)}const PK=Ve("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),pI=PK;function kK(e){return Ke("MuiIconButton",e)}const IK=Ve("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),_K=IK,$K=["edge","children","className","color","disabled","disableFocusRipple","size"],MK=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${fe(r)}`,o&&`edge${fe(o)}`,`size${fe(i)}`]};return Ie(s,kK,t)},TK=re(Gi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:(e.vars||e).palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${_K.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})),RK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:f=!1,size:p="medium"}=r,h=oe(r,$K),m=S({},r,{edge:o,color:a,disabled:c,disableFocusRipple:f,size:p}),v=MK(m);return T.jsx(TK,S({className:he(v.root,s),centerRipple:!0,focusRipple:!f,disabled:c,ref:n,ownerState:m},h,{children:i}))}),tr=RK,OK=Mt(T.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),LK=Mt(T.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),AK=Mt(T.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),FK=Mt(T.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),QR=Mt(T.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var hI;const NK=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],DK=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${fe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ie(i,EK,o)},BK=re(Qo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Es:Ps,r=e.palette.mode==="light"?Ps:Es,o=t.color||t.severity;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${pI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette.mode==="dark"?e.palette[o].main:e.palette[o].light}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${pI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette.mode==="dark"?e.palette[o].main:e.palette[o].light}},o&&t.variant==="filled"&&S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main)}))}),zK=re("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),jK=re("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),mI=re("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),gI={success:T.jsx(OK,{fontSize:"inherit"}),warning:T.jsx(LK,{fontSize:"inherit"}),error:T.jsx(AK,{fontSize:"inherit"}),info:T.jsx(FK,{fontSize:"inherit"})},HK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:c,icon:f,iconMapping:p=gI,onClose:h,role:m="alert",severity:v="success",variant:C="standard"}=r,g=oe(r,NK),x=S({},r,{color:c,severity:v,variant:C}),b=DK(x);return T.jsxs(BK,S({role:m,elevation:0,ownerState:x,className:he(b.root,s),ref:n},g,{children:[f!==!1?T.jsx(zK,{ownerState:x,className:b.icon,children:f||p[v]||gI[v]}):null,T.jsx(jK,{ownerState:x,className:b.message,children:i}),o!=null?T.jsx(mI,{ownerState:x,className:b.action,children:o}):null,o==null&&h?T.jsx(mI,{ownerState:x,className:b.action,children:T.jsx(tr,{size:"small","aria-label":a,title:a,color:"inherit",onClick:h,children:hI||(hI=T.jsx(QR,{fontSize:"small"}))})}):null]}))}),qi=HK;function VK(e){return Ke("MuiTypography",e)}Ve("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const UK=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],WK=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ie(a,VK,s)},GK=re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),vI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},KK={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qK=e=>KK[e]||e,YK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTypography"}),o=qK(r.color),i=cC(S({},r,{color:o})),{align:s="inherit",className:a,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:v=vI}=i,C=oe(i,UK),g=S({},i,{align:s,color:o,className:a,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:v}),x=c||(h?"p":v[m]||vI[m])||"span",b=WK(g);return T.jsx(GK,S({as:x,ref:n,ownerState:g,className:he(b.root,a)},C))}),br=YK;function XK(e){return Ke("MuiAppBar",e)}Ve("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const QK=["className","color","enableColorOnDark","position"],JK=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${fe(t)}`,`position${fe(n)}`]};return Ie(o,XK,r)},_h=(e,t)=>`${e==null?void 0:e.replace(")","")}, ${t})`,ZK=re(Qo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fe(n.position)}`],t[`color${fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:_h(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:_h(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:_h(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:_h(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),eq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=oe(r,QK),f=S({},r,{color:i,position:a,enableColorOnDark:s}),p=JK(f);return T.jsx(ZK,S({square:!0,component:"header",ownerState:f,elevation:4,className:he(p.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))}),tq=eq,nq=re(BW,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rq=u.forwardRef(function(t,n){const r=dC(),o=Qe({props:t,name:"MuiPopper"});return T.jsx(nq,S({direction:r==null?void 0:r.direction},o,{ref:n}))}),Oa=rq;function oq(e){return Ke("MuiListSubheader",e)}Ve("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const iq=["className","color","component","disableGutters","disableSticky","inset"],sq=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${fe(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ie(s,oq,t)},lq=re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>S({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),aq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:f=!1}=r,p=oe(r,iq),h=S({},r,{color:i,component:s,disableGutters:a,disableSticky:c,inset:f}),m=sq(h);return T.jsx(lq,S({as:s,className:he(m.root,o),ref:n,ownerState:h},p))}),cq=aq,uq=Mt(T.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function dq(e){return Ke("MuiChip",e)}const fq=Ve("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Wt=fq,pq=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],hq=e=>{const{classes:t,disabled:n,size:r,color:o,onDelete:i,clickable:s,variant:a}=e,c={root:["root",a,n&&"disabled",`size${fe(r)}`,`color${fe(o)}`,s&&"clickable",s&&`clickableColor${fe(o)}`,i&&"deletable",i&&`deletableColor${fe(o)}`,`${a}${fe(o)}`],label:["label",`label${fe(r)}`],avatar:["avatar",`avatar${fe(r)}`,`avatarColor${fe(o)}`],icon:["icon",`icon${fe(r)}`,`iconColor${fe(o)}`],deleteIcon:["deleteIcon",`deleteIcon${fe(r)}`,`deleteIconColor${fe(o)}`,`deleteIcon${fe(a)}Color${fe(o)}`]};return Ie(c,dq,t)},mq=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,clickable:o,onDelete:i,size:s,variant:a}=n;return[{[`& .${Wt.avatar}`]:t.avatar},{[`& .${Wt.avatar}`]:t[`avatar${fe(s)}`]},{[`& .${Wt.avatar}`]:t[`avatarColor${fe(r)}`]},{[`& .${Wt.icon}`]:t.icon},{[`& .${Wt.icon}`]:t[`icon${fe(s)}`]},{[`& .${Wt.icon}`]:t[`iconColor${fe(r)}`]},{[`& .${Wt.deleteIcon}`]:t.deleteIcon},{[`& .${Wt.deleteIcon}`]:t[`deleteIcon${fe(s)}`]},{[`& .${Wt.deleteIcon}`]:t[`deleteIconColor${fe(r)}`]},{[`& .${Wt.deleteIcon}`]:t[`deleteIcon${fe(a)}Color${fe(r)}`]},t.root,t[`size${fe(s)}`],t[`color${fe(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${fe(r)}`],t[a],t[`${a}${fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=rt(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Wt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Wt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Wt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Wt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Wt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Wt.icon}`]:S({color:e.vars?e.vars.palette.Chip.defaultIconColor:r,marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.color!=="default"&&{color:"inherit"}),[`& .${Wt.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:rt(n,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:rt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.focusOpacity}))`:rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Wt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.hoverOpacity}))`:rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.focusOpacity}))`:rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Wt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Wt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Wt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Wt.avatar}`]:{marginLeft:4},[`& .${Wt.avatarSmall}`]:{marginLeft:2},[`& .${Wt.icon}`]:{marginLeft:4},[`& .${Wt.iconSmall}`]:{marginLeft:2},[`& .${Wt.deleteIcon}`]:{marginRight:5},[`& .${Wt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rt(e.palette[t.color].main,.7)}`,[`&.${Wt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:rt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Wt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),gq=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${fe(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function yI(e){return e.key==="Backspace"||e.key==="Delete"}const vq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:c,deleteIcon:f,disabled:p=!1,icon:h,label:m,onClick:v,onDelete:C,onKeyDown:g,onKeyUp:x,size:b="medium",variant:P="filled"}=r,w=oe(r,pq),E=u.useRef(null),I=St(E,n),_=W=>{W.stopPropagation(),C&&C(W)},k=W=>{W.currentTarget===W.target&&yI(W)&&W.preventDefault(),g&&g(W)},$=W=>{W.currentTarget===W.target&&(C&&yI(W)?C(W):W.key==="Escape"&&E.current&&E.current.blur()),x&&x(W)},R=s!==!1&&v?!0:s,O=R||C?Gi:c||"div",N=S({},r,{component:O,disabled:p,size:b,color:a,onDelete:!!C,clickable:R,variant:P}),U=hq(N),H=O===Gi?S({component:c||"div",focusVisibleClassName:U.focusVisible},C&&{disableRipple:!0}):{};let L=null;C&&(L=f&&u.isValidElement(f)?u.cloneElement(f,{className:he(f.props.className,U.deleteIcon),onClick:_}):T.jsx(uq,{className:he(U.deleteIcon),onClick:_}));let D=null;o&&u.isValidElement(o)&&(D=u.cloneElement(o,{className:he(U.avatar,o.props.className)}));let B=null;return h&&u.isValidElement(h)&&(B=u.cloneElement(h,{className:he(U.icon,h.props.className)})),T.jsxs(mq,S({as:O,className:he(U.root,i),disabled:R&&p?!0:void 0,onClick:v,onKeyDown:k,onKeyUp:$,ref:I,ownerState:N},H,w,{children:[D||B,T.jsx(gq,{className:he(U.label),ownerState:N,children:m}),L]}))}),ev=vq;function La({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]=="undefined"&&(r[o]=n[o]),r),{})}const yq=u.createContext(),tv=yq;function Ms(){return u.useContext(tv)}function bq(e){return T.jsx(L8,S({},e,{defaultTheme:Qg}))}function bI(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function PC(e,t=!1){return e&&(bI(e.value)&&e.value!==""||t&&bI(e.defaultValue)&&e.defaultValue!=="")}function wq(e){return e.startAdornment}function Cq(e){return Ke("MuiInputBase",e)}const xq=Ve("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Li=xq,Sq=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],nv=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rv=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Eq=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:h,size:m,startAdornment:v,type:C}=e,g={root:["root",`color${fe(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",m==="small"&&"sizeSmall",p&&"multiline",v&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",C==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return Ie(g,Cq,t)},ov=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nv})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Li.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),iv=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Li.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Li.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Pq=T.jsx(bq,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),kq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,components:c={},componentsProps:f={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:m,endAdornment:v,fullWidth:C=!1,id:g,inputComponent:x="input",inputProps:b={},inputRef:P,maxRows:w,minRows:E,multiline:I=!1,name:_,onBlur:k,onChange:$,onClick:R,onFocus:O,onKeyDown:N,onKeyUp:U,placeholder:H,readOnly:L,renderSuffix:D,rows:B,startAdornment:W,type:A="text",value:z}=r,G=oe(r,Sq),q=b.value!=null?b.value:z,{current:X}=u.useRef(q!=null),ie=u.useRef(),ee=u.useCallback(Te=>{},[]),se=St(b.ref,ee),ae=St(P,se),we=St(ie,ae),[de,le]=u.useState(!1),te=Ms(),be=La({props:r,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});be.focused=te?te.focused:de,u.useEffect(()=>{!te&&h&&de&&(le(!1),k&&k())},[te,h,de,k]);const _e=te&&te.onFilled,Se=te&&te.onEmpty,Fe=u.useCallback(Te=>{PC(Te)?_e&&_e():Se&&Se()},[_e,Se]);Rn(()=>{X&&Fe({value:q})},[q,Fe,X]);const Re=Te=>{if(be.disabled){Te.stopPropagation();return}O&&O(Te),b.onFocus&&b.onFocus(Te),te&&te.onFocus?te.onFocus(Te):le(!0)},Le=Te=>{k&&k(Te),b.onBlur&&b.onBlur(Te),te&&te.onBlur?te.onBlur(Te):le(!1)},Oe=(Te,...ne)=>{if(!X){const ke=Te.target||ie.current;if(ke==null)throw new Error(Sl(1));Fe({value:ke.value})}b.onChange&&b.onChange(Te,...ne),$&&$(Te,...ne)};u.useEffect(()=>{Fe(ie.current)},[]);const Ze=Te=>{ie.current&&Te.currentTarget===Te.target&&ie.current.focus(),R&&R(Te)};let gt=x,tt=b;I&>==="input"&&(B?tt=S({type:void 0,minRows:B,maxRows:B},tt):tt=S({type:void 0,maxRows:w,minRows:E},tt),gt=aG);const et=Te=>{Fe(Te.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};u.useEffect(()=>{te&&te.setAdornedStart(Boolean(W))},[te,W]);const Pt=S({},r,{color:be.color||"primary",disabled:be.disabled,endAdornment:v,error:be.error,focused:be.focused,formControl:te,fullWidth:C,hiddenLabel:be.hiddenLabel,multiline:I,size:be.size,startAdornment:W,type:A}),ut=Eq(Pt),ot=c.Root||ov,It=f.root||{},Xe=c.Input||iv;return tt=S({},tt,f.input),T.jsxs(u.Fragment,{children:[!m&&Pq,T.jsxs(ot,S({},It,!El(ot)&&{ownerState:S({},Pt,It.ownerState)},{ref:n,onClick:Ze},G,{className:he(ut.root,It.className,a),children:[W,T.jsx(tv.Provider,{value:null,children:T.jsx(Xe,S({ownerState:Pt,"aria-invalid":be.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:p,disabled:be.disabled,id:g,onAnimationStart:et,name:_,placeholder:H,readOnly:L,required:be.required,rows:B,value:q,onKeyDown:N,onKeyUp:U,type:A},tt,!El(Xe)&&{as:gt,ownerState:S({},Pt,tt.ownerState)},{ref:we,className:he(ut.input,tt.className),onBlur:Le,onChange:Oe,onFocus:Re}))}),v,D?D(S({},be,{startAdornment:W})):null]}))]})}),xu=kq;function Iq(e){return Ke("MuiInput",e)}const _q=S({},Li,Ve("MuiInput",["root","underline","input"])),oa=_q;function $q(e){return Ke("MuiOutlinedInput",e)}const Mq=S({},Li,Ve("MuiOutlinedInput",["root","notchedOutline","input"])),Pi=Mq;function Tq(e){return Ke("MuiFilledInput",e)}const Rq=S({},Li,Ve("MuiFilledInput",["root","underline","input"])),Ti=Rq,JR=Mt(T.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Oq(e){return Ke("MuiAutocomplete",e)}const Lq=Ve("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Bt=Lq;var wI,CI;const Aq=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],Fq=e=>{const{classes:t,disablePortal:n,focused:r,fullWidth:o,hasClearIcon:i,hasPopupIcon:s,inputFocused:a,popupOpen:c,size:f}=e,p={root:["root",r&&"focused",o&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${fe(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(p,Oq,t)},Nq=re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${Bt.tag}`]:t.tag},{[`& .${Bt.tag}`]:t[`tagSize${fe(a)}`]},{[`& .${Bt.inputRoot}`]:t.inputRoot},{[`& .${Bt.input}`]:t.input},{[`& .${Bt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>S({[`&.${Bt.focused} .${Bt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Bt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Bt.tag}`]:S({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Bt.inputRoot}`]:{flexWrap:"wrap",[`.${Bt.hasPopupIcon}&, .${Bt.hasClearIcon}&`]:{paddingRight:26+4},[`.${Bt.hasPopupIcon}.${Bt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Bt.input}`]:{width:0,minWidth:30}},[`& .${oa.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${oa.root}.${Li.sizeSmall}`]:{[`& .${oa.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Pi.root}`]:{padding:9,[`.${Bt.hasPopupIcon}&, .${Bt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Bt.hasPopupIcon}.${Bt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Bt.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${Bt.endAdornment}`]:{right:9}},[`& .${Pi.root}.${Li.sizeSmall}`]:{padding:6,[`& .${Bt.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${Ti.root}`]:{paddingTop:19,paddingLeft:8,[`.${Bt.hasPopupIcon}&, .${Bt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Bt.hasPopupIcon}.${Bt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Ti.input}`]:{padding:"7px 4px"},[`& .${Bt.endAdornment}`]:{right:9}},[`& .${Ti.root}.${Li.sizeSmall}`]:{paddingBottom:1,[`& .${Ti.input}`]:{padding:"2.5px 4px"}},[`& .${Li.hiddenLabel}`]:{paddingTop:8},[`& .${Bt.input}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Dq=re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Bq=re(tr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zq=re(tr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>S({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>S({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),jq=re(Oa,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Bt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>S({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),Hq=re(Qo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),Vq=re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Uq=re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wq=re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${Bt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Bt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Bt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Bt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Gq=re(cq,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Kq=re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Bt.option}`]:{paddingLeft:24}}),qq=u.forwardRef(function(t,n){var r,o,i,s;const a=Qe({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:f=!1,autoSelect:p=!1,blurOnSelect:h=!1,ChipProps:m,className:v,clearIcon:C=wI||(wI=T.jsx(QR,{fontSize:"small"})),clearOnBlur:g=!a.freeSolo,clearOnEscape:x=!1,clearText:b="Clear",closeText:P="Close",componentsProps:w={},defaultValue:E=a.multiple?[]:null,disableClearable:I=!1,disableCloseOnSelect:_=!1,disabled:k=!1,disabledItemsFocusable:$=!1,disableListWrap:R=!1,disablePortal:O=!1,filterSelectedOptions:N=!1,forcePopupIcon:U="auto",freeSolo:H=!1,fullWidth:L=!1,getLimitTagsText:D=Ot=>`+${Ot}`,getOptionLabel:B=Ot=>{var Fn;return(Fn=Ot.label)!=null?Fn:Ot},groupBy:W,handleHomeEndKeys:A=!a.freeSolo,includeInputInList:z=!1,limitTags:G=-1,ListboxComponent:q="ul",ListboxProps:X,loading:ie=!1,loadingText:ee="Loading…",multiple:se=!1,noOptionsText:ae="No options",openOnFocus:we=!1,openText:de="Open",PaperComponent:le=Qo,PopperComponent:te=Oa,popupIcon:be=CI||(CI=T.jsx(JR,{})),readOnly:_e=!1,renderGroup:Se,renderInput:Fe,renderOption:Re,renderTags:Le,selectOnFocus:Oe=!a.freeSolo,size:Ze="medium"}=a,gt=oe(a,Aq),{getRootProps:tt,getInputProps:et,getInputLabelProps:Pt,getPopupIndicatorProps:ut,getClearProps:ot,getTagProps:It,getListboxProps:Xe,getOptionProps:Te,value:ne,dirty:ke,id:Ee,popupOpen:$e,focused:Ge,focusedTag:Ct,anchorEl:zt,setAnchorEl:jt,inputValue:Jn,groupedOptions:pn}=mU(S({},a,{componentName:"Autocomplete"})),Gn=!I&&!k&&ke&&!_e,Er=(!H||U===!0)&&U!==!1,hn=S({},a,{disablePortal:O,focused:Ge,fullWidth:L,hasClearIcon:Gn,hasPopupIcon:Er,inputFocused:Ct===-1,popupOpen:$e,size:Ze}),on=Fq(hn);let Zt;if(se&&ne.length>0){const Ot=Fn=>S({className:on.tag,disabled:k},It(Fn));Le?Zt=Le(ne,Ot,hn):Zt=ne.map((Fn,ce)=>T.jsx(ev,S({label:B(Fn),size:Ze},Ot({index:ce}),m)))}if(G>-1&&Array.isArray(Zt)){const Ot=Zt.length-G;!Ge&&Ot>0&&(Zt=Zt.splice(0,G),Zt.push(T.jsx("span",{className:on.tag,children:D(Ot)},Zt.length)))}const yi=Se||(Ot=>T.jsxs("li",{children:[T.jsx(Gq,{className:on.groupLabel,ownerState:hn,component:"div",children:Ot.group}),T.jsx(Kq,{className:on.groupUl,ownerState:hn,children:Ot.children})]},Ot.key)),Jo=Re||((Ot,Fn)=>T.jsx("li",S({},Ot,{children:B(Fn)}))),xo=(Ot,Fn)=>{const ce=Te({option:Ot,index:Fn});return Jo(S({},ce,{className:on.option}),Ot,{selected:ce["aria-selected"],inputValue:Jn})};return T.jsxs(u.Fragment,{children:[T.jsx(Nq,S({ref:n,className:he(on.root,v),ownerState:hn},tt(gt),{children:Fe({id:Ee,disabled:k,fullWidth:!0,size:Ze==="small"?"small":void 0,InputLabelProps:Pt(),InputProps:S({ref:jt,className:on.inputRoot,startAdornment:Zt},(Gn||Er)&&{endAdornment:T.jsxs(Dq,{className:on.endAdornment,ownerState:hn,children:[Gn?T.jsx(Bq,S({},ot(),{"aria-label":b,title:b,ownerState:hn},w.clearIndicator,{className:he(on.clearIndicator,(r=w.clearIndicator)==null?void 0:r.className),children:C})):null,Er?T.jsx(zq,S({},ut(),{disabled:k,"aria-label":$e?P:de,title:$e?P:de,ownerState:hn},w.popupIndicator,{className:he(on.popupIndicator,(o=w.popupIndicator)==null?void 0:o.className),children:be})):null]})}),inputProps:S({className:on.input,disabled:k,readOnly:_e},et())})})),zt?T.jsx(jq,S({as:te,disablePortal:O,style:{width:zt?zt.clientWidth:null},ownerState:hn,role:"presentation",anchorEl:zt,open:$e},w.popper,{className:he(on.popper,(i=w.popper)==null?void 0:i.className),children:T.jsxs(Hq,S({ownerState:hn,as:le},w.paper,{className:he(on.paper,(s=w.paper)==null?void 0:s.className),children:[ie&&pn.length===0?T.jsx(Vq,{className:on.loading,ownerState:hn,children:ee}):null,pn.length===0&&!H&&!ie?T.jsx(Uq,{className:on.noOptions,ownerState:hn,role:"presentation",onMouseDown:Ot=>{Ot.preventDefault()},children:ae}):null,pn.length>0?T.jsx(Wq,S({as:q,className:on.listbox,ownerState:hn},Xe(),X,{children:pn.map((Ot,Fn)=>W?yi({key:Ot.key,group:Ot.group,children:Ot.options.map((ce,me)=>xo(ce,Ot.index+me))}):xo(Ot,Fn))})):null]}))})):null]})}),ZR=qq,Yq=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Xq={entering:{opacity:1},entered:{opacity:1}},Qq=u.forwardRef(function(t,n){const r=Zr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:c,in:f,onEnter:p,onEntered:h,onEntering:m,onExit:v,onExited:C,onExiting:g,style:x,timeout:b=o,TransitionComponent:P=Jg}=t,w=oe(t,Yq),E=u.useRef(null),I=St(a.ref,n),_=St(E,I),k=D=>B=>{if(D){const W=E.current;B===void 0?D(W):D(W,B)}},$=k(m),R=k((D,B)=>{EC(D);const W=Pl({style:x,timeout:b,easing:c},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",W),D.style.transition=r.transitions.create("opacity",W),p&&p(D,B)}),O=k(h),N=k(g),U=k(D=>{const B=Pl({style:x,timeout:b,easing:c},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",B),D.style.transition=r.transitions.create("opacity",B),v&&v(D)}),H=k(C),L=D=>{i&&i(E.current,D)};return T.jsx(P,S({appear:s,in:f,nodeRef:E,onEnter:R,onEntered:O,onEntering:$,onExit:U,onExited:H,onExiting:N,addEndListener:L,timeout:b},w,{children:(D,B)=>u.cloneElement(a,S({style:S({opacity:0,visibility:D==="exited"&&!f?"hidden":void 0},Xq[D],x,a.props.style),ref:_},B))}))}),eO=Qq;function Jq(e){return Ke("MuiBackdrop",e)}Ve("MuiBackdrop",["root","invisible"]);const Zq=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],eY=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},Jq,t)},tY=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),nY=u.forwardRef(function(t,n){var r,o;const i=Qe({props:t,name:"MuiBackdrop"}),{children:s,component:a="div",components:c={},componentsProps:f={},className:p,invisible:h=!1,open:m,transitionDuration:v,TransitionComponent:C=eO}=i,g=oe(i,Zq),x=S({},i,{component:a,invisible:h}),b=eY(x);return T.jsx(C,S({in:m,timeout:v},g,{children:T.jsx(tY,{"aria-hidden":!0,as:(r=c.Root)!=null?r:a,className:he(b.root,p),ownerState:S({},x,(o=f.root)==null?void 0:o.ownerState),classes:b,ref:n,children:s})}))}),tO=nY,rY=e=>!e||!El(e),xI=rY;function oY(e){return Ke("MuiBadge",e)}const iY=Ve("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"]),Vs=iY,sY=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","showZero","variant"],_0=10,$0=4,lY=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`,`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}${fe(o)}`,`overlap${fe(o)}`,t!=="default"&&`color${fe(t)}`]};return Ie(a,oY,s)},aY=re("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),cY=re("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}${fe(n.overlap)}`],n.color!=="default"&&t[`color${fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>S({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:_0*2,lineHeight:1,padding:"0 6px",height:_0*2,borderRadius:_0,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:$0,height:$0*2,minWidth:$0*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vs.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vs.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vs.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vs.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vs.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vs.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),uY=u.forwardRef(function(t,n){var r,o,i,s;const a=Qe({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:f,component:p="span",components:h={},componentsProps:m={},overlap:v="rectangular",color:C="default",invisible:g=!1,max:x,badgeContent:b,showZero:P=!1,variant:w="standard"}=a,E=oe(a,sY),I=fR({anchorOrigin:c,color:C,overlap:v,variant:w});let _=g;g===!1&&(b===0&&!P||b==null&&w!=="dot")&&(_=!0);const{color:k=C,overlap:$=v,anchorOrigin:R=c,variant:O=w}=_?I:a,N=S({},a,{anchorOrigin:R,invisible:_,color:k,overlap:$,variant:O}),U=lY(N);let H;return O!=="dot"&&(H=b&&Number(b)>x?`${x}+`:b),T.jsx(CU,S({invisible:g,badgeContent:H,showZero:P,max:x},E,{components:S({Root:aY,Badge:cY},h),className:he((r=m.root)==null?void 0:r.className,U.root,f),componentsProps:{root:S({},m.root,xI(h.Root)&&{as:p,ownerState:S({},(o=m.root)==null?void 0:o.ownerState,{anchorOrigin:R,color:k,overlap:$,variant:O})}),badge:S({},m.badge,{className:he(U.badge,(i=m.badge)==null?void 0:i.className)},xI(h.Badge)&&{ownerState:S({},(s=m.badge)==null?void 0:s.ownerState,{anchorOrigin:R,color:k,overlap:$,variant:O})})},ref:n}))}),nO=uY,dY=wC(),fY=q7({defaultTheme:dY,defaultClassName:"MuiBox-root",generateClassName:rC.generate}),yt=fY;function pY(e){return Ke("MuiButton",e)}const hY=Ve("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),$h=hY,mY=u.createContext({}),gY=mY,vY=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],yY=["root"],bY=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${fe(t)}`,`size${fe(o)}`,`${i}Size${fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${fe(o)}`],endIcon:["endIcon",`iconSize${fe(o)}`]},c=Ie(a,pY,s);return S({},s,c)},rO=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),wY=re(Gi,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color)}`],t[`size${fe(n.size)}`],t[`${n.variant}Size${fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${$h.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${$h.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="outlined"&&t.color==="secondary"&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${rt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${$h.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$h.disabled}`]:{boxShadow:"none"}}),CY=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},rO(e))),xY=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},rO(e))),SY=u.forwardRef(function(t,n){const r=u.useContext(gY),o=pR(r,t),i=Qe({props:o,name:"MuiButton"}),{children:s,color:a="primary",component:c="button",className:f,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:C,fullWidth:g=!1,size:x="medium",startIcon:b,type:P,variant:w="text"}=i,E=oe(i,vY),I=S({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:g,size:x,type:P,variant:w}),_=bY(I),{root:k}=_,$=oe(_,yY),R=b&&T.jsx(CY,{className:$.startIcon,ownerState:I,children:b}),O=v&&T.jsx(xY,{className:$.endIcon,ownerState:I,children:v});return T.jsxs(wY,S({ownerState:I,className:he(r.className,k,f),component:c,disabled:p,focusRipple:!m,focusVisibleClassName:he($.focusVisible,C),ref:n,type:P},E,{classes:$,children:[R,s,O]}))}),Qn=SY;function EY(e){return Ke("MuiCard",e)}Ve("MuiCard",["root"]);const PY=["className","raised"],kY=e=>{const{classes:t}=e;return Ie({root:["root"]},EY,t)},IY=re(Qo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),_Y=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=oe(r,PY),a=S({},r,{raised:i}),c=kY(a);return T.jsx(IY,S({className:he(c.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),$Y=_Y;function MY(e){return Ke("MuiCardContent",e)}Ve("MuiCardContent",["root"]);const TY=["className","component"],RY=e=>{const{classes:t}=e;return Ie({root:["root"]},MY,t)},OY=re("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),LY=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=oe(r,TY),a=S({},r,{component:i}),c=RY(a);return T.jsx(OY,S({as:i,className:he(c.root,o),ownerState:a,ref:n},s))}),AY=LY;function FY(e){return Ke("PrivateSwitchBase",e)}Ve("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const NY=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],DY=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${fe(o)}`],input:["input"]};return Ie(i,FY,t)},BY=re(Gi)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),zY=re("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),jY=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:h,id:m,inputProps:v,inputRef:C,name:g,onBlur:x,onChange:b,onFocus:P,readOnly:w,required:E,tabIndex:I,type:_,value:k}=t,$=oe(t,NY),[R,O]=Di({controlled:o,default:Boolean(a),name:"SwitchBase",state:"checked"}),N=Ms(),U=z=>{P&&P(z),N&&N.onFocus&&N.onFocus(z)},H=z=>{x&&x(z),N&&N.onBlur&&N.onBlur(z)},L=z=>{if(z.nativeEvent.defaultPrevented)return;const G=z.target.checked;O(G),b&&b(z,G)};let D=c;N&&typeof D=="undefined"&&(D=N.disabled);const B=_==="checkbox"||_==="radio",W=S({},t,{checked:R,disabled:D,disableFocusRipple:f,edge:p}),A=DY(W);return T.jsxs(BY,S({component:"span",className:he(A.root,s),centerRipple:!0,focusRipple:!f,disabled:D,tabIndex:null,role:void 0,onFocus:U,onBlur:H,ownerState:W,ref:n},$,{children:[T.jsx(zY,S({autoFocus:r,checked:o,defaultChecked:a,className:A.input,disabled:D,id:B&&m,name:g,onChange:L,readOnly:w,ref:C,required:E,ownerState:W,tabIndex:I,type:_},_==="checkbox"&&k===void 0?{}:{value:k},v)),R?i:h]}))}),oO=jY,HY=Mt(T.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),VY=Mt(T.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),UY=Mt(T.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function WY(e){return Ke("MuiCheckbox",e)}const GY=Ve("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),M0=GY,KY=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],qY=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${fe(r)}`]},i=Ie(o,WY,t);return S({},t,i)},YY=re(oO,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${fe(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${M0.checked}, &.${M0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${M0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),XY=T.jsx(VY,{}),QY=T.jsx(HY,{}),JY=T.jsx(UY,{}),ZY=u.forwardRef(function(t,n){var r,o;const i=Qe({props:t,name:"MuiCheckbox"}),{checkedIcon:s=XY,color:a="primary",icon:c=QY,indeterminate:f=!1,indeterminateIcon:p=JY,inputProps:h,size:m="medium"}=i,v=oe(i,KY),C=f?p:c,g=f?p:s,x=S({},i,{color:a,indeterminate:f,size:m}),b=qY(x);return T.jsx(YY,S({type:"checkbox",inputProps:S({"data-indeterminate":f},h),icon:u.cloneElement(C,{fontSize:(r=C.props.fontSize)!=null?r:m}),checkedIcon:u.cloneElement(g,{fontSize:(o=g.props.fontSize)!=null?o:m}),ownerState:x,ref:n},v,{classes:b}))}),iO=ZY;function eX(e){return Ke("MuiCircularProgress",e)}Ve("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const tX=["className","color","disableShrink","size","style","thickness","value","variant"];let sv=e=>e,SI,EI,PI,kI;const Us=44,nX=Rl(SI||(SI=sv`
|
|
153
|
+
0% {
|
|
154
|
+
transform: rotate(0deg);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
100% {
|
|
158
|
+
transform: rotate(360deg);
|
|
159
|
+
}
|
|
160
|
+
`)),rX=Rl(EI||(EI=sv`
|
|
161
|
+
0% {
|
|
162
|
+
stroke-dasharray: 1px, 200px;
|
|
163
|
+
stroke-dashoffset: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
50% {
|
|
167
|
+
stroke-dasharray: 100px, 200px;
|
|
168
|
+
stroke-dashoffset: -15px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
100% {
|
|
172
|
+
stroke-dasharray: 100px, 200px;
|
|
173
|
+
stroke-dashoffset: -125px;
|
|
174
|
+
}
|
|
175
|
+
`)),oX=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${fe(r)}`],svg:["svg"],circle:["circle",`circle${fe(n)}`,o&&"circleDisableShrink"]};return Ie(i,eX,t)},iX=re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${fe(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Cu(PI||(PI=sv`
|
|
176
|
+
animation: ${0} 1.4s linear infinite;
|
|
177
|
+
`),nX)),sX=re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),lX=re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${fe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Cu(kI||(kI=sv`
|
|
178
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
179
|
+
`),rX)),aX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:c,thickness:f=3.6,value:p=0,variant:h="indeterminate"}=r,m=oe(r,tX),v=S({},r,{color:i,disableShrink:s,size:a,thickness:f,value:p,variant:h}),C=oX(v),g={},x={},b={};if(h==="determinate"){const P=2*Math.PI*((Us-f)/2);g.strokeDasharray=P.toFixed(3),b["aria-valuenow"]=Math.round(p),g.strokeDashoffset=`${((100-p)/100*P).toFixed(3)}px`,x.transform="rotate(-90deg)"}return T.jsx(iX,S({className:he(C.root,o),style:S({width:a,height:a},x,c),ownerState:v,ref:n,role:"progressbar"},b,m,{children:T.jsx(sX,{className:C.svg,ownerState:v,viewBox:`${Us/2} ${Us/2} ${Us} ${Us}`,children:T.jsx(lX,{className:C.circle,style:g,ownerState:v,cx:Us,cy:Us,r:(Us-f)/2,fill:"none",strokeWidth:f})})}))}),Xf=aX,cX=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],uX=e=>e.classes,dX=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),fX=re(tO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),pX=u.forwardRef(function(t,n){var r,o;const i=Qe({name:"MuiModal",props:t}),{BackdropComponent:s=fX,BackdropProps:a,closeAfterTransition:c=!1,children:f,component:p,components:h={},componentsProps:m={},disableAutoFocus:v=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:g=!1,disablePortal:x=!1,disableRestoreFocus:b=!1,disableScrollLock:P=!1,hideBackdrop:w=!1,keepMounted:E=!1,theme:I}=i,_=oe(i,cX),[k,$]=u.useState(!0),R={closeAfterTransition:c,disableAutoFocus:v,disableEnforceFocus:C,disableEscapeKeyDown:g,disablePortal:x,disableRestoreFocus:b,disableScrollLock:P,hideBackdrop:w,keepMounted:E},O=S({},i,R,{exited:k}),N=uX(O),U=(r=(o=h.Root)!=null?o:p)!=null?r:dX;return T.jsx(oG,S({components:S({Root:U,Backdrop:s},h),componentsProps:{root:()=>S({},ib(m.root,O),!El(U)&&{as:p,theme:I}),backdrop:()=>S({},a,ib(m.backdrop,O))},onTransitionEnter:()=>$(!1),onTransitionExited:()=>$(!0),ref:n},_,{classes:N},R,{children:f}))}),kC=pX;function hX(e){return Ke("MuiDialog",e)}const mX=Ve("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),T0=mX,gX=u.createContext({}),sO=gX,vX=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],yX=re(tO,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),bX=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ie(s,hX,t)},wX=re(kC,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),CX=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),xX=re(Qo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${T0.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${T0.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${T0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),SX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDialog"}),o=Zr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:f,children:p,className:h,disableEscapeKeyDown:m=!1,fullScreen:v=!1,fullWidth:C=!1,maxWidth:g="sm",onBackdropClick:x,onClose:b,open:P,PaperComponent:w=Qo,PaperProps:E={},scroll:I="paper",TransitionComponent:_=eO,transitionDuration:k=i,TransitionProps:$}=r,R=oe(r,vX),O=S({},r,{disableEscapeKeyDown:m,fullScreen:v,fullWidth:C,maxWidth:g,scroll:I}),N=bX(O),U=u.useRef(),H=W=>{U.current=W.target===W.currentTarget},L=W=>{U.current&&(U.current=null,x&&x(W),b&&b(W,"backdropClick"))},D=En(a),B=u.useMemo(()=>({titleId:D}),[D]);return T.jsx(wX,S({className:he(N.root,h),closeAfterTransition:!0,components:{Backdrop:yX},componentsProps:{backdrop:S({transitionDuration:k,as:c},f)},disableEscapeKeyDown:m,onClose:b,open:P,ref:n,onClick:L,ownerState:O},R,{children:T.jsx(_,S({appear:!0,in:P,timeout:k,role:"presentation"},$,{children:T.jsx(CX,{className:he(N.container),onMouseDown:H,ownerState:O,children:T.jsx(xX,S({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},E,{className:he(N.paper,E.className),ownerState:O,children:T.jsx(sO.Provider,{value:B,children:p})}))})}))}))}),EX=SX;function PX(e){return Ke("MuiDialogContent",e)}Ve("MuiDialogContent",["root","dividers"]);function kX(e){return Ke("MuiDialogTitle",e)}const IX=Ve("MuiDialogTitle",["root"]),_X=IX,$X=["className","dividers"],MX=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},PX,t)},TX=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${_X.root} + &`]:{paddingTop:0}})),RX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=oe(r,$X),a=S({},r,{dividers:i}),c=MX(a);return T.jsx(TX,S({className:he(c.root,o),ownerState:a,ref:n},s))}),OX=RX,LX=["className","id"],AX=e=>{const{classes:t}=e;return Ie({root:["root"]},kX,t)},FX=re(br,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),NX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=oe(r,LX),a=r,c=AX(a),{titleId:f=i}=u.useContext(sO);return T.jsx(FX,S({component:"h2",className:he(c.root,o),ownerState:a,ref:n,variant:"h6",id:f},s))}),DX=NX,BX=Ve("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),II=BX,zX=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function jX(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Jr(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const f=i.getComputedStyle(t);s=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}let a=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const f=s.split("(")[1].split(")")[0].split(",");a=parseInt(f[4],10),c=parseInt(f[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function HX(e){return typeof e=="function"?e():e}function Mh(e,t,n){const r=HX(n),o=jX(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const VX=u.forwardRef(function(t,n){const r=Zr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,container:f,direction:p="down",easing:h=o,in:m,onEnter:v,onEntered:C,onEntering:g,onExit:x,onExited:b,onExiting:P,style:w,timeout:E=i,TransitionComponent:I=Jg}=t,_=oe(t,zX),k=u.useRef(null),$=St(c.ref,k),R=St($,n),O=z=>G=>{z&&(G===void 0?z(k.current):z(k.current,G))},N=O((z,G)=>{Mh(p,z,f),EC(z),v&&v(z,G)}),U=O((z,G)=>{const q=Pl({timeout:E,style:w,easing:h},{mode:"enter"});z.style.webkitTransition=r.transitions.create("-webkit-transform",S({},q)),z.style.transition=r.transitions.create("transform",S({},q)),z.style.webkitTransform="none",z.style.transform="none",g&&g(z,G)}),H=O(C),L=O(P),D=O(z=>{const G=Pl({timeout:E,style:w,easing:h},{mode:"exit"});z.style.webkitTransition=r.transitions.create("-webkit-transform",G),z.style.transition=r.transitions.create("transform",G),Mh(p,z,f),x&&x(z)}),B=O(z=>{z.style.webkitTransition="",z.style.transition="",b&&b(z)}),W=z=>{s&&s(k.current,z)},A=u.useCallback(()=>{k.current&&Mh(p,k.current,f)},[p,f]);return u.useEffect(()=>{if(m||p==="down"||p==="right")return;const z=Ss(()=>{k.current&&Mh(p,k.current,f)}),G=Jr(k.current);return G.addEventListener("resize",z),()=>{z.clear(),G.removeEventListener("resize",z)}},[p,m,f]),u.useEffect(()=>{m||A()},[m,A]),T.jsx(I,S({nodeRef:k,onEnter:N,onEntered:H,onEntering:U,onExit:D,onExited:B,onExiting:L,addEndListener:W,appear:a,in:m,timeout:E},_,{children:(z,G)=>u.cloneElement(c,S({ref:R,style:S({visibility:z==="exited"&&!m?"hidden":void 0},w,c.props.style)},G))}))}),UX=VX;function WX(e){return Ke("MuiDrawer",e)}Ve("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const GX=["BackdropProps"],KX=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],lO=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},qX=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${fe(n)}`,r!=="temporary"&&`paperAnchorDocked${fe(n)}`]};return Ie(o,WX,t)},YX=re(kC,{name:"MuiDrawer",slot:"Root",overridesResolver:lO})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),_I=re("div",{shouldForwardProp:wo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:lO})({flex:"0 0 auto"}),XX=re(Qo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${fe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${fe(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),aO={left:"right",right:"left",top:"down",bottom:"up"};function QX(e){return["left","right"].indexOf(e)!==-1}function JX(e,t){return e.direction==="rtl"&&QX(t)?aO[t]:t}const ZX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDrawer"}),o=Zr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:c,className:f,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m}={},onClose:v,open:C=!1,PaperProps:g={},SlideProps:x,TransitionComponent:b=UX,transitionDuration:P=i,variant:w="temporary"}=r,E=oe(r.ModalProps,GX),I=oe(r,KX),_=u.useRef(!1);u.useEffect(()=>{_.current=!0},[]);const k=JX(o,s),R=S({},r,{anchor:s,elevation:p,open:C,variant:w},I),O=qX(R),N=T.jsx(XX,S({elevation:w==="temporary"?p:0,square:!0},g,{className:he(O.paper,g.className),ownerState:R,children:c}));if(w==="permanent")return T.jsx(_I,S({className:he(O.root,O.docked,f),ownerState:R,ref:n},I,{children:N}));const U=T.jsx(b,S({in:C,direction:aO[k],timeout:P,appear:_.current},x,{children:N}));return w==="persistent"?T.jsx(_I,S({className:he(O.root,O.docked,f),ownerState:R,ref:n},I,{children:U})):T.jsx(YX,S({BackdropProps:S({},a,m,{transitionDuration:P}),className:he(O.root,O.modal,f),open:C,ownerState:R,onClose:v,hideBackdrop:h,ref:n},I,E,{children:U}))}),eQ=ZX,tQ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],nQ=e=>{const{classes:t,disableUnderline:n}=e,o=Ie({root:["root",!n&&"underline"],input:["input"]},Tq,t);return S({},t,o)},rQ=re(ov,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nv(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ti.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ti.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ti.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ti.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ti.disabled}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ti.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),oQ=re(iv,{name:"MuiFilledInput",slot:"Input",overridesResolver:rv})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),cO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFilledInput"}),{components:o={},componentsProps:i,fullWidth:s=!1,inputComponent:a="input",multiline:c=!1,type:f="text"}=r,p=oe(r,tQ),h=S({},r,{fullWidth:s,inputComponent:a,multiline:c,type:f}),m=nQ(r),v={root:{ownerState:h},input:{ownerState:h}},C=i?jo(i,v):v;return T.jsx(xu,S({components:S({Root:rQ,Input:oQ},o),componentsProps:C,fullWidth:s,inputComponent:a,multiline:c,ref:n,type:f},p,{classes:m}))});cO.muiName="Input";const uO=cO;function iQ(e){return Ke("MuiFormControl",e)}Ve("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const sQ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],lQ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${fe(n)}`,r&&"fullWidth"]};return Ie(o,iQ,t)},aQ=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),cQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:v="none",required:C=!1,size:g="medium",variant:x="outlined"}=r,b=oe(r,sQ),P=S({},r,{color:s,component:a,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:v,required:C,size:g,variant:x}),w=lQ(P),[E,I]=u.useState(()=>{let D=!1;return o&&u.Children.forEach(o,B=>{if(!Bd(B,["Input","Select"]))return;const W=Bd(B,["Select"])?B.props.input:B;W&&wq(W.props)&&(D=!0)}),D}),[_,k]=u.useState(()=>{let D=!1;return o&&u.Children.forEach(o,B=>{Bd(B,["Input","Select"])&&PC(B.props,!0)&&(D=!0)}),D}),[$,R]=u.useState(!1);c&&$&&R(!1);const O=p!==void 0&&!c?p:$;let N;const U=u.useCallback(()=>{k(!0)},[]),H=u.useCallback(()=>{k(!1)},[]),L={adornedStart:E,setAdornedStart:I,color:s,disabled:c,error:f,filled:_,focused:O,fullWidth:h,hiddenLabel:m,size:g,onBlur:()=>{R(!1)},onEmpty:H,onFilled:U,onFocus:()=>{R(!0)},registerEffect:N,required:C,variant:x};return T.jsx(tv.Provider,{value:L,children:T.jsx(aQ,S({as:a,ownerState:P,className:he(w.root,i),ref:n},b,{children:o}))})}),Aa=cQ;function uQ(e){return Ke("MuiFormControlLabel",e)}const dQ=Ve("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),Th=dQ,fQ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],pQ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e,i={root:["root",n&&"disabled",`labelPlacement${fe(r)}`,o&&"error"],label:["label",n&&"disabled"]};return Ie(i,uQ,t)},hQ=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Th.label}`]:t.label},t.root,t[`labelPlacement${fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Th.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Th.label}`]:{[`&.${Th.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),mQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:i={},control:s,disabled:a,disableTypography:c,label:f,labelPlacement:p="end"}=r,h=oe(r,fQ),m=Ms();let v=a;typeof v=="undefined"&&typeof s.props.disabled!="undefined"&&(v=s.props.disabled),typeof v=="undefined"&&m&&(v=m.disabled);const C={disabled:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof s.props[w]=="undefined"&&typeof r[w]!="undefined"&&(C[w]=r[w])});const g=La({props:r,muiFormControl:m,states:["error"]}),x=S({},r,{disabled:v,labelPlacement:p,error:g.error}),b=pQ(x);let P=f;return P!=null&&P.type!==br&&!c&&(P=T.jsx(br,S({component:"span",className:b.label},i.typography,{children:P}))),T.jsxs(hQ,S({className:he(b.root,o),ownerState:x,ref:n},h,{children:[u.cloneElement(s,C),P]}))}),dO=mQ;function gQ(e){return Ke("MuiFormHelperText",e)}const vQ=Ve("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),$I=vQ;var MI;const yQ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],bQ=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:c}=e,f={root:["root",o&&"disabled",i&&"error",r&&`size${fe(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return Ie(f,gQ,t)},wQ=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${$I.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$I.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),CQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=oe(r,yQ),c=Ms(),f=La({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=S({},r,{component:s,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),h=bQ(p);return T.jsx(wQ,S({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:o===" "?MI||(MI=T.jsx("span",{className:"notranslate",children:""})):o}))}),lv=CQ;function xQ(e){return Ke("MuiFormLabel",e)}const SQ=Ve("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Wd=SQ,EQ=["children","className","color","component","disabled","error","filled","focused","required"],PQ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,c={root:["root",`color${fe(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Ie(c,xQ,t)},kQ=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Wd.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Wd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Wd.error}`]:{color:(e.vars||e).palette.error.main}})),IQ=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Wd.error}`]:{color:(e.vars||e).palette.error.main}})),_Q=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=oe(r,EQ),c=Ms(),f=La({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=S({},r,{color:f.color||"primary",component:s,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),h=PQ(p);return T.jsxs(kQ,S({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:[o,f.required&&T.jsxs(IQ,{ownerState:p,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),fO=_Q,$Q=u.createContext(),TI=$Q;function MQ(e){return Ke("MuiGrid",e)}const TQ=[0,1,2,3,4,5,6,7,8,9,10],RQ=["column-reverse","column","row-reverse","row"],OQ=["nowrap","wrap-reverse","wrap"],ud=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xf=Ve("MuiGrid",["root","container","item","zeroMinWidth",...TQ.map(e=>`spacing-xs-${e}`),...RQ.map(e=>`direction-xs-${e}`),...OQ.map(e=>`wrap-xs-${e}`),...ud.map(e=>`grid-xs-${e}`),...ud.map(e=>`grid-sm-${e}`),...ud.map(e=>`grid-md-${e}`),...ud.map(e=>`grid-lg-${e}`),...ud.map(e=>`grid-xl-${e}`)]),LQ=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Hc(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function AQ({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Gg({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const c=`${Math.round(n/a*1e8)/1e6}%`;let f={};if(t.container&&t.item&&t.columnSpacing!==0){const p=e.spacing(t.columnSpacing);if(p!=="0px"){const h=`calc(${c} + ${Hc(p)})`;f={flexBasis:h,maxWidth:h}}}i=S({flexBasis:c,flexGrow:0,maxWidth:c},f)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function FQ({theme:e,ownerState:t}){const n=Gg({values:t.direction,breakpoints:e.breakpoints.values});return mi({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${xf.item}`]={maxWidth:"none"}),o})}function pO({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function NQ({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Gg({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=pO({breakpoints:e.breakpoints.values,values:i})),o=mi({theme:e},i,(a,c)=>{var f;const p=e.spacing(a);return p!=="0px"?{marginTop:`-${Hc(p)}`,[`& > .${xf.item}`]:{paddingTop:Hc(p)}}:(f=s)!=null&&f.includes(c)?{}:{marginTop:0,[`& > .${xf.item}`]:{paddingTop:0}}})}return o}function DQ({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Gg({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=pO({breakpoints:e.breakpoints.values,values:i})),o=mi({theme:e},i,(a,c)=>{var f;const p=e.spacing(a);return p!=="0px"?{width:`calc(100% + ${Hc(p)})`,marginLeft:`-${Hc(p)}`,[`& > .${xf.item}`]:{paddingLeft:Hc(p)}}:(f=s)!=null&&f.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${xf.item}`]:{paddingLeft:0}}})}return o}function BQ(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const zQ=re("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:c,breakpoints:f}=n;let p=[];r&&(p=BQ(s,f,t));const h=[];return f.forEach(m=>{const v=n[m];v&&h.push(t[`grid-${m}-${String(v)}`])}),[t.root,r&&t.container,i&&t.item,c&&t.zeroMinWidth,...p,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...h]}})(({ownerState:e})=>S({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),FQ,NQ,DQ,AQ);function jQ(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const HQ=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:c}=e;let f=[];n&&(f=jQ(i,c));const p=[];c.forEach(m=>{const v=e[m];v&&p.push(`grid-${m}-${String(v)}`)});const h={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...f,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...p]};return Ie(h,MQ,t)},VQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiGrid"}),{breakpoints:o}=Zr(),i=cC(r),{className:s,columns:a,columnSpacing:c,component:f="div",container:p=!1,direction:h="row",item:m=!1,rowSpacing:v,spacing:C=0,wrap:g="wrap",zeroMinWidth:x=!1}=i,b=oe(i,LQ),P=v||C,w=c||C,E=u.useContext(TI),I=p?a||12:E,_={},k=S({},b);o.keys.forEach(O=>{b[O]!=null&&(_[O]=b[O],delete k[O])});const $=S({},i,{columns:I,container:p,direction:h,item:m,rowSpacing:P,columnSpacing:w,wrap:g,zeroMinWidth:x,spacing:C},_,{breakpoints:o.keys}),R=HQ($);return T.jsx(TI.Provider,{value:I,children:T.jsx(zQ,S({ownerState:$,className:he(R.root,s),as:f,ref:n},k))})}),Hn=VQ,UQ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pb(e){return`scale(${e}, ${is(e,2)})`}const WQ={entering:{opacity:1,transform:pb(1)},entered:{opacity:1,transform:"none"}},R0=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),hO=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:v,style:C,timeout:g="auto",TransitionComponent:x=Jg}=t,b=oe(t,UQ),P=u.useRef(),w=u.useRef(),E=Zr(),I=u.useRef(null),_=St(i.ref,n),k=St(I,_),$=B=>W=>{if(B){const A=I.current;W===void 0?B(A):B(A,W)}},R=$(p),O=$((B,W)=>{EC(B);const{duration:A,delay:z,easing:G}=Pl({style:C,timeout:g,easing:s},{mode:"enter"});let q;g==="auto"?(q=E.transitions.getAutoHeightDuration(B.clientHeight),w.current=q):q=A,B.style.transition=[E.transitions.create("opacity",{duration:q,delay:z}),E.transitions.create("transform",{duration:R0?q:q*.666,delay:z,easing:G})].join(","),c&&c(B,W)}),N=$(f),U=$(v),H=$(B=>{const{duration:W,delay:A,easing:z}=Pl({style:C,timeout:g,easing:s},{mode:"exit"});let G;g==="auto"?(G=E.transitions.getAutoHeightDuration(B.clientHeight),w.current=G):G=W,B.style.transition=[E.transitions.create("opacity",{duration:G,delay:A}),E.transitions.create("transform",{duration:R0?G:G*.666,delay:R0?A:A||G*.333,easing:z})].join(","),B.style.opacity=0,B.style.transform=pb(.75),h&&h(B)}),L=$(m),D=B=>{g==="auto"&&(P.current=setTimeout(B,w.current||0)),r&&r(I.current,B)};return u.useEffect(()=>()=>{clearTimeout(P.current)},[]),T.jsx(x,S({appear:o,in:a,nodeRef:I,onEnter:O,onEntered:N,onEntering:R,onExit:H,onExited:L,onExiting:U,addEndListener:D,timeout:g==="auto"?null:g},b,{children:(B,W)=>u.cloneElement(i,S({style:S({opacity:0,transform:pb(.75),visibility:B==="exited"&&!a?"hidden":void 0},WQ[B],C,i.props.style),ref:k},W))}))});hO.muiSupportAuto=!0;const Dm=hO;function GQ(e,t,n,r,o){const i=typeof window!="undefined"&&typeof window.matchMedia!="undefined",[s,a]=u.useState(()=>o&&i?n(e).matches:r?r(e).matches:t);return Rn(()=>{let c=!0;if(!i)return;const f=n(e),p=()=>{c&&a(f.matches)};return p(),f.addListener(p),()=>{c=!1,f.removeListener(p)}},[e,n,i]),s}const mO=qc["useSyncExternalStore"];function KQ(e,t,n,r){const o=u.useCallback(()=>t,[t]),i=u.useMemo(()=>{if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r]),[s,a]=u.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addListener(p),()=>{f.removeListener(p)})]},[o,n,e]);return mO(a,s,i)}function gO(e,t={}){const n=dC(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a}=OR({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(mO!==void 0?KQ:GQ)(c,o,i,s,a)}const qQ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],YQ=e=>{const{classes:t,disableUnderline:n}=e,o=Ie({root:["root",!n&&"underline"],input:["input"]},Iq,t);return S({},t,o)},XQ=re(ov,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nv(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${oa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${oa.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${oa.disabled}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${oa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),QQ=re(iv,{name:"MuiInput",slot:"Input",overridesResolver:rv})({}),vO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiInput"}),{disableUnderline:o,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:c="input",multiline:f=!1,type:p="text"}=r,h=oe(r,qQ),m=YQ(r),C={root:{ownerState:{disableUnderline:o}}},g=s?jo(s,C):C;return T.jsx(xu,S({components:S({Root:XQ,Input:QQ},i),componentsProps:g,fullWidth:a,inputComponent:c,multiline:f,ref:n,type:p},h,{classes:m}))});vO.muiName="Input";const yO=vO;function JQ(e){return Ke("MuiInputAdornment",e)}const ZQ=Ve("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),RI=ZQ;var OI;const eJ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],tJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},nJ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${fe(o)}`,s,r&&"hiddenLabel",i&&`size${fe(i)}`]};return Ie(a,JQ,t)},rJ=re("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:tJ})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${RI.positionStart}&:not(.${RI.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),oJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:f,variant:p}=r,h=oe(r,eJ),m=Ms()||{};let v=p;p&&m.variant,m&&!v&&(v=m.variant);const C=S({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:f,variant:v}),g=nJ(C);return T.jsx(tv.Provider,{value:null,children:T.jsx(rJ,S({as:s,ownerState:C,className:he(g.root,i),ref:n},h,{children:typeof o=="string"&&!c?T.jsx(br,{color:"text.secondary",children:o}):T.jsxs(u.Fragment,{children:[f==="start"?OI||(OI=T.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),Bm=oJ;function iJ(e){return Ke("MuiInputLabel",e)}Ve("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const sJ=["disableAnimation","margin","shrink","variant"],lJ=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,f=Ie({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[a&&"asterisk"]},iJ,t);return S({},t,f)},aJ=re(fO,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wd.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),cJ=u.forwardRef(function(t,n){const r=Qe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i}=r,s=oe(r,sJ),a=Ms();let c=i;typeof c=="undefined"&&a&&(c=a.filled||a.focused||a.adornedStart);const f=La({props:r,muiFormControl:a,states:["size","variant","required"]}),p=S({},r,{disableAnimation:o,formControl:a,shrink:c,size:f.size,variant:f.variant,required:f.required}),h=lJ(p);return T.jsx(aJ,S({"data-shrink":c,ownerState:p,ref:n},s,{classes:h}))}),hb=cJ;function uJ(e){return Ke("MuiLinearProgress",e)}Ve("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const dJ=["className","color","value","valueBuffer","variant"];let Su=e=>e,LI,AI,FI,NI,DI,BI;const mb=4,fJ=Rl(LI||(LI=Su`
|
|
180
|
+
0% {
|
|
181
|
+
left: -35%;
|
|
182
|
+
right: 100%;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
60% {
|
|
186
|
+
left: 100%;
|
|
187
|
+
right: -90%;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
100% {
|
|
191
|
+
left: 100%;
|
|
192
|
+
right: -90%;
|
|
193
|
+
}
|
|
194
|
+
`)),pJ=Rl(AI||(AI=Su`
|
|
195
|
+
0% {
|
|
196
|
+
left: -200%;
|
|
197
|
+
right: 100%;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
60% {
|
|
201
|
+
left: 107%;
|
|
202
|
+
right: -8%;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
100% {
|
|
206
|
+
left: 107%;
|
|
207
|
+
right: -8%;
|
|
208
|
+
}
|
|
209
|
+
`)),hJ=Rl(FI||(FI=Su`
|
|
210
|
+
0% {
|
|
211
|
+
opacity: 1;
|
|
212
|
+
background-position: 0 -23px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
60% {
|
|
216
|
+
opacity: 0;
|
|
217
|
+
background-position: 0 -23px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
100% {
|
|
221
|
+
opacity: 1;
|
|
222
|
+
background-position: -200px -23px;
|
|
223
|
+
}
|
|
224
|
+
`)),mJ=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${fe(r)}`,n],dashed:["dashed",`dashedColor${fe(r)}`],bar1:["bar",`barColor${fe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${fe(r)}`,n==="buffer"&&`color${fe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ie(o,uJ,t)},IC=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Ps(e.palette[t].main,.62):Es(e.palette[t].main,.5),gJ=re("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${fe(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>S({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:IC(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),vJ=re("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${fe(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=IC(t,e.color);return S({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Cu(NI||(NI=Su`
|
|
225
|
+
animation: ${0} 3s infinite linear;
|
|
226
|
+
`),hJ)),yJ=re("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${fe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${mb}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${mb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Cu(DI||(DI=Su`
|
|
227
|
+
width: auto;
|
|
228
|
+
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
229
|
+
`),fJ)),bJ=re("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${fe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:IC(t,e.color),transition:`transform .${mb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Cu(BI||(BI=Su`
|
|
230
|
+
width: auto;
|
|
231
|
+
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
232
|
+
`),pJ)),wJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,f=oe(r,dJ),p=S({},r,{color:i,variant:c}),h=mJ(p),m=Zr(),v={},C={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let g=s-100;m.direction==="rtl"&&(g=-g),C.bar1.transform=`translateX(${g}%)`}if(c==="buffer"&&a!==void 0){let g=(a||0)-100;m.direction==="rtl"&&(g=-g),C.bar2.transform=`translateX(${g}%)`}return T.jsxs(gJ,S({className:he(h.root,o),ownerState:p,role:"progressbar"},v,{ref:n},f,{children:[c==="buffer"?T.jsx(vJ,{className:h.dashed,ownerState:p}):null,T.jsx(yJ,{className:h.bar1,ownerState:p,style:C.bar1}),c==="determinate"?null:T.jsx(bJ,{className:h.bar2,ownerState:p,style:C.bar2})]}))}),CJ=wJ;function xJ(e){return Ke("MuiLink",e)}const SJ=Ve("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),EJ=SJ,bO={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},PJ=e=>bO[e]||e,kJ=({theme:e,ownerState:t})=>{const n=PJ(t.color),r=yf(e,`palette.${n}`,!1)||t.color,o=yf(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:rt(r,.4)},IJ=kJ,_J=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$J=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${fe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Ie(i,xJ,t)},MJ=re(br,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${fe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>S({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&S({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:IJ({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${EJ.focusVisible}`]:{outline:"auto"}})),TJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:c,TypographyClasses:f,underline:p="always",variant:h="inherit",sx:m}=r,v=oe(r,_J),{isFocusVisibleRef:C,onBlur:g,onFocus:x,ref:b}=Wg(),[P,w]=u.useState(!1),E=St(n,b),I=R=>{g(R),C.current===!1&&w(!1),a&&a(R)},_=R=>{x(R),C.current===!0&&w(!0),c&&c(R)},k=S({},r,{color:i,component:s,focusVisible:P,underline:p,variant:h}),$=$J(k);return T.jsx(MJ,S({color:i,className:he($.root,o),classes:f,component:s,onBlur:I,onFocus:_,ref:E,ownerState:k,variant:h,sx:[...Object.keys(bO).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},v))}),Sf=TJ,RJ=u.createContext({}),pi=RJ;function OJ(e){return Ke("MuiList",e)}Ve("MuiList",["root","padding","dense","subheader"]);const LJ=["children","className","component","dense","disablePadding","subheader"],AJ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},OJ,t)},FJ=re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),NJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:f}=r,p=oe(r,LJ),h=u.useMemo(()=>({dense:a}),[a]),m=S({},r,{component:s,dense:a,disablePadding:c}),v=AJ(m);return T.jsx(pi.Provider,{value:h,children:T.jsxs(FJ,S({as:s,className:he(v.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})}),Qf=NJ;function DJ(e){return Ke("MuiListItem",e)}const BJ=Ve("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),yc=BJ;function zJ(e){return Ke("MuiListItemButton",e)}const jJ=Ve("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),bc=jJ,HJ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],VJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},UJ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,f=Ie({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},zJ,n);return S({},n,f)},WJ=re(Gi,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:VJ})(({theme:e,ownerState:t})=>S({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${bc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),GJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1}=r,v=oe(r,HJ),C=u.useContext(pi),g={dense:c||C.dense||!1,alignItems:o,disableGutters:f},x=u.useRef(null);Rn(()=>{i&&x.current&&x.current.focus()},[i]);const b=S({},r,{alignItems:o,dense:g.dense,disableGutters:f,divider:p,selected:m}),P=UJ(b),w=St(x,n);return T.jsx(pi.Provider,{value:g,children:T.jsx(WJ,S({ref:w,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"a":s,focusVisibleClassName:he(P.focusVisible,h),ownerState:b},v,{classes:P,children:a}))})}),KJ=GJ;function qJ(e){return Ke("MuiListItemSecondaryAction",e)}Ve("MuiListItemSecondaryAction",["root","disableGutters"]);const YJ=["className"],XJ=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},qJ,n)},QJ=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),wO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=oe(r,YJ),s=u.useContext(pi),a=S({},r,{disableGutters:s.disableGutters}),c=XJ(a);return T.jsx(QJ,S({className:he(c.root,o),ownerState:a,ref:n},i))});wO.muiName="ListItemSecondaryAction";const JJ=wO,ZJ=["className"],eZ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],tZ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},nZ=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:f,selected:p}=e;return Ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},DJ,r)},rZ=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:tZ})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${bc.root}`]:{paddingRight:48}},{[`&.${yc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${yc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${yc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${yc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${yc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),oZ=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),iZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:c,component:f,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:v}={},dense:C=!1,disabled:g=!1,disableGutters:x=!1,disablePadding:b=!1,divider:P=!1,focusVisibleClassName:w,secondaryAction:E,selected:I=!1}=r,_=oe(r.ContainerProps,ZJ),k=oe(r,eZ),$=u.useContext(pi),R={dense:C||$.dense||!1,alignItems:o,disableGutters:x},O=u.useRef(null);Rn(()=>{i&&O.current&&O.current.focus()},[i]);const N=u.Children.toArray(a),U=N.length&&Bd(N[N.length-1],["ListItemSecondaryAction"]),H=S({},r,{alignItems:o,autoFocus:i,button:s,dense:R.dense,disabled:g,disableGutters:x,disablePadding:b,divider:P,hasSecondaryAction:U,selected:I}),L=nZ(H),D=St(O,n),B=p.Root||rZ,W=h.root||{},A=S({className:he(L.root,W.className,c),disabled:g},k);let z=f||"li";return s&&(A.component=f||"div",A.focusVisibleClassName=he(yc.focusVisible,w),z=Gi),U?(z=!A.component&&!f?"div":z,m==="li"&&(z==="li"?z="div":A.component==="li"&&(A.component="div")),T.jsx(pi.Provider,{value:R,children:T.jsxs(oZ,S({as:m,className:he(L.container,v),ref:D,ownerState:H},_,{children:[T.jsx(B,S({},W,!El(B)&&{as:z,ownerState:S({},H,W.ownerState)},A,{children:N})),N.pop()]}))})):T.jsx(pi.Provider,{value:R,children:T.jsxs(B,S({},W,{as:z,ref:D,ownerState:H},!El(B)&&{ownerState:S({},H,W.ownerState)},A,{children:[N,E&&T.jsx(JJ,{children:E})]}))})}),_C=iZ;function sZ(e){return Ke("MuiListItemIcon",e)}const lZ=Ve("MuiListItemIcon",["root","alignItemsFlexStart"]),zI=lZ,aZ=["className"],cZ=e=>{const{alignItems:t,classes:n}=e;return Ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},sZ,n)},uZ=re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),dZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=oe(r,aZ),s=u.useContext(pi),a=S({},r,{alignItems:s.alignItems}),c=cZ(a);return T.jsx(uZ,S({className:he(c.root,o),ownerState:a,ref:n},i))}),CO=dZ;function fZ(e){return Ke("MuiListItemText",e)}const pZ=Ve("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),zm=pZ,hZ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],mZ=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Ie({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},fZ,t)},gZ=re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zm.primary}`]:t.primary},{[`& .${zm.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),vZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:h}=r,m=oe(r,hZ),{dense:v}=u.useContext(pi);let C=c!=null?c:o,g=p;const x=S({},r,{disableTypography:s,inset:a,primary:!!C,secondary:!!g,dense:v}),b=mZ(x);return C!=null&&C.type!==br&&!s&&(C=T.jsx(br,S({variant:v?"body2":"body1",className:b.primary,component:"span",display:"block"},f,{children:C}))),g!=null&&g.type!==br&&!s&&(g=T.jsx(br,S({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},h,{children:g}))),T.jsxs(gZ,S({className:he(b.root,i),ownerState:x,ref:n},m,{children:[C,g]}))}),Jf=vZ,yZ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function O0(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function jI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function xO(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function dd(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!xO(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const bZ=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:p,variant:h="selectedMenu"}=t,m=oe(t,yZ),v=u.useRef(null),C=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Rn(()=>{o&&v.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,E)=>{const I=!v.current.style.width;if(w.clientHeight<v.current.clientHeight&&I){const _=`${uR(yn(w))}px`;v.current.style[E.direction==="rtl"?"paddingLeft":"paddingRight"]=_,v.current.style.width=`calc(100% + ${_})`}return v.current}}),[]);const g=w=>{const E=v.current,I=w.key,_=yn(E).activeElement;if(I==="ArrowDown")w.preventDefault(),dd(E,_,f,c,O0);else if(I==="ArrowUp")w.preventDefault(),dd(E,_,f,c,jI);else if(I==="Home")w.preventDefault(),dd(E,null,f,c,O0);else if(I==="End")w.preventDefault(),dd(E,null,f,c,jI);else if(I.length===1){const k=C.current,$=I.toLowerCase(),R=performance.now();k.keys.length>0&&(R-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&$!==k.keys[0]&&(k.repeating=!1)),k.lastTime=R,k.keys.push($);const O=_&&!k.repeating&&xO(_,k);k.previousKeyMatched&&(O||dd(E,_,!1,c,O0,k))?w.preventDefault():k.previousKeyMatched=!1}p&&p(w)},x=St(v,n);let b=-1;u.Children.forEach(s,(w,E)=>{u.isValidElement(w)&&(w.props.disabled||(h==="selectedMenu"&&w.props.selected||b===-1)&&(b=E))});const P=u.Children.map(s,(w,E)=>{if(E===b){const I={};return i&&(I.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),u.cloneElement(w,I)}return w});return T.jsx(Qf,S({role:"menu",ref:x,className:a,onKeyDown:g,tabIndex:o?0:-1},m,{children:P}))}),$C=bZ;function wZ(e){return Ke("MuiPopover",e)}Ve("MuiPopover",["root","paper"]);const CZ=["onEntering"],xZ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function HI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function VI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function UI(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function L0(e){return typeof e=="function"?e():e}const SZ=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},wZ,t)},EZ=re(kC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),PZ=re(Qo,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),kZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:f,className:p,container:h,elevation:m=8,marginThreshold:v=16,open:C,PaperProps:g={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:b=Dm,transitionDuration:P="auto",TransitionProps:{onEntering:w}={}}=r,E=oe(r.TransitionProps,CZ),I=oe(r,xZ),_=u.useRef(),k=St(_,g.ref),$=S({},r,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:v,PaperProps:g,transformOrigin:x,TransitionComponent:b,transitionDuration:P,TransitionProps:E}),R=SZ($),O=u.useCallback(()=>{if(c==="anchorPosition")return a;const W=L0(i),z=(W&&W.nodeType===1?W:yn(_.current).body).getBoundingClientRect();return{top:z.top+HI(z,s.vertical),left:z.left+VI(z,s.horizontal)}},[i,s.horizontal,s.vertical,a,c]),N=u.useCallback(W=>({vertical:HI(W,x.vertical),horizontal:VI(W,x.horizontal)}),[x.horizontal,x.vertical]),U=u.useCallback(W=>{const A={width:W.offsetWidth,height:W.offsetHeight},z=N(A);if(c==="none")return{top:null,left:null,transformOrigin:UI(z)};const G=O();let q=G.top-z.vertical,X=G.left-z.horizontal;const ie=q+A.height,ee=X+A.width,se=Jr(L0(i)),ae=se.innerHeight-v,we=se.innerWidth-v;if(q<v){const de=q-v;q-=de,z.vertical+=de}else if(ie>ae){const de=ie-ae;q-=de,z.vertical+=de}if(X<v){const de=X-v;X-=de,z.horizontal+=de}else if(ee>we){const de=ee-we;X-=de,z.horizontal+=de}return{top:`${Math.round(q)}px`,left:`${Math.round(X)}px`,transformOrigin:UI(z)}},[i,c,O,N,v]),H=u.useCallback(()=>{const W=_.current;if(!W)return;const A=U(W);A.top!==null&&(W.style.top=A.top),A.left!==null&&(W.style.left=A.left),W.style.transformOrigin=A.transformOrigin},[U]),L=(W,A)=>{w&&w(W,A),H()};u.useEffect(()=>{C&&H()}),u.useImperativeHandle(o,()=>C?{updatePosition:()=>{H()}}:null,[C,H]),u.useEffect(()=>{if(!C)return;const W=Ss(()=>{H()}),A=Jr(i);return A.addEventListener("resize",W),()=>{W.clear(),A.removeEventListener("resize",W)}},[i,C,H]);let D=P;P==="auto"&&!b.muiSupportAuto&&(D=void 0);const B=h||(i?yn(L0(i)).body:void 0);return T.jsx(EZ,S({BackdropProps:{invisible:!0},className:he(R.root,p),container:B,open:C,ref:n,ownerState:$},I,{children:T.jsx(b,S({appear:!0,in:C,onEntering:L,timeout:D},E,{children:T.jsx(PZ,S({elevation:m},g,{ref:k,className:he(R.paper,g.className),children:f}))}))}))}),IZ=kZ;function _Z(e){return Ke("MuiMenu",e)}Ve("MuiMenu",["root","paper","list"]);const $Z=["onEntering"],MZ=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],TZ={vertical:"top",horizontal:"right"},RZ={vertical:"top",horizontal:"left"},OZ=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},_Z,t)},LZ=re(IZ,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AZ=re(Qo,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),FZ=re($C,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),NZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:c,open:f,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:v}={},variant:C="selectedMenu"}=r,g=oe(r.TransitionProps,$Z),x=oe(r,MZ),b=Zr(),P=b.direction==="rtl",w=S({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:v,PaperProps:p,transitionDuration:m,TransitionProps:g,variant:C}),E=OZ(w),I=o&&!s&&f,_=u.useRef(null),k=(O,N)=>{_.current&&_.current.adjustStyleForScrollbar(O,b),v&&v(O,N)},$=O=>{O.key==="Tab"&&(O.preventDefault(),c&&c(O,"tabKeyDown"))};let R=-1;return u.Children.map(i,(O,N)=>{u.isValidElement(O)&&(O.props.disabled||(C==="selectedMenu"&&O.props.selected||R===-1)&&(R=N))}),T.jsx(LZ,S({classes:h,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?TZ:RZ,PaperProps:S({component:AZ},p,{classes:S({},p.classes,{root:E.paper})}),className:E.root,open:f,ref:n,transitionDuration:m,TransitionProps:S({onEntering:k},g),ownerState:w},x,{children:T.jsx(FZ,S({onKeyDown:$,actions:_,autoFocus:o&&(R===-1||s),autoFocusItem:I,variant:C},a,{className:he(E.list,a.className),children:i}))}))}),SO=NZ;function DZ(e){return Ke("MuiMenuItem",e)}const BZ=Ve("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),fd=BZ,zZ=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],jZ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},HZ=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,c=Ie({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},DZ,s);return S({},s,c)},VZ=re(Gi,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:jZ})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${II.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${II.inset}`]:{marginLeft:52},[`& .${zm.root}`]:{marginTop:0,marginBottom:0},[`& .${zm.inset}`]:{paddingLeft:36},[`& .${zI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${zI.root} svg`]:{fontSize:"1.25rem"}}))),UZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:f,role:p="menuitem",tabIndex:h}=r,m=oe(r,zZ),v=u.useContext(pi),C={dense:s||v.dense||!1,disableGutters:c},g=u.useRef(null);Rn(()=>{o&&g.current&&g.current.focus()},[o]);const x=S({},r,{dense:C.dense,divider:a,disableGutters:c}),b=HZ(r),P=St(g,n);let w;return r.disabled||(w=h!==void 0?h:-1),T.jsx(pi.Provider,{value:C,children:T.jsx(VZ,S({ref:P,role:p,tabIndex:w,component:i,focusVisibleClassName:he(b.focusVisible,f)},m,{ownerState:x,classes:b}))})}),cr=UZ;function WZ(e){return Ke("MuiNativeSelect",e)}const GZ=Ve("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),MC=GZ,KZ=["className","disabled","IconComponent","inputRef","variant"],qZ=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${fe(n)}`,i&&"iconOpen",r&&"disabled"]};return Ie(s,WZ,t)},EO=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${MC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),YZ=re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${MC.multiple}`]:t.multiple}]}})(EO),PO=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${MC.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),XZ=re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})(PO),QZ=u.forwardRef(function(t,n){const{className:r,disabled:o,IconComponent:i,inputRef:s,variant:a="standard"}=t,c=oe(t,KZ),f=S({},t,{disabled:o,variant:a}),p=qZ(f);return T.jsxs(u.Fragment,{children:[T.jsx(YZ,S({ownerState:f,className:he(p.select,r),disabled:o,ref:s||n},c)),t.multiple?null:T.jsx(XZ,{as:i,ownerState:f,className:p.icon})]})}),JZ=QZ;var WI;const ZZ=["children","classes","className","label","notched"],eee=re("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),tee=re("legend")(({ownerState:e,theme:t})=>S({float:"unset",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function nee(e){const{className:t,label:n,notched:r}=e,o=oe(e,ZZ),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return T.jsx(eee,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:T.jsx(tee,{ownerState:s,children:i?T.jsx("span",{children:n}):WI||(WI=T.jsx("span",{className:"notranslate",children:""}))})}))}const ree=["components","fullWidth","inputComponent","label","multiline","notched","type"],oee=e=>{const{classes:t}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$q,t);return S({},t,r)},iee=re(ov,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Pi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Pi.focused} .${Pi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Pi.error} .${Pi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pi.disabled} .${Pi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),see=re(nee,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),lee=re(iv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rv})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),kO=u.forwardRef(function(t,n){var r;const o=Qe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:c,multiline:f=!1,notched:p,type:h="text"}=o,m=oe(o,ree),v=oee(o),C=Ms(),g=La({props:o,muiFormControl:C,states:["required"]}),x=S({},o,{color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:C,fullWidth:s,hiddenLabel:g.hiddenLabel,multiline:f,size:g.size,type:h});return T.jsx(xu,S({components:S({Root:iee,Input:lee},i),renderSuffix:b=>T.jsx(see,{ownerState:x,className:v.notchedOutline,label:c!=null&&c!==""&&g.required?r||(r=T.jsxs(u.Fragment,{children:[c," ","*"]})):c,notched:typeof p!="undefined"?p:Boolean(b.startAdornment||b.filled||b.focused)}),fullWidth:s,inputComponent:a,multiline:f,ref:n,type:h},m,{classes:S({},v,{notchedOutline:null})}))});kO.muiName="Input";const IO=kO,GI=Mt(T.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),KI=Mt(T.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function aee(e){return Ke("MuiSelect",e)}const cee=Ve("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Rh=cee;var qI;const uee=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],dee=re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Rh.select}`]:t.select},{[`&.${Rh.select}`]:t[n.variant]},{[`&.${Rh.multiple}`]:t.multiple}]}})(EO,{[`&.${Rh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fee=re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})(PO),pee=re("input",{shouldForwardProp:e=>LG(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function YI(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function hee(e){return e==null||typeof e=="string"&&!e.trim()}const mee=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${fe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(s,aee,t)},gee=u.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:c,defaultOpen:f,defaultValue:p,disabled:h,displayEmpty:m,IconComponent:v,inputRef:C,labelId:g,MenuProps:x={},multiple:b,name:P,onBlur:w,onChange:E,onClose:I,onFocus:_,onOpen:k,open:$,readOnly:R,renderValue:O,SelectDisplayProps:N={},tabIndex:U,value:H,variant:L="standard"}=t,D=oe(t,uee),[B,W]=Di({controlled:H,default:p,name:"Select"}),[A,z]=Di({controlled:$,default:f,name:"Select"}),G=u.useRef(null),q=u.useRef(null),[X,ie]=u.useState(null),{current:ee}=u.useRef($!=null),[se,ae]=u.useState(),we=St(n,C),de=u.useCallback(ne=>{q.current=ne,ne&&ie(ne)},[]);u.useImperativeHandle(we,()=>({focus:()=>{q.current.focus()},node:G.current,value:B}),[B]),u.useEffect(()=>{f&&A&&X&&!ee&&(ae(s?null:X.clientWidth),q.current.focus())},[X,s]),u.useEffect(()=>{i&&q.current.focus()},[i]),u.useEffect(()=>{if(!g)return;const ne=yn(q.current).getElementById(g);if(ne){const ke=()=>{getSelection().isCollapsed&&q.current.focus()};return ne.addEventListener("click",ke),()=>{ne.removeEventListener("click",ke)}}},[g]);const le=(ne,ke)=>{ne?k&&k(ke):I&&I(ke),ee||(ae(s?null:X.clientWidth),z(ne))},te=ne=>{ne.button===0&&(ne.preventDefault(),q.current.focus(),le(!0,ne))},be=ne=>{le(!1,ne)},_e=u.Children.toArray(a),Se=ne=>{const ke=_e.map($e=>$e.props.value).indexOf(ne.target.value);if(ke===-1)return;const Ee=_e[ke];W(Ee.props.value),E&&E(ne,Ee)},Fe=ne=>ke=>{let Ee;if(ke.currentTarget.hasAttribute("tabindex")){if(b){Ee=Array.isArray(B)?B.slice():[];const $e=B.indexOf(ne.props.value);$e===-1?Ee.push(ne.props.value):Ee.splice($e,1)}else Ee=ne.props.value;if(ne.props.onClick&&ne.props.onClick(ke),B!==Ee&&(W(Ee),E)){const $e=ke.nativeEvent||ke,Ge=new $e.constructor($e.type,$e);Object.defineProperty(Ge,"target",{writable:!0,value:{value:Ee,name:P}}),E(Ge,ne)}b||le(!1,ke)}},Re=ne=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ne.key)!==-1&&(ne.preventDefault(),le(!0,ne))},Le=X!==null&&A,Oe=ne=>{!Le&&w&&(Object.defineProperty(ne,"target",{writable:!0,value:{value:B,name:P}}),w(ne))};delete D["aria-invalid"];let Ze,gt;const tt=[];let et=!1;(PC({value:B})||m)&&(O?Ze=O(B):et=!0);const Pt=_e.map((ne,ke,Ee)=>{if(!u.isValidElement(ne))return null;let $e;if(b){if(!Array.isArray(B))throw new Error(Sl(2));$e=B.some(Ct=>YI(Ct,ne.props.value)),$e&&et&&tt.push(ne.props.children)}else $e=YI(B,ne.props.value),$e&&et&&(gt=ne.props.children);if(ne.props.value===void 0)return u.cloneElement(ne,{"aria-readonly":!0,role:"option"});const Ge=()=>{if(B)return $e;const Ct=Ee.find(zt=>zt.props.value!==void 0&&zt.props.disabled!==!0);return ne===Ct?!0:$e};return u.cloneElement(ne,{"aria-selected":$e?"true":"false",onClick:Fe(ne),onKeyUp:Ct=>{Ct.key===" "&&Ct.preventDefault(),ne.props.onKeyUp&&ne.props.onKeyUp(Ct)},role:"option",selected:Ee[0].props.value===void 0||Ee[0].props.disabled===!0?Ge():$e,value:void 0,"data-value":ne.props.value})});et&&(b?tt.length===0?Ze=null:Ze=tt.reduce((ne,ke,Ee)=>(ne.push(ke),Ee<tt.length-1&&ne.push(", "),ne),[]):Ze=gt);let ut=se;!s&&ee&&X&&(ut=X.clientWidth);let ot;typeof U!="undefined"?ot=U:ot=h?null:0;const It=N.id||(P?`mui-component-select-${P}`:void 0),Xe=S({},t,{variant:L,value:B,open:Le}),Te=mee(Xe);return T.jsxs(u.Fragment,{children:[T.jsx(dee,S({ref:de,tabIndex:ot,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":Le?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,It].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:Re,onMouseDown:h||R?null:te,onBlur:Oe,onFocus:_},N,{ownerState:Xe,className:he(N.className,Te.select,c),id:It,children:hee(Ze)?qI||(qI=T.jsx("span",{className:"notranslate",children:""})):Ze})),T.jsx(pee,S({value:Array.isArray(B)?B.join(","):B,name:P,ref:G,"aria-hidden":!0,onChange:Se,tabIndex:-1,disabled:h,className:Te.nativeInput,autoFocus:i,ownerState:Xe},D)),T.jsx(fee,{as:v,className:Te.icon,ownerState:Xe}),T.jsx(SO,S({id:`menu-${P||""}`,anchorEl:X,open:Le,onClose:be,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},x,{MenuListProps:S({"aria-labelledby":g,role:"listbox",disableListWrap:!0},x.MenuListProps),PaperProps:S({},x.PaperProps,{style:S({minWidth:ut},x.PaperProps!=null?x.PaperProps.style:null)}),children:Pt}))]})}),vee=gee;var XI,QI;const yee=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bee=e=>{const{classes:t}=e;return t},TC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wo(e)&&e!=="variant",slot:"Root"},wee=re(yO,TC)(""),Cee=re(IO,TC)(""),xee=re(uO,TC)(""),_O=u.forwardRef(function(t,n){const r=Qe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:p=JR,id:h,input:m,inputProps:v,label:C,labelId:g,MenuProps:x,multiple:b=!1,native:P=!1,onClose:w,onOpen:E,open:I,renderValue:_,SelectDisplayProps:k,variant:$="outlined"}=r,R=oe(r,yee),O=P?JZ:vee,N=Ms(),H=La({props:r,muiFormControl:N,states:["variant"]}).variant||$,L=m||{standard:XI||(XI=T.jsx(wee,{})),outlined:T.jsx(Cee,{label:C}),filled:QI||(QI=T.jsx(xee,{}))}[H],D=S({},r,{variant:H,classes:s}),B=bee(D),W=St(n,L.ref);return u.cloneElement(L,S({inputComponent:O,inputProps:S({children:i,IconComponent:p,variant:H,type:void 0,multiple:b},P?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:g,MenuProps:x,onClose:w,onOpen:E,open:I,renderValue:_,SelectDisplayProps:S({id:h},k)},v,{classes:v?jo(B,v.classes):B},m?m.props.inputProps:{})},b&&P&&H==="outlined"?{notched:!0}:{},{ref:W,className:he(L.props.className,a),variant:H},R))});_O.muiName="Select";const RC=_O;function See(e){return Ke("MuiTooltip",e)}const Eee=Ve("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),rl=Eee,Pee=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];function kee(e){return Math.round(e*1e5)/1e5}const Iee=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${fe(i.split("-")[0])}`],arrow:["arrow"]};return Ie(s,See,t)},_ee=re(Oa,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${rl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${rl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${rl.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${rl.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),$ee=re("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:rt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${kee(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${rl.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${rl.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${rl.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${rl.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Mee=re("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:rt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Oh=!1,A0=null;function Lh(e,t){return n=>{t&&t(n),e(n)}}const Tee=u.forwardRef(function(t,n){var r,o,i,s,a,c;const f=Qe({props:t,name:"MuiTooltip"}),{arrow:p=!1,children:h,components:m={},componentsProps:v={},describeChild:C=!1,disableFocusListener:g=!1,disableHoverListener:x=!1,disableInteractive:b=!1,disableTouchListener:P=!1,enterDelay:w=100,enterNextDelay:E=0,enterTouchDelay:I=700,followCursor:_=!1,id:k,leaveDelay:$=0,leaveTouchDelay:R=1500,onClose:O,onOpen:N,open:U,placement:H="bottom",PopperComponent:L,PopperProps:D={},title:B,TransitionComponent:W=Dm,TransitionProps:A}=f,z=oe(f,Pee),G=Zr(),q=G.direction==="rtl",[X,ie]=u.useState(),[ee,se]=u.useState(null),ae=u.useRef(!1),we=b||_,de=u.useRef(),le=u.useRef(),te=u.useRef(),be=u.useRef(),[_e,Se]=Di({controlled:U,default:!1,name:"Tooltip",state:"open"});let Fe=_e;const Re=En(k),Le=u.useRef(),Oe=u.useCallback(()=>{Le.current!==void 0&&(document.body.style.WebkitUserSelect=Le.current,Le.current=void 0),clearTimeout(be.current)},[]);u.useEffect(()=>()=>{clearTimeout(de.current),clearTimeout(le.current),clearTimeout(te.current),Oe()},[Oe]);const Ze=Be=>{clearTimeout(A0),Oh=!0,Se(!0),N&&!Fe&&N(Be)},gt=zn(Be=>{clearTimeout(A0),A0=setTimeout(()=>{Oh=!1},800+$),Se(!1),O&&Fe&&O(Be),clearTimeout(de.current),de.current=setTimeout(()=>{ae.current=!1},G.transitions.duration.shortest)}),tt=Be=>{ae.current&&Be.type!=="touchstart"||(X&&X.removeAttribute("title"),clearTimeout(le.current),clearTimeout(te.current),w||Oh&&E?le.current=setTimeout(()=>{Ze(Be)},Oh?E:w):Ze(Be))},et=Be=>{clearTimeout(le.current),clearTimeout(te.current),te.current=setTimeout(()=>{gt(Be)},$)},{isFocusVisibleRef:Pt,onBlur:ut,onFocus:ot,ref:It}=Wg(),[,Xe]=u.useState(!1),Te=Be=>{ut(Be),Pt.current===!1&&(Xe(!1),et(Be))},ne=Be=>{X||ie(Be.currentTarget),ot(Be),Pt.current===!0&&(Xe(!0),tt(Be))},ke=Be=>{ae.current=!0;const it=h.props;it.onTouchStart&&it.onTouchStart(Be)},Ee=tt,$e=et,Ge=Be=>{ke(Be),clearTimeout(te.current),clearTimeout(de.current),Oe(),Le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Le.current,tt(Be)},I)},Ct=Be=>{h.props.onTouchEnd&&h.props.onTouchEnd(Be),Oe(),clearTimeout(te.current),te.current=setTimeout(()=>{gt(Be)},R)};u.useEffect(()=>{if(!Fe)return;function Be(it){(it.key==="Escape"||it.key==="Esc")&>(it)}return document.addEventListener("keydown",Be),()=>{document.removeEventListener("keydown",Be)}},[gt,Fe]);const zt=St(ie,n),jt=St(It,zt),Jn=St(h.ref,jt);B===""&&(Fe=!1);const pn=u.useRef({x:0,y:0}),Gn=u.useRef(),Er=Be=>{const it=h.props;it.onMouseMove&&it.onMouseMove(Be),pn.current={x:Be.clientX,y:Be.clientY},Gn.current&&Gn.current.update()},hn={},on=typeof B=="string";C?(hn.title=!Fe&&on&&!x?B:null,hn["aria-describedby"]=Fe?Re:null):(hn["aria-label"]=on?B:null,hn["aria-labelledby"]=Fe&&!on?Re:null);const Zt=S({},hn,z,h.props,{className:he(z.className,h.props.className),onTouchStart:ke,ref:Jn},_?{onMouseMove:Er}:{}),Co={};P||(Zt.onTouchStart=Ge,Zt.onTouchEnd=Ct),x||(Zt.onMouseOver=Lh(Ee,Zt.onMouseOver),Zt.onMouseLeave=Lh($e,Zt.onMouseLeave),we||(Co.onMouseOver=Ee,Co.onMouseLeave=$e)),g||(Zt.onFocus=Lh(ne,Zt.onFocus),Zt.onBlur=Lh(Te,Zt.onBlur),we||(Co.onFocus=ne,Co.onBlur=Te));const yi=u.useMemo(()=>{var Be;let it=[{name:"arrow",enabled:Boolean(ee),options:{element:ee,padding:4}}];return(Be=D.popperOptions)!=null&&Be.modifiers&&(it=it.concat(D.popperOptions.modifiers)),S({},D.popperOptions,{modifiers:it})},[ee,D]),Ar=S({},f,{isRtl:q,arrow:p,disableInteractive:we,placement:H,PopperComponentProp:L,touch:ae.current}),Jo=Iee(Ar),xo=(r=m.Popper)!=null?r:_ee,Ot=(o=(i=m.Transition)!=null?i:W)!=null?o:Dm,Fn=(s=m.Tooltip)!=null?s:$ee,ce=(a=m.Arrow)!=null?a:Mee,me=xd(xo,S({},D,v.popper),Ar),ze=xd(Ot,S({},A,v.transition),Ar),dt=xd(Fn,S({},v.tooltip),Ar),bt=xd(ce,S({},v.arrow),Ar);return T.jsxs(u.Fragment,{children:[u.cloneElement(h,Zt),T.jsx(xo,S({as:L!=null?L:Oa,placement:H,anchorEl:_?{getBoundingClientRect:()=>({top:pn.current.y,left:pn.current.x,right:pn.current.x,bottom:pn.current.y,width:0,height:0})}:X,popperRef:Gn,open:X?Fe:!1,id:Re,transition:!0},Co,me,{className:he(Jo.popper,D==null?void 0:D.className,(c=v.popper)==null?void 0:c.className),popperOptions:yi,children:({TransitionProps:Be})=>{var it,ve;return T.jsx(Ot,S({timeout:G.transitions.duration.shorter},Be,ze,{children:T.jsxs(Fn,S({},dt,{className:he(Jo.tooltip,(it=v.tooltip)==null?void 0:it.className),children:[B,p?T.jsx(ce,S({},bt,{className:he(Jo.arrow,(ve=v.arrow)==null?void 0:ve.className),ref:se})):null]}))}))}}))]})}),av=Tee;function Ree(e){return Ke("MuiSwitch",e)}const Oee=Ve("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),vr=Oee,Lee=["className","color","edge","size","sx"],Aee=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${fe(n)}`,`size${fe(r)}`],switchBase:["switchBase",`color${fe(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ie(a,Ree,t);return S({},t,c)},Fee=re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({ownerState:e})=>S({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${vr.thumb}`]:{width:16,height:16},[`& .${vr.switchBase}`]:{padding:4,[`&.${vr.checked}`]:{transform:"translateX(16px)"}}})),Nee=re(oO,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${vr.input}`]:t.input},n.color!=="default"&&t[`color${fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${vr.checked}`]:{transform:"translateX(20px)"},[`&.${vr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${vr.checked} + .${vr.track}`]:{opacity:.5},[`&.${vr.disabled} + .${vr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${vr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>S({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${vr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${vr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Ps(e.palette[t.color].main,.62):Es(e.palette[t.color].main,.55)}`}},[`&.${vr.checked} + .${vr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Dee=re("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Bee=re("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),zee=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:c}=r,f=oe(r,Lee),p=S({},r,{color:i,edge:s,size:a}),h=Aee(p),m=T.jsx(Bee,{className:h.thumb,ownerState:p});return T.jsxs(Fee,{className:he(h.root,o),sx:c,ownerState:p,children:[T.jsx(Nee,S({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:p},f,{classes:S({},h,{root:h.switchBase})})),T.jsx(Dee,{className:h.track,ownerState:p})]})}),$O=zee;function jee(e){return Ke("MuiTab",e)}const Hee=Ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Gl=Hee,Vee=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Uee=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:c}=e,f={root:["root",i&&s&&"labelIcon",`textColor${fe(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Ie(f,jee,t)},Wee=re(Gi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Gl.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Gl.selected}`]:{opacity:1},[`&.${Gl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Gl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Gl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Gl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Gee=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:f="top",indicator:p,label:h,onChange:m,onClick:v,onFocus:C,selected:g,selectionFollowsFocus:x,textColor:b="inherit",value:P,wrapped:w=!1}=r,E=oe(r,Vee),I=S({},r,{disabled:i,disableFocusRipple:s,selected:g,icon:!!c,iconPosition:f,label:!!h,fullWidth:a,textColor:b,wrapped:w}),_=Uee(I),k=c&&h&&u.isValidElement(c)?u.cloneElement(c,{className:he(_.iconWrapper,c.props.className)}):c,$=O=>{!g&&m&&m(O,P),v&&v(O)},R=O=>{x&&!g&&m&&m(O,P),C&&C(O)};return T.jsxs(Wee,S({focusRipple:!s,className:he(_.root,o),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:$,onFocus:R,ownerState:I,tabIndex:g?0:-1},E,{children:[f==="top"||f==="start"?T.jsxs(u.Fragment,{children:[k,h]}):T.jsxs(u.Fragment,{children:[h,k]}),p]}))}),MO=Gee,Kee=u.createContext(),qee=Kee,Yee=u.createContext(),Xee=Yee;function Qee(e){return Ke("MuiTableCell",e)}const Jee=Ve("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Zee=Jee,ete=["align","className","component","padding","scope","size","sortDirection","variant"],tte=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${fe(r)}`,o!=="normal"&&`padding${fe(o)}`,`size${fe(i)}`]};return Ie(a,Qee,t)},nte=re("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${fe(n.size)}`],n.padding!=="normal"&&t[`padding${fe(n.padding)}`],n.align!=="inherit"&&t[`align${fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
233
|
+
${e.palette.mode==="light"?Ps(rt(e.palette.divider,1),.88):Es(rt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Zee.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),rte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:c,size:f,sortDirection:p,variant:h}=r,m=oe(r,ete),v=u.useContext(qee),C=u.useContext(Xee),g=C&&C.variant==="head";let x;s?x=s:x=g?"th":"td";let b=c;!b&&g&&(b="col");const P=h||C&&C.variant,w=S({},r,{align:o,component:x,padding:a||(v&&v.padding?v.padding:"normal"),size:f||(v&&v.size?v.size:"medium"),sortDirection:p,stickyHeader:P==="head"&&v&&v.stickyHeader,variant:P}),E=tte(w);let I=null;return p&&(I=p==="asc"?"ascending":"descending"),T.jsx(nte,S({as:x,ref:n,className:he(E.root,i),"aria-sort":I,scope:b,ownerState:w},m))}),gb=rte;function ote(e){return Ke("MuiToolbar",e)}Ve("MuiToolbar",["root","gutters","regular","dense"]);const ite=["className","component","disableGutters","variant"],ste=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ie({root:["root",!n&&"gutters",r]},ote,t)},lte=re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),ate=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,c=oe(r,ite),f=S({},r,{component:i,disableGutters:s,variant:a}),p=ste(f);return T.jsx(lte,S({as:i,className:he(p.root,o),ref:n,ownerState:f},c))}),TO=ate,vb=Mt(T.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),yb=Mt(T.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var JI,ZI,e_,t_,n_,r_,o_,i_;const cte=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],ute=u.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:c,rowsPerPage:f,showFirstButton:p,showLastButton:h}=t,m=oe(t,cte),v=Zr(),C=P=>{a(P,0)},g=P=>{a(P,c-1)},x=P=>{a(P,c+1)},b=P=>{a(P,Math.max(0,Math.ceil(o/f)-1))};return T.jsxs("div",S({ref:n},m,{children:[p&&T.jsx(tr,{onClick:C,disabled:c===0,"aria-label":i("first",c),title:i("first",c),children:v.direction==="rtl"?JI||(JI=T.jsx(KI,{})):ZI||(ZI=T.jsx(GI,{}))}),T.jsx(tr,S({onClick:g,disabled:c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c)},r,{children:v.direction==="rtl"?e_||(e_=T.jsx(yb,{})):t_||(t_=T.jsx(vb,{}))})),T.jsx(tr,S({onClick:x,disabled:o!==-1?c>=Math.ceil(o/f)-1:!1,color:"inherit","aria-label":i("next",c),title:i("next",c)},s,{children:v.direction==="rtl"?n_||(n_=T.jsx(vb,{})):r_||(r_=T.jsx(yb,{}))})),h&&T.jsx(tr,{onClick:b,disabled:c>=Math.ceil(o/f)-1,"aria-label":i("last",c),title:i("last",c),children:v.direction==="rtl"?o_||(o_=T.jsx(GI,{})):i_||(i_=T.jsx(KI,{}))})]}))}),dte=ute;function fte(e){return Ke("MuiTablePagination",e)}const pte=Ve("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),da=pte;var s_;const hte=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],mte=re(gb,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),gte=re(TO,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>S({[`& .${da.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${da.actions}`]:{flexShrink:0,marginLeft:20}})),vte=re("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),yte=re("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>S({},e.typography.body2,{flexShrink:0})),bte=re(RC,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>S({[`& .${da.selectIcon}`]:t.selectIcon,[`& .${da.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${da.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),wte=re(cr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Cte=re("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>S({},e.typography.body2,{flexShrink:0}));function xte({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Ste(e){return`Go to ${e} page`}const Ete=e=>{const{classes:t}=e;return Ie({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},fte,t)},Pte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=dte,backIconButtonProps:i,className:s,colSpan:a,component:c=gb,count:f,getItemAriaLabel:p=Ste,labelDisplayedRows:h=xte,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:v,onPageChange:C,onRowsPerPageChange:g,page:x,rowsPerPage:b,rowsPerPageOptions:P=[10,25,50,100],SelectProps:w={},showFirstButton:E=!1,showLastButton:I=!1}=r,_=oe(r,hte),k=r,$=Ete(k),R=w.native?"option":wte;let O;(c===gb||c==="td")&&(O=a||1e3);const N=En(w.id),U=En(w.labelId),H=()=>f===-1?(x+1)*b:b===-1?f:Math.min(f,(x+1)*b);return T.jsx(mte,S({colSpan:O,ref:n,as:c,ownerState:k,className:he($.root,s)},_,{children:T.jsxs(gte,{className:$.toolbar,children:[T.jsx(vte,{className:$.spacer}),P.length>1&&T.jsx(yte,{className:$.selectLabel,id:U,children:m}),P.length>1&&T.jsx(bte,S({variant:"standard",input:s_||(s_=T.jsx(xu,{})),value:b,onChange:g,id:N,labelId:U},w,{classes:S({},w.classes,{root:he($.input,$.selectRoot,(w.classes||{}).root),select:he($.select,(w.classes||{}).select),icon:he($.selectIcon,(w.classes||{}).icon)}),children:P.map(L=>u.createElement(R,S({},!El(R)&&{ownerState:k},{className:$.menuItem,key:L.label?L.label:L,value:L.value?L.value:L}),L.label?L.label:L))})),T.jsx(Cte,{className:$.displayedRows,children:h({from:f===0?0:x*b+1,to:H(),count:f===-1?-1:f,page:x})}),T.jsx(o,{className:$.actions,backIconButtonProps:i,count:f,nextIconButtonProps:v,onPageChange:C,page:x,rowsPerPage:b,showFirstButton:E,showLastButton:I,getItemAriaLabel:p})]})}))}),kte=Pte;function Ite(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function _te(e,t,n,r={},o=()=>{}){const{ease:i=Ite,duration:s=300}=r;let a=null;const c=t[e];let f=!1;const p=()=>{f=!0},h=m=>{if(f){o(new Error("Animation cancelled"));return}a===null&&(a=m);const v=Math.min(1,(m-a)/s);if(t[e]=i(v)*(n-c)+c,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const $te=["onChange"],Mte={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Tte(e){const{onChange:t}=e,n=oe(e,$te),r=u.useRef(),o=u.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return u.useEffect(()=>{const s=Ss(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),a=Jr(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),u.useEffect(()=>{i(),t(r.current)},[t]),T.jsx("div",S({style:Mte,ref:o},n))}function Rte(e){return Ke("MuiTabScrollButton",e)}const Ote=Ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Lte=Ote;var l_,a_;const Ate=["className","direction","orientation","disabled"],Fte=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ie({root:["root",n,r&&"disabled"]},Rte,t)},Nte=re(Gi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${Lte.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Dte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTabScrollButton"}),{className:o,direction:i}=r,s=oe(r,Ate),c=Zr().direction==="rtl",f=S({isRtl:c},r),p=Fte(f);return T.jsx(Nte,S({component:"div",className:he(p.root,o),ref:n,role:null,ownerState:f,tabIndex:null},s,{children:i==="left"?l_||(l_=T.jsx(vb,{fontSize:"small"})):a_||(a_=T.jsx(yb,{fontSize:"small"}))}))}),Bte=Dte;function zte(e){return Ke("MuiTabs",e)}const jte=Ve("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),F0=jte,Hte=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],c_=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,u_=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ah=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},Vte=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return Ie({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},zte,c)},Ute=re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${F0.scrollButtons}`]:t.scrollButtons},{[`& .${F0.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${F0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Wte=re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Gte=re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Kte=re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),qte=re(Tte,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),d_={},Yte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTabs"}),o=Zr(),i=o.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:f=!1,children:p,className:h,component:m="div",allowScrollButtonsMobile:v=!1,indicatorColor:C="primary",onChange:g,orientation:x="horizontal",ScrollButtonComponent:b=Bte,scrollButtons:P="auto",selectionFollowsFocus:w,TabIndicatorProps:E={},TabScrollButtonProps:I={},textColor:_="primary",value:k,variant:$="standard",visibleScrollbar:R=!1}=r,O=oe(r,Hte),N=$==="scrollable",U=x==="vertical",H=U?"scrollTop":"scrollLeft",L=U?"top":"left",D=U?"bottom":"right",B=U?"clientHeight":"clientWidth",W=U?"height":"width",A=S({},r,{component:m,allowScrollButtonsMobile:v,indicatorColor:C,orientation:x,vertical:U,scrollButtons:P,textColor:_,variant:$,visibleScrollbar:R,fixed:!N,hideScrollbar:N&&!R,scrollableX:N&&!U,scrollableY:N&&U,centered:f&&!N,scrollButtonsHideMobile:!v}),z=Vte(A),[G,q]=u.useState(!1),[X,ie]=u.useState(d_),[ee,se]=u.useState({start:!1,end:!1}),[ae,we]=u.useState({overflow:"hidden",scrollbarWidth:0}),de=new Map,le=u.useRef(null),te=u.useRef(null),be=()=>{const ne=le.current;let ke;if(ne){const $e=ne.getBoundingClientRect();ke={clientWidth:ne.clientWidth,scrollLeft:ne.scrollLeft,scrollTop:ne.scrollTop,scrollLeftNormalized:T2(ne,o.direction),scrollWidth:ne.scrollWidth,top:$e.top,bottom:$e.bottom,left:$e.left,right:$e.right}}let Ee;if(ne&&k!==!1){const $e=te.current.children;if($e.length>0){const Ge=$e[de.get(k)];Ee=Ge?Ge.getBoundingClientRect():null}}return{tabsMeta:ke,tabMeta:Ee}},_e=zn(()=>{const{tabsMeta:ne,tabMeta:ke}=be();let Ee=0,$e;if(U)$e="top",ke&&ne&&(Ee=ke.top-ne.top+ne.scrollTop);else if($e=i?"right":"left",ke&&ne){const Ct=i?ne.scrollLeftNormalized+ne.clientWidth-ne.scrollWidth:ne.scrollLeft;Ee=(i?-1:1)*(ke[$e]-ne[$e]+Ct)}const Ge={[$e]:Ee,[W]:ke?ke[W]:0};if(isNaN(X[$e])||isNaN(X[W]))ie(Ge);else{const Ct=Math.abs(X[$e]-Ge[$e]),zt=Math.abs(X[W]-Ge[W]);(Ct>=1||zt>=1)&&ie(Ge)}}),Se=(ne,{animation:ke=!0}={})=>{ke?_te(H,le.current,ne,{duration:o.transitions.duration.standard}):le.current[H]=ne},Fe=ne=>{let ke=le.current[H];U?ke+=ne:(ke+=ne*(i?-1:1),ke*=i&&dR()==="reverse"?-1:1),Se(ke)},Re=()=>{const ne=le.current[B];let ke=0;const Ee=Array.from(te.current.children);for(let $e=0;$e<Ee.length;$e+=1){const Ge=Ee[$e];if(ke+Ge[B]>ne){$e===0&&(ke=ne);break}ke+=Ge[B]}return ke},Le=()=>{Fe(-1*Re())},Oe=()=>{Fe(Re())},Ze=u.useCallback(ne=>{we({overflow:null,scrollbarWidth:ne})},[]),gt=()=>{const ne={};ne.scrollbarSizeListener=N?T.jsx(qte,{onChange:Ze,className:he(z.scrollableX,z.hideScrollbar)}):null;const ke=ee.start||ee.end,Ee=N&&(P==="auto"&&ke||P===!0);return ne.scrollButtonStart=Ee?T.jsx(b,S({orientation:x,direction:i?"right":"left",onClick:Le,disabled:!ee.start},I,{className:he(z.scrollButtons,I.className)})):null,ne.scrollButtonEnd=Ee?T.jsx(b,S({orientation:x,direction:i?"left":"right",onClick:Oe,disabled:!ee.end},I,{className:he(z.scrollButtons,I.className)})):null,ne},tt=zn(ne=>{const{tabsMeta:ke,tabMeta:Ee}=be();if(!(!Ee||!ke)){if(Ee[L]<ke[L]){const $e=ke[H]+(Ee[L]-ke[L]);Se($e,{animation:ne})}else if(Ee[D]>ke[D]){const $e=ke[H]+(Ee[D]-ke[D]);Se($e,{animation:ne})}}}),et=zn(()=>{if(N&&P!==!1){const{scrollTop:ne,scrollHeight:ke,clientHeight:Ee,scrollWidth:$e,clientWidth:Ge}=le.current;let Ct,zt;if(U)Ct=ne>1,zt=ne<ke-Ee-1;else{const jt=T2(le.current,o.direction);Ct=i?jt<$e-Ge-1:jt>1,zt=i?jt>1:jt<$e-Ge-1}(Ct!==ee.start||zt!==ee.end)&&se({start:Ct,end:zt})}});u.useEffect(()=>{const ne=Ss(()=>{le.current&&(_e(),et())}),ke=Jr(le.current);ke.addEventListener("resize",ne);let Ee;return typeof ResizeObserver!="undefined"&&(Ee=new ResizeObserver(ne),Array.from(te.current.children).forEach($e=>{Ee.observe($e)})),()=>{ne.clear(),ke.removeEventListener("resize",ne),Ee&&Ee.disconnect()}},[_e,et]);const Pt=u.useMemo(()=>Ss(()=>{et()}),[et]);u.useEffect(()=>()=>{Pt.clear()},[Pt]),u.useEffect(()=>{q(!0)},[]),u.useEffect(()=>{_e(),et()}),u.useEffect(()=>{tt(d_!==X)},[tt,X]),u.useImperativeHandle(c,()=>({updateIndicator:_e,updateScrollButtons:et}),[_e,et]);const ut=T.jsx(Kte,S({},E,{className:he(z.indicator,E.className),ownerState:A,style:S({},X,E.style)}));let ot=0;const It=u.Children.map(p,ne=>{if(!u.isValidElement(ne))return null;const ke=ne.props.value===void 0?ot:ne.props.value;de.set(ke,ot);const Ee=ke===k;return ot+=1,u.cloneElement(ne,S({fullWidth:$==="fullWidth",indicator:Ee&&!G&&ut,selected:Ee,selectionFollowsFocus:w,onChange:g,textColor:_,value:ke},ot===1&&k===!1&&!ne.props.tabIndex?{tabIndex:0}:{}))}),Xe=ne=>{const ke=te.current,Ee=yn(ke).activeElement;if(Ee.getAttribute("role")!=="tab")return;let Ge=x==="horizontal"?"ArrowLeft":"ArrowUp",Ct=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&i&&(Ge="ArrowRight",Ct="ArrowLeft"),ne.key){case Ge:ne.preventDefault(),Ah(ke,Ee,u_);break;case Ct:ne.preventDefault(),Ah(ke,Ee,c_);break;case"Home":ne.preventDefault(),Ah(ke,null,c_);break;case"End":ne.preventDefault(),Ah(ke,null,u_);break}},Te=gt();return T.jsxs(Ute,S({className:he(z.root,h),ownerState:A,ref:n,as:m},O,{children:[Te.scrollButtonStart,Te.scrollbarSizeListener,T.jsxs(Wte,{className:z.scroller,ownerState:A,style:{overflow:ae.overflow,[U?`margin${i?"Left":"Right"}`:"marginBottom"]:R?void 0:-ae.scrollbarWidth},ref:le,onScroll:Pt,children:[T.jsx(Gte,{"aria-label":s,"aria-labelledby":a,"aria-orientation":x==="vertical"?"vertical":null,className:z.flexContainer,ownerState:A,onKeyDown:Xe,ref:te,role:"tablist",children:It}),G&&ut]}),Te.scrollButtonEnd]}))}),RO=Yte;function Xte(e){return Ke("MuiTextField",e)}Ve("MuiTextField",["root"]);const Qte=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Jte={standard:yO,filled:uO,outlined:IO},Zte=e=>{const{classes:t}=e;return Ie({root:["root"]},Xte,t)},ene=re(Aa,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tne=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:c="primary",defaultValue:f,disabled:p=!1,error:h=!1,FormHelperTextProps:m,fullWidth:v=!1,helperText:C,id:g,InputLabelProps:x,inputProps:b,InputProps:P,inputRef:w,label:E,maxRows:I,minRows:_,multiline:k=!1,name:$,onBlur:R,onChange:O,onFocus:N,placeholder:U,required:H=!1,rows:L,select:D=!1,SelectProps:B,type:W,value:A,variant:z="outlined"}=r,G=oe(r,Qte),q=S({},r,{autoFocus:i,color:c,disabled:p,error:h,fullWidth:v,multiline:k,required:H,select:D,variant:z}),X=Zte(q),ie={};z==="outlined"&&(x&&typeof x.shrink!="undefined"&&(ie.notched=x.shrink),ie.label=E),D&&((!B||!B.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const ee=En(g),se=C&&ee?`${ee}-helper-text`:void 0,ae=E&&ee?`${ee}-label`:void 0,we=Jte[z],de=T.jsx(we,S({"aria-describedby":se,autoComplete:o,autoFocus:i,defaultValue:f,fullWidth:v,multiline:k,name:$,rows:L,maxRows:I,minRows:_,type:W,value:A,id:ee,inputRef:w,onBlur:R,onChange:O,onFocus:N,placeholder:U,inputProps:b},ie,P));return T.jsxs(ene,S({className:he(X.root,a),disabled:p,error:h,fullWidth:v,ref:n,required:H,color:c,variant:z,ownerState:q},G,{children:[E!=null&&E!==""&&T.jsx(hb,S({htmlFor:ee,id:ae},x,{children:E})),D?T.jsx(RC,S({"aria-describedby":se,id:ee,labelId:ae,value:A,input:de},B,{children:s})):de,C&&T.jsx(lv,S({id:se},m,{children:C}))]}))}),Zf=tne;var OC={},pt={},nne={get exports(){return pt},set exports(e){pt=e}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nne);var N0={};const rne=_$(GG);var f_;function vt(){return f_||(f_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=rne}(N0)),N0}var one=pt;Object.defineProperty(OC,"__esModule",{value:!0});var OO=OC.default=void 0,ine=one(vt()),sne=ht(),lne=(0,ine.default)((0,sne.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");OO=OC.default=lne;var LC={},ane=pt;Object.defineProperty(LC,"__esModule",{value:!0});var LO=LC.default=void 0,cne=ane(vt()),une=ht(),dne=(0,cne.default)((0,une.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"}),"Extension");LO=LC.default=dne;var AC={},fne=pt;Object.defineProperty(AC,"__esModule",{value:!0});var AO=AC.default=void 0,pne=fne(vt()),hne=ht(),mne=(0,pne.default)((0,hne.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"History");AO=AC.default=mne;var FC={},gne=pt;Object.defineProperty(FC,"__esModule",{value:!0});var FO=FC.default=void 0,vne=gne(vt()),yne=ht(),bne=(0,vne.default)((0,yne.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}),"Logout");FO=FC.default=bne;var NC={},wne=pt;Object.defineProperty(NC,"__esModule",{value:!0});var NO=NC.default=void 0,Cne=wne(vt()),p_=ht(),xne=(0,Cne.default)([(0,p_.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,p_.jsx)("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98zM20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63zM17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"},"1")],"ManageAccounts");NO=NC.default=xne;var DC={},Sne=pt;Object.defineProperty(DC,"__esModule",{value:!0});var DO=DC.default=void 0,Ene=Sne(vt()),Pne=ht(),kne=(0,Ene.default)((0,Pne.jsx)("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3l-1 1v2h12v-2l-1-1h3c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H4V5h16v11z"}),"Monitor");DO=DC.default=kne;var BC={},Ine=pt;Object.defineProperty(BC,"__esModule",{value:!0});var BO=BC.default=void 0,_ne=Ine(vt()),$ne=ht(),Mne=(0,_ne.default)((0,$ne.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}),"Public");BO=BC.default=Mne;var zC={},Tne=pt;Object.defineProperty(zC,"__esModule",{value:!0});var jC=zC.default=void 0,Rne=Tne(vt()),One=ht(),Lne=(0,Rne.default)((0,One.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");jC=zC.default=Lne;var hs={},Ane={get exports(){return hs},set exports(e){hs=e}};/**
|
|
234
|
+
* @license
|
|
235
|
+
* Lodash <https://lodash.com/>
|
|
236
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
237
|
+
* Released under MIT license <https://lodash.com/license>
|
|
238
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
239
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
240
|
+
*/(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,v=4,C=1,g=2,x=1,b=2,P=4,w=8,E=16,I=32,_=64,k=128,$=256,R=512,O=30,N="...",U=800,H=16,L=1,D=2,B=3,W=1/0,A=9007199254740991,z=17976931348623157e292,G=0/0,q=4294967295,X=q-1,ie=q>>>1,ee=[["ary",k],["bind",x],["bindKey",b],["curry",w],["curryRight",E],["flip",R],["partial",I],["partialRight",_],["rearg",$]],se="[object Arguments]",ae="[object Array]",we="[object AsyncFunction]",de="[object Boolean]",le="[object Date]",te="[object DOMException]",be="[object Error]",_e="[object Function]",Se="[object GeneratorFunction]",Fe="[object Map]",Re="[object Number]",Le="[object Null]",Oe="[object Object]",Ze="[object Promise]",gt="[object Proxy]",tt="[object RegExp]",et="[object Set]",Pt="[object String]",ut="[object Symbol]",ot="[object Undefined]",It="[object WeakMap]",Xe="[object WeakSet]",Te="[object ArrayBuffer]",ne="[object DataView]",ke="[object Float32Array]",Ee="[object Float64Array]",$e="[object Int8Array]",Ge="[object Int16Array]",Ct="[object Int32Array]",zt="[object Uint8Array]",jt="[object Uint8ClampedArray]",Jn="[object Uint16Array]",pn="[object Uint32Array]",Gn=/\b__p \+= '';/g,Er=/\b(__p \+=) '' \+/g,hn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,on=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,Co=RegExp(on.source),yi=RegExp(Zt.source),Ar=/<%-([\s\S]+?)%>/g,Jo=/<%([\s\S]+?)%>/g,xo=/<%=([\s\S]+?)%>/g,Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fn=/^\w*$/,ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,me=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(me.source),dt=/^\s+/,bt=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,ve=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,Vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,an=/\w*$/,bn=/^[-+]0x[0-9a-f]+$/i,Fr=/^0b[01]+$/i,Va=/^\[object .+?Constructor\]$/,JF=/^0o[0-7]+$/i,ZF=/^(?:0|[1-9]\d*)$/,eN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yp=/($^)/,tN=/['\n\r\u2028\u2029\\]/g,bp="\\ud800-\\udfff",nN="\\u0300-\\u036f",rN="\\ufe20-\\ufe2f",oN="\\u20d0-\\u20ff",IS=nN+rN+oN,_S="\\u2700-\\u27bf",$S="a-z\\xdf-\\xf6\\xf8-\\xff",iN="\\xac\\xb1\\xd7\\xf7",sN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lN="\\u2000-\\u206f",aN=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",MS="A-Z\\xc0-\\xd6\\xd8-\\xde",TS="\\ufe0e\\ufe0f",RS=iN+sN+lN+aN,zv="['’]",cN="["+bp+"]",OS="["+RS+"]",wp="["+IS+"]",LS="\\d+",uN="["+_S+"]",AS="["+$S+"]",FS="[^"+bp+RS+LS+_S+$S+MS+"]",jv="\\ud83c[\\udffb-\\udfff]",dN="(?:"+wp+"|"+jv+")",NS="[^"+bp+"]",Hv="(?:\\ud83c[\\udde6-\\uddff]){2}",Vv="[\\ud800-\\udbff][\\udc00-\\udfff]",Ua="["+MS+"]",DS="\\u200d",BS="(?:"+AS+"|"+FS+")",fN="(?:"+Ua+"|"+FS+")",zS="(?:"+zv+"(?:d|ll|m|re|s|t|ve))?",jS="(?:"+zv+"(?:D|LL|M|RE|S|T|VE))?",HS=dN+"?",VS="["+TS+"]?",pN="(?:"+DS+"(?:"+[NS,Hv,Vv].join("|")+")"+VS+HS+")*",hN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",US=VS+HS+pN,gN="(?:"+[uN,Hv,Vv].join("|")+")"+US,vN="(?:"+[NS+wp+"?",wp,Hv,Vv,cN].join("|")+")",yN=RegExp(zv,"g"),bN=RegExp(wp,"g"),Uv=RegExp(jv+"(?="+jv+")|"+vN+US,"g"),wN=RegExp([Ua+"?"+AS+"+"+zS+"(?="+[OS,Ua,"$"].join("|")+")",fN+"+"+jS+"(?="+[OS,Ua+BS,"$"].join("|")+")",Ua+"?"+BS+"+"+zS,Ua+"+"+jS,mN,hN,LS,gN].join("|"),"g"),CN=RegExp("["+DS+bp+IS+TS+"]"),xN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,SN=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],EN=-1,mn={};mn[ke]=mn[Ee]=mn[$e]=mn[Ge]=mn[Ct]=mn[zt]=mn[jt]=mn[Jn]=mn[pn]=!0,mn[se]=mn[ae]=mn[Te]=mn[de]=mn[ne]=mn[le]=mn[be]=mn[_e]=mn[Fe]=mn[Re]=mn[Oe]=mn[tt]=mn[et]=mn[Pt]=mn[It]=!1;var cn={};cn[se]=cn[ae]=cn[Te]=cn[ne]=cn[de]=cn[le]=cn[ke]=cn[Ee]=cn[$e]=cn[Ge]=cn[Ct]=cn[Fe]=cn[Re]=cn[Oe]=cn[tt]=cn[et]=cn[Pt]=cn[ut]=cn[zt]=cn[jt]=cn[Jn]=cn[pn]=!0,cn[be]=cn[_e]=cn[It]=!1;var PN={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},kN={"&":"&","<":"<",">":">",'"':""","'":"'"},IN={"&":"&","<":"<",">":">",""":'"',"'":"'"},_N={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$N=parseFloat,MN=parseInt,WS=typeof co=="object"&&co&&co.Object===Object&&co,TN=typeof self=="object"&&self&&self.Object===Object&&self,ir=WS||TN||Function("return this")(),Wv=t&&!t.nodeType&&t,Nl=Wv&&!0&&e&&!e.nodeType&&e,GS=Nl&&Nl.exports===Wv,Gv=GS&&WS.process,So=function(){try{var Q=Nl&&Nl.require&&Nl.require("util").types;return Q||Gv&&Gv.binding&&Gv.binding("util")}catch(ye){}}(),KS=So&&So.isArrayBuffer,qS=So&&So.isDate,YS=So&&So.isMap,XS=So&&So.isRegExp,QS=So&&So.isSet,JS=So&&So.isTypedArray;function eo(Q,ye,pe){switch(pe.length){case 0:return Q.call(ye);case 1:return Q.call(ye,pe[0]);case 2:return Q.call(ye,pe[0],pe[1]);case 3:return Q.call(ye,pe[0],pe[1],pe[2])}return Q.apply(ye,pe)}function RN(Q,ye,pe,je){for(var wt=-1,qt=Q==null?0:Q.length;++wt<qt;){var Kn=Q[wt];ye(je,Kn,pe(Kn),Q)}return je}function Eo(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je&&ye(Q[pe],pe,Q)!==!1;);return Q}function ON(Q,ye){for(var pe=Q==null?0:Q.length;pe--&&ye(Q[pe],pe,Q)!==!1;);return Q}function ZS(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je;)if(!ye(Q[pe],pe,Q))return!1;return!0}function Os(Q,ye){for(var pe=-1,je=Q==null?0:Q.length,wt=0,qt=[];++pe<je;){var Kn=Q[pe];ye(Kn,pe,Q)&&(qt[wt++]=Kn)}return qt}function Cp(Q,ye){var pe=Q==null?0:Q.length;return!!pe&&Wa(Q,ye,0)>-1}function Kv(Q,ye,pe){for(var je=-1,wt=Q==null?0:Q.length;++je<wt;)if(pe(ye,Q[je]))return!0;return!1}function wn(Q,ye){for(var pe=-1,je=Q==null?0:Q.length,wt=Array(je);++pe<je;)wt[pe]=ye(Q[pe],pe,Q);return wt}function Ls(Q,ye){for(var pe=-1,je=ye.length,wt=Q.length;++pe<je;)Q[wt+pe]=ye[pe];return Q}function qv(Q,ye,pe,je){var wt=-1,qt=Q==null?0:Q.length;for(je&&qt&&(pe=Q[++wt]);++wt<qt;)pe=ye(pe,Q[wt],wt,Q);return pe}function LN(Q,ye,pe,je){var wt=Q==null?0:Q.length;for(je&&wt&&(pe=Q[--wt]);wt--;)pe=ye(pe,Q[wt],wt,Q);return pe}function Yv(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je;)if(ye(Q[pe],pe,Q))return!0;return!1}var AN=Xv("length");function FN(Q){return Q.split("")}function NN(Q){return Q.match(ge)||[]}function eE(Q,ye,pe){var je;return pe(Q,function(wt,qt,Kn){if(ye(wt,qt,Kn))return je=qt,!1}),je}function xp(Q,ye,pe,je){for(var wt=Q.length,qt=pe+(je?1:-1);je?qt--:++qt<wt;)if(ye(Q[qt],qt,Q))return qt;return-1}function Wa(Q,ye,pe){return ye===ye?YN(Q,ye,pe):xp(Q,tE,pe)}function DN(Q,ye,pe,je){for(var wt=pe-1,qt=Q.length;++wt<qt;)if(je(Q[wt],ye))return wt;return-1}function tE(Q){return Q!==Q}function nE(Q,ye){var pe=Q==null?0:Q.length;return pe?Jv(Q,ye)/pe:G}function Xv(Q){return function(ye){return ye==null?n:ye[Q]}}function Qv(Q){return function(ye){return Q==null?n:Q[ye]}}function rE(Q,ye,pe,je,wt){return wt(Q,function(qt,Kn,ln){pe=je?(je=!1,qt):ye(pe,qt,Kn,ln)}),pe}function BN(Q,ye){var pe=Q.length;for(Q.sort(ye);pe--;)Q[pe]=Q[pe].value;return Q}function Jv(Q,ye){for(var pe,je=-1,wt=Q.length;++je<wt;){var qt=ye(Q[je]);qt!==n&&(pe=pe===n?qt:pe+qt)}return pe}function Zv(Q,ye){for(var pe=-1,je=Array(Q);++pe<Q;)je[pe]=ye(pe);return je}function zN(Q,ye){return wn(ye,function(pe){return[pe,Q[pe]]})}function oE(Q){return Q&&Q.slice(0,aE(Q)+1).replace(dt,"")}function to(Q){return function(ye){return Q(ye)}}function ey(Q,ye){return wn(ye,function(pe){return Q[pe]})}function Fu(Q,ye){return Q.has(ye)}function iE(Q,ye){for(var pe=-1,je=Q.length;++pe<je&&Wa(ye,Q[pe],0)>-1;);return pe}function sE(Q,ye){for(var pe=Q.length;pe--&&Wa(ye,Q[pe],0)>-1;);return pe}function jN(Q,ye){for(var pe=Q.length,je=0;pe--;)Q[pe]===ye&&++je;return je}var HN=Qv(PN),VN=Qv(kN);function UN(Q){return"\\"+_N[Q]}function WN(Q,ye){return Q==null?n:Q[ye]}function Ga(Q){return CN.test(Q)}function GN(Q){return xN.test(Q)}function KN(Q){for(var ye,pe=[];!(ye=Q.next()).done;)pe.push(ye.value);return pe}function ty(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je,wt){pe[++ye]=[wt,je]}),pe}function lE(Q,ye){return function(pe){return Q(ye(pe))}}function As(Q,ye){for(var pe=-1,je=Q.length,wt=0,qt=[];++pe<je;){var Kn=Q[pe];(Kn===ye||Kn===p)&&(Q[pe]=p,qt[wt++]=pe)}return qt}function Sp(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je){pe[++ye]=je}),pe}function qN(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je){pe[++ye]=[je,je]}),pe}function YN(Q,ye,pe){for(var je=pe-1,wt=Q.length;++je<wt;)if(Q[je]===ye)return je;return-1}function XN(Q,ye,pe){for(var je=pe+1;je--;)if(Q[je]===ye)return je;return je}function Ka(Q){return Ga(Q)?JN(Q):AN(Q)}function Zo(Q){return Ga(Q)?ZN(Q):FN(Q)}function aE(Q){for(var ye=Q.length;ye--&&bt.test(Q.charAt(ye)););return ye}var QN=Qv(IN);function JN(Q){for(var ye=Uv.lastIndex=0;Uv.test(Q);)++ye;return ye}function ZN(Q){return Q.match(Uv)||[]}function eD(Q){return Q.match(wN)||[]}var tD=function Q(ye){ye=ye==null?ir:qa.defaults(ir.Object(),ye,qa.pick(ir,SN));var pe=ye.Array,je=ye.Date,wt=ye.Error,qt=ye.Function,Kn=ye.Math,ln=ye.Object,ny=ye.RegExp,nD=ye.String,Po=ye.TypeError,Ep=pe.prototype,rD=qt.prototype,Ya=ln.prototype,Pp=ye["__core-js_shared__"],kp=rD.toString,en=Ya.hasOwnProperty,oD=0,cE=function(){var l=/[^.]+$/.exec(Pp&&Pp.keys&&Pp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Ip=Ya.toString,iD=kp.call(ln),sD=ir._,lD=ny("^"+kp.call(en).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_p=GS?ye.Buffer:n,Fs=ye.Symbol,$p=ye.Uint8Array,uE=_p?_p.allocUnsafe:n,Mp=lE(ln.getPrototypeOf,ln),dE=ln.create,fE=Ya.propertyIsEnumerable,Tp=Ep.splice,pE=Fs?Fs.isConcatSpreadable:n,Nu=Fs?Fs.iterator:n,Dl=Fs?Fs.toStringTag:n,Rp=function(){try{var l=Vl(ln,"defineProperty");return l({},"",{}),l}catch(d){}}(),aD=ye.clearTimeout!==ir.clearTimeout&&ye.clearTimeout,cD=je&&je.now!==ir.Date.now&&je.now,uD=ye.setTimeout!==ir.setTimeout&&ye.setTimeout,Op=Kn.ceil,Lp=Kn.floor,ry=ln.getOwnPropertySymbols,dD=_p?_p.isBuffer:n,hE=ye.isFinite,fD=Ep.join,pD=lE(ln.keys,ln),qn=Kn.max,fr=Kn.min,hD=je.now,mD=ye.parseInt,mE=Kn.random,gD=Ep.reverse,oy=Vl(ye,"DataView"),Du=Vl(ye,"Map"),iy=Vl(ye,"Promise"),Xa=Vl(ye,"Set"),Bu=Vl(ye,"WeakMap"),zu=Vl(ln,"create"),Ap=Bu&&new Bu,Qa={},vD=Ul(oy),yD=Ul(Du),bD=Ul(iy),wD=Ul(Xa),CD=Ul(Bu),Fp=Fs?Fs.prototype:n,ju=Fp?Fp.valueOf:n,gE=Fp?Fp.toString:n;function j(l){if(On(l)&&!xt(l)&&!(l instanceof Lt)){if(l instanceof ko)return l;if(en.call(l,"__wrapped__"))return vP(l)}return new ko(l)}var Ja=function(){function l(){}return function(d){if(!kn(d))return{};if(dE)return dE(d);l.prototype=d;var y=new l;return l.prototype=n,y}}();function Np(){}function ko(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}j.templateSettings={escape:Ar,evaluate:Jo,interpolate:xo,variable:"",imports:{_:j}},j.prototype=Np.prototype,j.prototype.constructor=j,ko.prototype=Ja(Np.prototype),ko.prototype.constructor=ko;function Lt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function xD(){var l=new Lt(this.__wrapped__);return l.__actions__=Nr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Nr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Nr(this.__views__),l}function SD(){if(this.__filtered__){var l=new Lt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function ED(){var l=this.__wrapped__.value(),d=this.__dir__,y=xt(l),M=d<0,F=y?l.length:0,V=F4(0,F,this.__views__),K=V.start,Y=V.end,J=Y-K,Ce=M?Y:K-1,xe=this.__iteratees__,Pe=xe.length,De=0,Je=fr(J,this.__takeCount__);if(!y||!M&&F==J&&Je==J)return zE(l,this.__actions__);var at=[];e:for(;J--&&De<Je;){Ce+=d;for(var _t=-1,ct=l[Ce];++_t<Pe;){var Tt=xe[_t],Dt=Tt.iteratee,oo=Tt.type,Ir=Dt(ct);if(oo==D)ct=Ir;else if(!Ir){if(oo==L)continue e;break e}}at[De++]=ct}return at}Lt.prototype=Ja(Np.prototype),Lt.prototype.constructor=Lt;function Bl(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var M=l[d];this.set(M[0],M[1])}}function PD(){this.__data__=zu?zu(null):{},this.size=0}function kD(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function ID(l){var d=this.__data__;if(zu){var y=d[l];return y===c?n:y}return en.call(d,l)?d[l]:n}function _D(l){var d=this.__data__;return zu?d[l]!==n:en.call(d,l)}function $D(l,d){var y=this.__data__;return this.size+=this.has(l)?0:1,y[l]=zu&&d===n?c:d,this}Bl.prototype.clear=PD,Bl.prototype.delete=kD,Bl.prototype.get=ID,Bl.prototype.has=_D,Bl.prototype.set=$D;function Xi(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var M=l[d];this.set(M[0],M[1])}}function MD(){this.__data__=[],this.size=0}function TD(l){var d=this.__data__,y=Dp(d,l);if(y<0)return!1;var M=d.length-1;return y==M?d.pop():Tp.call(d,y,1),--this.size,!0}function RD(l){var d=this.__data__,y=Dp(d,l);return y<0?n:d[y][1]}function OD(l){return Dp(this.__data__,l)>-1}function LD(l,d){var y=this.__data__,M=Dp(y,l);return M<0?(++this.size,y.push([l,d])):y[M][1]=d,this}Xi.prototype.clear=MD,Xi.prototype.delete=TD,Xi.prototype.get=RD,Xi.prototype.has=OD,Xi.prototype.set=LD;function Qi(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var M=l[d];this.set(M[0],M[1])}}function AD(){this.size=0,this.__data__={hash:new Bl,map:new(Du||Xi),string:new Bl}}function FD(l){var d=Xp(this,l).delete(l);return this.size-=d?1:0,d}function ND(l){return Xp(this,l).get(l)}function DD(l){return Xp(this,l).has(l)}function BD(l,d){var y=Xp(this,l),M=y.size;return y.set(l,d),this.size+=y.size==M?0:1,this}Qi.prototype.clear=AD,Qi.prototype.delete=FD,Qi.prototype.get=ND,Qi.prototype.has=DD,Qi.prototype.set=BD;function zl(l){var d=-1,y=l==null?0:l.length;for(this.__data__=new Qi;++d<y;)this.add(l[d])}function zD(l){return this.__data__.set(l,c),this}function jD(l){return this.__data__.has(l)}zl.prototype.add=zl.prototype.push=zD,zl.prototype.has=jD;function ei(l){var d=this.__data__=new Xi(l);this.size=d.size}function HD(){this.__data__=new Xi,this.size=0}function VD(l){var d=this.__data__,y=d.delete(l);return this.size=d.size,y}function UD(l){return this.__data__.get(l)}function WD(l){return this.__data__.has(l)}function GD(l,d){var y=this.__data__;if(y instanceof Xi){var M=y.__data__;if(!Du||M.length<o-1)return M.push([l,d]),this.size=++y.size,this;y=this.__data__=new Qi(M)}return y.set(l,d),this.size=y.size,this}ei.prototype.clear=HD,ei.prototype.delete=VD,ei.prototype.get=UD,ei.prototype.has=WD,ei.prototype.set=GD;function vE(l,d){var y=xt(l),M=!y&&Wl(l),F=!y&&!M&&js(l),V=!y&&!M&&!F&&nc(l),K=y||M||F||V,Y=K?Zv(l.length,nD):[],J=Y.length;for(var Ce in l)(d||en.call(l,Ce))&&!(K&&(Ce=="length"||F&&(Ce=="offset"||Ce=="parent")||V&&(Ce=="buffer"||Ce=="byteLength"||Ce=="byteOffset")||ts(Ce,J)))&&Y.push(Ce);return Y}function yE(l){var d=l.length;return d?l[gy(0,d-1)]:n}function KD(l,d){return Qp(Nr(l),jl(d,0,l.length))}function qD(l){return Qp(Nr(l))}function sy(l,d,y){(y!==n&&!ti(l[d],y)||y===n&&!(d in l))&&Ji(l,d,y)}function Hu(l,d,y){var M=l[d];(!(en.call(l,d)&&ti(M,y))||y===n&&!(d in l))&&Ji(l,d,y)}function Dp(l,d){for(var y=l.length;y--;)if(ti(l[y][0],d))return y;return-1}function YD(l,d,y,M){return Ns(l,function(F,V,K){d(M,F,y(F),K)}),M}function bE(l,d){return l&&wi(d,Zn(d),l)}function XD(l,d){return l&&wi(d,Br(d),l)}function Ji(l,d,y){d=="__proto__"&&Rp?Rp(l,d,{configurable:!0,enumerable:!0,value:y,writable:!0}):l[d]=y}function ly(l,d){for(var y=-1,M=d.length,F=pe(M),V=l==null;++y<M;)F[y]=V?n:jy(l,d[y]);return F}function jl(l,d,y){return l===l&&(y!==n&&(l=l<=y?l:y),d!==n&&(l=l>=d?l:d)),l}function Io(l,d,y,M,F,V){var K,Y=d&h,J=d&m,Ce=d&v;if(y&&(K=F?y(l,M,F,V):y(l)),K!==n)return K;if(!kn(l))return l;var xe=xt(l);if(xe){if(K=D4(l),!Y)return Nr(l,K)}else{var Pe=pr(l),De=Pe==_e||Pe==Se;if(js(l))return VE(l,Y);if(Pe==Oe||Pe==se||De&&!F){if(K=J||De?{}:aP(l),!Y)return J?I4(l,XD(K,l)):k4(l,bE(K,l))}else{if(!cn[Pe])return F?l:{};K=B4(l,Pe,Y)}}V||(V=new ei);var Je=V.get(l);if(Je)return Je;V.set(l,K),NP(l)?l.forEach(function(ct){K.add(Io(ct,d,y,ct,l,V))}):AP(l)&&l.forEach(function(ct,Tt){K.set(Tt,Io(ct,d,y,Tt,l,V))});var at=Ce?J?Iy:ky:J?Br:Zn,_t=xe?n:at(l);return Eo(_t||l,function(ct,Tt){_t&&(Tt=ct,ct=l[Tt]),Hu(K,Tt,Io(ct,d,y,Tt,l,V))}),K}function QD(l){var d=Zn(l);return function(y){return wE(y,l,d)}}function wE(l,d,y){var M=y.length;if(l==null)return!M;for(l=ln(l);M--;){var F=y[M],V=d[F],K=l[F];if(K===n&&!(F in l)||!V(K))return!1}return!0}function CE(l,d,y){if(typeof l!="function")throw new Po(s);return Yu(function(){l.apply(n,y)},d)}function Vu(l,d,y,M){var F=-1,V=Cp,K=!0,Y=l.length,J=[],Ce=d.length;if(!Y)return J;y&&(d=wn(d,to(y))),M?(V=Kv,K=!1):d.length>=o&&(V=Fu,K=!1,d=new zl(d));e:for(;++F<Y;){var xe=l[F],Pe=y==null?xe:y(xe);if(xe=M||xe!==0?xe:0,K&&Pe===Pe){for(var De=Ce;De--;)if(d[De]===Pe)continue e;J.push(xe)}else V(d,Pe,M)||J.push(xe)}return J}var Ns=qE(bi),xE=qE(cy,!0);function JD(l,d){var y=!0;return Ns(l,function(M,F,V){return y=!!d(M,F,V),y}),y}function Bp(l,d,y){for(var M=-1,F=l.length;++M<F;){var V=l[M],K=d(V);if(K!=null&&(Y===n?K===K&&!ro(K):y(K,Y)))var Y=K,J=V}return J}function ZD(l,d,y,M){var F=l.length;for(y=kt(y),y<0&&(y=-y>F?0:F+y),M=M===n||M>F?F:kt(M),M<0&&(M+=F),M=y>M?0:BP(M);y<M;)l[y++]=d;return l}function SE(l,d){var y=[];return Ns(l,function(M,F,V){d(M,F,V)&&y.push(M)}),y}function sr(l,d,y,M,F){var V=-1,K=l.length;for(y||(y=j4),F||(F=[]);++V<K;){var Y=l[V];d>0&&y(Y)?d>1?sr(Y,d-1,y,M,F):Ls(F,Y):M||(F[F.length]=Y)}return F}var ay=YE(),EE=YE(!0);function bi(l,d){return l&&ay(l,d,Zn)}function cy(l,d){return l&&EE(l,d,Zn)}function zp(l,d){return Os(d,function(y){return ns(l[y])})}function Hl(l,d){d=Bs(d,l);for(var y=0,M=d.length;l!=null&&y<M;)l=l[Ci(d[y++])];return y&&y==M?l:n}function PE(l,d,y){var M=d(l);return xt(l)?M:Ls(M,y(l))}function Pr(l){return l==null?l===n?ot:Le:Dl&&Dl in ln(l)?A4(l):q4(l)}function uy(l,d){return l>d}function e4(l,d){return l!=null&&en.call(l,d)}function t4(l,d){return l!=null&&d in ln(l)}function n4(l,d,y){return l>=fr(d,y)&&l<qn(d,y)}function dy(l,d,y){for(var M=y?Kv:Cp,F=l[0].length,V=l.length,K=V,Y=pe(V),J=1/0,Ce=[];K--;){var xe=l[K];K&&d&&(xe=wn(xe,to(d))),J=fr(xe.length,J),Y[K]=!y&&(d||F>=120&&xe.length>=120)?new zl(K&&xe):n}xe=l[0];var Pe=-1,De=Y[0];e:for(;++Pe<F&&Ce.length<J;){var Je=xe[Pe],at=d?d(Je):Je;if(Je=y||Je!==0?Je:0,!(De?Fu(De,at):M(Ce,at,y))){for(K=V;--K;){var _t=Y[K];if(!(_t?Fu(_t,at):M(l[K],at,y)))continue e}De&&De.push(at),Ce.push(Je)}}return Ce}function r4(l,d,y,M){return bi(l,function(F,V,K){d(M,y(F),V,K)}),M}function Uu(l,d,y){d=Bs(d,l),l=fP(l,d);var M=l==null?l:l[Ci($o(d))];return M==null?n:eo(M,l,y)}function kE(l){return On(l)&&Pr(l)==se}function o4(l){return On(l)&&Pr(l)==Te}function i4(l){return On(l)&&Pr(l)==le}function Wu(l,d,y,M,F){return l===d?!0:l==null||d==null||!On(l)&&!On(d)?l!==l&&d!==d:s4(l,d,y,M,Wu,F)}function s4(l,d,y,M,F,V){var K=xt(l),Y=xt(d),J=K?ae:pr(l),Ce=Y?ae:pr(d);J=J==se?Oe:J,Ce=Ce==se?Oe:Ce;var xe=J==Oe,Pe=Ce==Oe,De=J==Ce;if(De&&js(l)){if(!js(d))return!1;K=!0,xe=!1}if(De&&!xe)return V||(V=new ei),K||nc(l)?iP(l,d,y,M,F,V):O4(l,d,J,y,M,F,V);if(!(y&C)){var Je=xe&&en.call(l,"__wrapped__"),at=Pe&&en.call(d,"__wrapped__");if(Je||at){var _t=Je?l.value():l,ct=at?d.value():d;return V||(V=new ei),F(_t,ct,y,M,V)}}return De?(V||(V=new ei),L4(l,d,y,M,F,V)):!1}function l4(l){return On(l)&&pr(l)==Fe}function fy(l,d,y,M){var F=y.length,V=F,K=!M;if(l==null)return!V;for(l=ln(l);F--;){var Y=y[F];if(K&&Y[2]?Y[1]!==l[Y[0]]:!(Y[0]in l))return!1}for(;++F<V;){Y=y[F];var J=Y[0],Ce=l[J],xe=Y[1];if(K&&Y[2]){if(Ce===n&&!(J in l))return!1}else{var Pe=new ei;if(M)var De=M(Ce,xe,J,l,d,Pe);if(!(De===n?Wu(xe,Ce,C|g,M,Pe):De))return!1}}return!0}function IE(l){if(!kn(l)||V4(l))return!1;var d=ns(l)?lD:Va;return d.test(Ul(l))}function a4(l){return On(l)&&Pr(l)==tt}function c4(l){return On(l)&&pr(l)==et}function u4(l){return On(l)&&rh(l.length)&&!!mn[Pr(l)]}function _E(l){return typeof l=="function"?l:l==null?zr:typeof l=="object"?xt(l)?TE(l[0],l[1]):ME(l):XP(l)}function py(l){if(!qu(l))return pD(l);var d=[];for(var y in ln(l))en.call(l,y)&&y!="constructor"&&d.push(y);return d}function d4(l){if(!kn(l))return K4(l);var d=qu(l),y=[];for(var M in l)M=="constructor"&&(d||!en.call(l,M))||y.push(M);return y}function hy(l,d){return l<d}function $E(l,d){var y=-1,M=Dr(l)?pe(l.length):[];return Ns(l,function(F,V,K){M[++y]=d(F,V,K)}),M}function ME(l){var d=$y(l);return d.length==1&&d[0][2]?uP(d[0][0],d[0][1]):function(y){return y===l||fy(y,l,d)}}function TE(l,d){return Ty(l)&&cP(d)?uP(Ci(l),d):function(y){var M=jy(y,l);return M===n&&M===d?Hy(y,l):Wu(d,M,C|g)}}function jp(l,d,y,M,F){l!==d&&ay(d,function(V,K){if(F||(F=new ei),kn(V))f4(l,d,K,y,jp,M,F);else{var Y=M?M(Oy(l,K),V,K+"",l,d,F):n;Y===n&&(Y=V),sy(l,K,Y)}},Br)}function f4(l,d,y,M,F,V,K){var Y=Oy(l,y),J=Oy(d,y),Ce=K.get(J);if(Ce){sy(l,y,Ce);return}var xe=V?V(Y,J,y+"",l,d,K):n,Pe=xe===n;if(Pe){var De=xt(J),Je=!De&&js(J),at=!De&&!Je&&nc(J);xe=J,De||Je||at?xt(Y)?xe=Y:Nn(Y)?xe=Nr(Y):Je?(Pe=!1,xe=VE(J,!0)):at?(Pe=!1,xe=UE(J,!0)):xe=[]:Xu(J)||Wl(J)?(xe=Y,Wl(Y)?xe=zP(Y):(!kn(Y)||ns(Y))&&(xe=aP(J))):Pe=!1}Pe&&(K.set(J,xe),F(xe,J,M,V,K),K.delete(J)),sy(l,y,xe)}function RE(l,d){var y=l.length;if(y)return d+=d<0?y:0,ts(d,y)?l[d]:n}function OE(l,d,y){d.length?d=wn(d,function(V){return xt(V)?function(K){return Hl(K,V.length===1?V[0]:V)}:V}):d=[zr];var M=-1;d=wn(d,to(st()));var F=$E(l,function(V,K,Y){var J=wn(d,function(Ce){return Ce(V)});return{criteria:J,index:++M,value:V}});return BN(F,function(V,K){return P4(V,K,y)})}function p4(l,d){return LE(l,d,function(y,M){return Hy(l,M)})}function LE(l,d,y){for(var M=-1,F=d.length,V={};++M<F;){var K=d[M],Y=Hl(l,K);y(Y,K)&&Gu(V,Bs(K,l),Y)}return V}function h4(l){return function(d){return Hl(d,l)}}function my(l,d,y,M){var F=M?DN:Wa,V=-1,K=d.length,Y=l;for(l===d&&(d=Nr(d)),y&&(Y=wn(l,to(y)));++V<K;)for(var J=0,Ce=d[V],xe=y?y(Ce):Ce;(J=F(Y,xe,J,M))>-1;)Y!==l&&Tp.call(Y,J,1),Tp.call(l,J,1);return l}function AE(l,d){for(var y=l?d.length:0,M=y-1;y--;){var F=d[y];if(y==M||F!==V){var V=F;ts(F)?Tp.call(l,F,1):by(l,F)}}return l}function gy(l,d){return l+Lp(mE()*(d-l+1))}function m4(l,d,y,M){for(var F=-1,V=qn(Op((d-l)/(y||1)),0),K=pe(V);V--;)K[M?V:++F]=l,l+=y;return K}function vy(l,d){var y="";if(!l||d<1||d>A)return y;do d%2&&(y+=l),d=Lp(d/2),d&&(l+=l);while(d);return y}function $t(l,d){return Ly(dP(l,d,zr),l+"")}function g4(l){return yE(rc(l))}function v4(l,d){var y=rc(l);return Qp(y,jl(d,0,y.length))}function Gu(l,d,y,M){if(!kn(l))return l;d=Bs(d,l);for(var F=-1,V=d.length,K=V-1,Y=l;Y!=null&&++F<V;){var J=Ci(d[F]),Ce=y;if(J==="__proto__"||J==="constructor"||J==="prototype")return l;if(F!=K){var xe=Y[J];Ce=M?M(xe,J,Y):n,Ce===n&&(Ce=kn(xe)?xe:ts(d[F+1])?[]:{})}Hu(Y,J,Ce),Y=Y[J]}return l}var FE=Ap?function(l,d){return Ap.set(l,d),l}:zr,y4=Rp?function(l,d){return Rp(l,"toString",{configurable:!0,enumerable:!1,value:Uy(d),writable:!0})}:zr;function b4(l){return Qp(rc(l))}function _o(l,d,y){var M=-1,F=l.length;d<0&&(d=-d>F?0:F+d),y=y>F?F:y,y<0&&(y+=F),F=d>y?0:y-d>>>0,d>>>=0;for(var V=pe(F);++M<F;)V[M]=l[M+d];return V}function w4(l,d){var y;return Ns(l,function(M,F,V){return y=d(M,F,V),!y}),!!y}function Hp(l,d,y){var M=0,F=l==null?M:l.length;if(typeof d=="number"&&d===d&&F<=ie){for(;M<F;){var V=M+F>>>1,K=l[V];K!==null&&!ro(K)&&(y?K<=d:K<d)?M=V+1:F=V}return F}return yy(l,d,zr,y)}function yy(l,d,y,M){var F=0,V=l==null?0:l.length;if(V===0)return 0;d=y(d);for(var K=d!==d,Y=d===null,J=ro(d),Ce=d===n;F<V;){var xe=Lp((F+V)/2),Pe=y(l[xe]),De=Pe!==n,Je=Pe===null,at=Pe===Pe,_t=ro(Pe);if(K)var ct=M||at;else Ce?ct=at&&(M||De):Y?ct=at&&De&&(M||!Je):J?ct=at&&De&&!Je&&(M||!_t):Je||_t?ct=!1:ct=M?Pe<=d:Pe<d;ct?F=xe+1:V=xe}return fr(V,X)}function NE(l,d){for(var y=-1,M=l.length,F=0,V=[];++y<M;){var K=l[y],Y=d?d(K):K;if(!y||!ti(Y,J)){var J=Y;V[F++]=K===0?0:K}}return V}function DE(l){return typeof l=="number"?l:ro(l)?G:+l}function no(l){if(typeof l=="string")return l;if(xt(l))return wn(l,no)+"";if(ro(l))return gE?gE.call(l):"";var d=l+"";return d=="0"&&1/l==-W?"-0":d}function Ds(l,d,y){var M=-1,F=Cp,V=l.length,K=!0,Y=[],J=Y;if(y)K=!1,F=Kv;else if(V>=o){var Ce=d?null:T4(l);if(Ce)return Sp(Ce);K=!1,F=Fu,J=new zl}else J=d?[]:Y;e:for(;++M<V;){var xe=l[M],Pe=d?d(xe):xe;if(xe=y||xe!==0?xe:0,K&&Pe===Pe){for(var De=J.length;De--;)if(J[De]===Pe)continue e;d&&J.push(Pe),Y.push(xe)}else F(J,Pe,y)||(J!==Y&&J.push(Pe),Y.push(xe))}return Y}function by(l,d){return d=Bs(d,l),l=fP(l,d),l==null||delete l[Ci($o(d))]}function BE(l,d,y,M){return Gu(l,d,y(Hl(l,d)),M)}function Vp(l,d,y,M){for(var F=l.length,V=M?F:-1;(M?V--:++V<F)&&d(l[V],V,l););return y?_o(l,M?0:V,M?V+1:F):_o(l,M?V+1:0,M?F:V)}function zE(l,d){var y=l;return y instanceof Lt&&(y=y.value()),qv(d,function(M,F){return F.func.apply(F.thisArg,Ls([M],F.args))},y)}function wy(l,d,y){var M=l.length;if(M<2)return M?Ds(l[0]):[];for(var F=-1,V=pe(M);++F<M;)for(var K=l[F],Y=-1;++Y<M;)Y!=F&&(V[F]=Vu(V[F]||K,l[Y],d,y));return Ds(sr(V,1),d,y)}function jE(l,d,y){for(var M=-1,F=l.length,V=d.length,K={};++M<F;){var Y=M<V?d[M]:n;y(K,l[M],Y)}return K}function Cy(l){return Nn(l)?l:[]}function xy(l){return typeof l=="function"?l:zr}function Bs(l,d){return xt(l)?l:Ty(l,d)?[l]:gP(Qt(l))}var C4=$t;function zs(l,d,y){var M=l.length;return y=y===n?M:y,!d&&y>=M?l:_o(l,d,y)}var HE=aD||function(l){return ir.clearTimeout(l)};function VE(l,d){if(d)return l.slice();var y=l.length,M=uE?uE(y):new l.constructor(y);return l.copy(M),M}function Sy(l){var d=new l.constructor(l.byteLength);return new $p(d).set(new $p(l)),d}function x4(l,d){var y=d?Sy(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.byteLength)}function S4(l){var d=new l.constructor(l.source,an.exec(l));return d.lastIndex=l.lastIndex,d}function E4(l){return ju?ln(ju.call(l)):{}}function UE(l,d){var y=d?Sy(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.length)}function WE(l,d){if(l!==d){var y=l!==n,M=l===null,F=l===l,V=ro(l),K=d!==n,Y=d===null,J=d===d,Ce=ro(d);if(!Y&&!Ce&&!V&&l>d||V&&K&&J&&!Y&&!Ce||M&&K&&J||!y&&J||!F)return 1;if(!M&&!V&&!Ce&&l<d||Ce&&y&&F&&!M&&!V||Y&&y&&F||!K&&F||!J)return-1}return 0}function P4(l,d,y){for(var M=-1,F=l.criteria,V=d.criteria,K=F.length,Y=y.length;++M<K;){var J=WE(F[M],V[M]);if(J){if(M>=Y)return J;var Ce=y[M];return J*(Ce=="desc"?-1:1)}}return l.index-d.index}function GE(l,d,y,M){for(var F=-1,V=l.length,K=y.length,Y=-1,J=d.length,Ce=qn(V-K,0),xe=pe(J+Ce),Pe=!M;++Y<J;)xe[Y]=d[Y];for(;++F<K;)(Pe||F<V)&&(xe[y[F]]=l[F]);for(;Ce--;)xe[Y++]=l[F++];return xe}function KE(l,d,y,M){for(var F=-1,V=l.length,K=-1,Y=y.length,J=-1,Ce=d.length,xe=qn(V-Y,0),Pe=pe(xe+Ce),De=!M;++F<xe;)Pe[F]=l[F];for(var Je=F;++J<Ce;)Pe[Je+J]=d[J];for(;++K<Y;)(De||F<V)&&(Pe[Je+y[K]]=l[F++]);return Pe}function Nr(l,d){var y=-1,M=l.length;for(d||(d=pe(M));++y<M;)d[y]=l[y];return d}function wi(l,d,y,M){var F=!y;y||(y={});for(var V=-1,K=d.length;++V<K;){var Y=d[V],J=M?M(y[Y],l[Y],Y,y,l):n;J===n&&(J=l[Y]),F?Ji(y,Y,J):Hu(y,Y,J)}return y}function k4(l,d){return wi(l,My(l),d)}function I4(l,d){return wi(l,sP(l),d)}function Up(l,d){return function(y,M){var F=xt(y)?RN:YD,V=d?d():{};return F(y,l,st(M,2),V)}}function Za(l){return $t(function(d,y){var M=-1,F=y.length,V=F>1?y[F-1]:n,K=F>2?y[2]:n;for(V=l.length>3&&typeof V=="function"?(F--,V):n,K&&kr(y[0],y[1],K)&&(V=F<3?n:V,F=1),d=ln(d);++M<F;){var Y=y[M];Y&&l(d,Y,M,V)}return d})}function qE(l,d){return function(y,M){if(y==null)return y;if(!Dr(y))return l(y,M);for(var F=y.length,V=d?F:-1,K=ln(y);(d?V--:++V<F)&&M(K[V],V,K)!==!1;);return y}}function YE(l){return function(d,y,M){for(var F=-1,V=ln(d),K=M(d),Y=K.length;Y--;){var J=K[l?Y:++F];if(y(V[J],J,V)===!1)break}return d}}function _4(l,d,y){var M=d&x,F=Ku(l);function V(){var K=this&&this!==ir&&this instanceof V?F:l;return K.apply(M?y:this,arguments)}return V}function XE(l){return function(d){d=Qt(d);var y=Ga(d)?Zo(d):n,M=y?y[0]:d.charAt(0),F=y?zs(y,1).join(""):d.slice(1);return M[l]()+F}}function ec(l){return function(d){return qv(qP(KP(d).replace(yN,"")),l,"")}}function Ku(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var y=Ja(l.prototype),M=l.apply(y,d);return kn(M)?M:y}}function $4(l,d,y){var M=Ku(l);function F(){for(var V=arguments.length,K=pe(V),Y=V,J=tc(F);Y--;)K[Y]=arguments[Y];var Ce=V<3&&K[0]!==J&&K[V-1]!==J?[]:As(K,J);if(V-=Ce.length,V<y)return tP(l,d,Wp,F.placeholder,n,K,Ce,n,n,y-V);var xe=this&&this!==ir&&this instanceof F?M:l;return eo(xe,this,K)}return F}function QE(l){return function(d,y,M){var F=ln(d);if(!Dr(d)){var V=st(y,3);d=Zn(d),y=function(Y){return V(F[Y],Y,F)}}var K=l(d,y,M);return K>-1?F[V?d[K]:K]:n}}function JE(l){return es(function(d){var y=d.length,M=y,F=ko.prototype.thru;for(l&&d.reverse();M--;){var V=d[M];if(typeof V!="function")throw new Po(s);if(F&&!K&&Yp(V)=="wrapper")var K=new ko([],!0)}for(M=K?M:y;++M<y;){V=d[M];var Y=Yp(V),J=Y=="wrapper"?_y(V):n;J&&Ry(J[0])&&J[1]==(k|w|I|$)&&!J[4].length&&J[9]==1?K=K[Yp(J[0])].apply(K,J[3]):K=V.length==1&&Ry(V)?K[Y]():K.thru(V)}return function(){var Ce=arguments,xe=Ce[0];if(K&&Ce.length==1&&xt(xe))return K.plant(xe).value();for(var Pe=0,De=y?d[Pe].apply(this,Ce):xe;++Pe<y;)De=d[Pe].call(this,De);return De}})}function Wp(l,d,y,M,F,V,K,Y,J,Ce){var xe=d&k,Pe=d&x,De=d&b,Je=d&(w|E),at=d&R,_t=De?n:Ku(l);function ct(){for(var Tt=arguments.length,Dt=pe(Tt),oo=Tt;oo--;)Dt[oo]=arguments[oo];if(Je)var Ir=tc(ct),io=jN(Dt,Ir);if(M&&(Dt=GE(Dt,M,F,Je)),V&&(Dt=KE(Dt,V,K,Je)),Tt-=io,Je&&Tt<Ce){var Dn=As(Dt,Ir);return tP(l,d,Wp,ct.placeholder,y,Dt,Dn,Y,J,Ce-Tt)}var ni=Pe?y:this,os=De?ni[l]:l;return Tt=Dt.length,Y?Dt=Y4(Dt,Y):at&&Tt>1&&Dt.reverse(),xe&&J<Tt&&(Dt.length=J),this&&this!==ir&&this instanceof ct&&(os=_t||Ku(os)),os.apply(ni,Dt)}return ct}function ZE(l,d){return function(y,M){return r4(y,l,d(M),{})}}function Gp(l,d){return function(y,M){var F;if(y===n&&M===n)return d;if(y!==n&&(F=y),M!==n){if(F===n)return M;typeof y=="string"||typeof M=="string"?(y=no(y),M=no(M)):(y=DE(y),M=DE(M)),F=l(y,M)}return F}}function Ey(l){return es(function(d){return d=wn(d,to(st())),$t(function(y){var M=this;return l(d,function(F){return eo(F,M,y)})})})}function Kp(l,d){d=d===n?" ":no(d);var y=d.length;if(y<2)return y?vy(d,l):d;var M=vy(d,Op(l/Ka(d)));return Ga(d)?zs(Zo(M),0,l).join(""):M.slice(0,l)}function M4(l,d,y,M){var F=d&x,V=Ku(l);function K(){for(var Y=-1,J=arguments.length,Ce=-1,xe=M.length,Pe=pe(xe+J),De=this&&this!==ir&&this instanceof K?V:l;++Ce<xe;)Pe[Ce]=M[Ce];for(;J--;)Pe[Ce++]=arguments[++Y];return eo(De,F?y:this,Pe)}return K}function eP(l){return function(d,y,M){return M&&typeof M!="number"&&kr(d,y,M)&&(y=M=n),d=rs(d),y===n?(y=d,d=0):y=rs(y),M=M===n?d<y?1:-1:rs(M),m4(d,y,M,l)}}function qp(l){return function(d,y){return typeof d=="string"&&typeof y=="string"||(d=Mo(d),y=Mo(y)),l(d,y)}}function tP(l,d,y,M,F,V,K,Y,J,Ce){var xe=d&w,Pe=xe?K:n,De=xe?n:K,Je=xe?V:n,at=xe?n:V;d|=xe?I:_,d&=~(xe?_:I),d&P||(d&=~(x|b));var _t=[l,d,F,Je,Pe,at,De,Y,J,Ce],ct=y.apply(n,_t);return Ry(l)&&pP(ct,_t),ct.placeholder=M,hP(ct,l,d)}function Py(l){var d=Kn[l];return function(y,M){if(y=Mo(y),M=M==null?0:fr(kt(M),292),M&&hE(y)){var F=(Qt(y)+"e").split("e"),V=d(F[0]+"e"+(+F[1]+M));return F=(Qt(V)+"e").split("e"),+(F[0]+"e"+(+F[1]-M))}return d(y)}}var T4=Xa&&1/Sp(new Xa([,-0]))[1]==W?function(l){return new Xa(l)}:Ky;function nP(l){return function(d){var y=pr(d);return y==Fe?ty(d):y==et?qN(d):zN(d,l(d))}}function Zi(l,d,y,M,F,V,K,Y){var J=d&b;if(!J&&typeof l!="function")throw new Po(s);var Ce=M?M.length:0;if(Ce||(d&=~(I|_),M=F=n),K=K===n?K:qn(kt(K),0),Y=Y===n?Y:kt(Y),Ce-=F?F.length:0,d&_){var xe=M,Pe=F;M=F=n}var De=J?n:_y(l),Je=[l,d,y,M,F,xe,Pe,V,K,Y];if(De&&G4(Je,De),l=Je[0],d=Je[1],y=Je[2],M=Je[3],F=Je[4],Y=Je[9]=Je[9]===n?J?0:l.length:qn(Je[9]-Ce,0),!Y&&d&(w|E)&&(d&=~(w|E)),!d||d==x)var at=_4(l,d,y);else d==w||d==E?at=$4(l,d,Y):(d==I||d==(x|I))&&!F.length?at=M4(l,d,y,M):at=Wp.apply(n,Je);var _t=De?FE:pP;return hP(_t(at,Je),l,d)}function rP(l,d,y,M){return l===n||ti(l,Ya[y])&&!en.call(M,y)?d:l}function oP(l,d,y,M,F,V){return kn(l)&&kn(d)&&(V.set(d,l),jp(l,d,n,oP,V),V.delete(d)),l}function R4(l){return Xu(l)?n:l}function iP(l,d,y,M,F,V){var K=y&C,Y=l.length,J=d.length;if(Y!=J&&!(K&&J>Y))return!1;var Ce=V.get(l),xe=V.get(d);if(Ce&&xe)return Ce==d&&xe==l;var Pe=-1,De=!0,Je=y&g?new zl:n;for(V.set(l,d),V.set(d,l);++Pe<Y;){var at=l[Pe],_t=d[Pe];if(M)var ct=K?M(_t,at,Pe,d,l,V):M(at,_t,Pe,l,d,V);if(ct!==n){if(ct)continue;De=!1;break}if(Je){if(!Yv(d,function(Tt,Dt){if(!Fu(Je,Dt)&&(at===Tt||F(at,Tt,y,M,V)))return Je.push(Dt)})){De=!1;break}}else if(!(at===_t||F(at,_t,y,M,V))){De=!1;break}}return V.delete(l),V.delete(d),De}function O4(l,d,y,M,F,V,K){switch(y){case ne:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case Te:return!(l.byteLength!=d.byteLength||!V(new $p(l),new $p(d)));case de:case le:case Re:return ti(+l,+d);case be:return l.name==d.name&&l.message==d.message;case tt:case Pt:return l==d+"";case Fe:var Y=ty;case et:var J=M&C;if(Y||(Y=Sp),l.size!=d.size&&!J)return!1;var Ce=K.get(l);if(Ce)return Ce==d;M|=g,K.set(l,d);var xe=iP(Y(l),Y(d),M,F,V,K);return K.delete(l),xe;case ut:if(ju)return ju.call(l)==ju.call(d)}return!1}function L4(l,d,y,M,F,V){var K=y&C,Y=ky(l),J=Y.length,Ce=ky(d),xe=Ce.length;if(J!=xe&&!K)return!1;for(var Pe=J;Pe--;){var De=Y[Pe];if(!(K?De in d:en.call(d,De)))return!1}var Je=V.get(l),at=V.get(d);if(Je&&at)return Je==d&&at==l;var _t=!0;V.set(l,d),V.set(d,l);for(var ct=K;++Pe<J;){De=Y[Pe];var Tt=l[De],Dt=d[De];if(M)var oo=K?M(Dt,Tt,De,d,l,V):M(Tt,Dt,De,l,d,V);if(!(oo===n?Tt===Dt||F(Tt,Dt,y,M,V):oo)){_t=!1;break}ct||(ct=De=="constructor")}if(_t&&!ct){var Ir=l.constructor,io=d.constructor;Ir!=io&&"constructor"in l&&"constructor"in d&&!(typeof Ir=="function"&&Ir instanceof Ir&&typeof io=="function"&&io instanceof io)&&(_t=!1)}return V.delete(l),V.delete(d),_t}function es(l){return Ly(dP(l,n,wP),l+"")}function ky(l){return PE(l,Zn,My)}function Iy(l){return PE(l,Br,sP)}var _y=Ap?function(l){return Ap.get(l)}:Ky;function Yp(l){for(var d=l.name+"",y=Qa[d],M=en.call(Qa,d)?y.length:0;M--;){var F=y[M],V=F.func;if(V==null||V==l)return F.name}return d}function tc(l){var d=en.call(j,"placeholder")?j:l;return d.placeholder}function st(){var l=j.iteratee||Wy;return l=l===Wy?_E:l,arguments.length?l(arguments[0],arguments[1]):l}function Xp(l,d){var y=l.__data__;return H4(d)?y[typeof d=="string"?"string":"hash"]:y.map}function $y(l){for(var d=Zn(l),y=d.length;y--;){var M=d[y],F=l[M];d[y]=[M,F,cP(F)]}return d}function Vl(l,d){var y=WN(l,d);return IE(y)?y:n}function A4(l){var d=en.call(l,Dl),y=l[Dl];try{l[Dl]=n;var M=!0}catch(V){}var F=Ip.call(l);return M&&(d?l[Dl]=y:delete l[Dl]),F}var My=ry?function(l){return l==null?[]:(l=ln(l),Os(ry(l),function(d){return fE.call(l,d)}))}:qy,sP=ry?function(l){for(var d=[];l;)Ls(d,My(l)),l=Mp(l);return d}:qy,pr=Pr;(oy&&pr(new oy(new ArrayBuffer(1)))!=ne||Du&&pr(new Du)!=Fe||iy&&pr(iy.resolve())!=Ze||Xa&&pr(new Xa)!=et||Bu&&pr(new Bu)!=It)&&(pr=function(l){var d=Pr(l),y=d==Oe?l.constructor:n,M=y?Ul(y):"";if(M)switch(M){case vD:return ne;case yD:return Fe;case bD:return Ze;case wD:return et;case CD:return It}return d});function F4(l,d,y){for(var M=-1,F=y.length;++M<F;){var V=y[M],K=V.size;switch(V.type){case"drop":l+=K;break;case"dropRight":d-=K;break;case"take":d=fr(d,l+K);break;case"takeRight":l=qn(l,d-K);break}}return{start:l,end:d}}function N4(l){var d=l.match(it);return d?d[1].split(ve):[]}function lP(l,d,y){d=Bs(d,l);for(var M=-1,F=d.length,V=!1;++M<F;){var K=Ci(d[M]);if(!(V=l!=null&&y(l,K)))break;l=l[K]}return V||++M!=F?V:(F=l==null?0:l.length,!!F&&rh(F)&&ts(K,F)&&(xt(l)||Wl(l)))}function D4(l){var d=l.length,y=new l.constructor(d);return d&&typeof l[0]=="string"&&en.call(l,"index")&&(y.index=l.index,y.input=l.input),y}function aP(l){return typeof l.constructor=="function"&&!qu(l)?Ja(Mp(l)):{}}function B4(l,d,y){var M=l.constructor;switch(d){case Te:return Sy(l);case de:case le:return new M(+l);case ne:return x4(l,y);case ke:case Ee:case $e:case Ge:case Ct:case zt:case jt:case Jn:case pn:return UE(l,y);case Fe:return new M;case Re:case Pt:return new M(l);case tt:return S4(l);case et:return new M;case ut:return E4(l)}}function z4(l,d){var y=d.length;if(!y)return l;var M=y-1;return d[M]=(y>1?"& ":"")+d[M],d=d.join(y>2?", ":" "),l.replace(Be,`{
|
|
241
|
+
/* [wrapped with `+d+`] */
|
|
242
|
+
`)}function j4(l){return xt(l)||Wl(l)||!!(pE&&l&&l[pE])}function ts(l,d){var y=typeof l;return d=d==null?A:d,!!d&&(y=="number"||y!="symbol"&&ZF.test(l))&&l>-1&&l%1==0&&l<d}function kr(l,d,y){if(!kn(y))return!1;var M=typeof d;return(M=="number"?Dr(y)&&ts(d,y.length):M=="string"&&d in y)?ti(y[d],l):!1}function Ty(l,d){if(xt(l))return!1;var y=typeof l;return y=="number"||y=="symbol"||y=="boolean"||l==null||ro(l)?!0:Fn.test(l)||!Ot.test(l)||d!=null&&l in ln(d)}function H4(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function Ry(l){var d=Yp(l),y=j[d];if(typeof y!="function"||!(d in Lt.prototype))return!1;if(l===y)return!0;var M=_y(y);return!!M&&l===M[0]}function V4(l){return!!cE&&cE in l}var U4=Pp?ns:Yy;function qu(l){var d=l&&l.constructor,y=typeof d=="function"&&d.prototype||Ya;return l===y}function cP(l){return l===l&&!kn(l)}function uP(l,d){return function(y){return y==null?!1:y[l]===d&&(d!==n||l in ln(y))}}function W4(l){var d=th(l,function(M){return y.size===f&&y.clear(),M}),y=d.cache;return d}function G4(l,d){var y=l[1],M=d[1],F=y|M,V=F<(x|b|k),K=M==k&&y==w||M==k&&y==$&&l[7].length<=d[8]||M==(k|$)&&d[7].length<=d[8]&&y==w;if(!(V||K))return l;M&x&&(l[2]=d[2],F|=y&x?0:P);var Y=d[3];if(Y){var J=l[3];l[3]=J?GE(J,Y,d[4]):Y,l[4]=J?As(l[3],p):d[4]}return Y=d[5],Y&&(J=l[5],l[5]=J?KE(J,Y,d[6]):Y,l[6]=J?As(l[5],p):d[6]),Y=d[7],Y&&(l[7]=Y),M&k&&(l[8]=l[8]==null?d[8]:fr(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=F,l}function K4(l){var d=[];if(l!=null)for(var y in ln(l))d.push(y);return d}function q4(l){return Ip.call(l)}function dP(l,d,y){return d=qn(d===n?l.length-1:d,0),function(){for(var M=arguments,F=-1,V=qn(M.length-d,0),K=pe(V);++F<V;)K[F]=M[d+F];F=-1;for(var Y=pe(d+1);++F<d;)Y[F]=M[F];return Y[d]=y(K),eo(l,this,Y)}}function fP(l,d){return d.length<2?l:Hl(l,_o(d,0,-1))}function Y4(l,d){for(var y=l.length,M=fr(d.length,y),F=Nr(l);M--;){var V=d[M];l[M]=ts(V,y)?F[V]:n}return l}function Oy(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var pP=mP(FE),Yu=uD||function(l,d){return ir.setTimeout(l,d)},Ly=mP(y4);function hP(l,d,y){var M=d+"";return Ly(l,z4(M,X4(N4(M),y)))}function mP(l){var d=0,y=0;return function(){var M=hD(),F=H-(M-y);if(y=M,F>0){if(++d>=U)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qp(l,d){var y=-1,M=l.length,F=M-1;for(d=d===n?M:d;++y<d;){var V=gy(y,F),K=l[V];l[V]=l[y],l[y]=K}return l.length=d,l}var gP=W4(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(ce,function(y,M,F,V){d.push(F?V.replace(lt,"$1"):M||y)}),d});function Ci(l){if(typeof l=="string"||ro(l))return l;var d=l+"";return d=="0"&&1/l==-W?"-0":d}function Ul(l){if(l!=null){try{return kp.call(l)}catch(d){}try{return l+""}catch(d){}}return""}function X4(l,d){return Eo(ee,function(y){var M="_."+y[0];d&y[1]&&!Cp(l,M)&&l.push(M)}),l.sort()}function vP(l){if(l instanceof Lt)return l.clone();var d=new ko(l.__wrapped__,l.__chain__);return d.__actions__=Nr(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function Q4(l,d,y){(y?kr(l,d,y):d===n)?d=1:d=qn(kt(d),0);var M=l==null?0:l.length;if(!M||d<1)return[];for(var F=0,V=0,K=pe(Op(M/d));F<M;)K[V++]=_o(l,F,F+=d);return K}function J4(l){for(var d=-1,y=l==null?0:l.length,M=0,F=[];++d<y;){var V=l[d];V&&(F[M++]=V)}return F}function Z4(){var l=arguments.length;if(!l)return[];for(var d=pe(l-1),y=arguments[0],M=l;M--;)d[M-1]=arguments[M];return Ls(xt(y)?Nr(y):[y],sr(d,1))}var e5=$t(function(l,d){return Nn(l)?Vu(l,sr(d,1,Nn,!0)):[]}),t5=$t(function(l,d){var y=$o(d);return Nn(y)&&(y=n),Nn(l)?Vu(l,sr(d,1,Nn,!0),st(y,2)):[]}),n5=$t(function(l,d){var y=$o(d);return Nn(y)&&(y=n),Nn(l)?Vu(l,sr(d,1,Nn,!0),n,y):[]});function r5(l,d,y){var M=l==null?0:l.length;return M?(d=y||d===n?1:kt(d),_o(l,d<0?0:d,M)):[]}function o5(l,d,y){var M=l==null?0:l.length;return M?(d=y||d===n?1:kt(d),d=M-d,_o(l,0,d<0?0:d)):[]}function i5(l,d){return l&&l.length?Vp(l,st(d,3),!0,!0):[]}function s5(l,d){return l&&l.length?Vp(l,st(d,3),!0):[]}function l5(l,d,y,M){var F=l==null?0:l.length;return F?(y&&typeof y!="number"&&kr(l,d,y)&&(y=0,M=F),ZD(l,d,y,M)):[]}function yP(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=y==null?0:kt(y);return F<0&&(F=qn(M+F,0)),xp(l,st(d,3),F)}function bP(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=M-1;return y!==n&&(F=kt(y),F=y<0?qn(M+F,0):fr(F,M-1)),xp(l,st(d,3),F,!0)}function wP(l){var d=l==null?0:l.length;return d?sr(l,1):[]}function a5(l){var d=l==null?0:l.length;return d?sr(l,W):[]}function c5(l,d){var y=l==null?0:l.length;return y?(d=d===n?1:kt(d),sr(l,d)):[]}function u5(l){for(var d=-1,y=l==null?0:l.length,M={};++d<y;){var F=l[d];M[F[0]]=F[1]}return M}function CP(l){return l&&l.length?l[0]:n}function d5(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=y==null?0:kt(y);return F<0&&(F=qn(M+F,0)),Wa(l,d,F)}function f5(l){var d=l==null?0:l.length;return d?_o(l,0,-1):[]}var p5=$t(function(l){var d=wn(l,Cy);return d.length&&d[0]===l[0]?dy(d):[]}),h5=$t(function(l){var d=$o(l),y=wn(l,Cy);return d===$o(y)?d=n:y.pop(),y.length&&y[0]===l[0]?dy(y,st(d,2)):[]}),m5=$t(function(l){var d=$o(l),y=wn(l,Cy);return d=typeof d=="function"?d:n,d&&y.pop(),y.length&&y[0]===l[0]?dy(y,n,d):[]});function g5(l,d){return l==null?"":fD.call(l,d)}function $o(l){var d=l==null?0:l.length;return d?l[d-1]:n}function v5(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=M;return y!==n&&(F=kt(y),F=F<0?qn(M+F,0):fr(F,M-1)),d===d?XN(l,d,F):xp(l,tE,F,!0)}function y5(l,d){return l&&l.length?RE(l,kt(d)):n}var b5=$t(xP);function xP(l,d){return l&&l.length&&d&&d.length?my(l,d):l}function w5(l,d,y){return l&&l.length&&d&&d.length?my(l,d,st(y,2)):l}function C5(l,d,y){return l&&l.length&&d&&d.length?my(l,d,n,y):l}var x5=es(function(l,d){var y=l==null?0:l.length,M=ly(l,d);return AE(l,wn(d,function(F){return ts(F,y)?+F:F}).sort(WE)),M});function S5(l,d){var y=[];if(!(l&&l.length))return y;var M=-1,F=[],V=l.length;for(d=st(d,3);++M<V;){var K=l[M];d(K,M,l)&&(y.push(K),F.push(M))}return AE(l,F),y}function Ay(l){return l==null?l:gD.call(l)}function E5(l,d,y){var M=l==null?0:l.length;return M?(y&&typeof y!="number"&&kr(l,d,y)?(d=0,y=M):(d=d==null?0:kt(d),y=y===n?M:kt(y)),_o(l,d,y)):[]}function P5(l,d){return Hp(l,d)}function k5(l,d,y){return yy(l,d,st(y,2))}function I5(l,d){var y=l==null?0:l.length;if(y){var M=Hp(l,d);if(M<y&&ti(l[M],d))return M}return-1}function _5(l,d){return Hp(l,d,!0)}function $5(l,d,y){return yy(l,d,st(y,2),!0)}function M5(l,d){var y=l==null?0:l.length;if(y){var M=Hp(l,d,!0)-1;if(ti(l[M],d))return M}return-1}function T5(l){return l&&l.length?NE(l):[]}function R5(l,d){return l&&l.length?NE(l,st(d,2)):[]}function O5(l){var d=l==null?0:l.length;return d?_o(l,1,d):[]}function L5(l,d,y){return l&&l.length?(d=y||d===n?1:kt(d),_o(l,0,d<0?0:d)):[]}function A5(l,d,y){var M=l==null?0:l.length;return M?(d=y||d===n?1:kt(d),d=M-d,_o(l,d<0?0:d,M)):[]}function F5(l,d){return l&&l.length?Vp(l,st(d,3),!1,!0):[]}function N5(l,d){return l&&l.length?Vp(l,st(d,3)):[]}var D5=$t(function(l){return Ds(sr(l,1,Nn,!0))}),B5=$t(function(l){var d=$o(l);return Nn(d)&&(d=n),Ds(sr(l,1,Nn,!0),st(d,2))}),z5=$t(function(l){var d=$o(l);return d=typeof d=="function"?d:n,Ds(sr(l,1,Nn,!0),n,d)});function j5(l){return l&&l.length?Ds(l):[]}function H5(l,d){return l&&l.length?Ds(l,st(d,2)):[]}function V5(l,d){return d=typeof d=="function"?d:n,l&&l.length?Ds(l,n,d):[]}function Fy(l){if(!(l&&l.length))return[];var d=0;return l=Os(l,function(y){if(Nn(y))return d=qn(y.length,d),!0}),Zv(d,function(y){return wn(l,Xv(y))})}function SP(l,d){if(!(l&&l.length))return[];var y=Fy(l);return d==null?y:wn(y,function(M){return eo(d,n,M)})}var U5=$t(function(l,d){return Nn(l)?Vu(l,d):[]}),W5=$t(function(l){return wy(Os(l,Nn))}),G5=$t(function(l){var d=$o(l);return Nn(d)&&(d=n),wy(Os(l,Nn),st(d,2))}),K5=$t(function(l){var d=$o(l);return d=typeof d=="function"?d:n,wy(Os(l,Nn),n,d)}),q5=$t(Fy);function Y5(l,d){return jE(l||[],d||[],Hu)}function X5(l,d){return jE(l||[],d||[],Gu)}var Q5=$t(function(l){var d=l.length,y=d>1?l[d-1]:n;return y=typeof y=="function"?(l.pop(),y):n,SP(l,y)});function EP(l){var d=j(l);return d.__chain__=!0,d}function J5(l,d){return d(l),l}function Jp(l,d){return d(l)}var Z5=es(function(l){var d=l.length,y=d?l[0]:0,M=this.__wrapped__,F=function(V){return ly(V,l)};return d>1||this.__actions__.length||!(M instanceof Lt)||!ts(y)?this.thru(F):(M=M.slice(y,+y+(d?1:0)),M.__actions__.push({func:Jp,args:[F],thisArg:n}),new ko(M,this.__chain__).thru(function(V){return d&&!V.length&&V.push(n),V}))});function e3(){return EP(this)}function t3(){return new ko(this.value(),this.__chain__)}function n3(){this.__values__===n&&(this.__values__=DP(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function r3(){return this}function o3(l){for(var d,y=this;y instanceof Np;){var M=vP(y);M.__index__=0,M.__values__=n,d?F.__wrapped__=M:d=M;var F=M;y=y.__wrapped__}return F.__wrapped__=l,d}function i3(){var l=this.__wrapped__;if(l instanceof Lt){var d=l;return this.__actions__.length&&(d=new Lt(this)),d=d.reverse(),d.__actions__.push({func:Jp,args:[Ay],thisArg:n}),new ko(d,this.__chain__)}return this.thru(Ay)}function s3(){return zE(this.__wrapped__,this.__actions__)}var l3=Up(function(l,d,y){en.call(l,y)?++l[y]:Ji(l,y,1)});function a3(l,d,y){var M=xt(l)?ZS:JD;return y&&kr(l,d,y)&&(d=n),M(l,st(d,3))}function c3(l,d){var y=xt(l)?Os:SE;return y(l,st(d,3))}var u3=QE(yP),d3=QE(bP);function f3(l,d){return sr(Zp(l,d),1)}function p3(l,d){return sr(Zp(l,d),W)}function h3(l,d,y){return y=y===n?1:kt(y),sr(Zp(l,d),y)}function PP(l,d){var y=xt(l)?Eo:Ns;return y(l,st(d,3))}function kP(l,d){var y=xt(l)?ON:xE;return y(l,st(d,3))}var m3=Up(function(l,d,y){en.call(l,y)?l[y].push(d):Ji(l,y,[d])});function g3(l,d,y,M){l=Dr(l)?l:rc(l),y=y&&!M?kt(y):0;var F=l.length;return y<0&&(y=qn(F+y,0)),oh(l)?y<=F&&l.indexOf(d,y)>-1:!!F&&Wa(l,d,y)>-1}var v3=$t(function(l,d,y){var M=-1,F=typeof d=="function",V=Dr(l)?pe(l.length):[];return Ns(l,function(K){V[++M]=F?eo(d,K,y):Uu(K,d,y)}),V}),y3=Up(function(l,d,y){Ji(l,y,d)});function Zp(l,d){var y=xt(l)?wn:$E;return y(l,st(d,3))}function b3(l,d,y,M){return l==null?[]:(xt(d)||(d=d==null?[]:[d]),y=M?n:y,xt(y)||(y=y==null?[]:[y]),OE(l,d,y))}var w3=Up(function(l,d,y){l[y?0:1].push(d)},function(){return[[],[]]});function C3(l,d,y){var M=xt(l)?qv:rE,F=arguments.length<3;return M(l,st(d,4),y,F,Ns)}function x3(l,d,y){var M=xt(l)?LN:rE,F=arguments.length<3;return M(l,st(d,4),y,F,xE)}function S3(l,d){var y=xt(l)?Os:SE;return y(l,nh(st(d,3)))}function E3(l){var d=xt(l)?yE:g4;return d(l)}function P3(l,d,y){(y?kr(l,d,y):d===n)?d=1:d=kt(d);var M=xt(l)?KD:v4;return M(l,d)}function k3(l){var d=xt(l)?qD:b4;return d(l)}function I3(l){if(l==null)return 0;if(Dr(l))return oh(l)?Ka(l):l.length;var d=pr(l);return d==Fe||d==et?l.size:py(l).length}function _3(l,d,y){var M=xt(l)?Yv:w4;return y&&kr(l,d,y)&&(d=n),M(l,st(d,3))}var $3=$t(function(l,d){if(l==null)return[];var y=d.length;return y>1&&kr(l,d[0],d[1])?d=[]:y>2&&kr(d[0],d[1],d[2])&&(d=[d[0]]),OE(l,sr(d,1),[])}),eh=cD||function(){return ir.Date.now()};function M3(l,d){if(typeof d!="function")throw new Po(s);return l=kt(l),function(){if(--l<1)return d.apply(this,arguments)}}function IP(l,d,y){return d=y?n:d,d=l&&d==null?l.length:d,Zi(l,k,n,n,n,n,d)}function _P(l,d){var y;if(typeof d!="function")throw new Po(s);return l=kt(l),function(){return--l>0&&(y=d.apply(this,arguments)),l<=1&&(d=n),y}}var Ny=$t(function(l,d,y){var M=x;if(y.length){var F=As(y,tc(Ny));M|=I}return Zi(l,M,d,y,F)}),$P=$t(function(l,d,y){var M=x|b;if(y.length){var F=As(y,tc($P));M|=I}return Zi(d,M,l,y,F)});function MP(l,d,y){d=y?n:d;var M=Zi(l,w,n,n,n,n,n,d);return M.placeholder=MP.placeholder,M}function TP(l,d,y){d=y?n:d;var M=Zi(l,E,n,n,n,n,n,d);return M.placeholder=TP.placeholder,M}function RP(l,d,y){var M,F,V,K,Y,J,Ce=0,xe=!1,Pe=!1,De=!0;if(typeof l!="function")throw new Po(s);d=Mo(d)||0,kn(y)&&(xe=!!y.leading,Pe="maxWait"in y,V=Pe?qn(Mo(y.maxWait)||0,d):V,De="trailing"in y?!!y.trailing:De);function Je(Dn){var ni=M,os=F;return M=F=n,Ce=Dn,K=l.apply(os,ni),K}function at(Dn){return Ce=Dn,Y=Yu(Tt,d),xe?Je(Dn):K}function _t(Dn){var ni=Dn-J,os=Dn-Ce,QP=d-ni;return Pe?fr(QP,V-os):QP}function ct(Dn){var ni=Dn-J,os=Dn-Ce;return J===n||ni>=d||ni<0||Pe&&os>=V}function Tt(){var Dn=eh();if(ct(Dn))return Dt(Dn);Y=Yu(Tt,_t(Dn))}function Dt(Dn){return Y=n,De&&M?Je(Dn):(M=F=n,K)}function oo(){Y!==n&&HE(Y),Ce=0,M=J=F=Y=n}function Ir(){return Y===n?K:Dt(eh())}function io(){var Dn=eh(),ni=ct(Dn);if(M=arguments,F=this,J=Dn,ni){if(Y===n)return at(J);if(Pe)return HE(Y),Y=Yu(Tt,d),Je(J)}return Y===n&&(Y=Yu(Tt,d)),K}return io.cancel=oo,io.flush=Ir,io}var T3=$t(function(l,d){return CE(l,1,d)}),R3=$t(function(l,d,y){return CE(l,Mo(d)||0,y)});function O3(l){return Zi(l,R)}function th(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Po(s);var y=function(){var M=arguments,F=d?d.apply(this,M):M[0],V=y.cache;if(V.has(F))return V.get(F);var K=l.apply(this,M);return y.cache=V.set(F,K)||V,K};return y.cache=new(th.Cache||Qi),y}th.Cache=Qi;function nh(l){if(typeof l!="function")throw new Po(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function L3(l){return _P(2,l)}var A3=C4(function(l,d){d=d.length==1&&xt(d[0])?wn(d[0],to(st())):wn(sr(d,1),to(st()));var y=d.length;return $t(function(M){for(var F=-1,V=fr(M.length,y);++F<V;)M[F]=d[F].call(this,M[F]);return eo(l,this,M)})}),Dy=$t(function(l,d){var y=As(d,tc(Dy));return Zi(l,I,n,d,y)}),OP=$t(function(l,d){var y=As(d,tc(OP));return Zi(l,_,n,d,y)}),F3=es(function(l,d){return Zi(l,$,n,n,n,d)});function N3(l,d){if(typeof l!="function")throw new Po(s);return d=d===n?d:kt(d),$t(l,d)}function D3(l,d){if(typeof l!="function")throw new Po(s);return d=d==null?0:qn(kt(d),0),$t(function(y){var M=y[d],F=zs(y,0,d);return M&&Ls(F,M),eo(l,this,F)})}function B3(l,d,y){var M=!0,F=!0;if(typeof l!="function")throw new Po(s);return kn(y)&&(M="leading"in y?!!y.leading:M,F="trailing"in y?!!y.trailing:F),RP(l,d,{leading:M,maxWait:d,trailing:F})}function z3(l){return IP(l,1)}function j3(l,d){return Dy(xy(d),l)}function H3(){if(!arguments.length)return[];var l=arguments[0];return xt(l)?l:[l]}function V3(l){return Io(l,v)}function U3(l,d){return d=typeof d=="function"?d:n,Io(l,v,d)}function W3(l){return Io(l,h|v)}function G3(l,d){return d=typeof d=="function"?d:n,Io(l,h|v,d)}function K3(l,d){return d==null||wE(l,d,Zn(d))}function ti(l,d){return l===d||l!==l&&d!==d}var q3=qp(uy),Y3=qp(function(l,d){return l>=d}),Wl=kE(function(){return arguments}())?kE:function(l){return On(l)&&en.call(l,"callee")&&!fE.call(l,"callee")},xt=pe.isArray,X3=KS?to(KS):o4;function Dr(l){return l!=null&&rh(l.length)&&!ns(l)}function Nn(l){return On(l)&&Dr(l)}function Q3(l){return l===!0||l===!1||On(l)&&Pr(l)==de}var js=dD||Yy,J3=qS?to(qS):i4;function Z3(l){return On(l)&&l.nodeType===1&&!Xu(l)}function eB(l){if(l==null)return!0;if(Dr(l)&&(xt(l)||typeof l=="string"||typeof l.splice=="function"||js(l)||nc(l)||Wl(l)))return!l.length;var d=pr(l);if(d==Fe||d==et)return!l.size;if(qu(l))return!py(l).length;for(var y in l)if(en.call(l,y))return!1;return!0}function tB(l,d){return Wu(l,d)}function nB(l,d,y){y=typeof y=="function"?y:n;var M=y?y(l,d):n;return M===n?Wu(l,d,n,y):!!M}function By(l){if(!On(l))return!1;var d=Pr(l);return d==be||d==te||typeof l.message=="string"&&typeof l.name=="string"&&!Xu(l)}function rB(l){return typeof l=="number"&&hE(l)}function ns(l){if(!kn(l))return!1;var d=Pr(l);return d==_e||d==Se||d==we||d==gt}function LP(l){return typeof l=="number"&&l==kt(l)}function rh(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=A}function kn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function On(l){return l!=null&&typeof l=="object"}var AP=YS?to(YS):l4;function oB(l,d){return l===d||fy(l,d,$y(d))}function iB(l,d,y){return y=typeof y=="function"?y:n,fy(l,d,$y(d),y)}function sB(l){return FP(l)&&l!=+l}function lB(l){if(U4(l))throw new wt(i);return IE(l)}function aB(l){return l===null}function cB(l){return l==null}function FP(l){return typeof l=="number"||On(l)&&Pr(l)==Re}function Xu(l){if(!On(l)||Pr(l)!=Oe)return!1;var d=Mp(l);if(d===null)return!0;var y=en.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&kp.call(y)==iD}var zy=XS?to(XS):a4;function uB(l){return LP(l)&&l>=-A&&l<=A}var NP=QS?to(QS):c4;function oh(l){return typeof l=="string"||!xt(l)&&On(l)&&Pr(l)==Pt}function ro(l){return typeof l=="symbol"||On(l)&&Pr(l)==ut}var nc=JS?to(JS):u4;function dB(l){return l===n}function fB(l){return On(l)&&pr(l)==It}function pB(l){return On(l)&&Pr(l)==Xe}var hB=qp(hy),mB=qp(function(l,d){return l<=d});function DP(l){if(!l)return[];if(Dr(l))return oh(l)?Zo(l):Nr(l);if(Nu&&l[Nu])return KN(l[Nu]());var d=pr(l),y=d==Fe?ty:d==et?Sp:rc;return y(l)}function rs(l){if(!l)return l===0?l:0;if(l=Mo(l),l===W||l===-W){var d=l<0?-1:1;return d*z}return l===l?l:0}function kt(l){var d=rs(l),y=d%1;return d===d?y?d-y:d:0}function BP(l){return l?jl(kt(l),0,q):0}function Mo(l){if(typeof l=="number")return l;if(ro(l))return G;if(kn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=kn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=oE(l);var y=Fr.test(l);return y||JF.test(l)?MN(l.slice(2),y?2:8):bn.test(l)?G:+l}function zP(l){return wi(l,Br(l))}function gB(l){return l?jl(kt(l),-A,A):l===0?l:0}function Qt(l){return l==null?"":no(l)}var vB=Za(function(l,d){if(qu(d)||Dr(d)){wi(d,Zn(d),l);return}for(var y in d)en.call(d,y)&&Hu(l,y,d[y])}),jP=Za(function(l,d){wi(d,Br(d),l)}),ih=Za(function(l,d,y,M){wi(d,Br(d),l,M)}),yB=Za(function(l,d,y,M){wi(d,Zn(d),l,M)}),bB=es(ly);function wB(l,d){var y=Ja(l);return d==null?y:bE(y,d)}var CB=$t(function(l,d){l=ln(l);var y=-1,M=d.length,F=M>2?d[2]:n;for(F&&kr(d[0],d[1],F)&&(M=1);++y<M;)for(var V=d[y],K=Br(V),Y=-1,J=K.length;++Y<J;){var Ce=K[Y],xe=l[Ce];(xe===n||ti(xe,Ya[Ce])&&!en.call(l,Ce))&&(l[Ce]=V[Ce])}return l}),xB=$t(function(l){return l.push(n,oP),eo(HP,n,l)});function SB(l,d){return eE(l,st(d,3),bi)}function EB(l,d){return eE(l,st(d,3),cy)}function PB(l,d){return l==null?l:ay(l,st(d,3),Br)}function kB(l,d){return l==null?l:EE(l,st(d,3),Br)}function IB(l,d){return l&&bi(l,st(d,3))}function _B(l,d){return l&&cy(l,st(d,3))}function $B(l){return l==null?[]:zp(l,Zn(l))}function MB(l){return l==null?[]:zp(l,Br(l))}function jy(l,d,y){var M=l==null?n:Hl(l,d);return M===n?y:M}function TB(l,d){return l!=null&&lP(l,d,e4)}function Hy(l,d){return l!=null&&lP(l,d,t4)}var RB=ZE(function(l,d,y){d!=null&&typeof d.toString!="function"&&(d=Ip.call(d)),l[d]=y},Uy(zr)),OB=ZE(function(l,d,y){d!=null&&typeof d.toString!="function"&&(d=Ip.call(d)),en.call(l,d)?l[d].push(y):l[d]=[y]},st),LB=$t(Uu);function Zn(l){return Dr(l)?vE(l):py(l)}function Br(l){return Dr(l)?vE(l,!0):d4(l)}function AB(l,d){var y={};return d=st(d,3),bi(l,function(M,F,V){Ji(y,d(M,F,V),M)}),y}function FB(l,d){var y={};return d=st(d,3),bi(l,function(M,F,V){Ji(y,F,d(M,F,V))}),y}var NB=Za(function(l,d,y){jp(l,d,y)}),HP=Za(function(l,d,y,M){jp(l,d,y,M)}),DB=es(function(l,d){var y={};if(l==null)return y;var M=!1;d=wn(d,function(V){return V=Bs(V,l),M||(M=V.length>1),V}),wi(l,Iy(l),y),M&&(y=Io(y,h|m|v,R4));for(var F=d.length;F--;)by(y,d[F]);return y});function BB(l,d){return VP(l,nh(st(d)))}var zB=es(function(l,d){return l==null?{}:p4(l,d)});function VP(l,d){if(l==null)return{};var y=wn(Iy(l),function(M){return[M]});return d=st(d),LE(l,y,function(M,F){return d(M,F[0])})}function jB(l,d,y){d=Bs(d,l);var M=-1,F=d.length;for(F||(F=1,l=n);++M<F;){var V=l==null?n:l[Ci(d[M])];V===n&&(M=F,V=y),l=ns(V)?V.call(l):V}return l}function HB(l,d,y){return l==null?l:Gu(l,d,y)}function VB(l,d,y,M){return M=typeof M=="function"?M:n,l==null?l:Gu(l,d,y,M)}var UP=nP(Zn),WP=nP(Br);function UB(l,d,y){var M=xt(l),F=M||js(l)||nc(l);if(d=st(d,4),y==null){var V=l&&l.constructor;F?y=M?new V:[]:kn(l)?y=ns(V)?Ja(Mp(l)):{}:y={}}return(F?Eo:bi)(l,function(K,Y,J){return d(y,K,Y,J)}),y}function WB(l,d){return l==null?!0:by(l,d)}function GB(l,d,y){return l==null?l:BE(l,d,xy(y))}function KB(l,d,y,M){return M=typeof M=="function"?M:n,l==null?l:BE(l,d,xy(y),M)}function rc(l){return l==null?[]:ey(l,Zn(l))}function qB(l){return l==null?[]:ey(l,Br(l))}function YB(l,d,y){return y===n&&(y=d,d=n),y!==n&&(y=Mo(y),y=y===y?y:0),d!==n&&(d=Mo(d),d=d===d?d:0),jl(Mo(l),d,y)}function XB(l,d,y){return d=rs(d),y===n?(y=d,d=0):y=rs(y),l=Mo(l),n4(l,d,y)}function QB(l,d,y){if(y&&typeof y!="boolean"&&kr(l,d,y)&&(d=y=n),y===n&&(typeof d=="boolean"?(y=d,d=n):typeof l=="boolean"&&(y=l,l=n)),l===n&&d===n?(l=0,d=1):(l=rs(l),d===n?(d=l,l=0):d=rs(d)),l>d){var M=l;l=d,d=M}if(y||l%1||d%1){var F=mE();return fr(l+F*(d-l+$N("1e-"+((F+"").length-1))),d)}return gy(l,d)}var JB=ec(function(l,d,y){return d=d.toLowerCase(),l+(y?GP(d):d)});function GP(l){return Vy(Qt(l).toLowerCase())}function KP(l){return l=Qt(l),l&&l.replace(eN,HN).replace(bN,"")}function ZB(l,d,y){l=Qt(l),d=no(d);var M=l.length;y=y===n?M:jl(kt(y),0,M);var F=y;return y-=d.length,y>=0&&l.slice(y,F)==d}function ez(l){return l=Qt(l),l&&yi.test(l)?l.replace(Zt,VN):l}function tz(l){return l=Qt(l),l&&ze.test(l)?l.replace(me,"\\$&"):l}var nz=ec(function(l,d,y){return l+(y?"-":"")+d.toLowerCase()}),rz=ec(function(l,d,y){return l+(y?" ":"")+d.toLowerCase()}),oz=XE("toLowerCase");function iz(l,d,y){l=Qt(l),d=kt(d);var M=d?Ka(l):0;if(!d||M>=d)return l;var F=(d-M)/2;return Kp(Lp(F),y)+l+Kp(Op(F),y)}function sz(l,d,y){l=Qt(l),d=kt(d);var M=d?Ka(l):0;return d&&M<d?l+Kp(d-M,y):l}function lz(l,d,y){l=Qt(l),d=kt(d);var M=d?Ka(l):0;return d&&M<d?Kp(d-M,y)+l:l}function az(l,d,y){return y||d==null?d=0:d&&(d=+d),mD(Qt(l).replace(dt,""),d||0)}function cz(l,d,y){return(y?kr(l,d,y):d===n)?d=1:d=kt(d),vy(Qt(l),d)}function uz(){var l=arguments,d=Qt(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var dz=ec(function(l,d,y){return l+(y?"_":"")+d.toLowerCase()});function fz(l,d,y){return y&&typeof y!="number"&&kr(l,d,y)&&(d=y=n),y=y===n?q:y>>>0,y?(l=Qt(l),l&&(typeof d=="string"||d!=null&&!zy(d))&&(d=no(d),!d&&Ga(l))?zs(Zo(l),0,y):l.split(d,y)):[]}var pz=ec(function(l,d,y){return l+(y?" ":"")+Vy(d)});function hz(l,d,y){return l=Qt(l),y=y==null?0:jl(kt(y),0,l.length),d=no(d),l.slice(y,y+d.length)==d}function mz(l,d,y){var M=j.templateSettings;y&&kr(l,d,y)&&(d=n),l=Qt(l),d=ih({},d,M,rP);var F=ih({},d.imports,M.imports,rP),V=Zn(F),K=ey(F,V),Y,J,Ce=0,xe=d.interpolate||yp,Pe="__p += '",De=ny((d.escape||yp).source+"|"+xe.source+"|"+(xe===xo?Vt:yp).source+"|"+(d.evaluate||yp).source+"|$","g"),Je="//# sourceURL="+(en.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++EN+"]")+`
|
|
243
|
+
`;l.replace(De,function(ct,Tt,Dt,oo,Ir,io){return Dt||(Dt=oo),Pe+=l.slice(Ce,io).replace(tN,UN),Tt&&(Y=!0,Pe+=`' +
|
|
244
|
+
__e(`+Tt+`) +
|
|
245
|
+
'`),Ir&&(J=!0,Pe+=`';
|
|
246
|
+
`+Ir+`;
|
|
247
|
+
__p += '`),Dt&&(Pe+=`' +
|
|
248
|
+
((__t = (`+Dt+`)) == null ? '' : __t) +
|
|
249
|
+
'`),Ce=io+ct.length,ct}),Pe+=`';
|
|
250
|
+
`;var at=en.call(d,"variable")&&d.variable;if(!at)Pe=`with (obj) {
|
|
251
|
+
`+Pe+`
|
|
252
|
+
}
|
|
253
|
+
`;else if(nt.test(at))throw new wt(a);Pe=(J?Pe.replace(Gn,""):Pe).replace(Er,"$1").replace(hn,"$1;"),Pe="function("+(at||"obj")+`) {
|
|
254
|
+
`+(at?"":`obj || (obj = {});
|
|
255
|
+
`)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(J?`, __j = Array.prototype.join;
|
|
256
|
+
function print() { __p += __j.call(arguments, '') }
|
|
257
|
+
`:`;
|
|
258
|
+
`)+Pe+`return __p
|
|
259
|
+
}`;var _t=YP(function(){return qt(V,Je+"return "+Pe).apply(n,K)});if(_t.source=Pe,By(_t))throw _t;return _t}function gz(l){return Qt(l).toLowerCase()}function vz(l){return Qt(l).toUpperCase()}function yz(l,d,y){if(l=Qt(l),l&&(y||d===n))return oE(l);if(!l||!(d=no(d)))return l;var M=Zo(l),F=Zo(d),V=iE(M,F),K=sE(M,F)+1;return zs(M,V,K).join("")}function bz(l,d,y){if(l=Qt(l),l&&(y||d===n))return l.slice(0,aE(l)+1);if(!l||!(d=no(d)))return l;var M=Zo(l),F=sE(M,Zo(d))+1;return zs(M,0,F).join("")}function wz(l,d,y){if(l=Qt(l),l&&(y||d===n))return l.replace(dt,"");if(!l||!(d=no(d)))return l;var M=Zo(l),F=iE(M,Zo(d));return zs(M,F).join("")}function Cz(l,d){var y=O,M=N;if(kn(d)){var F="separator"in d?d.separator:F;y="length"in d?kt(d.length):y,M="omission"in d?no(d.omission):M}l=Qt(l);var V=l.length;if(Ga(l)){var K=Zo(l);V=K.length}if(y>=V)return l;var Y=y-Ka(M);if(Y<1)return M;var J=K?zs(K,0,Y).join(""):l.slice(0,Y);if(F===n)return J+M;if(K&&(Y+=J.length-Y),zy(F)){if(l.slice(Y).search(F)){var Ce,xe=J;for(F.global||(F=ny(F.source,Qt(an.exec(F))+"g")),F.lastIndex=0;Ce=F.exec(xe);)var Pe=Ce.index;J=J.slice(0,Pe===n?Y:Pe)}}else if(l.indexOf(no(F),Y)!=Y){var De=J.lastIndexOf(F);De>-1&&(J=J.slice(0,De))}return J+M}function xz(l){return l=Qt(l),l&&Co.test(l)?l.replace(on,QN):l}var Sz=ec(function(l,d,y){return l+(y?" ":"")+d.toUpperCase()}),Vy=XE("toUpperCase");function qP(l,d,y){return l=Qt(l),d=y?n:d,d===n?GN(l)?eD(l):NN(l):l.match(d)||[]}var YP=$t(function(l,d){try{return eo(l,n,d)}catch(y){return By(y)?y:new wt(y)}}),Ez=es(function(l,d){return Eo(d,function(y){y=Ci(y),Ji(l,y,Ny(l[y],l))}),l});function Pz(l){var d=l==null?0:l.length,y=st();return l=d?wn(l,function(M){if(typeof M[1]!="function")throw new Po(s);return[y(M[0]),M[1]]}):[],$t(function(M){for(var F=-1;++F<d;){var V=l[F];if(eo(V[0],this,M))return eo(V[1],this,M)}})}function kz(l){return QD(Io(l,h))}function Uy(l){return function(){return l}}function Iz(l,d){return l==null||l!==l?d:l}var _z=JE(),$z=JE(!0);function zr(l){return l}function Wy(l){return _E(typeof l=="function"?l:Io(l,h))}function Mz(l){return ME(Io(l,h))}function Tz(l,d){return TE(l,Io(d,h))}var Rz=$t(function(l,d){return function(y){return Uu(y,l,d)}}),Oz=$t(function(l,d){return function(y){return Uu(l,y,d)}});function Gy(l,d,y){var M=Zn(d),F=zp(d,M);y==null&&!(kn(d)&&(F.length||!M.length))&&(y=d,d=l,l=this,F=zp(d,Zn(d)));var V=!(kn(y)&&"chain"in y)||!!y.chain,K=ns(l);return Eo(F,function(Y){var J=d[Y];l[Y]=J,K&&(l.prototype[Y]=function(){var Ce=this.__chain__;if(V||Ce){var xe=l(this.__wrapped__),Pe=xe.__actions__=Nr(this.__actions__);return Pe.push({func:J,args:arguments,thisArg:l}),xe.__chain__=Ce,xe}return J.apply(l,Ls([this.value()],arguments))})}),l}function Lz(){return ir._===this&&(ir._=sD),this}function Ky(){}function Az(l){return l=kt(l),$t(function(d){return RE(d,l)})}var Fz=Ey(wn),Nz=Ey(ZS),Dz=Ey(Yv);function XP(l){return Ty(l)?Xv(Ci(l)):h4(l)}function Bz(l){return function(d){return l==null?n:Hl(l,d)}}var zz=eP(),jz=eP(!0);function qy(){return[]}function Yy(){return!1}function Hz(){return{}}function Vz(){return""}function Uz(){return!0}function Wz(l,d){if(l=kt(l),l<1||l>A)return[];var y=q,M=fr(l,q);d=st(d),l-=q;for(var F=Zv(M,d);++y<l;)d(y);return F}function Gz(l){return xt(l)?wn(l,Ci):ro(l)?[l]:Nr(gP(Qt(l)))}function Kz(l){var d=++oD;return Qt(l)+d}var qz=Gp(function(l,d){return l+d},0),Yz=Py("ceil"),Xz=Gp(function(l,d){return l/d},1),Qz=Py("floor");function Jz(l){return l&&l.length?Bp(l,zr,uy):n}function Zz(l,d){return l&&l.length?Bp(l,st(d,2),uy):n}function e6(l){return nE(l,zr)}function t6(l,d){return nE(l,st(d,2))}function n6(l){return l&&l.length?Bp(l,zr,hy):n}function r6(l,d){return l&&l.length?Bp(l,st(d,2),hy):n}var o6=Gp(function(l,d){return l*d},1),i6=Py("round"),s6=Gp(function(l,d){return l-d},0);function l6(l){return l&&l.length?Jv(l,zr):0}function a6(l,d){return l&&l.length?Jv(l,st(d,2)):0}return j.after=M3,j.ary=IP,j.assign=vB,j.assignIn=jP,j.assignInWith=ih,j.assignWith=yB,j.at=bB,j.before=_P,j.bind=Ny,j.bindAll=Ez,j.bindKey=$P,j.castArray=H3,j.chain=EP,j.chunk=Q4,j.compact=J4,j.concat=Z4,j.cond=Pz,j.conforms=kz,j.constant=Uy,j.countBy=l3,j.create=wB,j.curry=MP,j.curryRight=TP,j.debounce=RP,j.defaults=CB,j.defaultsDeep=xB,j.defer=T3,j.delay=R3,j.difference=e5,j.differenceBy=t5,j.differenceWith=n5,j.drop=r5,j.dropRight=o5,j.dropRightWhile=i5,j.dropWhile=s5,j.fill=l5,j.filter=c3,j.flatMap=f3,j.flatMapDeep=p3,j.flatMapDepth=h3,j.flatten=wP,j.flattenDeep=a5,j.flattenDepth=c5,j.flip=O3,j.flow=_z,j.flowRight=$z,j.fromPairs=u5,j.functions=$B,j.functionsIn=MB,j.groupBy=m3,j.initial=f5,j.intersection=p5,j.intersectionBy=h5,j.intersectionWith=m5,j.invert=RB,j.invertBy=OB,j.invokeMap=v3,j.iteratee=Wy,j.keyBy=y3,j.keys=Zn,j.keysIn=Br,j.map=Zp,j.mapKeys=AB,j.mapValues=FB,j.matches=Mz,j.matchesProperty=Tz,j.memoize=th,j.merge=NB,j.mergeWith=HP,j.method=Rz,j.methodOf=Oz,j.mixin=Gy,j.negate=nh,j.nthArg=Az,j.omit=DB,j.omitBy=BB,j.once=L3,j.orderBy=b3,j.over=Fz,j.overArgs=A3,j.overEvery=Nz,j.overSome=Dz,j.partial=Dy,j.partialRight=OP,j.partition=w3,j.pick=zB,j.pickBy=VP,j.property=XP,j.propertyOf=Bz,j.pull=b5,j.pullAll=xP,j.pullAllBy=w5,j.pullAllWith=C5,j.pullAt=x5,j.range=zz,j.rangeRight=jz,j.rearg=F3,j.reject=S3,j.remove=S5,j.rest=N3,j.reverse=Ay,j.sampleSize=P3,j.set=HB,j.setWith=VB,j.shuffle=k3,j.slice=E5,j.sortBy=$3,j.sortedUniq=T5,j.sortedUniqBy=R5,j.split=fz,j.spread=D3,j.tail=O5,j.take=L5,j.takeRight=A5,j.takeRightWhile=F5,j.takeWhile=N5,j.tap=J5,j.throttle=B3,j.thru=Jp,j.toArray=DP,j.toPairs=UP,j.toPairsIn=WP,j.toPath=Gz,j.toPlainObject=zP,j.transform=UB,j.unary=z3,j.union=D5,j.unionBy=B5,j.unionWith=z5,j.uniq=j5,j.uniqBy=H5,j.uniqWith=V5,j.unset=WB,j.unzip=Fy,j.unzipWith=SP,j.update=GB,j.updateWith=KB,j.values=rc,j.valuesIn=qB,j.without=U5,j.words=qP,j.wrap=j3,j.xor=W5,j.xorBy=G5,j.xorWith=K5,j.zip=q5,j.zipObject=Y5,j.zipObjectDeep=X5,j.zipWith=Q5,j.entries=UP,j.entriesIn=WP,j.extend=jP,j.extendWith=ih,Gy(j,j),j.add=qz,j.attempt=YP,j.camelCase=JB,j.capitalize=GP,j.ceil=Yz,j.clamp=YB,j.clone=V3,j.cloneDeep=W3,j.cloneDeepWith=G3,j.cloneWith=U3,j.conformsTo=K3,j.deburr=KP,j.defaultTo=Iz,j.divide=Xz,j.endsWith=ZB,j.eq=ti,j.escape=ez,j.escapeRegExp=tz,j.every=a3,j.find=u3,j.findIndex=yP,j.findKey=SB,j.findLast=d3,j.findLastIndex=bP,j.findLastKey=EB,j.floor=Qz,j.forEach=PP,j.forEachRight=kP,j.forIn=PB,j.forInRight=kB,j.forOwn=IB,j.forOwnRight=_B,j.get=jy,j.gt=q3,j.gte=Y3,j.has=TB,j.hasIn=Hy,j.head=CP,j.identity=zr,j.includes=g3,j.indexOf=d5,j.inRange=XB,j.invoke=LB,j.isArguments=Wl,j.isArray=xt,j.isArrayBuffer=X3,j.isArrayLike=Dr,j.isArrayLikeObject=Nn,j.isBoolean=Q3,j.isBuffer=js,j.isDate=J3,j.isElement=Z3,j.isEmpty=eB,j.isEqual=tB,j.isEqualWith=nB,j.isError=By,j.isFinite=rB,j.isFunction=ns,j.isInteger=LP,j.isLength=rh,j.isMap=AP,j.isMatch=oB,j.isMatchWith=iB,j.isNaN=sB,j.isNative=lB,j.isNil=cB,j.isNull=aB,j.isNumber=FP,j.isObject=kn,j.isObjectLike=On,j.isPlainObject=Xu,j.isRegExp=zy,j.isSafeInteger=uB,j.isSet=NP,j.isString=oh,j.isSymbol=ro,j.isTypedArray=nc,j.isUndefined=dB,j.isWeakMap=fB,j.isWeakSet=pB,j.join=g5,j.kebabCase=nz,j.last=$o,j.lastIndexOf=v5,j.lowerCase=rz,j.lowerFirst=oz,j.lt=hB,j.lte=mB,j.max=Jz,j.maxBy=Zz,j.mean=e6,j.meanBy=t6,j.min=n6,j.minBy=r6,j.stubArray=qy,j.stubFalse=Yy,j.stubObject=Hz,j.stubString=Vz,j.stubTrue=Uz,j.multiply=o6,j.nth=y5,j.noConflict=Lz,j.noop=Ky,j.now=eh,j.pad=iz,j.padEnd=sz,j.padStart=lz,j.parseInt=az,j.random=QB,j.reduce=C3,j.reduceRight=x3,j.repeat=cz,j.replace=uz,j.result=jB,j.round=i6,j.runInContext=Q,j.sample=E3,j.size=I3,j.snakeCase=dz,j.some=_3,j.sortedIndex=P5,j.sortedIndexBy=k5,j.sortedIndexOf=I5,j.sortedLastIndex=_5,j.sortedLastIndexBy=$5,j.sortedLastIndexOf=M5,j.startCase=pz,j.startsWith=hz,j.subtract=s6,j.sum=l6,j.sumBy=a6,j.template=mz,j.times=Wz,j.toFinite=rs,j.toInteger=kt,j.toLength=BP,j.toLower=gz,j.toNumber=Mo,j.toSafeInteger=gB,j.toString=Qt,j.toUpper=vz,j.trim=yz,j.trimEnd=bz,j.trimStart=wz,j.truncate=Cz,j.unescape=xz,j.uniqueId=Kz,j.upperCase=Sz,j.upperFirst=Vy,j.each=PP,j.eachRight=kP,j.first=CP,Gy(j,function(){var l={};return bi(j,function(d,y){en.call(j.prototype,y)||(l[y]=d)}),l}(),{chain:!1}),j.VERSION=r,Eo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){j[l].placeholder=j}),Eo(["drop","take"],function(l,d){Lt.prototype[l]=function(y){y=y===n?1:qn(kt(y),0);var M=this.__filtered__&&!d?new Lt(this):this.clone();return M.__filtered__?M.__takeCount__=fr(y,M.__takeCount__):M.__views__.push({size:fr(y,q),type:l+(M.__dir__<0?"Right":"")}),M},Lt.prototype[l+"Right"]=function(y){return this.reverse()[l](y).reverse()}}),Eo(["filter","map","takeWhile"],function(l,d){var y=d+1,M=y==L||y==B;Lt.prototype[l]=function(F){var V=this.clone();return V.__iteratees__.push({iteratee:st(F,3),type:y}),V.__filtered__=V.__filtered__||M,V}}),Eo(["head","last"],function(l,d){var y="take"+(d?"Right":"");Lt.prototype[l]=function(){return this[y](1).value()[0]}}),Eo(["initial","tail"],function(l,d){var y="drop"+(d?"":"Right");Lt.prototype[l]=function(){return this.__filtered__?new Lt(this):this[y](1)}}),Lt.prototype.compact=function(){return this.filter(zr)},Lt.prototype.find=function(l){return this.filter(l).head()},Lt.prototype.findLast=function(l){return this.reverse().find(l)},Lt.prototype.invokeMap=$t(function(l,d){return typeof l=="function"?new Lt(this):this.map(function(y){return Uu(y,l,d)})}),Lt.prototype.reject=function(l){return this.filter(nh(st(l)))},Lt.prototype.slice=function(l,d){l=kt(l);var y=this;return y.__filtered__&&(l>0||d<0)?new Lt(y):(l<0?y=y.takeRight(-l):l&&(y=y.drop(l)),d!==n&&(d=kt(d),y=d<0?y.dropRight(-d):y.take(d-l)),y)},Lt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Lt.prototype.toArray=function(){return this.take(q)},bi(Lt.prototype,function(l,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),M=/^(?:head|last)$/.test(d),F=j[M?"take"+(d=="last"?"Right":""):d],V=M||/^find/.test(d);F&&(j.prototype[d]=function(){var K=this.__wrapped__,Y=M?[1]:arguments,J=K instanceof Lt,Ce=Y[0],xe=J||xt(K),Pe=function(Tt){var Dt=F.apply(j,Ls([Tt],Y));return M&&De?Dt[0]:Dt};xe&&y&&typeof Ce=="function"&&Ce.length!=1&&(J=xe=!1);var De=this.__chain__,Je=!!this.__actions__.length,at=V&&!De,_t=J&&!Je;if(!V&&xe){K=_t?K:new Lt(this);var ct=l.apply(K,Y);return ct.__actions__.push({func:Jp,args:[Pe],thisArg:n}),new ko(ct,De)}return at&&_t?l.apply(this,Y):(ct=this.thru(Pe),at?M?ct.value()[0]:ct.value():ct)})}),Eo(["pop","push","shift","sort","splice","unshift"],function(l){var d=Ep[l],y=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",M=/^(?:pop|shift)$/.test(l);j.prototype[l]=function(){var F=arguments;if(M&&!this.__chain__){var V=this.value();return d.apply(xt(V)?V:[],F)}return this[y](function(K){return d.apply(xt(K)?K:[],F)})}}),bi(Lt.prototype,function(l,d){var y=j[d];if(y){var M=y.name+"";en.call(Qa,M)||(Qa[M]=[]),Qa[M].push({name:d,func:y})}}),Qa[Wp(n,b).name]=[{name:"wrapper",func:n}],Lt.prototype.clone=xD,Lt.prototype.reverse=SD,Lt.prototype.value=ED,j.prototype.at=Z5,j.prototype.chain=e3,j.prototype.commit=t3,j.prototype.next=n3,j.prototype.plant=o3,j.prototype.reverse=i3,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=s3,j.prototype.first=j.prototype.head,Nu&&(j.prototype[Nu]=r3),j},qa=tD();Nl?((Nl.exports=qa)._=qa,Wv._=qa):ir._=qa}).call(co)})(Ane,hs);const Sn=hs;var HC={},Fne=pt;Object.defineProperty(HC,"__esModule",{value:!0});var zO=HC.default=void 0,Nne=Fne(vt()),Dne=ht(),Bne=(0,Nne.default)((0,Dne.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");zO=HC.default=Bne;var VC={},zne=pt;Object.defineProperty(VC,"__esModule",{value:!0});var jO=VC.default=void 0,jne=zne(vt()),Hne=ht(),Vne=(0,jne.default)((0,Hne.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");jO=VC.default=Vne;var UC={},Une=pt;Object.defineProperty(UC,"__esModule",{value:!0});var cv=UC.default=void 0,Wne=Une(vt()),Gne=ht(),Kne=(0,Wne.default)((0,Gne.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");cv=UC.default=Kne;var WC={},qne=pt;Object.defineProperty(WC,"__esModule",{value:!0});var HO=WC.default=void 0,Yne=qne(vt()),Xne=ht(),Qne=(0,Yne.default)((0,Xne.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");HO=WC.default=Qne;var GC={},Jne=pt;Object.defineProperty(GC,"__esModule",{value:!0});var au=GC.default=void 0,Zne=Jne(vt()),ere=ht(),tre=(0,Zne.default)((0,ere.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");au=GC.default=tre;var KC={},nre=pt;Object.defineProperty(KC,"__esModule",{value:!0});var qC=KC.default=void 0,rre=nre(vt()),ore=ht(),ire=(0,rre.default)((0,ore.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");qC=KC.default=ire;function sre(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}function ao(e){const t=sre(),[n,r]=u.useState(e),o=u.useCallback(i=>{t()&&r(i)},[t,r]);return[n,o,t]}function lre(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function are(e,t){const n=[];for(const r of lre(t))n.push(r,e);return n.splice(-1,1),jm(n)}function jm(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?jm(t):u.createElement(u.Fragment,{key:n,children:t}))}const bb=Symbol(),cre=Symbol(),YC=Symbol();let ure=(e,t)=>new Proxy(e,t);const wb=Object.getPrototypeOf,Cb=new WeakMap,VO=e=>e&&(Cb.has(e)?Cb.get(e):wb(e)===Object.prototype||wb(e)===Array.prototype),Hm=e=>typeof e=="object"&&e!==null,h_=new WeakMap,XC=e=>e[YC]||e,UO=(e,t,n)=>{if(!VO(e))return e;const r=XC(e),o=(s=>Object.isFrozen(s)||Object.values(Object.getOwnPropertyDescriptors(s)).some(a=>!a.writable))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((s,a)=>{const c={f:a};let f=!1;const p=(m,v)=>{if(!f){let C=c.a.get(s);C||(C=new Set,c.a.set(s,C)),v&&C.has(bb)||C.add(m)}},h={get:(m,v)=>v===YC?s:(p(v),UO(m[v],c.a,c.c)),has:(m,v)=>v===cre?(f=!0,c.a.delete(s),!0):(p(v),v in m),getOwnPropertyDescriptor:(m,v)=>(p(v,!0),Object.getOwnPropertyDescriptor(m,v)),ownKeys:m=>(p(bb),Reflect.ownKeys(m))};return a&&(h.set=h.deleteProperty=()=>!1),[h,c]})(r,o),i[1].p=ure(o?(s=>{let a=h_.get(s);if(!a){if(Array.isArray(s))a=Array.from(s);else{const c=Object.getOwnPropertyDescriptors(s);Object.values(c).forEach(f=>{f.configurable=!0}),a=Object.create(wb(s),c)}h_.set(s,a)}return a})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},dre=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((o,i)=>o!==r[i])},WO=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Hm(e)||!Hm(t))return!0;const o=n.get(XC(e));if(!o)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let i=null;for(const s of o){const a=s===bb?dre(e,t):WO(e[s],t[s],n,r);if(a!==!0&&a!==!1||(i=a),i)break}return i===null&&(i=!0),r&&r.set(e,{n:t,g:i}),i},fre=e=>VO(e)&&e[YC]||null,m_=(e,t=!0)=>{Cb.set(e,t)},pre=(e,t)=>{const n=[],r=new WeakSet,o=(i,s)=>{if(r.has(i))return;Hm(i)&&r.add(i);const a=Hm(i)&&t.get(XC(i));a?a.forEach(c=>{o(i[c],s?[...s,c]:[c])}):s&&n.push(s)};return o(e),n};var xb={},hre={get exports(){return xb},set exports(e){xb=e}},GO={};/**
|
|
260
|
+
* @license React
|
|
261
|
+
* use-sync-external-store-shim.production.min.js
|
|
262
|
+
*
|
|
263
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
264
|
+
*
|
|
265
|
+
* This source code is licensed under the MIT license found in the
|
|
266
|
+
* LICENSE file in the root directory of this source tree.
|
|
267
|
+
*/var cu=u;function mre(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gre=typeof Object.is=="function"?Object.is:mre,vre=cu.useState,yre=cu.useEffect,bre=cu.useLayoutEffect,wre=cu.useDebugValue;function Cre(e,t){var n=t(),r=vre({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return bre(function(){o.value=n,o.getSnapshot=t,D0(o)&&i({inst:o})},[e,n,t]),yre(function(){return D0(o)&&i({inst:o}),e(function(){D0(o)&&i({inst:o})})},[e]),wre(n),n}function D0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gre(e,n)}catch(r){return!0}}function xre(e,t){return t()}var Sre=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?xre:Cre;GO.useSyncExternalStore=cu.useSyncExternalStore!==void 0?cu.useSyncExternalStore:Sre;(function(e){e.exports=GO})(hre);const Ere=Yb(xb),Pre=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("VERSION"):Symbol(),_i=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("LISTENERS"):Symbol(),Vm=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("SNAPSHOT"):Symbol(),kre=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("HANDLER"):Symbol(),pd=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_RESULT"):Symbol(),g_=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_ERROR"):Symbol(),KO=new WeakSet,Sb=e=>typeof e=="object"&&e!==null,Ire=e=>Sb(e)&&!KO.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),v_=new WeakMap;let y_=1;const b_=new WeakMap;function ep(e={}){if(!Sb(e))throw new Error("object required");const t=v_.get(e);if(t)return t;let n=y_;const r=new Set,o=(m,v=++y_)=>{n!==v&&(n=v,r.forEach(C=>C(m,v)))},i=new Map,s=m=>{let v=i.get(m);return v||(v=(C,g)=>{const x=[...C];x[1]=[m,...x[1]],o(x,g)},i.set(m,v)),v},a=m=>{const v=i.get(m);return i.delete(m),v},c=(m,v)=>{const C=b_.get(v);if((C==null?void 0:C[0])===n)return C[1];const g=Array.isArray(m)?[]:Object.create(Object.getPrototypeOf(m));return m_(g,!0),b_.set(v,[n,g]),Reflect.ownKeys(m).forEach(x=>{const b=Reflect.get(m,x,v);if(KO.has(b))m_(b,!1),g[x]=b;else if(b instanceof Promise)if(pd in b)g[x]=b[pd];else{const P=b[g_]||b;Object.defineProperty(g,x,{get(){if(pd in b)return b[pd];throw P}})}else b!=null&&b[_i]?g[x]=b[Vm]:g[x]=b}),Object.freeze(g)},f=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e)),p={get(m,v,C){return v===Pre?n:v===_i?r:v===Vm?c(m,C):v===kre?p:Reflect.get(m,v,C)},deleteProperty(m,v){const C=Reflect.get(m,v),g=C==null?void 0:C[_i];g&&g.delete(a(v));const x=Reflect.deleteProperty(m,v);return x&&o(["delete",[v],C]),x},is:Object.is,canProxy:Ire,set(m,v,C,g){var x;const b=Reflect.has(m,v),P=Reflect.get(m,v,g);if(b&&this.is(P,C))return!0;const w=P==null?void 0:P[_i];w&&w.delete(a(v)),Sb(C)&&(C=fre(C)||C);let E;return(x=Object.getOwnPropertyDescriptor(m,v))!=null&&x.set?E=C:C instanceof Promise?E=C.then(I=>(E[pd]=I,o(["resolve",[v],I]),I)).catch(I=>{E[g_]=I,o(["reject",[v],I])}):C!=null&&C[_i]?(E=C,E[_i].add(s(v))):this.canProxy(C)?(E=ep(C),E[_i].add(s(v))):E=C,Reflect.set(m,v,E,g),o(["set",[v],C,P]),!0}},h=new Proxy(f,p);return v_.set(e,h),Reflect.ownKeys(e).forEach(m=>{const v=Object.getOwnPropertyDescriptor(e,m);v.get||v.set?Object.defineProperty(f,m,v):h[m]=e[m]}),h}function qO(e,t,n){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[_i])&&console.warn("Please use proxy object");let r;const o=[],i=s=>{if(o.push(s),n){t(o.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,t(o.splice(0))}))};return e[_i].add(i),()=>{e[_i].delete(i)}}function w_(e){return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[Vm])&&console.warn("Please use proxy object"),e[Vm]}const{useSyncExternalStore:_re}=Ere,$re=(e,t)=>{const n=u.useRef();u.useEffect(()=>{n.current=pre(e,t)}),u.useDebugValue(n.current)};function uv(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const s=_re(u.useCallback(f=>{const p=qO(e,f,n);return f(),p},[e,n]),()=>{const f=w_(e);try{if(!i&&r.current&&o.current&&!WO(r.current,f,o.current,new WeakMap))return r.current}catch(p){}return f},()=>w_(e));i=!1;const a=new WeakMap;u.useEffect(()=>{r.current=s,o.current=a}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&$re(s,a);const c=u.useMemo(()=>new WeakMap,[]);return UO(s,a,c)}const fa=ep([]),Eb={closableContent:"x",padding:!0};function Mre(){const e=uv(fa);return u.createElement(u.Fragment,{},e.length>0&&e.map((t,n)=>u.createElement(Tre,Ae({key:n},t))))}function Tre(e){const t=u.useRef();return u.useEffect(()=>{var n;(n=t.current)==null||n.focus()},[]),e=Ae(Ae({},Eb),e),e.Container?u.createElement(e.Container,e):u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:Rre,onClick:()=>Ki()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",Ae({className:"dialog",onClick(n){n.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",{className:"dialog-icon dialog-closer",onClick(){Ki()}},e.closableContent),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"},typeof e.icon=="function"?u.createElement(e.icon):e.icon),u.createElement("div",{className:"dialog-title"},e.title),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))))}function Rre(e){e.key==="Escape"&&Ki()}function Ts(e){const t=Math.random();return e.$id=t,fa.push(e),n=>{var o;const r=fa.findIndex(i=>i.$id===t);r<0||(fa.splice(r,1),(o=e.onClose)==null||o.call(e,n))}}function Ki(e){var n;let t=fa.length;for(;t--;){const r=fa[t];if(!r.reserveClosing)return fa.splice(t,1),(n=r.onClose)==null?void 0:n.call(r,e)}}var pa={},dv={},uu={};const Ore={},Lre=Object.freeze(Object.defineProperty({__proto__:null,default:Ore},Symbol.toStringTag,{value:"Module"})),C_=_$(Lre);Object.defineProperty(uu,"__esModule",{value:!0});var x_=uu.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||C_.webcrypto;if(e){if(!e.subtle)throw new Error("Crypto.Subtle is undefined. Make sure you are using HTTPS in a compatible browser.");const t=n=>r=>e.subtle.digest(n,r);x_=uu.crossEnvCrypto={randomBytes:e.getRandomValues.bind(e),hashFunctions:{SHA1:t("SHA-1"),SHA256:t("SHA-256"),SHA384:t("SHA-384"),SHA512:t("SHA-512")}}}else{const t=C_,n=r=>o=>t.createHash(r).update(o).digest().buffer;x_=uu.crossEnvCrypto={randomBytes:t.randomFillSync,hashFunctions:{SHA1:n("sha1"),SHA256:n("sha256"),SHA384:n("sha384"),SHA512:n("sha512")}}}}catch(e){throw console.error(e),new Error("No suitable crypto library was found. You may need a polyfill.")}Object.defineProperty(dv,"__esModule",{value:!0});dv.SRPParameters=void 0;const Fh=uu;class du{constructor(t=du.PrimeGroup[2048],n=du.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}dv.SRPParameters=du;du.PrimeGroup={256:{N:BigInt("125617018995153554710546479714086468244499594888726646874671447258204721048803"),g:BigInt(2)},512:{N:BigInt("11144252439149533417835749556168991736939157778924947037200268358613863350040339017097790259154750906072491181606044774215413467851989724116331597513345603"),g:BigInt(2)},768:{N:BigInt("1087179135105457859072065649059069760280540086975817629066444682366896187793570736574549981488868217843627094867924800342887096064844227836735667168319981288765377499806385489913341488724152562880918438701129530606139552645689583147"),g:BigInt(2)},1024:{N:BigInt("167609434410335061345139523764350090260135525329813904557420930309800865859473551531551523800013916573891864789934747039010546328480848979516637673776605610374669426214776197828492691384519453218253702788022233205683635831626913357154941914129985489522629902540768368409482248290641036967659389658897350067939"),g:BigInt(2)},1536:{N:BigInt("1486998185923128292816507353619409521152457662596380074614818966810244974827752411420380336514078832314731499938313197533147998565301020797040787428051479639316928015998415709101293902971072960487527411068082311763171549170528008620813391411445907584912865222076100726050255271567749213905330659264908657221124284665444825474741087704974475795505492821585749417639344967192301749033325359286273431675492866492416941152646940908101472416714421046022696100064262587"),g:BigInt(2)},2048:{N:BigInt("21766174458617435773191008891802753781907668374255538511144643224689886235383840957210909013086056401571399717235807266581649606472148410291413364152197364477180887395655483738115072677402235101762521901569820740293149529620419333266262073471054548368736039519702486226506248861060256971802984953561121442680157668000761429988222457090413873973970171927093992114751765168063614761119615476233422096442783117971236371647333871414335895773474667308967050807005509320424799678417036867928316761272274230314067548291133582479583061439577559347101961771406173684378522703483495337037655006751328447510550299250924469288819"),g:BigInt(2)}};du.H={SHA1:Fh.crossEnvCrypto.hashFunctions.SHA1,SHA256:Fh.crossEnvCrypto.hashFunctions.SHA256,SHA384:Fh.crossEnvCrypto.hashFunctions.SHA384,SHA512:Fh.crossEnvCrypto.hashFunctions.SHA512};var fv={},pv={};(function(e){var t=co&&co.__awaiter||function(w,E,I,_){function k($){return $ instanceof I?$:new I(function(R){R($)})}return new(I||(I=Promise))(function($,R){function O(H){try{U(_.next(H))}catch(L){R(L)}}function N(H){try{U(_.throw(H))}catch(L){R(L)}}function U(H){H.done?$(H.value):k(H.value).then(O,N)}U((_=_.apply(w,E||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.modPow=e.hashBitCount=e.createVerifierAndSalt=e.createVerifier=e.generateRandomBigInt=e.generateRandomString=e.hashPadded=e.hash=e.padStartArrayBuffer=e.stringToArrayBuffer=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=void 0;const n=uu,r=BigInt(0),o=BigInt(1),i=BigInt(2),s=w=>{const E=w.toString(16),I=new ArrayBuffer(Math.ceil(E.length/2)),_=new Uint8Array(I);let k=0;E.length%2!==0&&(_[0]=parseInt(E[0],16),k=1);for(let $=0;$<I.byteLength;$++)_[$+k]=parseInt(E.slice(2*$+k,2*$+2+k),16);return I};e.bigIntToArrayBuffer=s;const a=w=>{const E=[];return new Uint8Array(w).forEach(I=>{E.push(("0"+I.toString(16)).slice(-2))}),BigInt(`0x${E.join("")}`)};e.arrayBufferToBigInt=a;function c(w){return new TextEncoder().encode(w).buffer}e.stringToArrayBuffer=c;const f=(w,E)=>{const I=new Uint8Array(w);if(I.length<E){const _=new Uint8Array(E);return _.fill(0,0,E-I.length),_.set(I,E-I.length),_}return I};e.padStartArrayBuffer=f;function p(w,...E){const I=E.reduce((k,$)=>k+$.byteLength,0),_=new Uint8Array(I);for(let k=0,$=0;$<E.length;$++)_.set(new Uint8Array(E[$]),k),k+=E[$].byteLength;return w.H(_)}e.hash=p;function h(w,E,...I){const _=I.map(k=>e.padStartArrayBuffer(k,E));return p(w,..._)}e.hashPadded=h;function m(w=10){const E=new Uint8Array(Math.ceil(Math.ceil(w/2)));return n.crossEnvCrypto.randomBytes(E),E.reduce((I,_)=>{const k=_.toString(16).toString();return k.length===1?I+"0"+k:I+k},"").slice(0,w)}e.generateRandomString=m;function v(w=16){return e.arrayBufferToBigInt(P(w))}e.generateRandomBigInt=v;function C(w,E,I,_){return t(this,void 0,void 0,function*(){if(!E||!E.trim())throw new Error("Identity (I) must not be null or empty.");if(!I)throw new Error("Salt (s) must not be null.");if(!_)throw new Error("Password (P) must not be null");const k=yield w.computeX(E,I,_);return w.computeVerifier(k)})}e.createVerifier=C;function g(w,E,I,_){return t(this,void 0,void 0,function*(){const k=yield w.generateRandomSalt(_);return{s:k,v:yield C(w,E,k,I)}})}e.createVerifierAndSalt=g;const x=w=>t(void 0,void 0,void 0,function*(){return(yield p(w,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=x;function b(w,E,I){let _=o;for(;E>r;)E%i==o?(_=w*_%I,E-=o):(w=w*w%I,E/=i);return _}e.modPow=b;const P=w=>{const E=new Uint8Array(w);return n.crossEnvCrypto.randomBytes(E),E.buffer}})(pv);var Ws=co&&co.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(fv,"__esModule",{value:!0});fv.SRPRoutines=void 0;const sn=pv;class Are{constructor(t){this.parameters=t}hash(...t){return sn.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return sn.hashPadded(this.parameters,n,...t)}computeK(){return Ws(this,void 0,void 0,function*(){return sn.arrayBufferToBigInt(yield this.hashPadded(sn.bigIntToArrayBuffer(this.parameters.primeGroup.N),sn.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return Ws(this,void 0,void 0,function*(){const n=yield sn.hashBitCount(this.parameters),r=t||2*n/8;return sn.generateRandomBigInt(r)})}computeX(t,n,r){return Ws(this,void 0,void 0,function*(){return sn.arrayBufferToBigInt(yield this.hash(sn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return Ws(this,void 0,void 0,function*(){return sn.arrayBufferToBigInt(yield this.hash(sn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return Ws(this,void 0,void 0,function*(){return yield this.hash(sn.stringToArrayBuffer(n))})}computeVerifier(t){return sn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=sn.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return sn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return Ws(this,void 0,void 0,function*(){return sn.arrayBufferToBigInt(yield this.hashPadded(sn.bigIntToArrayBuffer(t),sn.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,i){return Ws(this,void 0,void 0,function*(){return sn.arrayBufferToBigInt(yield this.hash(sn.bigIntToArrayBuffer(r),sn.bigIntToArrayBuffer(o),sn.bigIntToArrayBuffer(i)))})}computeServerEvidence(t,n,r){return Ws(this,void 0,void 0,function*(){return sn.arrayBufferToBigInt(yield this.hash(sn.bigIntToArrayBuffer(t),sn.bigIntToArrayBuffer(n),sn.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,i){const s=this.parameters.primeGroup.N,a=r*n+o,c=sn.modPow(this.parameters.primeGroup.g,n,s)*t%s;return sn.modPow(i+s-c,a,s)}}fv.SRPRoutines=Are;var gl={},QC=co&&co.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(gl,"__esModule",{value:!0});gl.SRPClientSessionStep2=gl.SRPClientSessionStep1=gl.SRPClientSession=void 0;class Fre{constructor(t){this.routines=t}step1(t,n){return QC(this,void 0,void 0,function*(){if(!t||!t.trim())throw new Error("User identity must not be null nor empty");if(!n)throw new Error("User password must not be null");const r=yield this.routines.computeIdentityHash(t,n);return new hv(this.routines,t,r)})}}gl.SRPClientSession=Fre;class hv{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return QC(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!n)throw new Error("Public server value (B) must not be null");const r=yield this.routines.computeXStep2(t,this.IH),o=this.routines.generatePrivateValue(),i=this.routines.computeClientPublicValue(o),s=yield this.routines.computeK(),a=yield this.routines.computeU(i,n),c=this.routines.computeClientSessionKey(s,r,a,o,n),f=yield this.routines.computeClientEvidence(this.I,t,i,n,c);return new mv(this.routines,i,f,c)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new hv(t,n.I,new Uint8Array(n.IH).buffer)}}gl.SRPClientSessionStep1=hv;class mv{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return QC(this,void 0,void 0,function*(){if(!t)throw new Error("Server evidence (M2) must not be null");if((yield this.routines.computeServerEvidence(this.A,this.M1,this.S))!==t)throw new Error("Bad server credentials")})}toJSON(){return{A:this.A.toString(16),M1:this.M1.toString(16),S:this.S.toString(16)}}static fromState(t,n){return new mv(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}gl.SRPClientSessionStep2=mv;var fu={},Pb=co&&co.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(fu,"__esModule",{value:!0});fu.SRPServerSessionStep1=fu.SRPServerSession=void 0;const kb=pv;class Nre{constructor(t){this.routines=t}step1(t,n,r){return Pb(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),i=yield this.routines.computeK(),s=Dre(this.routines.parameters,i,r,o);return new gv(this.routines,t,n,r,o,s)})}}fu.SRPServerSession=Nre;class gv{constructor(t,n,r,o,i,s){this.routines=t,this.identifier=n,this.salt=r,this.verifier=o,this.b=i,this.B=s}sessionKey(t){return Pb(this,void 0,void 0,function*(){if(t===null)throw new Error("Client public value (A) must not be null");if(!this.routines.isValidPublicValue(t))throw new Error(`Invalid Client public value (A): ${t.toString(16)}`);const n=yield this.routines.computeU(t,this.B);return Bre(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return Pb(this,void 0,void 0,function*(){if(!n)throw new Error("Client evidence (M1) must not be null");const r=yield this.sessionKey(t);if((yield this.routines.computeClientEvidence(this.identifier,this.salt,t,this.B,r))!==n)throw new Error("Bad client credentials");return this.routines.computeServerEvidence(t,n,r)})}toJSON(){return{identifier:this.identifier,salt:this.salt.toString(16),verifier:this.verifier.toString(16),b:this.b.toString(16),B:this.B.toString(16)}}static fromState(t,n){return new gv(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}fu.SRPServerSessionStep1=gv;const Dre=(e,t,n,r)=>(kb.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,Bre=(e,t,n,r,o)=>kb.modPow(kb.modPow(t,n,e)*r,o,e);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.generateRandomBigInt=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=e.createVerifierAndSalt=e.SRPServerSessionStep1=e.SRPServerSession=e.SRPClientSessionStep2=e.SRPClientSessionStep1=e.SRPClientSession=e.SRPRoutines=e.SRPParameters=void 0;var t=dv;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=fv;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=gl;Object.defineProperty(e,"SRPClientSession",{enumerable:!0,get:function(){return r.SRPClientSession}}),Object.defineProperty(e,"SRPClientSessionStep1",{enumerable:!0,get:function(){return r.SRPClientSessionStep1}}),Object.defineProperty(e,"SRPClientSessionStep2",{enumerable:!0,get:function(){return r.SRPClientSessionStep2}});var o=fu;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var i=pv;Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return i.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return i.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return i.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return i.generateRandomBigInt}})})(pa);function zre(e,t,n){return ft(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const i=new pa.SRPRoutines(new pa.SRPParameters),c=yield(yield new pa.SRPClientSession(i).step1(e,t)).step2(BigInt(o),BigInt(r)),f=yield n("loginSrp2",{pubKey:String(c.A),proof:String(c.M1)});return yield c.step3(BigInt(f.proof)).catch(()=>Promise.reject("trust")),f})}function Eu(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";let o=["","K","M","G","T"],i=1,s=n,a=0;for(;a<o.length&&e>s;)i=s,s*=n,++a;return e/=i,(!a||isNaN(r)?Sn.round(e,isNaN(r)?1:r):e.toFixed(r))+" "+(o[a]||"")+t}function jre(e,t,n=""){return t?e+t+n:""}function YO(e){const t=e+"=";let r=decodeURIComponent(document.cookie).split(";");for(let o of r)if(o=o.trim(),o.startsWith(t))return o.substring(t.length,o.length);return""}function XO(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function Hre(e,t){return!t||t.endsWith(e)?t:t+e}function Vre(e){return Boolean(e)}function Sa(e){return e.filter(Vre)}function Ure(e,t){return Object.defineProperties(e,XO(t,n=>({enumerable:!1,writable:!0,value:n})))}function Wre(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}var JC={},Gre=pt;Object.defineProperty(JC,"__esModule",{value:!0});var QO=JC.default=void 0,Kre=Gre(vt()),qre=ht(),Yre=(0,Kre.default)((0,qre.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");QO=JC.default=Yre;function Xre(e){return Ke("MuiLoadingButton",e)}const Qre=Ve("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),ss=Qre,Jre=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Zre=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${fe(n)}`],endIcon:[t&&`endIconLoading${fe(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${fe(n)}`]},i=Ie(o,Xre,r);return S({},r,i)},eoe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",toe=re(Qn,{shouldForwardProp:e=>eoe(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${ss.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${ss.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>S({[`& .${ss.startIconLoadingStart}, & .${ss.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${ss.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${ss.startIconLoadingStart}, & .${ss.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${ss.startIconLoadingStart}, & .${ss.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),noe=re("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${fe(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>S({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),roe=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:s,loading:a=!1,loadingIndicator:c,loadingPosition:f="center",variant:p="text"}=r,h=oe(r,Jre),m=En(s),v=c!=null?c:T.jsx(Xf,{"aria-labelledby":m,color:"inherit",size:16}),C=S({},r,{disabled:i,loading:a,loadingIndicator:v,loadingPosition:f,variant:p}),g=Zre(C),x=a?T.jsx(noe,{className:g.loadingIndicator,ownerState:C,children:v}):null;return T.jsxs(toe,S({disabled:i||a,id:m,ref:n},h,{variant:p,classes:g,ownerState:C,children:[C.loadingPosition==="end"?o:x,C.loadingPosition==="end"?x:o]}))}),ooe=roe,ioe=u.createContext({}),ZC=ioe,soe=["element"];function loe(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function aoe(e,t){let n=0,r=e.length-1;for(;n<=r;){const o=Math.floor((n+r)/2);if(e[o].element===t)return o;e[o].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?r=o-1:n=o+1}return n}const JO=u.createContext({});function coe(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const S_=()=>{};function uoe(e){const[,t]=u.useState(),{registerDescendant:n=S_,unregisterDescendant:r=S_,descendants:o=[],parentId:i=null}=u.useContext(JO),s=loe(o,f=>f.element===e.element),a=coe(o),c=o.some((f,p)=>a&&a[p]&&a[p].element!==f.element);return Rn(()=>{if(e.element)return n(S({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,c,e]),{parentId:i,index:s}}function ZO(e){const{children:t,id:n}=e,[r,o]=u.useState([]),i=u.useCallback(c=>{let{element:f}=c,p=oe(c,soe);o(h=>{let m;if(h.length===0)return[S({},p,{element:f,index:0})];const v=aoe(h,f);if(h[v]&&h[v].element===f)m=h;else{const C=S({},p,{element:f,index:v});m=h.slice(),m.splice(v,0,C)}return m.forEach((C,g)=>{C.index=g}),m})},[]),s=u.useCallback(c=>{o(f=>f.filter(p=>c!==p.element))},[]),a=u.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:s,parentId:n}),[r,i,s,n]);return T.jsx(JO.Provider,{value:a,children:t})}function doe(e){const{focus:t,isExpanded:n,isExpandable:r,isFocused:o,isDisabled:i,isSelected:s,multiSelect:a,selectNode:c,selectRange:f,toggleExpansion:p}=u.useContext(ZC),h=r?r(e):!1,m=n?n(e):!1,v=o?o(e):!1,C=i?i(e):!1,g=s?s(e):!1;return{disabled:C,expanded:m,selected:g,focused:v,handleExpansion:w=>{if(!C){v||t(w,e);const E=a&&(w.shiftKey||w.ctrlKey||w.metaKey);h&&!(E&&n(e))&&p(w,e)}},handleSelection:w=>{C||(v||t(w,e),a&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?f(w,{end:e}):c(w,e,!0):c(w,e))},preventSelection:w=>{(w.shiftKey||w.ctrlKey||w.metaKey||C)&&w.preventDefault()}}}const foe=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],poe=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:s,icon:a,label:c,nodeId:f,onClick:p,onMouseDown:h}=t,m=oe(t,foe),{disabled:v,expanded:C,selected:g,focused:x,handleExpansion:b,handleSelection:P,preventSelection:w}=doe(f),E=a||s||i,I=k=>{w(k),h&&h(k)},_=k=>{b(k),P(k),p&&p(k)};return T.jsxs("div",S({className:he(o,r.root,C&&r.expanded,g&&r.selected,x&&r.focused,v&&r.disabled),onClick:_,onMouseDown:I,ref:n},m,{children:[T.jsx("div",{className:r.iconContainer,children:E}),T.jsx("div",{className:r.label,children:c})]}))}),eL=poe;function hoe(e){return Ke("MuiTreeItem",e)}const moe=Ve("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),Gs=moe,goe=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],voe=e=>{const{classes:t}=e;return Ie({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},hoe,t)},yoe=re("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),boe=re(eL,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Gs.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Gs.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Gs.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Gs.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Gs.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Gs.label}`]:S({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),woe=re(XR,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),Coe=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:s,ContentComponent:a=eL,ContentProps:c,endIcon:f,expandIcon:p,disabled:h,icon:m,id:v,label:C,nodeId:g,onClick:x,onMouseDown:b,TransitionComponent:P=XR,TransitionProps:w}=r,E=oe(r,goe),{icons:I={},focus:_,isExpanded:k,isFocused:$,isSelected:R,isDisabled:O,multiSelect:N,disabledItemsFocusable:U,mapFirstChar:H,unMapFirstChar:L,registerNode:D,unregisterNode:B,treeId:W}=u.useContext(ZC);let A=null;v!=null?A=v:W&&g&&(A=`${W}-${g}`);const[z,G]=u.useState(null),q=u.useRef(null),X=St(G,n),ie=u.useMemo(()=>({element:z,id:g}),[g,z]),{index:ee,parentId:se}=uoe(ie),ae=Boolean(Array.isArray(o)?o.length:o),we=k?k(g):!1,de=$?$(g):!1,le=R?R(g):!1,te=O?O(g):!1,be=S({},r,{expanded:we,focused:de,selected:le,disabled:te}),_e=voe(be);let Se,Fe;ae&&(we?Fe=s||I.defaultCollapseIcon:Fe=p||I.defaultExpandIcon),ae?Se=I.defaultParentIcon:Se=f||I.defaultEndIcon,u.useEffect(()=>{if(D&&B&&ee!==-1)return D({id:g,idAttribute:A,index:ee,parentId:se,expandable:ae,disabled:h}),()=>{B(g)}},[D,B,se,ee,g,ae,h,A]),u.useEffect(()=>{if(H&&L&&C)return H(g,q.current.textContent.substring(0,1).toLowerCase()),()=>{L(g)}},[H,L,g,C]);let Re;N?Re=le:le&&(Re=!0);function Le(Oe){Oe.target===Oe.currentTarget&&yn(Oe.target).getElementById(W).focus({preventScroll:!0});const Ze=!U&&te;!de&&Oe.currentTarget===Oe.target&&!Ze&&_(Oe,g)}return T.jsxs(yoe,S({className:he(_e.root,i),role:"treeitem","aria-expanded":ae?we:null,"aria-selected":Re,"aria-disabled":te||null,ref:X,id:A,tabIndex:-1},E,{ownerState:be,onFocus:Le,children:[T.jsx(boe,S({as:a,ref:q,classes:{root:_e.content,expanded:_e.expanded,selected:_e.selected,focused:_e.focused,disabled:_e.disabled,iconContainer:_e.iconContainer,label:_e.label},label:C,nodeId:g,onClick:x,onMouseDown:b,icon:m,expansionIcon:Fe,displayIcon:Se,ownerState:be},c)),o&&T.jsx(ZO,{id:g,children:T.jsx(woe,S({as:P,unmountOnExit:!0,className:_e.group,in:we,component:"ul",role:"group"},w,{children:o}))})]}))}),Ib=Coe;function xoe(e){return Ke("MuiTreeView",e)}Ve("MuiTreeView",["root"]);const Soe=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],Eoe=e=>{const{classes:t}=e;return Ie({root:["root"]},xoe,t)},Poe=re("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0});function koe(e){return e&&e.length===1&&e.match(/\S/)}function E_(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}function P_(){return!1}const Ioe=[],_oe=[],$oe=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTreeView"}),{children:o,className:i,defaultCollapseIcon:s,defaultEndIcon:a,defaultExpanded:c=Ioe,defaultExpandIcon:f,defaultParentIcon:p,defaultSelected:h=_oe,disabledItemsFocusable:m=!1,disableSelection:v=!1,expanded:C,id:g,multiSelect:x=!1,onBlur:b,onFocus:P,onKeyDown:w,onNodeFocus:E,onNodeSelect:I,onNodeToggle:_,selected:k}=r,$=oe(r,Soe),O=Zr().direction==="rtl",N=S({},r,{defaultExpanded:c,defaultSelected:h,disabledItemsFocusable:m,disableSelection:v,multiSelect:x}),U=Eoe(N),H=En(g),L=u.useRef(null),D=St(L,n),[B,W]=u.useState(null),A=u.useRef({}),z=u.useRef({}),[G,q]=Di({controlled:C,default:c,name:"TreeView",state:"expanded"}),[X,ie]=Di({controlled:k,default:h,name:"TreeView",state:"selected"}),ee=u.useCallback(ce=>Array.isArray(G)?G.indexOf(ce)!==-1:!1,[G]),se=u.useCallback(ce=>A.current[ce]&&A.current[ce].expandable,[]),ae=u.useCallback(ce=>Array.isArray(X)?X.indexOf(ce)!==-1:X===ce,[X]),we=u.useCallback(ce=>{let me=A.current[ce];if(!me)return!1;if(me.disabled)return!0;for(;me.parentId!=null;)if(me=A.current[me.parentId],me.disabled)return!0;return!1},[]),de=ce=>B===ce,le=ce=>Object.keys(A.current).map(me=>A.current[me]).filter(me=>me.parentId===ce).sort((me,ze)=>me.index-ze.index).map(me=>me.id),te=ce=>{let me=le(ce);return m||(me=me.filter(ze=>!we(ze))),me},be=ce=>{if(ee(ce)&&te(ce).length>0)return te(ce)[0];let me=A.current[ce];for(;me!=null;){const ze=te(me.parentId),dt=ze[ze.indexOf(me.id)+1];if(dt)return dt;me=A.current[me.parentId]}return null},_e=ce=>{const me=A.current[ce],ze=te(me.parentId),dt=ze.indexOf(ce);if(dt===0)return me.parentId;let bt=ze[dt-1];for(;ee(bt)&&te(bt).length>0;)bt=te(bt).pop();return bt},Se=()=>{let ce=te(null).pop();for(;ee(ce);)ce=te(ce).pop();return ce},Fe=()=>te(null)[0],Re=ce=>A.current[ce].parentId,Le=(ce,me)=>{if(ce===me)return[ce,me];const ze=A.current[ce],dt=A.current[me];if(ze.parentId===dt.id||dt.parentId===ze.id)return dt.parentId===ze.id?[ze.id,dt.id]:[dt.id,ze.id];const bt=[ze.id],Be=[dt.id];let it=ze.parentId,ve=dt.parentId,ge=Be.indexOf(it)!==-1,nt=bt.indexOf(ve)!==-1,lt=!0,Vt=!0;for(;!nt&&!ge;)lt&&(bt.push(it),ge=Be.indexOf(it)!==-1,lt=it!==null,!ge&<&&(it=A.current[it].parentId)),Vt&&!ge&&(Be.push(ve),nt=bt.indexOf(ve)!==-1,Vt=ve!==null,!nt&&Vt&&(ve=A.current[ve].parentId));const an=ge?it:ve,bn=le(an),Fr=bt[bt.indexOf(an)-1],Va=Be[Be.indexOf(an)-1];return bn.indexOf(Fr)<bn.indexOf(Va)?[ce,me]:[me,ce]},Oe=(ce,me)=>{const[ze,dt]=Le(ce,me),bt=[ze];let Be=ze;for(;Be!==dt;)Be=be(Be),bt.push(Be);return bt},Ze=(ce,me)=>{me&&(W(me),E&&E(ce,me))},gt=(ce,me)=>Ze(ce,be(me)),tt=(ce,me)=>Ze(ce,_e(me)),et=ce=>Ze(ce,Fe()),Pt=ce=>Ze(ce,Se()),ut=(ce,me,ze)=>{let dt,bt;const Be=ze.toLowerCase(),it=[],ve=[];Object.keys(z.current).forEach(ge=>{const nt=z.current[ge],lt=A.current[ge],Vt=lt.parentId?ee(lt.parentId):!0,an=m?!1:we(ge);Vt&&!an&&(it.push(ge),ve.push(nt))}),dt=it.indexOf(me)+1,dt>=it.length&&(dt=0),bt=E_(ve,dt,Be),bt===-1&&(bt=E_(ve,0,Be)),bt>-1&&Ze(ce,it[bt])},ot=(ce,me=B)=>{let ze;G.indexOf(me)!==-1?ze=G.filter(dt=>dt!==me):ze=[me].concat(G),_&&_(ce,ze),q(ze)},It=(ce,me)=>{const ze=A.current[me],bt=le(ze.parentId).filter(it=>se(it)&&!ee(it)),Be=G.concat(bt);bt.length>0&&(q(Be),_&&_(ce,Be))},Xe=u.useRef(null),Te=u.useRef(!1),ne=u.useRef([]),ke=(ce,me)=>{let ze=X.slice();const{start:dt,next:bt,current:Be}=me;!bt||!Be||(ne.current.indexOf(Be)===-1&&(ne.current=[]),Te.current?ne.current.indexOf(bt)!==-1?(ze=ze.filter(it=>it===dt||it!==Be),ne.current=ne.current.filter(it=>it===dt||it!==Be)):(ze.push(bt),ne.current.push(bt)):(ze.push(bt),ne.current.push(Be,bt)),I&&I(ce,ze),ie(ze))},Ee=(ce,me)=>{let ze=X.slice();const{start:dt,end:bt}=me;Te.current&&(ze=ze.filter(ve=>ne.current.indexOf(ve)===-1));let Be=Oe(dt,bt);Be=Be.filter(ve=>!we(ve)),ne.current=Be;let it=ze.concat(Be);it=it.filter((ve,ge)=>it.indexOf(ve)===ge),I&&I(ce,it),ie(it)},$e=(ce,me)=>{let ze;X.indexOf(me)!==-1?ze=X.filter(dt=>dt!==me):ze=[me].concat(X),I&&I(ce,ze),ie(ze)},Ge=(ce,me)=>{const ze=x?[me]:me;I&&I(ce,ze),ie(ze)},Ct=(ce,me,ze=!1)=>me?(ze?$e(ce,me):Ge(ce,me),Xe.current=me,Te.current=!1,ne.current=[],!0):!1,zt=(ce,me,ze=!1)=>{const{start:dt=Xe.current,end:bt,current:Be}=me;ze?ke(ce,{start:dt,next:bt,current:Be}):dt!=null&&bt!=null&&Ee(ce,{start:dt,end:bt}),Te.current=!0},jt=(ce,me)=>{Xe.current||(Xe.current=me);const ze=Te.current?Xe.current:me;zt(ce,{start:ze,end:Fe()})},Jn=(ce,me)=>{Xe.current||(Xe.current=me);const ze=Te.current?Xe.current:me;zt(ce,{start:ze,end:Se()})},pn=(ce,me)=>{we(be(me))||zt(ce,{end:be(me),current:me},!0)},Gn=(ce,me)=>{we(_e(me))||zt(ce,{end:_e(me),current:me},!0)},Er=ce=>{zt(ce,{start:Fe(),end:Se()})},hn=u.useCallback(ce=>{const{id:me,index:ze,parentId:dt,expandable:bt,idAttribute:Be,disabled:it}=ce;A.current[me]={id:me,index:ze,parentId:dt,expandable:bt,idAttribute:Be,disabled:it}},[]),on=u.useCallback(ce=>{const me=S({},A.current);delete me[ce],A.current=me,W(ze=>ze===ce&&L.current===yn(L.current).activeElement?le(null)[0]:ze)},[]),Zt=u.useCallback((ce,me)=>{z.current[ce]=me},[]),Co=u.useCallback(ce=>{const me=S({},z.current);delete me[ce],z.current=me},[]),yi=ce=>(se(B)&&(ee(B)?gt(ce,B):we(B)||ot(ce)),!0),Ar=ce=>{if(ee(B)&&!we(B))return ot(ce,B),!0;const me=Re(B);return me?(Ze(ce,me),!0):!1},Jo=ce=>{let me=!1;const ze=ce.key;if(ce.altKey||ce.currentTarget!==ce.target||!B)return;const dt=ce.ctrlKey||ce.metaKey;switch(ze){case" ":!v&&!we(B)&&(x&&ce.shiftKey?(zt(ce,{end:B}),me=!0):x?me=Ct(ce,B,!0):me=Ct(ce,B)),ce.stopPropagation();break;case"Enter":we(B)||(se(B)?(ot(ce),me=!0):x?me=Ct(ce,B,!0):me=Ct(ce,B)),ce.stopPropagation();break;case"ArrowDown":x&&ce.shiftKey&&!v&&pn(ce,B),gt(ce,B),me=!0;break;case"ArrowUp":x&&ce.shiftKey&&!v&&Gn(ce,B),tt(ce,B),me=!0;break;case"ArrowRight":O?me=Ar(ce):me=yi(ce);break;case"ArrowLeft":O?me=yi(ce):me=Ar(ce);break;case"Home":x&&dt&&ce.shiftKey&&!v&&!we(B)&&jt(ce,B),et(ce),me=!0;break;case"End":x&&dt&&ce.shiftKey&&!v&&!we(B)&&Jn(ce,B),Pt(ce),me=!0;break;default:ze==="*"?(It(ce,B),me=!0):x&&dt&&ze.toLowerCase()==="a"&&!v?(Er(ce),me=!0):!dt&&!ce.shiftKey&&koe(ze)&&(ut(ce,B,ze),me=!0)}me&&(ce.preventDefault(),ce.stopPropagation()),w&&w(ce)},xo=ce=>{if(ce.target===ce.currentTarget){const me=Array.isArray(X)?X[0]:X;Ze(ce,me||te(null)[0])}P&&P(ce)},Ot=ce=>{W(null),b&&b(ce)},Fn=A.current[B]?A.current[B].idAttribute:null;return T.jsx(ZC.Provider,{value:{icons:{defaultCollapseIcon:s,defaultExpandIcon:f,defaultParentIcon:p,defaultEndIcon:a},focus:Ze,toggleExpansion:ot,isExpanded:ee,isExpandable:se,isFocused:de,isSelected:ae,isDisabled:we,selectNode:v?P_:Ct,selectRange:v?P_:zt,multiSelect:x,disabledItemsFocusable:m,mapFirstChar:Zt,unMapFirstChar:Co,registerNode:hn,unregisterNode:on,treeId:H},children:T.jsx(ZO,{children:T.jsx(Poe,S({role:"tree",id:H,"aria-activedescendant":Fn,"aria-multiselectable":x,className:he(U.root,i),ref:D,tabIndex:0,onKeyDown:Jo,onFocus:xo,onBlur:Ot,ownerState:N},$,{children:o}))})})}),tL=$oe;function Bo(p){var h=p,{value:e,onChange:t,min:n,max:r,required:o,getApi:i,typing:s,start:a,end:c}=h,f=un(h,["value","onChange","min","max","required","getApi","typing","start","end"]);const m=e!=null?e:"";i==null||i({getError(){return!e&&o?"required":(e==null?void 0:e.length)<n?"too short":(e==null?void 0:e.length)>r?"too long":!1}});const[v,C]=u.useState(m),g=u.useRef(m);return u.useEffect(()=>{C(m),g.current=m},[m]),u.createElement(Zf,Ht(Ae({fullWidth:!0,InputLabelProps:v||f.placeholder?{shrink:!0}:void 0},f),{sx:f.label?f.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},f.sx),value:v,onChange(b){const P=b.target.value;C(P),(s||document.activeElement!==b.target)&&x(b,P)},onKeyDown(b){var P;(P=f.onKeyDown)==null||P.call(f,b),b.key==="Enter"&&x(b)},onBlur(b){var P;(P=f.onBlur)==null||P.call(f,b),x(b)},InputProps:Ae({startAdornment:a&&u.createElement(Bm,{position:"start"},a),endAdornment:c&&u.createElement(Bm,{position:"end"},c)},f.InputProps)}));function x(b,P=v){const w=P.trim();w!==g.current&&(g.current=w,t(w,{was:e,event:b,cancel(){C(m)}}))}}function Pu(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=un(a,["value","onChange","getApi","options","sx"]);return u.createElement(Zf,Ht(Ae(Ae({},nL(e)),s),{onChange(c){try{let f=c.target.value;f=JSON.parse(f),n(f,{was:t,event:c})}catch(f){}}}))}function ex(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=un(a,["value","onChange","getApi","options","sx"]);return u.createElement(Zf,Ht(Ae(Ae({},nL(Ht(Ae({},e),{value:void 0}))),s),{SelectProps:{multiple:!0},value:Array.isArray(t)?t.map(c=>JSON.stringify(c)):[],onChange(c){try{let f=c.target.value;f=Array.isArray(f)?f.map(p=>JSON.parse(p)):[],n(f,{was:t,event:c})}catch(f){}}}))}function nL(e){const{options:t,disabled:n}=e,r=Array.isArray(t)?t.map(s=>typeof s=="string"||typeof s=="number"?{value:s,label:String(s)}:s):Object.entries(t).map(([s,a])=>({value:a,label:s})),o=JSON.stringify(e.value),i=r.find(s=>JSON.stringify(s.value)===o);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:i?o:"",disabled:!(r!=null&&r.length)||n,children:r.map((s,a)=>u.createElement(cr,{key:a,value:JSON.stringify(s==null?void 0:s.value),children:s==null?void 0:s.label}))}}function B0(r){var o=r,{value:e,empty:t="-"}=o,n=un(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(Bo,Ht(Ae({},n),{value:e,disabled:!0}))}function Xs(f){var p=f,{value:e,onChange:t,getApi:n,required:r,min:o,max:i,step:s,unit:a}=p,c=un(p,["value","onChange","getApi","required","min","max","step","unit"]);return n==null||n({getError(){return e==null?r?"required":!1:e<o?"too low":e>i?"too high":!1}}),u.createElement(Bo,Ae({type:"number",value:e==null?"":String(e),onChange(h,C){var g=C,{was:m}=g,v=un(g,["was"]);t(h?Number(h):null,Ht(Ae({},v),{was:m?Number(m):null}))},inputProps:{min:o,max:i,step:s},InputProps:a&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(Bm,{position:"end",sx:{mt:"1.2em",ml:"2px","& p":{fontSize:"80%"}}},a)}},c))}function pu(c){var f=c,{label:e="",value:t,onChange:n,getApi:r,helperText:o,error:i,type:s}=f,a=un(f,["label","value","onChange","getApi","helperText","error","type"]);const p=()=>t!=null?t:!1,[h,m]=u.useState(p);u.useEffect(()=>m(p),[t]);const v=u.createElement($O,Ht(Ae({checked:h},a),{onChange(C){n(C.target.checked,{event:C,was:t})}}));return u.createElement(yt,{ml:1,mt:1,sx:i?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(dO,{label:e,control:v,labelPlacement:"end"}),o&&u.createElement(lv,{error:i},o))}var tx={},Moe=pt;Object.defineProperty(tx,"__esModule",{value:!0});var vv=tx.default=void 0,Toe=Moe(vt()),Roe=ht(),Ooe=(0,Toe.default)((0,Roe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");vv=tx.default=Ooe;var nx={},Loe=pt;Object.defineProperty(nx,"__esModule",{value:!0});var Fa=nx.default=void 0,Aoe=Loe(vt()),Foe=ht(),Noe=(0,Aoe.default)((0,Foe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");Fa=nx.default=Noe;function Doe({value:e,onChange:t,keyLabel:n="key",valueLabel:r="value",keyWidth:o=5,valueWidth:i=5,actionsWidth:s=1}){const a=u.useRef(),c=u.useRef(),f={padding:".5em 1em",fontWeight:"bold"};return u.createElement(Hn,{container:!0},u.createElement(Hn,{item:!0,xs:o,sx:f},n),u.createElement(Hn,{item:!0,xs:i,sx:f},r),u.createElement(Hn,{item:!0,xs:s},u.createElement(tr,{onClick(){a.current.focus()}},u.createElement(vv))),Object.entries(e||{}).map(([p,h])=>[u.createElement(Hn,{key:"k",item:!0,xs:o},u.createElement(Bo,{value:p,onChange(m,g){var x=g,{was:v}=x,C=un(x,["was"]);const b=Ae({},e);m&&(b[m]=v!==void 0?b[v]:""),v!==void 0&&delete b[v],t(b,Ae({was:e},C))}})),u.createElement(Hn,{key:"v",item:!0,xs:i},u.createElement(Bo,{inputRef(m){c.current===p&&(m==null||m.focus(),c.current=null)},value:h,onChange(m,g){var x=g,{was:v}=x,C=un(x,["was"]);const b=Ae({},e);m?b[p]=m:delete b[p],t(b,Ae({was:e},C))}})),u.createElement(Hn,{key:"actions",item:!0,xs:s,sx:{display:"flex"}},u.createElement(tr,{onClick(m){const v=Ae({},e);delete v[p],t(v,{was:e,event:m})}},u.createElement(Fa)))]),u.createElement(Hn,{item:!0,xs:o},u.createElement(Bo,{inputRef:a,value:"",onChange(p,h){if(p){if(h.cancel(),e&&p in e)return alert(n+" entry already present");c.current=p,t(Ht(Ae({},e),{[p]:""}),Ht(Ae({},h),{was:e}))}}})),u.createElement(Hn,{item:!0,xs:i},u.createElement(Bo,{value:"",onChange(){},disabled:!0})))}function tp(C){var g=C,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:i,addToBar:s=[],barSx:a,formRef:c,onError:f,saveOnEnter:p,gridProps:h,formProps:m}=g,v=un(g,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const x=u.useRef(!1);u.useEffect(()=>(x.current=!0,()=>{x.current=!1}),[]);const[b,P]=u.useState({}),[w,E]=u.useState({}),I=typeof o=="function"?{onClick:o}:o,[_,k]=u.useState(0),$=u.useRef(!1),R=u.useRef("");u.useEffect(()=>void H(),[_]);const O={};return u.createElement("form",Ht(Ae({ref:c&&(L=>c.current=L||void 0)},m),{onSubmit(L){L.preventDefault()},onKeyDown(L){I&&!I.disabled&&(L.ctrlKey||L.metaKey)&&L.key==="Enter"&&N()}}),u.createElement(yt,Ae({display:"flex",flexDirection:"column",gap:3},v),u.createElement(Hn,Ae({container:!0,rowSpacing:3,columnSpacing:1},h),e.map((L,D)=>{if(!L)return null;if(u.isValidElement(L))return u.createElement(Hn,{key:D,item:!0,xs:12},L);const ie=L,{k:B,fromField:W=hs.identity,toField:A=hs.identity,getError:z,error:G}=ie,q=un(ie,["k","fromField","toField","getError","error"]);let X=b[B]||w[B];if(X===!0&&(X="Not valid"),B){const se=L.hasOwnProperty("value")?L.value:t==null?void 0:t[B],ae=Ae(Ae({},L),q);Object.assign(q,{value:A(se),error:Boolean(X||G)||void 0,getApi(we){O[B]=we},onBlur(){U(B)},onKeyDown(we){p&&we.key==="Enter"&&N()},onChange(we){try{if(we=W(we),E(de=>Ht(Ae({},de),{[B]:!1})),hs.isEqual(we,se))return;n(we,B),U(B)}catch(de){E(le=>Ht(Ae({},le),{[B]:(de==null?void 0:de.message)||String(de)||!0}))}}}),X&&(q.helperText=q.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},X),u.createElement("br"),q.helperText):X),q.label===void 0&&(q.label=rL(B)),hs.defaults(q,r==null?void 0:r(ae))}{const ee=q,{xs:se=12,sm:ae,md:we,lg:de,xl:le,comp:te=Bo,before:be,after:_e,fromField:Se,toField:Fe}=ee,Re=un(ee,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);return u.createElement(Hn,{key:B||D,item:!0,xs:se,sm:ae,md:we,lg:de,xl:le},be,u.isValidElement(te)?te:u.createElement(te,Re),_e)}})),I&&u.createElement(yt,{display:"flex",alignItems:"center",sx:Object.assign({},i&&{width:"fit-content",zIndex:2,backgroundColor:"background.paper",borderRadius:1,position:"sticky",bottom:0,p:1,m:-1},a)},u.createElement(ooe,Ht(Ae({variant:"contained",startIcon:u.createElement(QO),children:"Save",loading:_!==0},I),{onClick:N})),...s)));function N(){$.current=!0,U()}function U(L=""){_===0&&(R.current=L,setTimeout(()=>k(1)))}function H(){return ft(this,null,function*(){var B,W;if(_===0)return;if(_===1)return k(2);const L="Please review errors",D={};for(const A of e){if(!A||u.isValidElement(A)||!A.k)continue;const{k:z}=A,G=t==null?void 0:t[z],q=(yield(B=O[z])==null?void 0:B.getError())||(yield(W=A.getError)==null?void 0:W.call(A,G,{values:t,fields:e}))||w[z];if(D[z]=q||!1,!$.current&&z===R.current)break;if(!x.current)return}P(D);try{if(!$.current)return;if(Object.values(D).some(Boolean))return yield f==null?void 0:f(L);const A=I&&I.onClick;A&&(yield A())}catch(A){yield f==null?void 0:f(A)}finally{$.current=!1,x.current&&k(0)}})}}function rL(e){return hs.capitalize(e.replace(/_/g," "))}function rx(e,t,n,r){return qO(e,o=>{o.some(i=>i[1][0]===t)&&n(e[t])},r)}const Boe="/~/api/";function zoe(e,t,n={}){const r=n.noModal?void 0:Yoe(),o=Hoe();return o&&(t=Ae({csrf:o},t)),fetch(Boe+e,{method:"POST",headers:{"content-type":"application/json"},body:t&&JSON.stringify(t)}).then(i=>{if(r==null||r(),i.ok)return i.json();const s=`Failed API ${e}: ${i.statusText}`;throw console.warn(s+(t?" "+JSON.stringify(t):"")),new joe(i.status,s)},i=>{var s;throw r==null||r(),(s=i==null?void 0:i.message)!=null&&s.includes("fetch")?Error("Network error"):i})}let joe=class extends Error{constructor(t,n){super(n),this.code=t}};function Hoe(){return YO("csrf")}const ku=ep({can_upload:!1,iconsClass:"",username:"",list:[],filteredList:void 0,loading:!1,listReloader:0,patternFilter:"",showFilter:!1,selected:{},remoteSearch:"",sortBy:"name",invertOrder:!1,foldersFirst:!0,theme:""});function Voe(){return uv(ku)}const oL="hfs_settings",ox=["sortBy","invertOrder","foldersFirst","theme"];Uoe();for(const e of ox)rx(ku,e,Woe);setTimeout(()=>zoe("config",{},{noModal:!0}).then(e=>ku.serverConfig=e));function Uoe(){const e=localStorage.getItem(oL);if(!e)return;let t;try{t=JSON.parse(e)}catch(n){console.error("invalid settings stored",e);return}for(const n of ox){const r=t[n];r!==void 0&&(ku[n]=r)}}function Woe(){localStorage.setItem(oL,JSON.stringify(Sn.pick(ku,ox)))}const Goe={login:"user:👤",user:"user:👤",filter:":✂",search:":🔍",search_off:"cancel:❌",stop:":⏹️",settings:"cog:⚙",archive:"file-archive:📦",logout:":🚪",home:":🏠",parent:"level-up mirror:⬆",folder:":📂",file:"doc:📄",spinner:"spin6 spinner:🎲",password:"key:🗝️",download:":📥",invert:"retweet:🙃",admin:"crown:👑",check:":✔️"};document.fonts.ready.then(()=>ft(void 0,null,function*(){const e='9px "fontello"';yield document.fonts.load(e),document.fonts.check(e)&&(ku.iconsClass=" ")}));const Koe=u.memo(o=>{var i=o,{name:e,alt:t,className:n=""}=i,r=un(i,["name","alt","className"]);const[s,a]=(Goe[e]||e).split(":"),{iconsClass:c}=Voe();return n+=" icon "+(c?"fa-"+(s||e):"emoji"),u.createElement("span",Ht(Ae({},r),{"aria-label":t,role:"img",className:n}),c?null:a||"#")});function qoe(e,t){return u.createElement(Koe,Ae({name:e},t))}let z0=!1;function Yoe(){return z0?()=>{}:(z0=!0,Ts({closable:!1,noFrame:!0,Content:Qoe,reserveClosing:!0,className:"working",onClose(){z0=!1}}))}const Xoe=window.HFS={};Xoe.onEvent=(e,t)=>{document.addEventListener("hfs."+e,n=>{const{params:r,output:o}=n.detail,i=t(r,o);i!==void 0&&Array.isArray(o)&&o.push(i)})};function Qoe(){return qoe("spinner",{className:"spinner"})}function Joe(o){var i=o,{gap:e="1em",vert:t=!1,children:n=null}=i,r=un(i,["gap","vert","children"]);return u.createElement("div",{style:Ae({display:"flex",gap:e,flexDirection:t?"column":void 0},r)},n)}Eb.Container=function(t){u.useEffect(()=>{var c;(c=n.current)==null||c.focus()},[]);const n=u.useRef();t=Ae(Ae({},Eb),t);const a=t.dialogProps||{},{sx:r,root:o}=a,i=un(a,["sx","root"]),s=t.padding?2:0;return u.createElement(EX,Ht(Ae(Ae({open:!0,maxWidth:"lg",fullScreen:!Pf("sm")},i),o),{onClose:()=>Ki()}),t.title&&u.createElement(DX,{},t.title),u.createElement(OX,{ref:n,sx:Ht(Ae({},r),{px:s,pb:s,display:"flex",flexDirection:"column",justifyContent:"center"})},u.createElement(t.Content)))};const iL={error:cv,warning:qC,info:au,success:zO};function wr(e,t){return ft(this,null,function*(){return new Promise(n=>{const r=typeof t=="string"?{type:t}:t!=null?t:{};let a=r,{type:o="info"}=a,i=un(a,["type"]);e instanceof Error&&(e=e.message||String(e),o="error");const s=Ts(Ht(Ae({className:"dialog-alert-"+o,icon:"!",onClose:n},i),{Content(){var c;return u.createElement(yt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.createElement(tr,{onClick(){s()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},u.createElement(jO)),(c=r.icon)!=null?c:u.createElement(iL[o],{color:o,fontSize:"large"}),u.isValidElement(e)?e:u.createElement(yt,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}))})})}function vs(n){return ft(this,arguments,function*(e,{href:t}={}){return new Promise(o=>Ts({className:"dialog-confirm",icon:"?",onClose:o,Content:r}));function r(){return u.createElement(u.Fragment,{},u.createElement(yt,{mb:2},e),u.createElement(Joe,{},u.createElement("a",{href:t,onClick:()=>Ki(!0)},u.createElement(Qn,{variant:"contained"},"Confirm")),u.createElement(Qn,{onClick:()=>Ki(!1)},"Don't")))}})}function Ef(i){return ft(this,null,function*(){var s=i,{fullScreen:e,title:t,onChange:n,before:r}=s,o=un(s,["fullScreen","title","onChange","before"]);return new Promise(c=>Ts({className:"dialog-confirm",icon:"?",onClose:c,title:t,Content:a}));function a(){const[c,f]=u.useState(o.values||{});return u.createElement(u.Fragment,{},r,u.createElement(tp,Ht(Ae({},o),{values:c,set(p,h){const m=Ht(Ae({},c),{[h]:p});f(m),n==null||n(m,{setValues:f})},save:Ht(Ae({},o.save),{onClick(){Ki(c)}})})))}})}function Zoe(n){return ft(this,arguments,function*(e,t={}){return Ef(Ht(Ae({},t),{fields:[Ae({k:"text",label:null,autoFocus:!0,before:u.createElement(yt,{mb:2},e)},t.field)],save:Ae({children:"Continue",startIcon:u.createElement(HO)},t.save),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(Qn,{onClick:Ki},"Cancel"),...t.addToBar||[]]})).then(r=>r==null?void 0:r.text)})}function eie(){return Ts({Content:Xf,closable:!1})}function ha(e,t="info"){const r=Ts({Content:o,dialogProps:{PaperProps:{sx:{transition:`opacity ${3e3}ms ease-in`},ref(i){i&&(i.style.opacity="0")}}}});setTimeout(r,3e3);function o(){return u.createElement(yt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(iL[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}function sL(){return u.createElement(Xf)}function lL(e){return e&&/^[a-zA-Z]:$/.test(e)}function ix(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>ix(r,t[n]))}function sx(e){return e?{outline:"2px solid"}:void 0}function Rr(f){var p=f,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=un(p,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=ao(!1);typeof r=="string"&&(e=r),i&&(n=()=>window.open(i));let v=u.createElement(tr,Ht(Ae({disabled:Boolean(h||o||r)},c),{onClick(){return ft(this,arguments,function*(){if(a&&!(yield vs(a)))return;const g=n==null?void 0:n.apply(this,arguments);g&&g instanceof Promise&&(m(!0),g.catch(wr).finally(()=>m(!1)))})}}),u.createElement(t));return(o||h)&&o!==!1&&(v=u.createElement(yt,{position:"relative",display:"inline-block"},u.createElement(Xf,Ht(Ae({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:4,left:4,width:32,height:32}})),v)),e&&(v=u.createElement(av,Ht(Ae({title:e},s),{children:u.createElement("span",{},v)}))),v}function as(e,t,n){return u.createElement(av,{title:t,children:u.createElement(e,{sx:n})})}function lx(e){return u.createElement(Sf,Ae({component:VT},e))}function ax(e){return u.createElement(yt,Ae({display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e))}function tie(e,t){return ft(this,null,function*(){const r=(yield Gt("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield Gt("set_config",{values:{[e]:o}}))})}function nie(e){return Object.keys(e)}function rie(e,t){var n;return(n=t[e])!=null?n:e}function Pf(e){return gO(t=>t.breakpoints.up(e),{noSsr:!0})}function aL(e){return{ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function oie(e){return e==null?[]:Array.isArray(e)?e:[e]}const cL="admin_state",$n=ep(Object.assign({title:"",config:{},selectedFiles:[],vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[cL]||null))),uL=["onlinePluginsColumns"],iie=Sn.debounce(()=>localStorage[cL]=JSON.stringify(Sn.pick($n,uL)),500,{maxWait:1e3});for(const e of uL)rx($n,e,iie);function Fl(){return uv($n)}var cx={},sie=pt;Object.defineProperty(cx,"__esModule",{value:!0});var np=cx.default=void 0,lie=sie(vt()),aie=ht(),cie=(0,lie.default)((0,aie.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"Refresh");np=cx.default=cie;function ci(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function hu(e){return!!e&&!!e[mo]}function Ea(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===vie}(e)||Array.isArray(e)||!!e[O_]||!!e.constructor[O_]||ux(e)||dx(e))}function kf(e,t,n){n===void 0&&(n=!1),Iu(e)===0?(n?Object.keys:gx)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Iu(e){var t=e[mo];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ux(e)?2:dx(e)?3:0}function _b(e,t){return Iu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function uie(e,t){return Iu(e)===2?e.get(t):e[t]}function dL(e,t,n){var r=Iu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function die(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ux(e){return mie&&e instanceof Map}function dx(e){return gie&&e instanceof Set}function Ql(e){return e.o||e.t}function fx(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=yie(e);delete t[mo];for(var n=gx(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function px(e,t){return t===void 0&&(t=!1),hx(e)||hu(e)||!Ea(e)||(Iu(e)>1&&(e.set=e.add=e.clear=e.delete=fie),Object.freeze(e),t&&kf(e,function(n,r){return px(r,!0)},!0)),e}function fie(){ci(2)}function hx(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zi(e){var t=bie[e];return t||ci(18,e),t}function k_(){return If}function j0(e,t){t&&(zi("Patches"),e.u=[],e.s=[],e.v=t)}function Um(e){$b(e),e.p.forEach(pie),e.p=null}function $b(e){e===If&&(If=e.l)}function I_(e){return If={p:[],l:If,h:e,m:!0,_:0}}function pie(e){var t=e[mo];t.i===0||t.i===1?t.j():t.O=!0}function H0(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||zi("ES5").S(t,e,r),r?(n[mo].P&&(Um(t),ci(4)),Ea(e)&&(e=Wm(t,e),t.l||Gm(t,e)),t.u&&zi("Patches").M(n[mo].t,e,t.u,t.s)):e=Wm(t,n,[]),Um(t),t.u&&t.v(t.u,t.s),e!==fL?e:void 0}function Wm(e,t,n){if(hx(t))return t;var r=t[mo];if(!r)return kf(t,function(i,s){return __(e,r,t,i,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Gm(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=fx(r.k):r.o;kf(r.i===3?new Set(o):o,function(i,s){return __(e,r,o,i,s,n)}),Gm(e,o,!1),n&&e.u&&zi("Patches").R(r,n,e.u,e.s)}return r.o}function __(e,t,n,r,o,i){if(hu(o)){var s=Wm(e,o,i&&t&&t.i!==3&&!_b(t.D,r)?i.concat(r):void 0);if(dL(n,r,s),!hu(s))return;e.m=!1}if(Ea(o)&&!hx(o)){if(!e.h.F&&e._<1)return;Wm(e,o),t&&t.A.l||Gm(e,o)}}function Gm(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&px(t,n)}function V0(e,t){var n=e[mo];return(n?Ql(n):e)[t]}function $_(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Mb(e){e.P||(e.P=!0,e.l&&Mb(e.l))}function U0(e){e.o||(e.o=fx(e.t))}function Tb(e,t,n){var r=ux(t)?zi("MapSet").N(t,n):dx(t)?zi("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),a={i:s?1:0,A:i?i.A:k_(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=a,f=Rb;s&&(c=[a],f=Ed);var p=Proxy.revocable(c,f),h=p.revoke,m=p.proxy;return a.k=m,a.j=h,m}(t,n):zi("ES5").J(t,n);return(n?n.A:k_()).p.push(r),r}function hie(e){return hu(e)||ci(22,e),function t(n){if(!Ea(n))return n;var r,o=n[mo],i=Iu(n);if(o){if(!o.P&&(o.i<4||!zi("ES5").K(o)))return o.t;o.I=!0,r=M_(n,i),o.I=!1}else r=M_(n,i);return kf(r,function(s,a){o&&uie(o.t,s)===a||dL(r,s,t(a))}),i===3?new Set(r):r}(e)}function M_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return fx(e)}var T_,If,mx=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",mie=typeof Map!="undefined",gie=typeof Set!="undefined",R_=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",fL=mx?Symbol.for("immer-nothing"):((T_={})["immer-nothing"]=!0,T_),O_=mx?Symbol.for("immer-draftable"):"__$immer_draftable",mo=mx?Symbol.for("immer-state"):"__$immer_state",vie=""+Object.prototype.constructor,gx=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,yie=Object.getOwnPropertyDescriptors||function(e){var t={};return gx(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},bie={},Rb={get:function(e,t){if(t===mo)return e;var n=Ql(e);if(!_b(n,t))return function(o,i,s){var a,c=$_(i,s);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Ea(r)?r:r===V0(e.t,t)?(U0(e),e.o[t]=Tb(e.A.h,r,e)):r},has:function(e,t){return t in Ql(e)},ownKeys:function(e){return Reflect.ownKeys(Ql(e))},set:function(e,t,n){var r=$_(Ql(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=V0(Ql(e),t),i=o==null?void 0:o[mo];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(die(n,o)&&(n!==void 0||_b(e.t,t)))return!0;U0(e),Mb(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return V0(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,U0(e),Mb(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ql(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ci(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ci(12)}},Ed={};kf(Rb,function(e,t){Ed[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ed.deleteProperty=function(e,t){return Ed.set.call(this,e,t,void 0)},Ed.set=function(e,t,n){return Rb.set.call(this,e[0],t,n,e[0])};var wie=function(){function e(n){var r=this;this.g=R_,this.F=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var a=i;i=o;var c=r;return function(g){var x=this;g===void 0&&(g=a);for(var b=arguments.length,P=Array(b>1?b-1:0),w=1;w<b;w++)P[w-1]=arguments[w];return c.produce(g,function(E){var I;return(I=i).call.apply(I,[x,E].concat(P))})}}var f;if(typeof i!="function"&&ci(6),s!==void 0&&typeof s!="function"&&ci(7),Ea(o)){var p=I_(r),h=Tb(r,o,void 0),m=!0;try{f=i(h),m=!1}finally{m?Um(p):$b(p)}return typeof Promise!="undefined"&&f instanceof Promise?f.then(function(g){return j0(p,s),H0(g,p)},function(g){throw Um(p),g}):(j0(p,s),H0(f,p))}if(!o||typeof o!="object"){if((f=i(o))===void 0&&(f=o),f===fL&&(f=void 0),r.F&&px(f,!0),s){var v=[],C=[];zi("Patches").M(o,f,v,C),s(v,C)}return f}ci(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(f){for(var p=arguments.length,h=Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];return r.produceWithPatches(f,function(v){return o.apply(void 0,[v].concat(h))})};var s,a,c=r.produce(o,i,function(f,p){s=f,a=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(f){return[f,s,a]}):[c,s,a]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Ea(n)||ci(8),hu(n)&&(n=hie(n));var r=I_(this),o=Tb(this,n,void 0);return o[mo].C=!0,$b(r),o},t.finishDraft=function(n,r){var o=n&&n[mo],i=o.A;return j0(i,r),H0(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!R_&&ci(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=zi("Patches").$;return hu(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),go=new wie,Cie=go.produce;go.produceWithPatches.bind(go);go.setAutoFreeze.bind(go);go.setUseProxies.bind(go);go.applyPatches.bind(go);go.createDraft.bind(go);go.finishDraft.bind(go);const xie=Cie;function ji(...e){const[t,n,r]=rp(...e),o=e[0],i=t===void 0,s=u.useMemo(()=>o?n?u.createElement(qi,{severity:"error"},String(n),u.createElement(Rr,{icon:np,onClick:r,sx:{m:"-8px 0 -8px 16px"}})):i?sL():null:null,[n,o,i,r]);return{data:t,error:n,reload:r,loading:i,element:s}}const pL="/~/api/",Sie={get_status:20};function Gt(e,t,{timeout:n=void 0}={}){var i,s;const r=mL();r&&(t=Ae({csrf:r},t));const o=new AbortController;return n!==!1&&setTimeout(()=>o.abort("timeout"),1e3*((s=(i=Sie[e])!=null?i:n)!=null?s:10)),fetch(pL+e,{method:"POST",headers:{"content-type":"application/json"},signal:o.signal,body:t&&JSON.stringify(t)}).then(a=>ft(this,null,function*(){if(a.ok)return a.json().then(f=>(console.debug("API",e,t,">>",f),f));const c=(yield a.text())||"Failed API "+e;throw console.warn(c+(t?" "+JSON.stringify(t):"")),a.status===401&&($n.loginRequired=Boolean(Wre(()=>{var f;return(f=JSON.parse(c))==null?void 0:f.any}))||403),new Eie(a.status,c)}),a=>{var c;throw(c=a==null?void 0:a.message)!=null&&c.includes("fetch")?Error("Network error"):a})}class Eie extends Error{constructor(t,n){super(n),this.code=t}}function rp(e,t){const[n,r]=ao(void 0),[o,i]=ao(void 0),[s,a]=ao(0),c=u.useRef(!1);u.useEffect(()=>{r(void 0),i(void 0),e&&(c.current=!0,Gt(e,t).then(r,i).finally(()=>c.current=!1))},[e,JSON.stringify(t),s]);const f=u.useCallback(()=>c.current||a(p=>p+1),[a]);return[n,o,f]}function hL(e,t,n){console.debug("API EVENTS",e,t);const r=mL(),o={csrf:r&&JSON.stringify(r)};for(const s in t){const a=t[s];a!==void 0&&(o[s]=JSON.stringify(a))}const i=new EventSource(pL+e+"?"+new URLSearchParams(o));return i.onopen=()=>n("connected"),i.onerror=s=>n("error",s),i.onmessage=({data:s})=>{if(!s)return n("closed"),i.close();try{s=JSON.parse(s)}catch(a){return n("string",s)}console.debug("SSE msg",s),n("msg",s)},i}function mL(){return YO("csrf")}function Pie(e,t={}){const[n,r]=ao(void 0),[o,i]=ao(void 0),[s,a]=ao(!1);return u.useEffect(()=>{const c=hL(e,t,(p,h)=>{switch(p){case"error":return i("Connection error"),f();case"closed":return f();case"msg":return(c==null?void 0:c.readyState)===(c==null?void 0:c.CLOSED)?f():r(h)}});return()=>{c.close(),f()};function f(){a(!1)}},[e,JSON.stringify(t)]),{data:n,loading:s,error:o}}function _u(e,t={},{addId:n=!1,map:r=o=>o}={}){const[o,i]=ao([]),[s,a]=ao(void 0),[c,f]=ao(void 0),[p,h]=ao(!0),[m,v]=ao(!1),[C,g]=ao(!0),x=u.useRef(0);return u.useEffect(()=>{if(!e)return;const P=[],w=Sn.debounce(()=>{const _=P.splice(0,1/0);_.length&&i(k=>[...k,..._])},1e3,{maxWait:1e3});f(void 0),v(!0),h(!0),g(!0),i([]);const E=hL(e,t,(_,k)=>{switch(_){case"connected":return h(!1),setTimeout(()=>w.flush());case"error":return f("Connection error"),I();case"closed":return I();case"msg":oie(k).forEach($=>{if($==="ready"){w.flush(),g(!1);return}if($.error)return f(aL($.error));if($.props)return a($.props);if($.add){const R=r($.add);n&&(R.id=++x.current),P.push(R),w();return}if($.remove){const R=[];for(const O of $.remove){const N=Sn.matches(O);Sn.isEmpty(Sn.remove(P,N))&&R.push(N)}if(Sn.isEmpty(R))return;i(O=>{const N=O.filter(U=>!R.some(H=>H(U)));return N.length<O.length?N:O});return}if($.update){w.flush(),i(R=>{const O=[...R];for(const{search:N,change:U}of $.update){const H=O.findIndex(Sn.matches(N));H>=0&&(O[H]=Ae(Ae({},O[H]),U))}return O});return}console.debug("unknown api event",_,$)}),(E==null?void 0:E.readyState)===(E==null?void 0:E.CLOSED)&&I()}});return()=>E.close();function I(){g(!1),v(!1),w.flush()}},[e,JSON.stringify(t)]),{list:o,props:s,loading:m,error:c,initializing:C,connecting:p,setList:i,updateList:b};function b(P){i(xie(o,w=>{P(w)}))}}var vx={},kie=pt;Object.defineProperty(vx,"__esModule",{value:!0});var gL=vx.default=void 0,Iie=kie(vt()),_ie=ht(),$ie=(0,Iie.default)((0,_ie.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"}),"PauseCircle");gL=vx.default=$ie;var yx={},Mie=pt;Object.defineProperty(yx,"__esModule",{value:!0});var yv=yx.default=void 0,Tie=Mie(vt()),Rie=ht(),Oie=(0,Tie.default)((0,Rie.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"}),"PlayCircle");yv=yx.default=Oie;var bx={},Lie=pt;Object.defineProperty(bx,"__esModule",{value:!0});var wx=bx.default=void 0,Aie=Lie(vt()),Fie=ht(),Nie=(0,Aie.default)((0,Fie.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");wx=bx.default=Nie;var Cx={},Die=pt;Object.defineProperty(Cx,"__esModule",{value:!0});var vL=Cx.default=void 0,Bie=Die(vt()),zie=ht(),jie=(0,Bie.default)((0,zie.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"}),"Block");vL=Cx.default=jie;var xx={},Hie=pt;Object.defineProperty(xx,"__esModule",{value:!0});var yL=xx.default=void 0,Vie=Hie(vt()),Uie=ht(),Wie=(0,Vie.default)((0,Uie.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2v2z"}),"FolderZip");yL=xx.default=Wie;const bL=u.createContext(void 0);function mt(){const e=u.useContext(bL);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
|
268
|
+
`));return e}const wL=u.createContext(void 0),Ye=()=>{const e=u.useContext(wL);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};function Nt(e){return Ke("MuiDataGrid",e)}const Z=Ve("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Gie=e=>{const{classes:t}=e;return Ie({root:["main"]},Nt,t)},Kie=re("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}));function CL(e){const n={classes:Ye().classes},r=Gie(n);return T.jsx(Kie,{className:r.root,children:e.children})}function qie(e,t){var n=function(E){var I=E.__resizeTriggers__,_=I.firstElementChild,k=I.lastElementChild,$=_.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,$.style.width=_.offsetWidth+1+"px",$.style.height=_.offsetHeight+1+"px",_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight},r=function(E){return E.offsetWidth!=E.__resizeLast__.width||E.offsetHeight!=E.__resizeLast__.height},o=function(E){if(!(E.target.className.indexOf("contract-trigger")<0&&E.target.className.indexOf("expand-trigger")<0)){var I=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame(function(){r(I)&&(I.__resizeLast__.width=I.offsetWidth,I.__resizeLast__.height=I.offsetHeight,I.__resizeListeners__.forEach(function(_){_.call(I,E)}))})}},i=!1,s="",a="animationstart",c="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{var h=document.createElement("fakeelement");if(h.style.animationName!==void 0&&(i=!0),i===!1){for(var m=0;m<c.length;m++)if(h.style[c[m]+"AnimationName"]!==void 0){p=c[m],s="-"+p.toLowerCase()+"-",a=f[m],i=!0;break}}}var v="resizeanim",C="@"+s+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",g=s+"animation: 1ms "+v+"; ",x=function(E){if(!E.getElementById("muiDetectElementResize")){var I=(C||"")+".Mui-resizeTriggers { "+(g||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',_=E.head||E.getElementsByTagName("head")[0],k=E.createElement("style");k.id="muiDetectElementResize",k.type="text/css",e!=null&&k.setAttribute("nonce",e),k.styleSheet?k.styleSheet.cssText=I:k.appendChild(E.createTextNode(I)),_.appendChild(k)}},b=function(E,I){if(!E.__resizeTriggers__){var _=E.ownerDocument,k=t.getComputedStyle(E);k&&k.position=="static"&&(E.style.position="relative"),x(_),E.__resizeLast__={},E.__resizeListeners__=[],(E.__resizeTriggers__=_.createElement("div")).className="Mui-resizeTriggers",E.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',E.appendChild(E.__resizeTriggers__),n(E),E.addEventListener("scroll",o,!0),a&&(E.__resizeTriggers__.__animationListener__=function(R){R.animationName==v&&n(E)},E.__resizeTriggers__.addEventListener(a,E.__resizeTriggers__.__animationListener__))}E.__resizeListeners__.push(I)},P=function(E,I){if(E.__resizeListeners__.splice(E.__resizeListeners__.indexOf(I),1),!E.__resizeListeners__.length){E.removeEventListener("scroll",o,!0),E.__resizeTriggers__.__animationListener__&&(E.__resizeTriggers__.removeEventListener(a,E.__resizeTriggers__.__animationListener__),E.__resizeTriggers__.__animationListener__=null);try{E.__resizeTriggers__=!E.removeChild(E.__resizeTriggers__)}catch(_){}}};return{addResizeListener:b,removeResizeListener:P}}const Yie=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],Xie=u.forwardRef(function(t,n){const{children:r,defaultHeight:o=null,defaultWidth:i=null,disableHeight:s=!1,disableWidth:a=!1,nonce:c,onResize:f,style:p}=t,h=oe(t,Yie),[m,v]=u.useState({height:o,width:i}),C=u.useRef(null),g=u.useRef(null),x=zn(()=>{if(g.current){const E=g.current.offsetHeight||0,I=g.current.offsetWidth||0,k=Jr(g.current).getComputedStyle(g.current),$=parseInt(k.paddingLeft,10)||0,R=parseInt(k.paddingRight,10)||0,O=parseInt(k.paddingTop,10)||0,N=parseInt(k.paddingBottom,10)||0,U=E-O-N,H=I-$-R;(!s&&m.height!==U||!a&&m.width!==H)&&(v({height:U,width:H}),f&&f({height:U,width:H}))}});Rn(()=>{var E;if(g.current=C.current.parentElement,!g)return;const I=Jr((E=g.current)!=null?E:void 0),_=qie(c,I);return _.addResizeListener(g.current,x),x(),()=>{_.removeResizeListener(g.current,x)}},[c,x]);const b={overflow:"visible"},P={};s||(b.height=0,P.height=m.height),a||(b.width=0,P.width=m.width);const w=St(C,n);return T.jsx("div",S({ref:w,style:S({},b,p)},h,{children:m.height===null&&m.width===null?null:r(P)}))}),gi=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
269
|
+
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Na=(e,t)=>e;function Qie(e){return e.acceptsApiRef}gi(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const Ue=(e,t)=>Qie(t)?t(e):t(e.current.state);var Km="NOT_FOUND";function Jie(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Km},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Zie(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var f=n[c];return c>0&&(n.splice(c,1),n.unshift(f)),f.value}return Km}function o(a,c){r(a)===Km&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var ese=function(t,n){return t===n};function tse(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function xL(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?ese:r,i=n.maxSize,s=i===void 0?1:i,a=n.resultEqualityCheck,c=tse(o),f=s===1?Jie(c):Zie(s,c);function p(){var h=f.get(arguments);if(h===Km){if(h=e.apply(null,arguments),a){var m=f.getEntries(),v=m.find(function(C){return a(C.value,h)});v&&(h=v.value)}f.put(arguments,h)}return h}return p.clearCache=function(){return f.clear()},p}function nse(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function rse(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];var f=0,p,h={memoizeOptions:void 0},m=a.pop();if(typeof m=="object"&&(h=m,m=a.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var v=h,C=v.memoizeOptions,g=C===void 0?n:C,x=Array.isArray(g)?g:[g],b=nse(a),P=e.apply(void 0,[function(){return f++,m.apply(null,arguments)}].concat(x)),w=e(function(){for(var I=[],_=b.length,k=0;k<_;k++)I.push(b[k].apply(null,arguments));return p=P.apply(null,I),p});return Object.assign(w,{resultFunc:m,memoizedResultFunc:P,dependencies:b,lastResult:function(){return p},recomputations:function(){return f},resetRecomputations:function(){return f=0}}),w};return o}var ose=rse(xL);const hd={cache:null};gi(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]);const qe=(...e)=>{hd.cache===null&&(hd.cache={});const t=(...n)=>{const[r,o]=n,i=!!r.current,s=i?r.current.instanceId:o!=null?o:"default",a=i?r.current.state:r;hd.cache===null&&(hd.cache={});const{cache:c}=hd;if(c[s]&&c[s].get(e))return c[s].get(e)(a,s);const f=ose(...e);return c[s]||(c[s]=new Map),c[s].set(e,f),f(a,s)};return t.acceptsApiRef=!0,t},Yi=e=>e.rows,bv=qe(Yi,e=>e.totalRowCount),ise=qe(Yi,e=>e.loading),sse=qe(Yi,e=>e.totalTopLevelRowCount),_f=qe(Yi,e=>e.idRowsLookup),SL=qe(Yi,e=>e.idToIdLookup),ma=qe(Yi,e=>e.tree),lse=qe(Yi,e=>e.groupingName),Sx=qe(Yi,e=>e.treeDepth),Vc=qe(Yi,e=>e.ids),ase=qe(Yi,e=>e==null?void 0:e.additionalRowGroups),op=qe(ase,e=>e==null?void 0:e.pinnedRows),cse=qe(op,e=>{var t,n;return((e==null||(t=e.top)==null?void 0:t.length)||0)+((e==null||(n=e.bottom)==null?void 0:n.length)||0)}),Ex=e=>e.sorting,Px=qe(Ex,e=>e.sortedRows),kx=qe(Px,_f,(e,t)=>e.map(n=>({id:n,model:t[n]}))),si=qe(Ex,e=>e.sortModel),use=qe(si,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),Pa=e=>e.columns,ka=qe(Pa,e=>e.all),$u=qe(Pa,e=>e.lookup),Vo=qe(ka,$u,(e,t)=>e.map(n=>t[n])),ol=qe(Pa,e=>e.columnVisibilityModel),dr=qe(Vo,ol,(e,t)=>e.filter(n=>t[n.field]!==!1));qe(dr,e=>e.map(t=>t.field));const Ia=qe(dr,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),wv=qe(dr,Ia,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),Cv=qe(Vo,e=>e.filter(t=>t.filterable)),dse=qe(Vo,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{}));Na(ka);Na(Vo);Na(dr);Na(Cv);Na(qe(Cv,e=>e.map(t=>t.field)));Na(qe(dr,e=>e.length));const fse=Na(qe(Ia,wv,(e,t)=>({totalWidth:t,positions:e}))),ip=e=>e.filter,jr=qe(ip,e=>e.filterModel);qe(jr,e=>e.quickFilterValues);const pse=qe(ip,e=>e.visibleRowsLookup),EL=qe(ip,e=>e.filteredRowsLookup);qe(ip,e=>e.filteredDescendantCountLookup);const Rs=qe(pse,kx,(e,t)=>t.filter(n=>e[n.id]!==!1)),Gd=qe(Rs,e=>e.map(t=>t.id)),hse=qe(EL,kx,(e,t)=>t.filter(n=>e[n.id]!==!1)),mse=qe(hse,e=>e.map(t=>t.id)),PL=qe(Rs,ma,Sx,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),kL=qe(Rs,e=>e.length),IL=qe(PL,e=>e.length),gse=qe(jr,$u,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.columnField)return!1;const s=t[r.columnField];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const a=s.filterOperators.find(c=>c.value===r.operatorValue);return a?!a.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),vse=qe(gse,e=>e.reduce((n,r)=>(n[r.columnField]?n[r.columnField].push(r):n[r.columnField]=[r],n),{})),Da=e=>e.density,yse=qe(Da,e=>e.value),sp=qe(Da,e=>e.rowHeight),_L=qe(Da,e=>e.headerHeight),Ix=qe(Da,e=>e.headerGroupingMaxDepth),bse=qe(Da,e=>e.factor),lp=qe(Da,e=>e.headerHeight*(1+e.headerGroupingMaxDepth));function wse(e){var t,n;const r=mt(),o=Ye(),i=Ue(r,lp),[s,a]=u.useState(()=>{var p,h;return(p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null}),c=u.useCallback(()=>{var p,h;a((p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null)},[r]);Rn(()=>r.current.subscribeEvent("viewportInnerSizeChange",c),[r,c]);let f=(t=s==null?void 0:s.height)!=null?t:0;return o.autoHeight&&f===0&&(f="auto"),s?T.jsx("div",S({style:{height:f,width:(n=s==null?void 0:s.width)!=null?n:0,position:"absolute",top:i,bottom:f==="auto"?0:void 0}},e)):null}function Cse(){const e=mt(),t=Ye(),n=Ue(e,bv),r=Ue(e,kL),o=Ue(e,ise),i=!o&&n===0,s=!o&&n>0&&r===0;let a=null;if(i){var c;a=T.jsx(t.components.NoRowsOverlay,S({},(c=t.componentsProps)==null?void 0:c.noRowsOverlay))}if(s){var f;a=T.jsx(t.components.NoResultsOverlay,S({},(f=t.componentsProps)==null?void 0:f.noResultsOverlay))}if(o){var p;a=T.jsx(t.components.LoadingOverlay,S({},(p=t.componentsProps)==null?void 0:p.loadingOverlay))}return a===null?null:T.jsx(wse,{children:a})}function xse(e){const{children:t,VirtualScrollerComponent:n,ColumnHeadersComponent:r}=e,o=mt(),i=Ye(),s=Ue(o,lp),[a,c]=u.useState(i.disableVirtualization),f=u.useCallback(()=>{c(!0)},[]),p=u.useCallback(()=>{c(!1)},[]);u.useEffect(()=>{c(i.disableVirtualization)},[i.disableVirtualization]),o.current.unstable_disableVirtualization=f,o.current.unstable_enableVirtualization=p;const h=u.useRef(null),m=u.useRef(null),v=u.useRef(null),C=u.useRef(null);o.current.columnHeadersContainerElementRef=m,o.current.columnHeadersElementRef=h,o.current.windowRef=v,o.current.renderingZoneRef=C;const g=u.useCallback(x=>{o.current.publishEvent("resize",x)},[o]);return T.jsxs(CL,{children:[T.jsx(Cse,{}),T.jsx(r,{ref:m,innerRef:h}),T.jsx(Xie,{nonce:i.nonce,disableHeight:i.autoHeight,onResize:g,children:x=>{const b={width:x.width,height:x.height?x.height-s:"auto",marginTop:s};return T.jsx(n,{ref:v,style:b,disableVirtualization:a})}}),t]})}function Wn(e,t){const n=u.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}class Sse extends u.Component{static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){this.props.api.current&&(this.logError(t),this.props.api.current.showError({error:t,errorInfo:n}))}logError(t,n){this.props.logger.error(`An unexpected error occurred. Error: ${t&&t.message}. `,t,n)}render(){var t;return this.props.hasError||(t=this.state)!=null&&t.hasError?this.props.render(this.props.componentProps||this.state):this.props.children}}function Ese(e){const{children:t}=e,n=mt(),r=Wn(n,"GridErrorHandler"),o=Ye(),i=n.current.state.error;return T.jsx(Sse,{hasError:i!=null,componentProps:i,api:n,logger:r,render:s=>{var a;return T.jsx(CL,{children:T.jsx(o.components.ErrorOverlay,S({},s,(a=o.componentsProps)==null?void 0:a.errorOverlay))})},children:t})}function Pse(){var e;const t=mt(),n=Ye(),r=u.useRef(null);return t.current.footerRef=r,n.hideFooter?null:T.jsx("div",{ref:r,children:T.jsx(n.components.Footer,S({},(e=n.componentsProps)==null?void 0:e.footer))})}function kse(){var e;const t=mt(),n=Ye(),r=u.useRef(null);return t.current.headerRef=r,T.jsx("div",{ref:r,children:T.jsx(n.components.Header,S({},(e=n.componentsProps)==null?void 0:e.header))})}var Cr;(function(e){e.Cell="cell",e.Row="row"})(Cr||(Cr={}));var Rt;(function(e){e.Edit="edit",e.View="view"})(Rt||(Rt={}));var Xt;(function(e){e.Edit="edit",e.View="view"})(Xt||(Xt={}));const Uc={client:"client",server:"server"};var Mr;(function(e){e.And="and",e.Or="or"})(Mr||(Mr={}));var cs;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(cs||(cs={}));var ki;(function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(ki||(ki={}));var us;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(us||(us={}));var Ii;(function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(Ii||(Ii={}));var $f;(function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"})($f||($f={}));function $L(e){return e.field!==void 0}const ML=e=>e.focus,ui=qe(ML,e=>e.cell),Ise=qe(ML,e=>e.columnHeader),TL=e=>e.tabIndex,qm=qe(TL,e=>e.cell),RL=qe(TL,e=>e.columnHeader),_se=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];let W0;function $se(){return W0===void 0&&document.createElement("div").focus({get preventScroll(){return W0=!0,!1}}),W0}const Mse=e=>{const{align:t,showRightBorder:n,isEditable:r,classes:o}=e,i={root:["cell",`cell--text${fe(t)}`,r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return Ie(i,Nt,o)};function Tse(e){const{align:t,children:n,colIndex:r,cellMode:o,field:i,formattedValue:s,hasFocus:a,height:c,isEditable:f,rowId:p,tabIndex:h,value:m,width:v,className:C,showRightBorder:g,colSpan:x,disableDragEvents:b,onClick:P,onDoubleClick:w,onMouseDown:E,onMouseUp:I,onKeyDown:_,onDragEnter:k,onDragOver:$}=e,R=oe(e,_se),O=s==null?m:s,N=u.useRef(null),U=u.useRef(null),H=mt(),L=Ye(),D={align:t,showRightBorder:g,isEditable:f,classes:L.classes},B=Mse(D),W=u.useCallback(se=>ae=>{const we=H.current.getCellParams(p,i||"");H.current.publishEvent(se,we,ae),I&&I(ae)},[H,i,I,p]),A=u.useCallback((se,ae)=>we=>{if(!we.currentTarget.contains(we.target)||!H.current.getRow(p))return;const de=H.current.getCellParams(p,i||"");H.current.publishEvent(se,de,we),ae&&ae(we)},[H,i,p]),z={minWidth:v,maxWidth:v,minHeight:c,maxHeight:c==="auto"?"none":c};u.useLayoutEffect(()=>{if(!a||o===Rt.Edit)return;const se=yn(H.current.rootElementRef.current);if(N.current&&!N.current.contains(se.activeElement)){const ae=N.current.querySelector('[tabindex="0"]'),we=U.current||ae||N.current;if($se())we.focus({preventScroll:!0});else{const de=H.current.getScrollPosition();we.focus(),H.current.scroll(de)}}},[a,o,H]);let G=R.onFocus;const X=H.current.getColumn(i).type==="actions",ie=()=>n==null?T.jsx("div",{className:B.content,children:O==null?void 0:O.toString()}):u.isValidElement(n)&&X?u.cloneElement(n,{focusElementRef:U}):n,ee=b?null:{onDragEnter:A("cellDragEnter",k),onDragOver:A("cellDragOver",$)};return T.jsx("div",S({ref:N,className:he(C,B.root),role:"cell","data-field":i,"data-colindex":r,"aria-colindex":r+1,"aria-colspan":x,style:z,tabIndex:(o==="view"||!f)&&!X?h:-1,onClick:A("cellClick",P),onDoubleClick:A("cellDoubleClick",w),onMouseDown:A("cellMouseDown",E),onMouseUp:W("cellMouseUp"),onKeyDown:A("cellKeyDown",_)},ee,R,{onFocus:G,children:ie()}))}const Rse=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],Ose=e=>{const{classes:t}=e;return Ie({root:["booleanCell"]},Nt,t)},Lse=e=>{const{value:t}=e,n=oe(e,Rse),r=mt(),o=Ye(),i={classes:o.classes},s=Ose(i),a=u.useMemo(()=>t?o.components.BooleanCellTrueIcon:o.components.BooleanCellFalseIcon,[o.components.BooleanCellFalseIcon,o.components.BooleanCellTrueIcon,t]);return T.jsx(a,S({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},n))},Ase=u.memo(Lse),Fse=e=>e.rowNode.isAutoGenerated?"":T.jsx(Ase,S({},e)),Nse=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Dse=e=>{const{classes:t}=e;return Ie({root:["editBooleanCell"]},Nt,t)};function Bse(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:s,onValueChange:a}=e,c=oe(e,Nse),f=mt(),p=u.useRef(null),h=En(),[m,v]=u.useState(r),C=Ye(),g={classes:C.classes},x=Dse(g),b=u.useCallback(P=>ft(this,null,function*(){const w=P.target.checked;a&&(yield a(P,w)),v(w),yield f.current.setEditCellValue({id:n,field:o,value:w},P)}),[f,o,n,a]);return u.useEffect(()=>{v(r)},[r]),Rn(()=>{s&&p.current.focus()},[s]),T.jsx("label",S({htmlFor:h,className:he(x.root,i)},c,{children:T.jsx(C.components.BaseCheckbox,S({id:h,inputRef:p,checked:Boolean(m),onChange:b,size:"small"},(t=C.componentsProps)==null?void 0:t.baseCheckbox))}))}const zse=e=>T.jsx(Bse,S({},e)),jse=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"],Hse=re(xu)({fontSize:"inherit"}),Vse=e=>{const{classes:t}=e;return Ie({root:["editInputCell"]},Nt,t)};function Use(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,c=oe(e,jse),f=o.type==="dateTime",p=mt(),h=u.useRef(),m=u.useMemo(()=>{let w;n==null?w=null:n instanceof Date?w=n:w=new Date((n!=null?n:"").toString());let E;return w==null||Number.isNaN(w.getTime())?E="":E=new Date(w.getTime()-w.getTimezoneOffset()*60*1e3).toISOString().substr(0,f?16:10),{parsed:w,formatted:E}},[n,f]),[v,C]=u.useState(m),x={classes:Ye().classes},b=Vse(x),P=u.useCallback(w=>ft(this,null,function*(){const E=w.target.value;let I;if(E==="")I=null;else{const[_,k]=E.split("T"),[$,R,O]=_.split("-");if(I=new Date,I.setFullYear(Number($),Number(R)-1,Number(O)),I.setHours(0,0,0,0),k){const[N,U]=k.split(":");I.setHours(Number(N),Number(U),0,0)}}a&&(yield a(w,I)),C({parsed:I,formatted:E}),p.current.setEditCellValue({id:t,field:r,value:I},w)}),[p,r,t,a]);return u.useEffect(()=>{C(w=>{var E,I;return m.parsed!==w.parsed&&((E=m.parsed)==null?void 0:E.getTime())!==((I=w.parsed)==null?void 0:I.getTime())?m:w})},[m]),Rn(()=>{i&&h.current.focus()},[i]),T.jsx(Hse,S({inputRef:h,fullWidth:!0,className:b.root,type:f?"datetime-local":"date",inputProps:S({max:f?"9999-12-31T23:59":"9999-12-31"},s),value:v.formatted,onChange:P},c))}const OL=e=>T.jsx(Use,S({},e)),Wse=Mt(T.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Gse=Mt(T.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),L_=Mt(T.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),A_=Mt(T.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Kse=Mt(T.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),qse=Mt(T.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Yse=Mt(T.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Mt(T.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Mt(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const Xse=Mt(T.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),Qse=Mt(T.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Jse=Mt(T.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Zse=Mt(T.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),ele=Mt(T.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),tle=Mt(T.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),G0=Mt(T.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),LL=Mt(T.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),nle=Mt(T.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),_x=Mt(T.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),AL=Mt(T.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),rle=Mt(T.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),ole=Mt(T.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),ile=Mt(T.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");function il(e){return typeof e=="object"&&e!==null?e.value:e}function Ym(e,t){if(t===void 0)return;const n=t.find(r=>{const o=il(r);return String(o)===String(e)});return il(n)}const sle=["item","applyValue","type","apiRef","focusElementRef"],lle=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,f=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return T.jsx(o,{value:f,children:h},c)}),FL=500;function Ri(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:f,focusElementRef:p}=e,h=oe(e,sle),m=u.useRef(),[v,C]=u.useState((t=s.value)!=null?t:""),[g,x]=u.useState(!1),b=En(),P=Ye(),E=(r=(((n=P.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,I=c==="singleSelect"?{select:!0,SelectProps:S({native:E},(o=P.componentsProps)==null?void 0:o.baseSelect),children:lle(f.current.getColumn(s.columnField),f.current,E?"option":cr)}:{},_=u.useCallback($=>{let R=$.target.value;if(c==="singleSelect"){const O=f.current.getColumn(s.columnField),N=typeof O.valueOptions=="function"?O.valueOptions({field:O.field}):O.valueOptions;R=Ym(R,N)}clearTimeout(m.current),C(String(R)),x(!0),m.current=setTimeout(()=>{a(S({},s,{value:R})),x(!1)},FL)},[f,a,s,c]);u.useEffect(()=>()=>{clearTimeout(m.current)},[]),u.useEffect(()=>{var $;const R=($=s.value)!=null?$:"";C(String(R))},[s.value]);const k=g?{endAdornment:T.jsx(_x,{})}:h.InputProps;return T.jsx(P.components.BaseTextField,S({id:b,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:_,variant:"standard",type:c||"text",InputProps:k,InputLabelProps:{shrink:!0},inputRef:p},I,h,(i=P.componentsProps)==null?void 0:i.baseTextField))}const ale=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],cle=e=>{const{classes:t}=e;return Ie({root:["editInputCell"]},Nt,t)},ule=re(xu,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>S({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),dle=u.forwardRef((e,t)=>{var n;const r=Ye(),{id:o,value:i,field:s,colDef:a,hasFocus:c,debounceMs:f=(n=r.experimentalFeatures)!=null&&n.newEditingApi?200:FL,isProcessingProps:p,onValueChange:h}=e,m=oe(e,ale),v=mt(),C=u.useRef(),[g,x]=u.useState(i),b={classes:r.classes},P=cle(b),w=u.useCallback(E=>ft(void 0,null,function*(){const I=E.target.value;h&&(yield h(E,I)),x(I),v.current.setEditCellValue({id:o,field:s,value:I,debounceMs:f},E)}),[v,f,s,o,h]);return u.useEffect(()=>{x(i)},[i]),Rn(()=>{c&&C.current.focus()},[c]),T.jsx(ule,S({ref:t,inputRef:C,className:P.root,fullWidth:!0,type:a.type==="number"?a.type:"text",value:g!=null?g:"",onChange:w,endAdornment:p?T.jsx(_x,{}):void 0},m))}),fle=e=>T.jsx(dle,S({},e)),$x=e=>e==="Escape",NL=e=>e==="Enter",DL=e=>e==="Tab",BL=e=>e===" ",ple=e=>e.indexOf("Arrow")===0,hle=e=>e==="Home"||e==="End",mle=e=>e.indexOf("Page")===0,Ob=e=>e==="Delete"||e==="Backspace";function xv(e){return e.key.length===1&&e.ctrlKey===!1&&e.metaKey===!1}const gle=["Enter","Escape","Tab"],vle=["Enter","Tab"],yle=e=>NL(e.key)||Ob(e.key)||xv(e),ble=e=>gle.indexOf(e)>-1,F_=e=>vle.indexOf(e)>-1,ap=e=>hle(e)||ple(e)||mle(e)||BL(e),Lb=e=>!!e.key,wle=e=>DL(e)||$x(e),Cle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],xle=(e,t)=>{const n=typeof e=="object",r=n?e.value:e,o=n?e.value:e,i=n?e.label:e;return T.jsx(t,{value:o,children:i},r)};function Sle(e){return!!e.key}function Ele(e){var t,n,r;const o=Ye(),{id:i,value:s,api:a,field:c,row:f,colDef:p,hasFocus:h,error:m,onValueChange:v,initialOpen:C=o.editMode===Cr.Cell}=e,g=oe(e,Cle),x=mt(),b=u.useRef(),P=u.useRef(),[w,E]=u.useState(C),_=(n=(((t=o.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1;let k;typeof p.valueOptions=="function"?k=p.valueOptions({id:i,row:f,field:c}):k=p.valueOptions,p.valueFormatter&&(k=k.map(N=>{if(typeof N=="object")return N;const U={field:c,api:a,value:N};return{value:N,label:String(p.valueFormatter(U))}}));const $=N=>ft(this,null,function*(){var U;E(!1);const H=N.target,L=Ym(H.value,k);v&&(yield v(N,L));const D=yield x.current.setEditCellValue({id:i,field:c,value:L},N);if((U=o.experimentalFeatures)!=null&&U.newEditingApi||o.editMode===Cr.Row||D===!1)return;if((yield Promise.resolve(x.current.commitCellChange({id:i,field:c},N)))&&(x.current.setCellMode(i,c,"view"),N.key)){const W=x.current.getCellParams(i,c);x.current.publishEvent("cellNavigationKeyDown",W,N)}}),R=(N,U)=>{if(o.editMode===Cr.Row){E(!1);return}if(U==="backdropClick"||$x(N.key)){var H;(H=o.experimentalFeatures)!=null&&H.newEditingApi?x.current.stopCellEditMode({id:i,field:c,ignoreModifications:!0}):x.current.setCellMode(i,c,"view")}},O=N=>{Sle(N)&&N.key==="Enter"||E(!0)};return Rn(()=>{h&&P.current.focus()},[h]),T.jsx(o.components.BaseSelect,S({ref:b,inputRef:P,value:s,onChange:$,open:w,onOpen:O,MenuProps:{onClose:R},error:m,native:_,fullWidth:!0},g,(r=o.componentsProps)==null?void 0:r.baseSelect,{children:k.map(N=>xle(N,_?"option":cr))}))}const Ple=e=>T.jsx(Ele,S({},e)),kle=["open","target","onClickAway","children","position","className","onExited"],Ile=e=>{const{classes:t}=e;return Ie({root:["menu"]},Nt,t)},_le=re(Oa,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${Z.menuList}`]:{outline:0}})),$le={"bottom-start":"top left","bottom-end":"top right"},zL=e=>{var t;const{open:n,target:r,onClickAway:o,children:i,position:s,className:a,onExited:c}=e,f=oe(e,kle),p=mt(),h=u.useRef(r),m=u.useRef(n),v=Ye(),C={classes:v.classes},g=Ile(C);u.useEffect(()=>{m.current&&h.current&&h.current.focus();const b=n?"menuOpen":"menuClose";p.current.publishEvent(b,{target:r}),m.current=n,h.current=r},[p,n,r]);const x=b=>P=>{b&&b(),c&&c(P)};return T.jsx(_le,S({as:v.components.BasePopper,className:he(a,g.root),open:n,anchorEl:r,transition:!0,placement:s},f,(t=v.componentsProps)==null?void 0:t.basePopper,{children:({TransitionProps:b,placement:P})=>T.jsx(AR,{onClickAway:o,mouseEvent:"onMouseDown",children:T.jsx(Dm,S({},b,{style:{transformOrigin:$le[P]},onExited:x(b==null?void 0:b.onExited),children:T.jsx(Qo,{children:i})}))})}))},Mle=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],Tle=e=>typeof e.getActions=="function",Rle=e=>{const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:s}=e,a=oe(e,Mle),[c,f]=u.useState(-1),[p,h]=u.useState(!1),m=mt(),v=u.useRef(null),C=u.useRef(null),g=u.useRef(!1),x=u.useRef({}),b=En(),P=En(),w=Ye();if(u.useLayoutEffect(()=>{r||Object.entries(x.current).forEach(([L,D])=>{D==null||D.stop({},()=>{delete x.current[L]})})},[r]),u.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus()},[c]),u.useEffect(()=>{r||(f(-1),g.current=!1)},[r]),u.useImperativeHandle(s,()=>({focus(){g.current||f(0)}}),[]),!Tle(t))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(m.current.getRowParams(n)),I=E.filter(L=>!L.props.showInMenu),_=E.filter(L=>L.props.showInMenu),k=I.length+(_.length?1:0);u.useEffect(()=>{c>=k&&f(k-1)},[c,k]);const $=()=>{h(!0),f(k-1),g.current=!0},R=()=>{h(!1)},O=L=>D=>{x.current[L]=D},N=(L,D)=>B=>{f(L),g.current=!0,D&&D(B)},U=L=>{if(k<=1)return;let D=c;L.key==="ArrowRight"?D+=1:L.key==="ArrowLeft"&&(D-=1),!(D<0||D>=k)&&D!==c&&(L.preventDefault(),L.stopPropagation(),f(D))},H=L=>{L.key==="Tab"&&L.preventDefault(),["Tab","Enter","Escape"].includes(L.key)&&R()};return T.jsxs("div",S({role:"menu",ref:v,tabIndex:-1,className:Z.actionsCell,onKeyDown:U},a,{children:[I.map((L,D)=>u.cloneElement(L,{key:D,touchRippleRef:O(D),onClick:N(D,L.props.onClick),tabIndex:c===D?o:-1})),_.length>0&&P&&T.jsx(tr,{ref:C,id:P,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-controls":b,"aria-expanded":p?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:$,touchRippleRef:O(P),tabIndex:c===I.length?o:-1,children:T.jsx(w.components.MoreActionsIcon,{fontSize:"small"})}),_.length>0&&T.jsx(zL,{onClickAway:R,onClick:R,open:p,target:C.current,position:i,children:T.jsx($C,{id:b,className:Z.menuList,onKeyDown:H,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:_.map((L,D)=>u.cloneElement(L,{key:D}))})})]}))},Ole=e=>T.jsx(Rle,S({},e)),Lle=re("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Z.autoHeight}`]:t.autoHeight},{[`&.${Z.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${Z["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${Z["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${Z["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${Z.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`& .${Z.editBooleanCell}`]:t.editBooleanCell},{[`& .${Z["cell--editing"]}`]:t["cell--editing"]},{[`& .${Z["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${Z["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${Z["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${Z["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${Z.cell}`]:t.cell},{[`& .${Z.cellContent}`]:t.cellContent},{[`& .${Z.cellCheckbox}`]:t.cellCheckbox},{[`& .${Z.checkboxInput}`]:t.checkboxInput},{[`& .${Z["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${Z["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${Z["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${Z["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${Z["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${Z["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${Z["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${Z["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${Z.columnHeader}`]:t.columnHeader},{[`& .${Z.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${Z.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${Z.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${Z["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${Z["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${Z.columnSeparator}`]:t.columnSeparator},{[`& .${Z.filterIcon}`]:t.filterIcon},{[`& .${Z.iconSeparator}`]:t.iconSeparator},{[`& .${Z.menuIcon}`]:t.menuIcon},{[`& .${Z.menuIconButton}`]:t.menuIconButton},{[`& .${Z.menuOpen}`]:t.menuOpen},{[`& .${Z.menuList}`]:t.menuList},{[`& .${Z["row--editable"]}`]:t["row--editable"]},{[`& .${Z["row--editing"]}`]:t["row--editing"]},{[`& .${Z["row--dragging"]}`]:t["row--dragging"]},{[`& .${Z.row}`]:t.row},{[`& .${Z.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${Z.rowReorderCell}`]:t.rowReorderCell},{[`& .${Z["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${Z.sortIcon}`]:t.sortIcon},{[`& .${Z.withBorder}`]:t.withBorder},{[`& .${Z.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${Z.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${Z.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${Z["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=e.palette.mode==="light"?Ps(rt(e.palette.divider,1),.88):Es(rt(e.palette.divider,1),.68);return S({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${Z.autoHeight}`]:{height:"auto",[`& .${Z["row--lastVisible"]} .${Z.cell}`]:{borderBottomColor:"transparent"}},[`& .${Z["virtualScrollerContent--overflowed"]} .${Z["row--lastVisible"]} .${Z.cell}`]:{borderBottomColor:"transparent"},[`& .${Z.columnHeader}, & .${Z.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${Z.columnHeader}:focus-within, & .${Z.cell}:focus-within`]:{outline:`solid ${rt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${Z.columnHeader}:focus, & .${Z.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${Z.columnHeaderCheckbox}, & .${Z.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Z.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${Z["columnHeader--sorted"]} .${Z.iconButtonContainer}, & .${Z["columnHeader--filtered"]} .${Z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}) .${Z.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}):hover .${Z.sortIcon}`]:{opacity:.5},[`& .${Z.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${Z.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Z["columnHeader--filledGroup"]} .${Z.columnHeaderTitleContainer}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${Z["columnHeader--filledGroup"]}.${Z["columnHeader--showColumnBorder"]} .${Z.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${Z["columnHeader--filledGroup"]}.${Z["columnHeader--showColumnBorder"]}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${Z.sortIcon}, & .${Z.filterIcon}`]:{fontSize:"inherit"},[`& .${Z["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Z["columnHeader--alignCenter"]} .${Z.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Z["columnHeader--alignRight"]} .${Z.columnHeaderDraggableContainer}, & .${Z["columnHeader--alignRight"]} .${Z.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Z["columnHeader--alignCenter"]} .${Z.menuIcon}, & .${Z["columnHeader--alignRight"]} .${Z.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${Z["columnHeader--alignRight"]} .${Z.menuIcon}, & .${Z["columnHeader--alignRight"]} .${Z.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${Z["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${Z.columnSeparator}`]:{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${Z["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${Z["columnSeparator--sideRight"]}`]:{right:-12},[`& .${Z["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},[`&.${Z["columnSeparator--resizing"]}`]:{color:e.palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${Z.iconSeparator}`]:{color:"inherit"},[`& .${Z.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`& .${Z.columnHeader}:hover`]:{[`& .${Z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Z.menuIcon}`]:{width:"auto",visibility:"visible"}},[`.${Z.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Z.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:rt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${Z.cell}`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${t}`},[`& .${Z.row}:not(.${Z["row--dynamicHeight"]}) > .${Z.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${Z.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${Z.cell}.${Z["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${Z["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${Z["row--editing"]} .${Z.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${Z.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Z.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${Z.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${Z.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${Z.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:e.palette.action.disabledOpacity},[`& .${Z["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${Z.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`& .${Z.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${Z["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${Z["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${Z["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${Z.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Z.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Z["columnHeader--dragging"]}, & .${Z["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity},[`& .${Z["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity,[`& .${Z.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${Z.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Z.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${Z.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Z.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),Ale=["children","className"],Fle=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${fe(n)}`]};return Ie(o,Nt,r)},Nle=u.forwardRef(function(t,n){const r=Ye(),{children:o,className:i}=t,s=oe(t,Ale),a=mt(),c=Ue(a,dr),f=Ue(a,bv),p=Ue(a,yse),h=Ue(a,Ix),m=u.useRef(null),v=St(m,n),C=Ue(a,cse),g={density:p,classes:r.classes,autoHeight:r.autoHeight},x=Fle(g);a.current.rootElementRef=m;const[b,P]=u.useState(!1);return Rn(()=>{P(!0)},[]),Rn(()=>{b&&a.current.unstable_updateGridDimensionsRef()},[a,b]),b?T.jsx(Lle,S({ref:v,className:he(i,x.root),role:"grid","aria-colcount":c.length,"aria-rowcount":h+1+C+f,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},s,{children:o})):null}),Dle=["className"],Ble=e=>{const{classes:t}=e;return Ie({root:["footerContainer"]},Nt,t)},zle=re("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:`1px solid ${e.palette.mode==="light"?Ps(rt(e.palette.divider,1),.88):Es(rt(e.palette.divider,1),.68)}`})),jle=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Dle),s={classes:Ye().classes},a=Ble(s);return T.jsx(zle,S({ref:n,className:he(a.root,r)},o))}),Hle=["className"],Vle=e=>{const{classes:t}=e;return Ie({root:["overlay"]},Nt,t)},Ule=re("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})(({theme:e})=>({position:"absolute",top:0,zIndex:4,width:"100%",height:"100%",pointerEvents:"none",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:rt(e.palette.background.default,e.palette.action.disabledOpacity)})),Sv=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Hle),s={classes:Ye().classes},a=Vle(s);return T.jsx(Ule,S({ref:n,className:he(a.root,r)},o))}),Wle=["className"],Gle=e=>{const{classes:t}=e;return Ie({root:["iconButtonContainer"]},Nt,t)},Kle=re("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),jL=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Wle),s={classes:Ye().classes},a=Gle(s);return T.jsx(Kle,S({ref:n,className:he(a.root,r)},o))}),qle=e=>{const{classes:t}=e;return Ie({icon:["sortIcon"]},Nt,t)};function Yle(e,t,n,r){let o;const i={};return t==="asc"?o=e.ColumnSortedAscendingIcon:t==="desc"?o=e.ColumnSortedDescendingIcon:(o=e.ColumnUnsortedIcon,i.sortingOrder=r),o?T.jsx(o,S({fontSize:"small",className:n},i)):null}function Xle(e){const{direction:t,index:n,sortingOrder:r}=e,o=mt(),i=Ye(),s=S({},e,{classes:i.classes}),a=qle(s),c=Yle(i.components,t,a.icon,r);if(!c)return null;const f=T.jsx(tr,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:c});return T.jsxs(jL,{children:[n!=null&&T.jsx(nO,{badgeContent:n,color:"default",children:f}),n==null&&f]})}const Qle=u.memo(Xle),Jle=e=>{const{classes:t,open:n}=e;return Ie({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Nt,t)},Zle=u.memo(e=>{const{column:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,s=mt(),a=Ye(),c=S({},e,{classes:a.classes}),f=Jle(c),p=u.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]);return T.jsx("div",{className:f.root,children:T.jsx(tr,{ref:i,tabIndex:-1,className:f.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),title:s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":r,id:o,children:T.jsx(a.components.ColumnMenuIcon,{fontSize:"small"})})})});function eae({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const c=mt(),f=c.current.getColumn(o),p=u.useCallback(h=>{h.stopPropagation(),c.current.hideColumnMenu()},[c]);return s?T.jsx(zL,{placement:`bottom-${f.align==="right"?"start":"end"}`,open:i,target:s,onClickAway:p,onExited:a,children:T.jsx(n,S({currentColumn:f,hideMenu:p,open:i,id:e,labelledby:t},r))}):null}function tae(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function nae(e,t){return e.closest(`.${t}`)}function Mx(e){return e.replace(/["\\]/g,"\\$&")}function rae(e,t){return e.querySelector(`[role="columnheader"][data-field="${Mx(t)}"]`)}function HL(e,t){return e.querySelector(`.${Z.row}[data-id="${Mx(String(t))}"]`)}function oae(e,{id:t,field:n}){const r=HL(e,t);return r?r.querySelector(`.${Z.cell}[data-field="${Mx(n)}"]`):null}const iae=["className"],sae=e=>{const{classes:t}=e;return Ie({root:["columnHeaderTitle"]},Nt,t)},lae=re("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})(({theme:e})=>({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium})),aae=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,iae),s={classes:Ye().classes},a=sae(s);return T.jsx(lae,S({ref:n,className:he(a.root,r)},o))});function cae(e){var t;const{label:n,description:r,columnWidth:o}=e,i=Ye(),s=u.useRef(null),[a,c]=u.useState("");return u.useEffect(()=>{if(!r&&s&&s.current){const f=tae(s.current);c(f?n:"")}},[s,o,r,n]),T.jsx(i.components.BaseTooltip,S({title:r||a},(t=i.componentsProps)==null?void 0:t.baseTooltip,{children:T.jsx(aae,{ref:s,children:n})}))}const uae=["resizable","resizing","height","side"];var Ab;(function(e){e.Left="left",e.Right="right"})(Ab||(Ab={}));const dae=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${fe(o)}`],icon:["iconSeparator"]};return Ie(i,Nt,r)};function fae(e){const{height:t,side:n=Ab.Right}=e,r=oe(e,uae),o=Ye(),i=S({},e,{side:n,classes:o.classes}),s=dae(i),a=u.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return T.jsx("div",S({className:s.root,style:{minHeight:t,opacity:o.showColumnRightBorder?0:1}},r,{onClick:a,children:T.jsx(o.components.ColumnResizeIcon,{className:s.icon})}))}const pae=u.memo(fae),hae=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","disableHeaderSeparator"],VL=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:s,isResizing:a,sortDirection:c,hasFocus:f,tabIndex:p,separatorSide:h,isDraggable:m,headerComponent:v,description:C,width:g,columnMenuIconButton:x=null,columnMenu:b=null,columnTitleIconButtons:P=null,headerClassName:w,label:E,resizable:I,draggableContainerProps:_,columnHeaderSeparatorProps:k,disableHeaderSeparator:$}=t,R=oe(t,hae),O=mt(),N=Ye(),U=u.useRef(null),[H,L]=u.useState(o),D=St(U,n);let B="none";return c!=null&&(B=c==="asc"?"ascending":"descending"),u.useEffect(()=>{H||L(o)},[H,o]),u.useLayoutEffect(()=>{const W=O.current.state.columnMenu;if(f&&!W.open){const z=U.current.querySelector('[tabindex="0"]')||U.current;z==null||z.focus(),O.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[O,f]),T.jsxs("div",S({ref:D,className:he(r.root,w),style:{height:s,width:g,minWidth:g,maxWidth:g},role:"columnheader",tabIndex:p,"aria-colindex":i+1,"aria-sort":B,"aria-label":v==null?E:void 0},R,{children:[T.jsxs("div",S({className:r.draggableContainer,draggable:m},_,{children:[T.jsxs("div",{className:r.titleContainer,children:[T.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:T.jsx(cae,{label:E,description:C,columnWidth:g})}),P]}),x]})),!$&&T.jsx(pae,S({resizable:!N.disableColumnResize&&!!I,resizing:a,height:s,side:h},k)),b]}))}),mae=e=>{const{column:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:s}=e,a=o!=null,c=s!=null&&s>0,f=t.type==="number",p={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",a&&"columnHeader--sorted",c&&"columnHeader--filtered",f&&"columnHeader--numeric",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Ie(p,Nt,n)};function gae(e){var t,n,r,o,i;const{column:s,columnMenuOpen:a,colIndex:c,headerHeight:f,isResizing:p,isLastColumn:h,sortDirection:m,sortIndex:v,filterItemsCounter:C,hasFocus:g,tabIndex:x,extendRowFullWidth:b,disableReorder:P,separatorSide:w}=e,E=mt(),I=Ye(),_=u.useRef(null),k=En(),$=En(),R=u.useRef(null),[O,N]=u.useState(a),{hasScrollX:U,hasScrollY:H}=(t=E.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},L=u.useMemo(()=>!I.disableColumnReorder&&!P&&!s.disableReorder,[I.disableColumnReorder,P,s.disableReorder]);let D;s.renderHeader&&(D=s.renderHeader(E.current.getColumnHeaderParams(s.field)));const W=h?!(h&&U&&!H)&&!b:I.showColumnRightBorder,A=S({},e,{classes:I.classes,showRightBorder:W}),z=mae(A),G=u.useCallback(be=>_e=>{_e.currentTarget.contains(_e.target)&&E.current.publishEvent(be,E.current.getColumnHeaderParams(s.field),_e)},[E,s.field]),q=u.useMemo(()=>({onClick:G("columnHeaderClick"),onDoubleClick:G("columnHeaderDoubleClick"),onMouseOver:G("columnHeaderOver"),onMouseOut:G("columnHeaderOut"),onMouseEnter:G("columnHeaderEnter"),onMouseLeave:G("columnHeaderLeave"),onKeyDown:G("columnHeaderKeyDown"),onFocus:G("columnHeaderFocus"),onBlur:G("columnHeaderBlur")}),[G]),X=u.useMemo(()=>L?{onDragStart:G("columnHeaderDragStart"),onDragEnter:G("columnHeaderDragEnter"),onDragOver:G("columnHeaderDragOver"),onDragEnd:G("columnHeaderDragEnd")}:{},[L,G]),ie=u.useMemo(()=>({onMouseDown:G("columnSeparatorMouseDown")}),[G]);u.useEffect(()=>{O||N(a)},[O,a]);const ee=u.useCallback(()=>{N(!1)},[]),se=!I.disableColumnMenu&&!s.disableColumnMenu&&T.jsx(Zle,{column:s,columnMenuId:k,columnMenuButtonId:$,open:O,iconButtonRef:R}),ae=T.jsx(eae,{columnMenuId:k,columnMenuButtonId:$,field:s.field,open:a,target:R.current,ContentComponent:I.components.ColumnMenu,contentComponentProps:(n=I.componentsProps)==null?void 0:n.columnMenu,onExited:ee}),we=(r=s.sortingOrder)!=null?r:I.sortingOrder,de=T.jsxs(u.Fragment,{children:[!I.disableColumnFilter&&T.jsx(I.components.ColumnHeaderFilterIconButton,S({field:s.field,counter:C},(o=I.componentsProps)==null?void 0:o.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&T.jsx(Qle,{direction:m,index:v,sortingOrder:we})]});u.useLayoutEffect(()=>{const be=E.current.state.columnMenu;if(g&&!be.open){const Se=_.current.querySelector('[tabindex="0"]')||_.current;Se==null||Se.focus(),E.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[E,g]);const le=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,te=(i=s.headerName)!=null?i:s.field;return T.jsx(VL,S({ref:_,classes:z,columnMenuOpen:a,colIndex:c,height:f,isResizing:p,sortDirection:m,hasFocus:g,tabIndex:x,separatorSide:w,isDraggable:L,headerComponent:D,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:se,columnTitleIconButtons:de,headerClassName:le,label:te,resizable:!I.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:ae,draggableContainerProps:X,columnHeaderSeparatorProps:ie},q))}const Xm=e=>e.preferencePanel;var kl;(function(e){e.filters="filters",e.columns="columns"})(kl||(kl={}));const vae=e=>{const{classes:t}=e;return Ie({icon:["filterIcon"]},Nt,t)};function yae(e){var t;const{counter:n,field:r,onClick:o}=e,i=mt(),s=Ye(),a=S({},e,{classes:s.classes}),c=vae(a),f=u.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:m,openedPanelValue:v}=Xm(i.current.state);m&&v===kl.filters?i.current.hideFilterPanel():i.current.showFilterPanel(),o&&o(i.current.getColumnHeaderParams(r),h)},[i,r,o]);if(!n)return null;const p=T.jsx(tr,{onClick:f,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:T.jsx(s.components.ColumnFilteredIcon,{className:c.icon,fontSize:"small"})});return T.jsx(s.components.BaseTooltip,S({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},(t=s.componentsProps)==null?void 0:t.baseTooltip,{children:T.jsxs(jL,{children:[n>1&&T.jsx(nO,{badgeContent:n,color:"default",children:p}),n===1&&p]})}))}const bae=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],wae=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},Nt,t)},Cae=u.forwardRef(function(t,n){var r;const{field:o,id:i,value:s,rowNode:a,hasFocus:c,tabIndex:f}=t,p=oe(t,bae),h=mt(),m=Ye(),v={classes:m.classes},C=wae(v),g=u.useRef(null),x=u.useRef(),b=St(g,n),P=h.current.getCellElement(i,o),w=k=>{const $={value:k.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",$,k)};u.useLayoutEffect(()=>{f===0&&P&&(P.tabIndex=-1)},[P,f]),u.useLayoutEffect(()=>{if(c){var k;const $=(k=g.current)==null?void 0:k.querySelector("input");$==null||$.focus()}else x.current&&x.current.stop({})},[c]);const E=u.useCallback(k=>{BL(k.key)&&k.stopPropagation(),ap(k.key)&&!k.shiftKey&&h.current.publishEvent("cellNavigationKeyDown",t,k)},[h,t]);if(a.position==="footer")return null;const I=h.current.isRowSelectable(i),_=h.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return a.isPinned?null:T.jsx(m.components.BaseCheckbox,S({ref:b,tabIndex:f,checked:s,onChange:w,className:C.root,inputProps:{"aria-label":_},onKeyDown:E,disabled:!I,touchRippleRef:x},(r=m.componentsProps)==null?void 0:r.baseCheckbox,p))}),xae=u.memo(Cae),Ro=e=>e.selection,Sae=qe(Ro,e=>e.length),Eae=qe(Ro,_f,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Qm=qe(Ro,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Mu=e=>e.pagination,Pd=qe(Mu,e=>e.page),Kd=qe(Mu,e=>e.pageSize);qe(Mu,e=>e.pageCount);const Tx=qe(Mu,ma,Sx,Rs,PL,(e,t,n,r,o)=>{const i=o.length,s=Math.min(e.pageSize*e.page,i-1),a=Math.min(s+e.pageSize-1,i-1);if(s===-1||a===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:a};const c=o[s],f=a-s+1,p=r.findIndex(v=>v.id===c.id);let h=p,m=0;for(;h<r.length&&m<=f;){const v=r[h],C=t[v.id].depth;(m<f||C>0)&&(h+=1),C===0&&(m+=1)}return{firstRowIndex:p,lastRowIndex:h-1}}),Pae=qe(Rs,Tx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),UL=qe(Gd,Tx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),kae=["field","colDef"],Iae=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},Nt,t)},_ae=u.forwardRef(function(t,n){var r;const o=oe(t,kae),[,i]=u.useState(!1),s=mt(),a=Ye(),c={classes:a.classes},f=Iae(c),p=Ue(s,RL),h=Ue(s,Ro),m=Ue(s,Gd),v=Ue(s,UL),C=u.useMemo(()=>typeof a.isRowSelectable!="function"?h:h.filter($=>s.current.getRow($)?a.isRowSelectable(s.current.getRowParams($)):!1),[s,a.isRowSelectable,h]),g=u.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?m:v).reduce((R,O)=>(R[O]=!0,R),{}),[a.pagination,a.checkboxSelectionVisibleOnly,v,m]),x=u.useMemo(()=>C.filter($=>g[$]).length,[C,g]),b=x>0&&x<Object.keys(g).length,P=x>0,w=$=>{const R={value:$.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",R)},E=p!==null&&p.field===t.field?0:-1;u.useLayoutEffect(()=>{const $=s.current.getColumnHeaderElement(t.field);E===0&&$&&($.tabIndex=-1)},[E,s,t.field]);const I=u.useCallback($=>{$.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!P}),ap($.key)&&!$.shiftKey&&s.current.publishEvent("columnHeaderNavigationKeyDown",t,$)},[s,t,P]),_=u.useCallback(()=>{i($=>!$)},[]);u.useEffect(()=>s.current.subscribeEvent("selectionChange",_),[s,_]);const k=s.current.getLocaleText(P?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return T.jsx(a.components.BaseCheckbox,S({ref:n,indeterminate:b,checked:P,onChange:w,className:f.root,inputProps:{"aria-label":k},tabIndex:E,onKeyDown:I},(r=a.componentsProps)==null?void 0:r.baseCheckbox,o))}),$ae=e=>{const{onClick:t}=e,n=mt(),r=Ye(),o=u.useCallback(i=>{t(i),n.current.showPreferences(kl.columns)},[n,t]);return r.disableColumnSelector?null:T.jsx(cr,{onClick:o,children:n.current.getLocaleText("columnMenuShowColumns")})},Mae=e=>{const{column:t,onClick:n}=e,r=mt(),o=Ye(),i=u.useCallback(s=>{n(s),r.current.showFilterPanel(t==null?void 0:t.field)},[r,t==null?void 0:t.field,n]);return o.disableColumnFilter||!(t!=null&&t.filterable)?null:T.jsx(cr,{onClick:i,children:r.current.getLocaleText("columnMenuFilter")})},Tae=["hideMenu","currentColumn","open","id","labelledby","className","children"],Rae=u.forwardRef(function(t,n){const{hideMenu:r,open:o,id:i,labelledby:s,className:a,children:c}=t,f=oe(t,Tae),p=u.useCallback(h=>{DL(h.key)&&h.preventDefault(),wle(h.key)&&r(h)},[r]);return T.jsx($C,S({id:i,ref:n,className:he(Z.menuList,a),"aria-labelledby":s,onKeyDown:p,autoFocus:o},f,{children:c}))}),Oae=gi(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),WL=(e,t)=>t&&e.length>1?(Oae(),[e[0]]):e,N_=(e,t)=>n=>S({},n,{sorting:S({},n.sorting,{sortModel:WL(e,t)})}),Lae=e=>e==="desc",Aae=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=Lae(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},Fae=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const s=t.params[i],a=n.params[i];return r=o.comparator(s.value,a.value,s,a),r},0),Nae=(e,t)=>{const n=e.map(r=>Aae(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>Fae(n,o,i)).map(o=>o.node.id)},D_=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Rx=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Dae=new Intl.Collator,Bae=(e,t)=>{const n=Rx(e,t);return n!==null?n:typeof e=="string"?Dae.compare(e.toString(),t.toString()):e-t},GL=(e,t)=>{const n=Rx(e,t);return n!==null?n:Number(e)-Number(t)},KL=(e,t)=>{const n=Rx(e,t);return n!==null?n:e>t?1:e<t?-1:0};function zae(e){return typeof e=="number"}function qL(e){return typeof e=="function"}function jae(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}function rm(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Mf=(e,t,n)=>Math.max(t,Math.min(n,e));function ys(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!ys(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const s=o[i];if(!ys(s[1],t.get(s[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!ys(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}const Hae=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function YL(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:c,size:f,variant:p}=e,h=oe(e,Hae),m={color:s,error:a,helperText:c,size:f,variant:p},[v,C]=u.useState(t.value||[]),g=En(),x=Ye();u.useEffect(()=>{var P;const w=(P=t.value)!=null?P:[];C(w.map(String))},[t.value]);const b=u.useCallback((P,w)=>{C(w.map(String)),n(S({},t,{value:[...w]}))},[n,t]);return T.jsx(ZR,S({multiple:!0,freeSolo:!0,limitTags:1,options:[],filterOptions:(P,w)=>{const{inputValue:E}=w;return E==null||E===""?[]:[E]},id:g,value:v,onChange:b,renderTags:(P,w)=>P.map((E,I)=>T.jsx(ev,S({variant:"outlined",size:"small",label:E},w({index:I})))),renderInput:P=>{var w;return T.jsx(x.components.BaseTextField,S({},P,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},P.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(w=x.componentsProps)==null?void 0:w.baseTextField))}},h))}const Vae=e=>{if(!e)return null;const t=new RegExp(rm(e),"i");return({value:n})=>n!=null?t.test(n.toString()):!1},Uae=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(rm(n),"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Ri},{value:"equals",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:o})=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ri},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${rm(n)}.*$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Ri},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${rm(n)}$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Ri},{value:"isEmpty",getApplyFilterFn:()=>({value:t})=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:t})=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:o})=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:YL}],Il={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Bae,type:"string",align:"left",filterOperators:Uae(),renderEditCell:fle,getApplyQuickFilterFn:Vae},Ox="actions",Wae=S({},Il,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Ole,getApplyQuickFilterFn:void 0}),Gae=["item","applyValue","apiRef","focusElementRef"];function Kae(e){var t,n,r,o;const{item:i,applyValue:s,apiRef:a,focusElementRef:c}=e,f=oe(e,Gae),[p,h]=u.useState(i.value||""),m=Ye(),C=(n=(((t=m.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!0,g=C?"option":cr,x=u.useCallback(b=>{const P=b.target.value;h(P),s(S({},i,{value:P}))},[s,i]);return u.useEffect(()=>{h(i.value||"")},[i.value]),T.jsxs(m.components.BaseTextField,S({label:a.current.getLocaleText("filterPanelInputLabel"),value:p,onChange:x,select:!0,variant:"standard",SelectProps:S({native:C,displayEmpty:!0},(r=m.componentsProps)==null?void 0:r.baseSelect),InputLabelProps:{shrink:!0},inputRef:c},f,(o=m.componentsProps)==null?void 0:o.baseTextField,{children:[T.jsx(g,{value:"",children:a.current.getLocaleText("filterValueAny")}),T.jsx(g,{value:"true",children:a.current.getLocaleText("filterValueTrue")}),T.jsx(g,{value:"false",children:a.current.getLocaleText("filterValueFalse")})]}))}const qae=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=e.value==="true";return({value:n})=>Boolean(n)===t},InputComponent:Kae}];function Yae({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const XL=S({},Il,{type:"boolean",align:"center",headerAlign:"center",renderCell:Fse,renderEditCell:zse,sortComparator:GL,valueFormatter:Yae,filterOperators:qae(),getApplyQuickFilterFn:void 0,aggregable:!1}),Ks="__check__",cp=S({},XL,{field:Ks,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>Qm(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>T.jsx(_ae,S({},e)),renderCell:e=>T.jsx(xae,S({},e))}),Xae=["item","applyValue","type","apiRef","focusElementRef","InputProps"],Qae=500;function fc(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,InputProps:c}=e,f=oe(e,Xae),p=u.useRef(),[h,m]=u.useState((t=r.value)!=null?t:""),[v,C]=u.useState(!1),g=En(),x=Ye(),b=u.useCallback(P=>{const w=P.target.value;clearTimeout(p.current),m(String(w)),C(!0),p.current=setTimeout(()=>{o(S({},r,{value:w})),C(!1)},Qae)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(p.current)},[]),u.useEffect(()=>{var P;const w=(P=r.value)!=null?P:"";m(String(w))},[r.value]),T.jsx(x.components.BaseTextField,S({id:g,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:b,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:a,InputProps:S({},v?{endAdornment:T.jsx(_x,{})}:{},c,{inputProps:S({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31"},c==null?void 0:c.inputProps)})},f,(n=x.componentsProps)==null?void 0:n.baseTextField))}const Jae=/(\d+)-(\d+)-(\d+)/,Zae=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function pc(e,t,n,r){if(!e.value)return null;const[o,i,s,a,c]=e.value.match(n?Zae:Jae).slice(1).map(Number),f=new Date(o,i-1,s,a||0,c||0).getTime();return({value:p})=>{if(!p)return!1;const h=p instanceof Date?p:new Date(p.toString());if(r)return t(h.getTime(),f);const v=(p instanceof Date?new Date(h):h).setHours(n?h.getHours():0,n?h.getMinutes():0,0,0);return t(v,f)}}const QL=e=>[{value:"is",getApplyFilterFn:t=>pc(t,(n,r)=>n===r,e),InputComponent:fc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>pc(t,(n,r)=>n!==r,e),InputComponent:fc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>pc(t,(n,r)=>n>r,e),InputComponent:fc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>pc(t,(n,r)=>n>=r,e),InputComponent:fc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>pc(t,(n,r)=>n<r,e,!e),InputComponent:fc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>pc(t,(n,r)=>n<=r,e),InputComponent:fc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>({value:t})=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:t})=>t!=null,requiresFilterValue:!1}];function ece({value:e}){return e instanceof Date?e.toLocaleDateString():e!=null?e:""}function tce({value:e}){return e instanceof Date?e.toLocaleString():e!=null?e:""}const nce=S({},Il,{type:"date",sortComparator:KL,valueFormatter:ece,filterOperators:QL(),renderEditCell:OL,getApplyQuickFilterFn:void 0}),rce=S({},Il,{type:"dateTime",sortComparator:KL,valueFormatter:tce,filterOperators:QL(!0),renderEditCell:OL,getApplyQuickFilterFn:void 0}),Qs=e=>e==null?null:Number(e),oce=e=>e==null||Number.isNaN(e)||e===""?null:({value:t})=>Qs(t)===Qs(e),ice=()=>[{label:"=",value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>Qs(t)===e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>Qs(t)!==e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Qs(t)>e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Qs(t)>=e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Qs(t)<e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Qs(t)<=e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:({value:t})=>t!=null&&e.value.includes(Number(t)),InputComponent:YL,InputComponentProps:{type:"number"}}],sce=S({},Il,{type:"number",align:"right",headerAlign:"right",sortComparator:GL,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>zae(e)?e.toLocaleString():e||"",filterOperators:ice(),getApplyQuickFilterFn:oce}),lce=["item","applyValue","type","apiRef","focusElementRef"],ace=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,f=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return T.jsx(o,{value:f,children:h},c)});function B_(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:f,focusElementRef:p}=e,h=oe(e,lce),[m,v]=u.useState((t=s.value)!=null?t:""),C=En(),g=Ye(),b=(r=(((n=g.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,P=s.columnField?f.current.getColumn(s.columnField):null,w=u.useMemo(()=>{if(P!==null)return typeof P.valueOptions=="function"?P.valueOptions({field:P.field}):P.valueOptions},[P]),E=u.useCallback(I=>{let _=I.target.value;_=Ym(_,w),v(String(_)),a(S({},s,{value:_}))},[a,s,w]);return u.useEffect(()=>{var I;let _;if(w!==void 0){if(_=Ym(s.value,w),_!==s.value){a(S({},s,{value:_}));return}}else _=s.value;_=(I=_)!=null?I:"",v(String(_))},[s,w,a]),T.jsx(g.components.BaseTextField,S({id:C,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:E,variant:"standard",type:c||"text",InputLabelProps:{shrink:!0},inputRef:p,select:!0,SelectProps:S({native:b},(o=g.componentsProps)==null?void 0:o.baseSelect)},h,(i=g.componentsProps)==null?void 0:i.baseTextField,{children:ace(f.current.getColumn(s.columnField),f.current,b?"option":cr)}))}const cce=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],uce=(e,t)=>il(e)===il(t),dce=LR();function fce(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:s,helperText:a,size:c,variant:f="standard"}=e,p=oe(e,cce),h={color:i,error:s,helperText:a,size:c,variant:f},m=En(),v=Ye(),C=t.columnField?r.current.getColumn(t.columnField):null,g=u.useMemo(()=>C!=null&&C.valueOptions?typeof C.valueOptions=="function"?C.valueOptions({field:C.field}):C.valueOptions:[],[C]),x=u.useMemo(()=>g==null?void 0:g.map(il),[g]),{valueFormatter:b,field:P}=r.current.getColumn(t.columnField),w=_=>typeof _=="object"?_.label:b&&_!==""?b({value:_,field:P,api:r.current}):_,E=u.useMemo(()=>Array.isArray(t.value)?g!==void 0?t.value.map(k=>{const $=il(k);return(x==null?void 0:x.findIndex(O=>O===$))||0}).filter(k=>k>=0).map(k=>g[k]):t.value:[],[t.value,g,x]);u.useEffect(()=>{(!Array.isArray(t.value)||E.length!==t.value.length)&&n(S({},t,{value:E.map(il)}))},[t,E,n]);const I=u.useCallback((_,k)=>{n(S({},t,{value:[...k.map(il)]}))},[n,t]);return T.jsx(ZR,S({multiple:!0,limitTags:1,options:g,isOptionEqualToValue:uce,filterOptions:dce,id:m,value:E,onChange:I,renderTags:(_,k)=>_.map(($,R)=>T.jsx(ev,S({variant:"outlined",size:"small",label:w($)},k({index:R})))),renderInput:_=>{var k;return T.jsx(v.components.BaseTextField,S({},_,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},_.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},h,(k=v.componentsProps)==null?void 0:k.baseTextField))}},p))}const Js=e=>e==null||typeof e!="object"?e:e.value,pce=(e,t,n)=>{if(!e)return null;const{valueOptions:r,valueFormatter:o,field:i}=t,s=[Js(e).toString()],a=typeof r=="function"?r({field:i}):r||[];return a&&a.forEach(c=>{let f,p;typeof c=="object"?(f=c.value,p=c.label):(f=c,o?p=o({value:c,field:i,api:n.current}):p=c),p.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(s.includes(f)||s.push(f.toString()))}),({value:c})=>c!=null?s.includes(Js(c).toString()):!1},hce=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>Js(t)===Js(e.value),InputComponent:B_},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>Js(t)!==Js(e.value),InputComponent:B_},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Js);return({value:n})=>t.includes(Js(n))},InputComponent:fce}],mce=S({},Il,{type:"singleSelect",renderEditCell:Ple,filterOperators:hce(),getApplyQuickFilterFn:pce}),Jm="__default__",gce=()=>({string:Il,number:sce,date:nce,dateTime:rce,boolean:XL,singleSelect:mce,[Ox]:Wae,[Jm]:Il}),JL=["maxWidth","minWidth","width","flex"],ZL=(e={})=>{const t=S({},gce());return Object.entries(e).forEach(([n,r])=>{t[n]?t[n]=S({},t[n],r):t[n]=S({},t[r.extendType||Jm],r)}),t};function vce({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r={all:{},frozenFields:[],freeze:i=>{const s=r.all[i];s&&s.frozen!==!0&&(r.all[i].frozen=!0,r.frozenFields.push(i))}};function o(){if(r.frozenFields.length===n.length)return;const i={min:{},max:{}};let s=e,a=t,c=0;r.frozenFields.forEach(f=>{s-=r.all[f].computedWidth,a-=r.all[f].flex});for(let f=0;f<n.length;f+=1){const p=n[f];if(r.all[p.field]&&r.all[p.field].frozen===!0)continue;let m=s/a*p.flex;m<p.minWidth?(c+=p.minWidth-m,m=p.minWidth,i.min[p.field]=!0):m>p.maxWidth&&(c+=p.maxWidth-m,m=p.maxWidth,i.max[p.field]=!0),r.all[p.field]={frozen:!1,computedWidth:m,flex:p.flex}}c<0?Object.keys(i.max).forEach(f=>{r.freeze(f)}):c>0?Object.keys(i.min).forEach(f=>{r.freeze(f)}):n.forEach(({field:f})=>{r.freeze(f)}),o()}return o(),r.all}const eA=(e,t)=>{const n={};let r=0,o=0;const i=[];e.all.forEach(a=>{const c=S({},e.lookup[a]);if(e.columnVisibilityModel[a]===!1)c.computedWidth=0;else{let f;c.flex&&c.flex>0?(r+=c.flex,f=0,i.push(c)):f=Mf(c.width,c.minWidth,c.maxWidth),o+=f,c.computedWidth=f}n[a]=c});const s=Math.max(t-o,0);if(r>0&&t>0){const a=vce({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(a).forEach(c=>{n[c].computedWidth=a[c].computedWidth})}return S({},e,{lookup:n})},yce=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},s=[];for(let p=0;p<n.length;p+=1){const h=n[p];e.lookup[h]&&(i[h]=!0,s.push(h))}const a=s.length===0?e.all:[...s,...e.all.filter(p=>!i[p])],c=S({},e.lookup);for(let p=0;p<o.length;p+=1){const h=o[p],m=S({},c[h],{hasBeenResized:!0});Object.entries(r[h]).forEach(([v,C])=>{m[v]=C===-1?1/0:C}),c[h]=m}return{all:a,lookup:c}},bce=(e,t)=>!t||!e[t]?e[Jm]:e[t],wc=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,currentColumnVisibilityModel:o=ol(e),shouldRegenColumnVisibilityModelFromColumns:i,keepOnlyColumnsToUpsert:s=!1})=>{var a,c,f,p;const h=!e.current.state.columns;let m;if(h)m={all:[],lookup:{}};else{const E=Pa(e.current.state);m={all:s?[]:[...E.all],lookup:S({},E.lookup)}}let v={};s&&!h&&(v=Object.keys(m.lookup).reduce((E,I)=>S({},E,{[I]:!1}),{}));const C={};t.forEach(E=>{const{field:I}=E;C[I]=!0,v[I]=!0;let _=m.lookup[I];_==null?(_=S({},bce(r,E.type),{field:I,hasBeenResized:!1}),m.all.push(I)):s&&m.all.push(I);let k=_.hasBeenResized;JL.forEach($=>{E[$]!==void 0&&(k=!0,E[$]===-1&&(E[$]=1/0))}),m.lookup[I]=S({},_,{hide:E.hide==null?!1:E.hide},E,{hasBeenResized:k})}),s&&!h&&Object.keys(m.lookup).forEach(E=>{v[E]||delete m.lookup[E]});const g=S({},m.lookup),x=e.current.unstable_applyPipeProcessors("hydrateColumns",m);let b={};if(i){let E=!1;const I=S({},o);h?x.all.forEach(_=>{I[_]=!m.lookup[_].hide}):s&&Object.keys(I).forEach(_=>{x.lookup[_]||(delete I[_],E=!0)}),x.all.forEach(_=>{if(!C[_]&&g[_]===x.lookup[_])return;let k=o[_];k===void 0&&(h?k=!0:k=!!Pa(e.current.state).lookup[_]);const $=!x.lookup[_].hide;$!==k&&(E=!0,I[_]=$)}),E||h?b=I:b=o}else b=o;const P=yce(x,n),w=S({},P,{columnVisibilityModel:b});return eA(w,(a=(c=(f=e.current).getRootDimensions)==null||(p=c.call(f))==null?void 0:p.viewportInnerSize.width)!=null?a:0)},z_=e=>t=>S({},t,{columns:e});function Fb({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let s=n;s<r;s+=1)if(o[s]){const c=o[s].id,f=t.current.unstable_getCellColSpanInfo(c,e);f&&f.spannedByColSpan&&(i=f.leftVisibleCellIndex)}return i}function wce({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:s}){const a=Math.max(e-n,t);return Fb({firstColumnToRender:a,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}const Cce=e=>{const{column:t,onClick:n}=e,r=mt(),o=Ye(),i=u.useRef(),c=dr(r).filter(p=>p.disableColumnMenu!==!0).length===1,f=u.useCallback(p=>{c||(n(p),i.current=setTimeout(()=>{r.current.setColumnVisibility(t==null?void 0:t.field,!1)},100))},[r,t==null?void 0:t.field,n,c]);return u.useEffect(()=>()=>clearTimeout(i.current),[]),o.disableColumnSelector||t.hideable===!1?null:T.jsx(cr,{onClick:f,disabled:c,children:r.current.getLocaleText("columnMenuHideColumn")})},xce=e=>{const{column:t,onClick:n}=e,r=mt(),o=Ue(r,si),i=u.useMemo(()=>{if(!t)return null;const a=o.find(c=>c.field===t.field);return a==null?void 0:a.sort},[t,o]),s=u.useCallback(a=>{n(a);const c=a.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t,c)},[r,t,n]);return!t||!t.sortable?null:T.jsxs(u.Fragment,{children:[T.jsx(cr,{onClick:s,disabled:i==null,children:r.current.getLocaleText("columnMenuUnsort")}),T.jsx(cr,{onClick:s,"data-value":"asc",disabled:i==="asc",children:r.current.getLocaleText("columnMenuSortAsc")}),T.jsx(cr,{onClick:s,"data-value":"desc",disabled:i==="desc",children:r.current.getLocaleText("columnMenuSortDesc")})]})},Sce=u.forwardRef(function(t,n){const{hideMenu:r,currentColumn:o}=t,i=mt(),s=[T.jsx(xce,{onClick:r,column:o}),T.jsx(Mae,{onClick:r,column:o}),T.jsx(Cce,{onClick:r,column:o}),T.jsx($ae,{onClick:r,column:o})],a=i.current.unstable_applyPipeProcessors("columnMenu",s,o);return T.jsx(Rae,S({ref:n},t,{children:a.map((c,f)=>u.cloneElement(c,{key:f,onClick:r,column:o}))}))}),Ece=["className"],Pce=e=>{const{classes:t}=e;return Ie({root:["panelContent"]},Nt,t)},kce=re("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function tA(e){const{className:t}=e,n=oe(e,Ece),o={classes:Ye().classes},i=Pce(o);return T.jsx(kce,S({className:he(t,i.root)},n))}const Ice=["className"],_ce=e=>{const{classes:t}=e;return Ie({root:["panelFooter"]},Nt,t)},$ce=re("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function nA(e){const{className:t}=e,n=oe(e,Ice),o={classes:Ye().classes},i=_ce(o);return T.jsx($ce,S({className:he(t,i.root)},n))}const Mce=["className"],Tce=e=>{const{classes:t}=e;return Ie({root:["panelHeader"]},Nt,t)},Rce=re("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function Oce(e){const{className:t}=e,n=oe(e,Mce),o={classes:Ye().classes},i=Tce(o);return T.jsx(Rce,S({className:he(t,i.root)},n))}const Lce=["className"],Ace=e=>{const{classes:t}=e;return Ie({root:["panelWrapper"]},Nt,t)},Fce=re("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Nce=()=>!0,rA=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Lce),s={classes:Ye().classes},a=Ace(s);return T.jsx(GR,{open:!0,disableEnforceFocus:!0,isEnabled:Nce,children:T.jsx(Fce,S({ref:n,tabIndex:-1,className:he(r,a.root)},o))})}),Dce=!1,Bce=e=>{const{classes:t}=e;return Ie({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Nt,t)},zce=re("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})(()=>({padding:"8px 0px 8px 8px"})),jce=re("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${vr.root}`]:{marginRight:e.spacing(.5)}})),Hce=re(tr)({justifyContent:"flex-end"});function Vce(e){var t,n,r;const o=mt(),i=u.useRef(null),s=Ue(o,Vo),a=Ue(o,ol),c=Ye(),[f,p]=u.useState(""),h={classes:c.classes},m=Bce(h),v=b=>{const{name:P}=b.target;o.current.setColumnVisibility(P,a[P]===!1)},C=u.useCallback(b=>o.current.unstable_caches.columns.isUsingColumnVisibilityModel?b?o.current.setColumnVisibilityModel({}):o.current.setColumnVisibilityModel(Object.fromEntries(s.filter(P=>P.hideable!==!1).map(P=>[P.field,!1]))):o.current.updateColumns(s.map(P=>P.hideable!==!1?{field:P.field,hide:!b}:P)),[o,s]),g=u.useCallback(b=>{p(b.target.value)},[]),x=u.useMemo(()=>{if(!f)return s;const b=f.toLowerCase();return s.filter(P=>(P.headerName||P.field).toLowerCase().indexOf(b)>-1)},[s,f]);return u.useEffect(()=>{i.current.focus()},[]),T.jsxs(rA,S({},e,{children:[T.jsx(Oce,{children:T.jsx(c.components.BaseTextField,S({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:f,onChange:g,variant:"standard",fullWidth:!0},(t=c.componentsProps)==null?void 0:t.baseTextField))}),T.jsx(tA,{children:T.jsx(zce,{className:m.root,children:x.map(b=>{var P;return T.jsxs(jce,{className:m.columnsPanelRow,children:[T.jsx(dO,{control:T.jsx(c.components.BaseSwitch,S({disabled:b.hideable===!1,checked:a[b.field]!==!1,onClick:v,name:b.field,size:"small"},(P=c.componentsProps)==null?void 0:P.baseSwitch)),label:b.headerName||b.field}),!c.disableColumnReorder&&Dce&&T.jsx(Hce,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:T.jsx(AL,{})})]},b.field)})})}),T.jsxs(nA,{children:[T.jsx(c.components.BaseButton,S({onClick:()=>C(!1)},(n=c.componentsProps)==null?void 0:n.baseButton,{children:o.current.getLocaleText("columnsPanelHideAllButton")})),T.jsx(c.components.BaseButton,S({onClick:()=>C(!0)},(r=c.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const Uce=["children","className","classes"],Wce=Ve("MuiDataGrid",["panel","paper"]),Gce=re(Oa,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Kce=re(Qo,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),qce=u.forwardRef((e,t)=>{var n;const{children:r,className:o}=e,i=oe(e,Uce),s=mt(),a=Wce,[c,f]=u.useState(!1),p=u.useCallback(()=>{s.current.hidePreferences()},[s]),h=u.useCallback(C=>{$x(C.key)&&s.current.hidePreferences()},[s]),m=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{f(!0)},effect:()=>()=>{f(!1)}}],[]),v=(n=s.current.columnHeadersContainerElementRef)==null?void 0:n.current;return v?T.jsx(Gce,S({ref:t,placement:"bottom-start",className:he(o,a.panel),anchorEl:v,modifiers:m},i,{children:T.jsx(AR,{mouseEvent:"onMouseUp",onClickAway:p,children:T.jsx(Kce,{className:a.paper,elevation:8,onKeyDown:h,children:c&&r})})})):null}),Yce=u.forwardRef(function(t,n){var r,o,i;const s=mt(),a=Ue(s,Vo),c=Ye(),f=Ue(s,Xm),p=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=f.openedPanelValue)!=null?r:kl.filters);return T.jsx(c.components.Panel,S({ref:n,as:c.components.BasePopper,open:a.length>0&&f.open},(o=c.componentsProps)==null?void 0:o.panel,t,(i=c.componentsProps)==null?void 0:i.basePopper,{children:p}))}),Xce=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Qce=["InputComponentProps"],Jce=e=>{const{classes:t}=e;return Ie({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Nt,t)},Zce=re("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),eue=re(Aa,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),tue=re(Aa,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:(e,t)=>t.filterFormLinkOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),nue=re(Aa,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),rue=re(Aa,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),oue=re(Aa,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),iue=e=>{switch(e){case Mr.And:return"filterPanelOperatorAnd";case Mr.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},md=e=>e.headerName||e.field,j_=new Intl.Collator,sue=u.forwardRef(function(t,n){var r,o,i,s,a,c,f;const{item:p,hasMultipleFilters:h,deleteFilter:m,applyFilterChanges:v,multiFilterOperator:C,showMultiFilterOperators:g,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:b,focusElementRef:P,linkOperators:w=[Mr.And,Mr.Or],columnsSort:E,deleteIconProps:I={},linkOperatorInputProps:_={},operatorInputProps:k={},columnInputProps:$={},valueInputProps:R={}}=t,O=oe(t,Xce),N=mt(),U=Ue(N,Cv),H=En(),L=En(),D=En(),B=En(),W=Ye(),A={classes:W.classes},z=Jce(A),G=u.useRef(null),q=u.useRef(null),X=h&&w.length>0,ie=((r=W.componentsProps)==null?void 0:r.baseFormControl)||{},se=(i=(((o=W.componentsProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,ae=se?"option":cr,{InputComponentProps:we}=R,de=oe(R,Qce),le=u.useMemo(()=>{switch(E){case"asc":return U.sort((Le,Oe)=>j_.compare(md(Le),md(Oe)));case"desc":return U.sort((Le,Oe)=>-j_.compare(md(Le),md(Oe)));default:return U}},[U,E]),te=p.columnField?N.current.getColumn(p.columnField):null,be=u.useMemo(()=>{var Le;return!p.operatorValue||!te?null:(Le=te.filterOperators)==null?void 0:Le.find(Oe=>Oe.value===p.operatorValue)},[p,te]),_e=u.useCallback(Le=>{const Oe=Le.target.value,Ze=N.current.getColumn(Oe);if(Ze.field===te.field)return;const gt=Ze.filterOperators.find(et=>et.value===p.operatorValue)||Ze.filterOperators[0],tt=!gt.InputComponent||gt.InputComponent!==(be==null?void 0:be.InputComponent);v(S({},p,{columnField:Oe,operatorValue:gt.value,value:tt?void 0:p.value}))},[N,v,p,te,be]),Se=u.useCallback(Le=>{const Oe=Le.target.value,Ze=te==null?void 0:te.filterOperators.find(tt=>tt.value===Oe),gt=!(Ze!=null&&Ze.InputComponent)||(Ze==null?void 0:Ze.InputComponent)!==(be==null?void 0:be.InputComponent);v(S({},p,{operatorValue:Oe,value:gt?void 0:p.value}))},[v,p,te,be]),Fe=u.useCallback(Le=>{const Oe=Le.target.value===Mr.And.toString()?Mr.And:Mr.Or;b(Oe)},[b]),Re=()=>{W.disableMultipleColumnsFiltering?p.value===void 0?m(p):v(S({},p,{value:void 0})):m(p)};return u.useImperativeHandle(P,()=>({focus:()=>{if(be!=null&&be.InputComponent){var Le;G==null||(Le=G.current)==null||Le.focus()}else q.current.focus()}}),[be]),T.jsxs(Zce,S({ref:n,className:z.root},O,{children:[T.jsx(eue,S({variant:"standard",as:W.components.BaseFormControl},ie,I,{className:he(z.deleteIcon,ie.className,I.className),children:T.jsx(tr,{"aria-label":N.current.getLocaleText("filterPanelDeleteIconLabel"),title:N.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Re,size:"small",children:T.jsx(W.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),T.jsx(tue,S({variant:"standard",as:W.components.BaseFormControl},ie,_,{sx:S({display:X?"flex":"none",visibility:g?"visible":"hidden"},ie.sx||{},_.sx||{}),className:he(z.linkOperatorInput,ie.className,_.className),children:T.jsx(W.components.BaseSelect,S({inputProps:{"aria-label":N.current.getLocaleText("filterPanelLinkOperator")},value:C,onChange:Fe,disabled:!!x||w.length===1,native:se},(s=W.componentsProps)==null?void 0:s.baseSelect,{children:w.map(Le=>T.jsx(ae,{value:Le.toString(),children:N.current.getLocaleText(iue(Le))},Le.toString()))}))})),T.jsxs(nue,S({variant:"standard",as:W.components.BaseFormControl},ie,$,{className:he(z.columnInput,ie.className,$.className),children:[T.jsx(hb,{htmlFor:H,id:L,children:N.current.getLocaleText("filterPanelColumns")}),T.jsx(W.components.BaseSelect,S({labelId:L,id:H,label:N.current.getLocaleText("filterPanelColumns"),value:p.columnField||"",onChange:_e,native:se},(a=W.componentsProps)==null?void 0:a.baseSelect,{children:le.map(Le=>T.jsx(ae,{value:Le.field,children:md(Le)},Le.field))}))]})),T.jsxs(rue,S({variant:"standard",as:W.components.BaseFormControl},ie,k,{className:he(z.operatorInput,ie.className,k.className),children:[T.jsx(hb,{htmlFor:D,id:B,children:N.current.getLocaleText("filterPanelOperators")}),T.jsx(W.components.BaseSelect,S({labelId:B,label:N.current.getLocaleText("filterPanelOperators"),id:D,value:p.operatorValue,onChange:Se,native:se,inputRef:q},(c=W.componentsProps)==null?void 0:c.baseSelect,{children:te==null||(f=te.filterOperators)==null?void 0:f.map(Le=>T.jsx(ae,{value:Le.value,children:Le.label||N.current.getLocaleText(`filterOperator${fe(Le.value)}`)},Le.value))}))]})),T.jsx(oue,S({variant:"standard",as:W.components.BaseFormControl},ie,de,{className:he(z.valueInput,ie.className,de.className),children:be!=null&&be.InputComponent?T.jsx(be.InputComponent,S({apiRef:N,item:p,applyValue:v,focusElementRef:G},be.InputComponentProps,we)):null}))]}))}),lue=["linkOperators","columnsSort","filterFormProps","children"],aue=u.forwardRef(function(t,n){var r;const o=mt(),i=Ye(),s=Ue(o,jr),a=Ue(o,Cv),c=u.useRef(null),{linkOperators:f=[Mr.And,Mr.Or],columnsSort:p,filterFormProps:h}=t,m=oe(t,lue),v=u.useCallback(E=>{o.current.upsertFilterItem(E)},[o]),C=u.useCallback(E=>{o.current.setFilterLinkOperator(E)},[o]),g=u.useCallback(()=>{const E=a.find(I=>{var _;return(_=I.filterOperators)==null?void 0:_.length});return E?{columnField:E.field,operatorValue:E.filterOperators[0].value,id:Math.round(Math.random()*1e5)}:null},[a]),x=u.useMemo(()=>{if(s.items.length)return s.items;const E=g();return E?[E]:[]},[s.items,g]),b=x.length>1,P=()=>{const E=g();E&&o.current.upsertFilterItems([...x,E])},w=u.useCallback(E=>{const I=x.length===1;o.current.deleteFilterItem(E),I&&o.current.hideFilterPanel()},[o,x.length]);return u.useEffect(()=>{f.length>0&&s.linkOperator&&!f.includes(s.linkOperator)&&C(f[0])},[f,C,s.linkOperator]),u.useEffect(()=>{x.length>0&&c.current.focus()},[x.length]),T.jsxs(rA,S({ref:n},m,{children:[T.jsx(tA,{children:x.map((E,I)=>T.jsx(sue,S({item:E,applyFilterChanges:v,deleteFilter:w,hasMultipleFilters:b,showMultiFilterOperators:I>0,multiFilterOperator:s.linkOperator,disableMultiFilterOperator:I!==1,applyMultiFilterOperatorChanges:C,focusElementRef:I===x.length-1?c:null,linkOperators:f,columnsSort:p},h),E.id==null?I:E.id))}),!i.disableMultipleColumnsFiltering&&T.jsx(nA,{children:T.jsx(i.components.BaseButton,S({onClick:P,startIcon:T.jsx(LL,{})},(r=i.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))}),cue=["hideMenu","options"],uue=["hideMenu","options"],due=e=>{const t=mt(),{hideMenu:n,options:r}=e,o=oe(e,cue);return T.jsx(cr,S({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))},fue=e=>{const t=mt(),{hideMenu:n,options:r}=e,o=oe(e,uue);return T.jsx(cr,S({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))},Tf=()=>({items:[],linkOperator:Mr.And,quickFilterValues:[],quickFilterLogicOperator:Mr.And}),pue=["className","rowCount","visibleRowCount"],hue=e=>{const{classes:t}=e;return Ie({root:["rowCount"]},Nt,t)},mue=re("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),gue=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=oe(t,pue),a=mt(),f={classes:Ye().classes},p=hue(f);if(o===0)return null;const h=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return T.jsxs(mue,S({ref:n,className:he(p.root,r)},s,{children:[a.current.getLocaleText("footerTotalRows")," ",h]}))}),vue=["className","selectedRowCount"],yue=e=>{const{classes:t}=e;return Ie({root:["selectedRowCount"]},Nt,t)},bue=re("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),wue=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=oe(t,vue),s=mt(),c={classes:Ye().classes},f=yue(c),p=s.current.getLocaleText("footerRowSelected")(o);return T.jsx(bue,S({ref:n,className:he(f.root,r)},i,{children:p}))}),Cue=u.forwardRef(function(t,n){var r;const o=mt(),i=Ye(),s=Ue(o,sse),a=Ue(o,Sae),c=Ue(o,IL),f=!i.hideFooterSelectedRowCount&&a>0?T.jsx(wue,{selectedRowCount:a}):T.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?T.jsx(gue,{rowCount:s,visibleRowCount:c}):null,h=i.pagination&&!i.hideFooterPagination&&i.components.Pagination&&T.jsx(i.components.Pagination,S({},(r=i.componentsProps)==null?void 0:r.pagination));return T.jsxs(jle,S({ref:n},t,{children:[f,p,h]}))}),xue=u.forwardRef(function(t,n){var r,o;const i=Ye();return T.jsxs("div",S({ref:n},t,{children:[T.jsx(i.components.PreferencesPanel,S({},(r=i.componentsProps)==null?void 0:r.preferencesPanel)),i.components.Toolbar&&T.jsx(i.components.Toolbar,S({},(o=i.componentsProps)==null?void 0:o.toolbar))]}))}),Sue=u.forwardRef(function(t,n){return T.jsx(Sv,S({ref:n},t,{children:T.jsx(Xf,{})}))}),Eue=u.forwardRef(function(t,n){const o=mt().current.getLocaleText("noRowsLabel");return T.jsx(Sv,S({ref:n},t,{children:o}))}),Pue=re(kte)(({theme:e})=>({[`& .${da.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${da.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),kue=u.forwardRef(function(t,n){var r;const o=mt(),i=Ye(),s=Ue(o,Mu),a=u.useMemo(()=>Math.floor(s.rowCount/(s.pageSize||1)),[s.rowCount,s.pageSize]),c=u.useCallback(p=>{const h=Number(p.target.value);o.current.setPageSize(h)},[o]),f=u.useCallback((p,h)=>{o.current.setPage(h)},[o]);return T.jsx(Pue,S({ref:n,component:"div",count:s.rowCount,page:s.page<=a?s.page:a,rowsPerPageOptions:(r=i.rowsPerPageOptions)!=null&&r.includes(s.pageSize)?i.rowsPerPageOptions:[],rowsPerPage:s.pageSize,onPageChange:f,onRowsPerPageChange:c},o.current.getLocaleText("MuiTablePagination"),t))}),Ev=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=Tx(e),n=Pae(e)):(n=Rs(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Ba=(e,t)=>{const n=Ev(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Lx="__detail_panel_toggle__",Iue=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],_ue=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:s}=e;return Ie({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Nt,s)},$ue=({width:e})=>{if(!e)return null;const t={width:e};return T.jsx("div",{className:"MuiDataGrid-cell",style:t})};function Mue(e){var t;const{selected:n,rowId:r,row:o,index:i,style:s,rowHeight:a,className:c,visibleColumns:f,renderedColumns:p,containerWidth:h,firstColumnToRender:m,cellFocus:v,cellTabIndex:C,editRowsState:g,isLastVisible:x=!1,onClick:b,onDoubleClick:P,onMouseEnter:w,onMouseLeave:E}=e,I=oe(e,Iue),_=mt(),k=u.useRef(null),$=Ye(),R=Ba(_,$),O=Ue(_,wv),N=Ue(_,si),U=Ue(_,Sx),H=Ue(_,Ix),L=i+H+2,{hasScrollX:D,hasScrollY:B}=(t=_.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},W={selected:n,isLastVisible:x,classes:$.classes,editing:_.current.getRowMode(r)===Xt.Edit,editable:$.editMode===Cr.Row,rowHeight:a},A=_ue(W);u.useLayoutEffect(()=>{a==="auto"&&k.current&&typeof ResizeObserver=="undefined"&&_.current.unstable_storeRowHeightMeasurement(r,k.current.clientHeight)},[_,a,r]),u.useLayoutEffect(()=>{if(R.range){const _e=_.current.getRowIndexRelativeToVisibleRows(r);_e!=null&&_.current.unstable_setLastMeasuredRowIndex(_e)}const le=k.current;if(!le||a!=="auto"||typeof ResizeObserver=="undefined")return;const be=new ResizeObserver(_e=>{const[Se]=_e,Fe=Se.borderBoxSize&&Se.borderBoxSize.length>0?Se.borderBoxSize[0].blockSize:Se.contentRect.height;_.current.unstable_storeRowHeightMeasurement(r,Fe)});return be.observe(le),()=>be.disconnect()},[_,R.range,i,a,r]);const z=u.useCallback((le,te)=>be=>{be.target.nodeType===1&&!be.currentTarget.contains(be.target)||_.current.getRow(r)&&(_.current.publishEvent(le,_.current.getRowParams(r),be),te&&te(be))},[_,r]),G=u.useCallback(le=>{const te=nae(le.target,Z.cell),be=te==null?void 0:te.getAttribute("data-field");be&&(be===cp.field||be===Lx||be==="__reorder__"||_.current.getCellMode(r,be)===Rt.Edit||_.current.getColumn(be).type===Ox)||z("rowClick",b)(le)},[_,b,z,r]),q=S({},s,{maxHeight:a==="auto"?"none":a,minHeight:a}),X=_.current.unstable_getRowInternalSizes(r);if(X!=null&&X.spacingTop){const le=$.rowSpacingType==="border"?"borderTopWidth":"marginTop";q[le]=X.spacingTop}if(X!=null&&X.spacingBottom){const le=$.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";q[le]=X.spacingBottom}let ie=null;if(typeof $.getRowClassName=="function"){const le=i-R.range.firstRowIndex,te=S({},_.current.getRowParams(r),{isFirstVisible:le===0,isLastVisible:le===R.rows.length-1,indexRelativeToCurrentPage:le});ie=$.getRowClassName(te)}const ee=[];for(let le=0;le<p.length;le+=1){const te=p[le],be=m+le,_e=be===f.length-1,Fe=_e?!(_e&&D&&!B)&&$.disableExtendRowFullWidth:$.showCellRightBorder,Re=_.current.getCellParams(r,te.field),Le=[],Oe=$.disableColumnReorder&&te.disableReorder||!$.rowReordering&&!!N.length&&U>1&&Object.keys(g).length>0;te.cellClassName&&Le.push(he(typeof te.cellClassName=="function"?te.cellClassName(Re):te.cellClassName));const Ze=g[r]?g[r][te.field]:null;let gt=null;if(Ze==null&&te.renderCell){var se;gt=te.renderCell(S({},Re,{api:_.current})),Le.push(he(Z["cell--withRenderer"],(se=$.classes)==null?void 0:se["cell--withRenderer"]))}if(Ze!=null&&te.renderEditCell){var ae;let ut=o;_.current.unstable_getRowWithUpdatedValues&&(ut=_.current.unstable_getRowWithUpdatedValues(r,te.field));const ot=S({},Re,{row:ut},Ze,{api:_.current});gt=te.renderEditCell(ot),Le.push(he(Z["cell--editing"],(ae=$.classes)==null?void 0:ae["cell--editing"]))}$.getCellClassName&&Le.push($.getCellClassName(Re));const tt=v!==null&&v.id===r&&v.field===te.field,et=C!==null&&C.id===r&&C.field===te.field&&Re.cellMode==="view"?0:-1,Pt=_.current.unstable_getCellColSpanInfo(r,be);if(Pt&&!Pt.spannedByColSpan){var we;const{colSpan:ut,width:ot}=Pt.cellProps;ee.push(T.jsx($.components.Cell,S({value:Re.value,field:te.field,width:ot,rowId:r,height:a,showRightBorder:Fe,formattedValue:Re.formattedValue,align:te.align||"left",cellMode:Re.cellMode,colIndex:be,isEditable:Re.isEditable,hasFocus:tt,tabIndex:et,className:he(Le),colSpan:ut,disableDragEvents:Oe},(we=$.componentsProps)==null?void 0:we.cell,{children:gt}),te.field))}}const de=h-O;return T.jsxs("div",S({ref:k,"data-id":r,"data-rowindex":i,role:"row",className:he(ie,A.root,c),"aria-rowindex":L,"aria-selected":n,style:q,onClick:G,onDoubleClick:z("rowDoubleClick",P),onMouseEnter:z("rowMouseEnter",w),onMouseLeave:z("rowMouseLeave",E)},I,{children:[ee,de>0&&T.jsx($ue,{width:de})]}))}const H_=1e3;class Tue{constructor(t=H_){this.timeouts=new Map,this.cleanupTimeout=H_,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class Rue{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var _a;(function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"})(_a||(_a={}));class Oue{}function Lue(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new Rue:new Tue);const[a]=u.useState(new Oue),c=u.useRef(null),f=u.useRef();f.current=i;const p=u.useRef(null);if(!c.current&&f.current){const h=(m,v,C)=>{if(!v.defaultMuiPrevented){var g;(g=f.current)==null||g.call(f,m,v,C)}};c.current=r.current.subscribeEvent(o,h,s),t+=1,p.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,p.current=null},p.current)}else!f.current&&c.current&&(c.current(),c.current=null,p.current&&(e.registry.unregister(p.current),p.current=null));u.useEffect(()=>{if(!c.current&&f.current){const h=(m,v,C)=>{if(!v.defaultMuiPrevented){var g;(g=f.current)==null||g.call(f,m,v,C)}};c.current=r.current.subscribeEvent(o,h,s)}return p.current&&e.registry&&(e.registry.unregister(p.current),p.current=null),()=>{var h;(h=c.current)==null||h.call(c),c.current=null}},[r,o,s])}}const Aue={registry:null},Ne=Lue(Aue),Fue={isFirst:!0};function At(e,t,n){Ne(e,t,n,Fue)}const V_=1,Nue=1.5,Due=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return Ie(r,Nt,n)},Bue=re("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${Z["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${Z["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${Z["scrollArea--left"]}`]:{left:0},[`&.${Z["scrollArea--right"]}`]:{right:0}}));function zue(e){const{scrollDirection:t}=e,n=u.useRef(null),r=mt(),o=u.useRef(),[i,s]=u.useState(!1),a=Ue(r,_L),c=u.useRef({left:0,top:0}),f=Ye(),p=S({},e,{classes:f.classes}),h=Due(p),m=u.useCallback(g=>{c.current=g},[]),v=u.useCallback(g=>{let x;if(t==="left")x=g.clientX-n.current.getBoundingClientRect().right;else if(t==="right")x=Math.max(1,g.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI: Wrong drag direction");x=(x-V_)*Nue+V_,clearTimeout(o.current),o.current=setTimeout(()=>{r.current.scroll({left:c.current.left+x,top:c.current.top})})},[t,r]);u.useEffect(()=>()=>{clearTimeout(o.current)},[]);const C=u.useCallback(()=>{s(g=>!g)},[]);return Ne(r,"rowsScroll",m),Ne(r,"columnHeaderDragStart",C),Ne(r,"columnHeaderDragEnd",C),i?T.jsx(Bue,{ref:n,className:he(h.root),onDragOver:v,style:{height:a}}):null}const U_=u.memo(zue),jue=({apiRef:e,props:t,children:n})=>T.jsx(wL.Provider,{value:t,children:T.jsx(bL.Provider,{value:e,children:n})}),Hue=jae()&&window.localStorage.getItem("DEBUG")!=null,kd=()=>{},Vue={debug:kd,info:kd,warn:kd,error:kd},W_=["debug","info","warn","error"];function G_(e,t,n=console){const r=W_.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return W_.reduce((i,s,a)=>(a>=r?i[s]=(...c)=>{const[f,...p]=c;n[s](`MUI: ${e} - ${f}`,...p)}:i[s]=kd,i),{})}const Uue=(e,t)=>{e.current.getLogger=u.useCallback(n=>Hue?G_(n,"debug",t.logger):t.logLevel?G_(n,t.logLevel.toString(),t.logger):Vue,[t.logLevel,t.logger])};function Kt(e,t,n){const r=u.useRef(t),[o]=u.useState(Object.keys(t)),i=u.useCallback(()=>{e.current&&o.forEach(s=>{e.current.hasOwnProperty(s)||(e.current[s]=(...a)=>r.current[s](...a))})},[o,e]);u.useEffect(()=>{r.current=t},[t]),u.useEffect(()=>{i()},[i]),i()}class Wue{constructor(){this.maxListeners=10,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const a=o[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s<i.length;s+=1){const a=i[s];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}const Gue=e=>e.isPropagationStopped!==void 0;let K_=0;function Kue(e,t){const n=u.useRef();n.current||(n.current={unstable_eventManager:new Wue,unstable_caches:{},state:{},instanceId:K_},K_+=1),u.useImperativeHandle(e,()=>n.current,[n]);const r=u.useCallback((...s)=>{const[a,c,f={}]=s;if(f.defaultMuiPrevented=!1,Gue(f)&&f.isPropagationStopped())return;const p=t.signature===_a.DataGridPro?{api:n.current}:{};n.current.unstable_eventManager.emit(a,c,f,p)},[n,t.signature]),o=u.useCallback((s,a,c)=>{n.current.unstable_eventManager.on(s,a,c);const f=n.current;return()=>{f.unstable_eventManager.removeListener(s,a)}},[n]),i=u.useCallback(s=>{n.current.publishEvent("componentError",s)},[n]);return Kt(n,{subscribeEvent:o,publishEvent:r,showError:i}),u.useEffect(()=>{const s=n.current;return()=>{s.publishEvent("unmount")}},[n]),n}function que(e,t){const n=u.useCallback(r=>{e.current.setState(o=>S({},o,{error:r}))},[e]);u.useEffect(()=>{n(t.error)},[n,t.error]),Ne(e,"componentError",n)}const Yue=(e,t)=>{const r={getLocaleText:u.useCallback(o=>{if(t.localeText[o]==null)throw new Error(`Missing translation for key ${o}.`);return t.localeText[o]},[t.localeText])};Kt(e,r)};function Rf(e){return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}function Xue(e,t){if(Rf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Of(e){var t=Xue(e,"string");return Rf(t)==="symbol"?t:String(t)}const Que=e=>{const t=u.useRef({}),n=u.useCallback(c=>{c&&Object.values(c.appliers).forEach(f=>{f()})},[]),r=u.useCallback((c,f,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const h=t.current[c];return h.processors.get(f)!==p&&(h.processors.set(f,p),n(h)),()=>{t.current[c].processors.set(f,null)}},[n]),o=u.useCallback((c,f,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[f]=p,()=>{const h=t.current[c].appliers,m=oe(h,[f].map(Of));t.current[c].appliers=m}),[]),i=u.useCallback(c=>{const f=t.current[c];n(f)},[n]),s=u.useCallback((...c)=>{const[f,p,h]=c;return t.current[f]?Array.from(t.current[f].processors.values()).reduce((v,C)=>C?C(v,h):v,p):p},[]);Kt(e,{unstable_registerPipeProcessor:r,unstable_registerPipeApplier:o,unstable_requestPipeProcessorsApplication:i,unstable_applyPipeProcessors:s})},up=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},rr=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeProcessor(t,o.current,n)},[e,n,t]);up(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Ax=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeApplier(t,o.current,n)},[e,n,t]);up(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Fx=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.unstable_registerStrategyProcessor(t,n,r)},[e,r,n,t]);up(()=>{o()});const i=u.useRef(!0);u.useEffect(()=>{i.current?i.current=!1:o()},[o])},dp="none",q_={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},Jue=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((c,f,p)=>{const h=()=>{const C=n.current[f],g=oe(C,[c].map(Of));n.current[f]=g};n.current[f]||(n.current[f]={});const m=n.current[f],v=m[c];return m[c]=p,!v||v===p||c===e.current.unstable_getActiveStrategy(q_[f])&&e.current.publishEvent("activeStrategyProcessorChange",f),h},[e]),o=u.useCallback((c,f)=>{const p=e.current.unstable_getActiveStrategy(q_[c]);if(p==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const h=n.current[c];if(!h||!h[p])throw new Error(`No processor found for processor "${c}" on strategy "${p}"`);const m=h[p];return m(f)},[e]),i=u.useCallback(c=>{var f;const h=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(f=h==null?void 0:h[0])!=null?f:dp},[]),s=u.useCallback((c,f,p)=>{t.current.set(f,{group:c,isAvailable:p}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Kt(e,{unstable_registerStrategyProcessor:r,unstable_applyStrategyProcessor:o,unstable_getActiveStrategy:i,unstable_setStrategyAvailability:s})},Zue=(e,t,n,r,o)=>{const i=Wn(e,"useNativeEventListener"),[s,a]=u.useState(!1),c=u.useRef(r),f=u.useCallback(p=>c.current&&c.current(p),[]);u.useEffect(()=>{c.current=r},[r]),u.useEffect(()=>{let p;if(qL(t)?p=t():p=t&&t.current?t.current:null,p&&n&&!s){i.debug(`Binding native ${n} event`),p.addEventListener(n,f,o);const h=p;a(!0);const m=()=>{i.debug(`Clearing native ${n} event`),h.removeEventListener(n,f,o)};e.current.subscribeEvent("unmount",m)}},[t,f,n,s,i,o,e])},ede=["stateId"],tde=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(f=>{const{stateId:p}=f,h=oe(f,ede);n.current[p]=S({},h,{stateId:p})},[]),i=u.useCallback((f,p)=>{let h;if(qL(f)?h=f(e.current.state):h=f,e.current.state===h)return!1;let m=!1;const v=[];if(Object.keys(n.current).forEach(C=>{const g=n.current[C],x=g.stateSelector(e.current.state,e.current.instanceId),b=g.stateSelector(h,e.current.instanceId);b!==x&&(v.push({stateId:g.stateId,hasPropChanged:b!==g.propModel}),g.propModel!==void 0&&b!==g.propModel&&(m=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(C=>C.stateId).join(", ")} in the same transaction.`);if(m||(e.current.state=h,e.current.publishEvent&&e.current.publishEvent("stateChange",h)),v.length===1){const{stateId:C,hasPropChanged:g}=v[0],x=n.current[C],b=x.stateSelector(h,e.current.instanceId);if(x.propOnChange&&g){const P=t.signature===_a.DataGridPro?{api:e.current,reason:p}:{reason:p};x.propOnChange(b,P)}m||e.current.publishEvent(x.changeEvent,b,{reason:p})}return!m},[e,t.signature]),s=u.useCallback((f,p,h)=>e.current.setState(m=>S({},m,{[f]:p(m[f])}),h),[e]),a=u.useCallback(()=>r(()=>e.current.state),[e]);Kt(e,{setState:i,forceUpdate:a,unstable_updateControlState:s,unstable_registerControlState:o})},nde=(e,t)=>{const n=Kue(e,t);return Uue(n,t),que(n,t),tde(n,t),Que(n),Jue(n),Yue(n,t),n},so=(e,t,n)=>{const r=u.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function Y_(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const rde=e=>{const t=u.useCallback((o=!1)=>{if(e.current.getSelectedRows().size===0)return;const i=e.current.getDataAsCsv({includeHeaders:o,delimiter:" "});navigator.clipboard?navigator.clipboard.writeText(i).catch(()=>{Y_(i)}):Y_(i)},[e]),n=u.useCallback(o=>{var i;const s=o.ctrlKey||o.metaKey||o.altKey;String.fromCharCode(o.keyCode)!=="C"||!s||((i=window.getSelection())==null?void 0:i.toString())===""&&e.current.unstable_copySelectedRowsToClipboard(o.altKey)},[e]);Zue(e,e.current.rootElementRef,"keydown",n),Kt(e,{unstable_copySelectedRowsToClipboard:t})},oA=e=>e.columnMenu,ode=e=>S({},e,{columnMenu:{open:!1}}),ide=e=>{const t=Wn(e,"useGridColumnMenu"),n=u.useCallback(a=>{e.current.setState(f=>f.columnMenu.open&&f.columnMenu.field===a?f:(t.debug("Opening Column Menu"),S({},f,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{e.current.setState(c=>!c.columnMenu.open&&c.columnMenu.field===void 0?c:(t.debug("Hiding Column Menu"),S({},c,{columnMenu:S({},c.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(a=>{t.debug("Toggle Column Menu");const c=oA(e.current.state);!c.open||c.field!==a?n(a):r()},[e,t,n,r]);Kt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o});const s=u.useCallback((a,c)=>{if(!c.target.classList.contains(Z.menuIconButton)||!c.relatedTarget)return;const f=c.relatedTarget.classList.contains(Z.menuList),p=c.relatedTarget.getAttribute("role")==="menuitem";(f||p)&&e.current.setColumnHeaderFocus(a.field)},[e]);Ne(e,"columnResizeStart",r),Ne(e,"columnHeaderFocus",s),Ne(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ne(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},sde=(e,t,n)=>{var r,o,i,s,a,c,f;const p=!!t.columnVisibilityModel||!!((r=t.initialState)!=null&&(o=r.columns)!=null&&o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:p};const h=ZL(t.columnTypes),m=wc({apiRef:n,columnTypes:h,columnsToUpsert:t.columns,initialState:(i=t.initialState)==null?void 0:i.columns,shouldRegenColumnVisibilityModelFromColumns:!p,currentColumnVisibilityModel:(s=(a=t.columnVisibilityModel)!=null?a:(c=t.initialState)==null||(f=c.columns)==null?void 0:f.columnVisibilityModel)!=null?s:{},keepOnlyColumnsToUpsert:!0});return S({},e,{columns:m})};function lde(e,t){var n,r;const o=Wn(e,"useGridColumns"),i=u.useMemo(()=>ZL(t.columnTypes),[t.columnTypes]),s=u.useRef(t.columns),a=u.useRef(i);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:ol,changeEvent:"columnVisibilityModelChange"});const c=u.useCallback(H=>{o.debug("Updating columns state."),e.current.setState(z_(H)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",H.all)},[o,e]),f=u.useCallback(H=>$u(e)[H],[e]),p=u.useCallback(()=>Vo(e),[e]),h=u.useCallback(()=>dr(e),[e]),m=u.useCallback(()=>fse(e),[e]),v=u.useCallback((H,L=!0)=>(L?dr(e):Vo(e)).findIndex(B=>B.field===H),[e]),C=u.useCallback(H=>{const L=v(H);return Ia(e)[L]},[e,v]),g=u.useCallback(H=>{ol(e)!==H&&(e.current.setState(D=>S({},D,{columns:wc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:H,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),x=u.useCallback(H=>{const L=wc({apiRef:e,columnTypes:i,columnsToUpsert:H,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});c(L)},[e,c,i]),b=u.useCallback(H=>e.current.updateColumns([H]),[e]),P=u.useCallback((H,L)=>{if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var D;const B=ol(e),W=(D=B[H])!=null?D:!0;if(L!==W){const A=S({},B,{[H]:L});e.current.setColumnVisibilityModel(A)}}else{const B=e.current.getColumn(H),W=S({},B,{hide:!L});e.current.updateColumns([W]);const A={field:H,colDef:W,isVisible:L};e.current.publishEvent("columnVisibilityChange",A)}},[e]),w=u.useCallback((H,L)=>{const D=ka(e),B=D.findIndex(G=>G===H);if(B===L)return;o.debug(`Moving column ${H} to index ${L}`);const W=[...D],A=W.splice(B,1)[0];W.splice(L,0,A),c(S({},Pa(e.current.state),{all:W}));const z={field:H,element:e.current.getColumnHeaderElement(H),colDef:e.current.getColumn(H),targetIndex:L,oldIndex:B};e.current.publishEvent("columnOrderChange",z)},[e,o,c]),E=u.useCallback((H,L)=>{o.debug(`Updating column ${H} width to ${L}`);const D=e.current.getColumn(H),B=S({},D,{width:L});e.current.updateColumns([B]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(H),colDef:B,width:L})},[e,o]);Kt(e,{getColumn:f,getAllColumns:p,getColumnIndex:v,getColumnPosition:C,getVisibleColumns:h,getColumnsMeta:m,updateColumn:b,updateColumns:x,setColumnVisibilityModel:g,setColumnVisibility:P,setColumnIndex:w,setColumnWidth:E});const _=u.useCallback((H,L)=>{const D={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var B,W,A;const q=ol(e);(!L.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((B=(W=t.initialState)==null||(A=W.columns)==null?void 0:A.columnVisibilityModel)!=null?B:{}).length>0||Object.keys(q).length>0)&&(D.columnVisibilityModel=q)}D.orderedFields=ka(e);const z=Vo(e),G={};return z.forEach(q=>{if(q.hasBeenResized){const X={};JL.forEach(ie=>{let ee=q[ie];ee===1/0&&(ee=-1),X[ie]=ee}),G[q.field]=X}}),Object.keys(G).length>0&&(D.dimensions=G),S({},H,{columns:D})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),k=u.useCallback((H,L)=>{var D;const B=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?(D=L.stateToRestore.columns)==null?void 0:D.columnVisibilityModel:void 0,W=L.stateToRestore.columns;if(B==null&&W==null)return H;const A=wc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:W,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(z_(A)),W!=null&&e.current.publishEvent("columnsChange",A.all),H},[e,i]),$=u.useCallback((H,L)=>{if(L===kl.columns){var D;const B=t.components.ColumnsPanel;return T.jsx(B,S({},(D=t.componentsProps)==null?void 0:D.columnsPanel))}return H},[t.components.ColumnsPanel,(r=t.componentsProps)==null?void 0:r.columnsPanel]);rr(e,"exportState",_),rr(e,"restoreState",k),rr(e,"preferencePanel",$);const R=u.useRef(null);Ne(e,"viewportInnerSizeChange",H=>{R.current!==H.width&&(R.current=H.width,c(eA(Pa(e.current.state),H.width)))}),At(e,"columnVisibilityChange",t.onColumnVisibilityChange);const N=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const H=wc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});c(H)},[e,o,c,i]);Ax(e,"hydrateColumns",N);const U=u.useRef(!0);u.useEffect(()=>{if(U.current){U.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&a.current===i)return;const H=wc({apiRef:e,columnTypes:i,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,a.current=i,c(H)},[o,e,c,t.columns,i]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const ade=e=>e.columnGrouping,iA=qe(ade,e=>e.lookup),cde=["groupId","children"];function ude(e){return e.groupPath!==void 0}const sA=(e,t,n)=>{if($L(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurrs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
|
|
270
|
+
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{sA(i,[...t,r],n)})},lA=e=>{if(!e)return{};const t={};return e.forEach(n=>{sA(n,[],t)}),t},Nx=e=>{let t={};return e.forEach(n=>{if($L(n))return;const{groupId:r,children:o}=n,i=oe(n,cde);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const s=S({},i,{groupId:r}),a=Nx(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=S({},t,a,{[r]:s})}),S({},t)},dde=(e,t)=>{var n;const r=Nx((n=t.columnGroupingModel)!=null?n:[]);return S({},e,{columnGrouping:{lookup:r,groupCollapsedModel:{}}})},fde=(e,t)=>{var n;const r=u.useCallback(a=>{var c,f;return(c=(f=$u(e)[a])==null?void 0:f.groupPath)!=null?c:[]},[e]),o=u.useCallback(()=>iA(e),[e]);Kt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o});const s=u.useRef(!0);u.useEffect(()=>{var a,c;if(s.current){s.current=!1;return}if(!((a=t.experimentalFeatures)!=null&&a.columnGrouping))return;const f=Nx((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(p=>S({},p,{columnGrouping:S({},p.columnGrouping,{lookup:f})}))},[e,t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping])},K0=.7,q0=1.3,aA=(e,t,n,r)=>{switch(e){case $f.Compact:return{value:e,headerHeight:Math.floor(t*K0),rowHeight:Math.floor(n*K0),headerGroupingMaxDepth:r,factor:K0};case $f.Comfortable:return{value:e,headerHeight:Math.floor(t*q0),rowHeight:Math.floor(n*q0),headerGroupingMaxDepth:r,factor:q0};default:return{value:e,headerHeight:t,rowHeight:n,headerGroupingMaxDepth:r,factor:1}}},pde=(e,t)=>{let n;if(t.columnGroupingModel==null||Object.keys(t.columnGroupingModel).length===0)n=0;else{const r=lA(t.columnGroupingModel),o=e.columns,i=o.all.filter(s=>o.columnVisibilityModel[s]!==!1);i.length===0?n=0:n=Math.max(...i.map(s=>{var a,c;return(a=(c=r[s])==null?void 0:c.length)!=null?a:0}))}return S({},e,{density:aA(t.density,t.headerHeight,t.rowHeight,n)})},hde=(e,t)=>{const n=Ue(e,dr),r=n.length>0?Math.max(...n.map(a=>{var c,f;return(c=(f=a.groupPath)==null?void 0:f.length)!=null?c:0})):0,o=Wn(e,"useDensity"),i=u.useCallback((a,c=t.headerHeight,f=t.rowHeight,p=r)=>{o.debug(`Set grid density to ${a}`),e.current.setState(h=>{const m=Da(h),v=aA(a,c,f,p);return ys(m,v)?h:S({},h,{density:v})}),e.current.forceUpdate()},[o,e,t.headerHeight,t.rowHeight,r]);u.useEffect(()=>{e.current.setDensity(t.density,t.headerHeight,t.rowHeight,r)},[e,t.density,t.rowHeight,t.headerHeight,r]),Kt(e,{setDensity:i})};function mde(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const cA=(e,t)=>{if(typeof e=="string"){const n=e.replace(/"/g,'""');return[t,`
|
|
271
|
+
`,"\r"].some(r=>n.includes(r))?`"${n}"`:n}return e};gi(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);const gde=(e,t,n,r)=>t.map(o=>{const i=n(e,o.field);return cA(i.formattedValue,r)});function vde(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:i}=e,s=n.reduce((c,f)=>`${c}${gde(f,t,r,o).join(o)}\r
|
|
272
|
+
`,"").trim();return i?`${`${t.filter(c=>c.field!==cp.field).map(c=>cA(c.headerName||c.field,o)).join(o)}\r
|
|
273
|
+
`}${s}`.trim():s}const uA=({apiRef:e,options:t})=>{const n=Vo(e);return t.fields?t.fields.map(o=>n.find(i=>i.field===o)).filter(o=>!!o):(t.allColumns?n:dr(e)).filter(o=>!o.disableExport)},yde=({apiRef:e})=>{var t,n;const r=mse(e),o=ma(e),i=e.current.getSelectedRows(),s=r.filter(p=>{var h;return((h=o[p].position)!=null?h:"body")==="body"}),a=op(e),c=(a==null||(t=a.top)==null?void 0:t.map(p=>p.id))||[],f=(a==null||(n=a.bottom)==null?void 0:n.map(p=>p.id))||[];return s.unshift(...c),s.push(...f),i.size>0?s.filter(p=>i.has(p)):s},bde=e=>{const t=Wn(e,"useGridCsvExport"),n=u.useCallback((s={})=>{var a,c;t.debug("Get data as CSV");const f=uA({apiRef:e,options:s}),h=((a=s.getRowsToExport)!=null?a:yde)({apiRef:e});return vde({columns:f,rowIds:h,getCellParams:e.current.getCellParams,delimiterCharacter:s.delimiter||",",includeHeaders:(c=s.includeHeaders)!=null?c:!0})},[t,e]),r=u.useCallback(s=>{t.debug("Export data as CSV");const a=n(s),c=new Blob([s!=null&&s.utf8WithBom?new Uint8Array([239,187,191]):"",a],{type:"text/csv"});mde(c,"csv",s==null?void 0:s.fileName)},[t,n]);Kt(e,{getDataAsCsv:n,exportDataAsCsv:r});const i=u.useCallback((s,a)=>{var c;return(c=a.csvOptions)!=null&&c.disableToolbarButton?s:[...s,{component:T.jsx(due,{options:a.csvOptions}),componentName:"csvExport"}]},[]);rr(e,"exportMenu",i)},Lf=e=>e.rowsMeta,wde=(e,t)=>{const n=Wn(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),i=u.useRef({});u.useEffect(()=>{r.current=yn(e.current.rootElementRef.current)},[e]);const s=u.useCallback((v,C)=>new Promise(g=>{if(!v&&!C){g();return}const x=uA({apiRef:e,options:{fields:v,allColumns:C}}).map(w=>w.field),b=Vo(e),P={};b.forEach(w=>{P[w.field]=x.includes(w.field)}),e.current.setColumnVisibilityModel(P),g()}),[e]),a=u.useCallback(v=>{const C=document.createElement("iframe");return C.id="grid-print-window",C.src=window.location.href,C.style.position="absolute",C.style.width="0px",C.style.height="0px",C.title=v||document.title,C},[]),c=u.useCallback((v,C)=>{var g,x,b;const P=S({copyStyles:!0,hideToolbar:!1,hideFooter:!1},C);v.onload=null;const w=v.contentDocument||((g=v.contentWindow)==null?void 0:g.document);if(!w)return;const E=lp(e),I=Lf(e.current.state),_=e.current.rootElementRef.current,k=_.cloneNode(!0),$=k.querySelector(`.${Z.virtualScroller}`);$.style.height="auto",$.style.width="auto",$.parentElement.style.width="auto",$.parentElement.style.height="auto";const R=k.querySelector(`.${Z.main}`);R.style.overflow="visible";const N=k.querySelector(`.${Z.columnHeaders}`).querySelector(`.${Z.columnHeadersInner}`);N.style.width="100%";let U=((x=_.querySelector(`.${Z.toolbarContainer}`))==null?void 0:x.clientHeight)||0,H=((b=_.querySelector(`.${Z.footerContainer}`))==null?void 0:b.clientHeight)||0;if(P.hideToolbar){var L;(L=k.querySelector(`.${Z.toolbarContainer}`))==null||L.remove(),U=0}if(P.hideFooter){var D;(D=k.querySelector(`.${Z.footerContainer}`))==null||D.remove(),H=0}k.style.height=`${I.currentPageTotalHeight+E+U+H}px`,w.body.innerHTML="",w.body.appendChild(k);const B=typeof P.pageStyle=="function"?P.pageStyle():P.pageStyle;if(typeof B=="string"){const W=w.createElement("style");W.appendChild(w.createTextNode(B)),w.head.appendChild(W)}if(P.bodyClassName&&w.body.classList.add(...P.bodyClassName.split(" ")),P.copyStyles){const W=r.current.querySelectorAll("style, link[rel='stylesheet']");for(let A=0;A<W.length;A+=1){const z=W[A];if(z.tagName==="STYLE"){const G=w.createElement(z.tagName),q=z.sheet;if(q){let X="";for(let ie=0;ie<q.cssRules.length;ie+=1)typeof q.cssRules[ie].cssText=="string"&&(X+=`${q.cssRules[ie].cssText}\r
|
|
274
|
+
`);G.appendChild(w.createTextNode(X)),w.head.appendChild(G)}}else if(z.getAttribute("href")){const G=w.createElement(z.tagName);for(let q=0;q<z.attributes.length;q+=1){const X=z.attributes[q];X&&G.setAttribute(X.nodeName,X.nodeValue||"")}w.head.appendChild(G)}}}v.contentWindow.print()},[e,r]),f=u.useCallback(v=>{var C,g;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(C=o.current)!=null&&(g=C.columns)!=null&&g.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_enableVirtualization(),o.current=null,i.current={}},[e]),h={exportDataAsPrint:u.useCallback(v=>ft(void 0,null,function*(){if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),i.current=ol(e),t.pagination){const g=kL(e);e.current.setPageSize(g)}yield s(v==null?void 0:v.fields,v==null?void 0:v.allColumns),e.current.unstable_disableVirtualization();const C=a(v==null?void 0:v.fileName);r.current.body.appendChild(C),C.onload=()=>c(C,v),C.contentWindow.onafterprint=()=>f(C)}),[t,n,e,a,c,f,s])};Kt(e,h);const m=u.useCallback((v,C)=>{var g;return(g=C.printOptions)!=null&&g.disableToolbarButton?v:[...v,{component:T.jsx(fue,{options:C.printOptions}),componentName:"printExport"}]},[]);rr(e,"exportMenu",m)},Cde=["rowsBeforePartialUpdates"];function xde(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
|
|
275
|
+
`))}const dA=(e,t,n)=>{const r=t?t(e):e.id;return xde(r,e,n),r},om=({rows:e,getRowId:t,loading:n})=>{const r={rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,idRowsLookup:{},idToIdLookup:{},ids:[]};for(let o=0;o<e.length;o+=1){const i=e[o],s=dA(i,t);r.idRowsLookup[s]=i,r.idToIdLookup[s]=s,r.ids.push(s)}return r},fA=({apiRef:e,previousTree:t,rowCountProp:n,loadingProp:r})=>{const o=e.current.unstable_caches.rows,i=oe(o,Cde),s=n!=null?n:0,a=e.current.unstable_applyStrategyProcessor("rowTreeCreation",S({},i,{previousTree:t})),c=e.current.unstable_applyPipeProcessors("hydrateRows",a),f=c.treeDepth===1?c.ids.length:Object.values(c.tree).filter(p=>p.parent==null&&!p.isPinned).length;return S({},c,{groupingResponseBeforeRowHydration:a,loading:r,totalRowCount:Math.max(s,c.ids.length),totalTopLevelRowCount:Math.max(s,f)})},pA=(e,t,n)=>{var r;const o=(r=e[t])==null?void 0:r.children;if(o==null)return[];const i=[];for(let s=0;s<o.length;s+=1){const a=o[s],c=e[a];(!n||!c.isAutoGenerated)&&i.push(a),i.push(...pA(e,c.id,n))}return i};function hA(e){var t,n;const r=op(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0;return{top:o,bottom:i}}const Nb=(e,t)=>{const n=S({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operatorValue==null){const r=$u(t)[n.columnField];n.operatorValue=r&&r.filterOperators[0].value}return n},Sde=gi(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),Ede=gi("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),Pde=gi(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),mA=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Sde(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),s=o.some(a=>a.operatorValue==null);return i&&Ede(),s&&Pde(),s||i?S({},e,{items:o.map(a=>Nb(a,n))}):e.items!==o?S({},e,{items:o}):e},X_=(e,t,n)=>r=>S({},r,{filterModel:mA(e,t,n)}),kde=(e,t)=>{const{items:n}=e,r=i=>{if(!i.columnField||!i.operatorValue)return null;const s=t.current.getColumn(i.columnField);if(!s)return null;let a;if(s.valueParser){var c;const C=s.valueParser;a=Array.isArray(i.value)?(c=i.value)==null?void 0:c.map(g=>C(g)):C(i.value)}else a=i.value;const f=S({},i,{value:a}),p=s.filterOperators;if(!(p!=null&&p.length))throw new Error(`MUI: No filter operators found for column '${s.field}'.`);const h=p.find(C=>C.value===f.operatorValue);if(!h)throw new Error(`MUI: No filter operator found for column '${s.field}' and operator value '${f.operatorValue}'.`);const m=h.getApplyFilterFn(f,s);return typeof m!="function"?null:{fn:C=>{const g=t.current.getCellParams(C,f.columnField);return m(g)},item:f}},o=n.map(r).filter(i=>!!i);return o.length===0?null:(i,s)=>{const a={};return(s?o.filter(f=>s(f.item.columnField)):o).forEach(f=>{a[f.item.id]=f.fn(i)}),a}},Ide=(e,t)=>{const{quickFilterValues:n=[]}=e;if(n.length===0)return null;const r=ka(t),o={};r.forEach(s=>{const a=t.current.getColumn(s),c=a==null?void 0:a.getApplyQuickFilterFn;c&&(o[s]=n.map(f=>c(f,a,t)))});const i=n.filter((s,a)=>Object.keys(o).some(c=>o[c][a]!=null));return i.length===0?null:(s,a)=>{const c={},f=[];Object.keys(o).forEach(h=>{(!a||a(h))&&(c[h]=t.current.getCellParams(s,h),f.push(h))});const p={};return i.forEach((h,m)=>{const v=f.some(C=>{var g,x;return o[C][m]==null?!1:(g=(x=o[C])[m])==null?void 0:g.call(x,c[C])});p[h]=v}),p}},_de=(e,t)=>{const n=kde(e,t),r=Ide(e,t);return(o,i)=>({passingFilterItems:n&&n(o,i),passingQuickFilterValues:r&&r(o,i)})},$de=(e,t,n)=>{var r,o;const i=e.filter(f=>f!=null),s=t.filter(f=>f!=null),a=(r=n.quickFilterLogicOperator)!=null?r:Tf().quickFilterLogicOperator,c=(o=n.linkOperator)!=null?o:Tf().linkOperator;if(i.length>0){const f=p=>i.some(h=>h[p.id]);if(c===Mr.And){if(!n.items.every(f))return!1}else if(!n.items.some(f))return!1}if(s.length>0&&n.quickFilterValues!=null){const f=p=>s.some(h=>h[p]);if(a===Mr.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},Mde=(e,t,n)=>{var r,o,i,s;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(s=i.filter)==null?void 0:s.filterModel)!=null?r:Tf();return S({},e,{filter:{filterModel:mA(a,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},Tde=(e,t)=>{var n,r,o;const i=Wn(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:jr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState($=>{const R=jr($,e.current.instanceId),O=t.filterMode===Uc.client?_de(R,e):null,N=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:O,filterModel:R!=null?R:Tf()});return S({},$,{filter:S({},$.filter,N)})}),e.current.publishEvent("filteredRowsSet")},[t.filterMode,e]),a=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),c=u.useCallback($=>{const R=jr(e),O=[...R.items],N=O.findIndex(U=>U.id===$.id);N===-1?O.push($):O[N]=$,e.current.setFilterModel(S({},R,{items:O}),"upsertFilterItem")},[e]),f=u.useCallback($=>{const R=jr(e),O=[...R.items];$.forEach(N=>{const U=$.findIndex(H=>H.id===N.id);U===-1?O.push(N):O[U]=N}),e.current.setFilterModel(S({},R,{items:$}),"upsertFilterItems")},[e]),p=u.useCallback($=>{const R=jr(e),O=R.items.filter(N=>N.id!==$.id);O.length!==R.items.length&&e.current.setFilterModel(S({},R,{items:O}),"deleteFilterItem")},[e]),h=u.useCallback($=>{if(i.debug("Displaying filter panel"),$){const R=jr(e),O=R.items.filter(H=>{var L;if(H.value!==void 0)return!0;const B=(L=e.current.getColumn(H.columnField).filterOperators)==null?void 0:L.find(A=>A.value===H.operatorValue);return!(typeof(B==null?void 0:B.requiresFilterValue)=="undefined"?!0:B==null?void 0:B.requiresFilterValue)});let N;O.find(H=>H.columnField===$)?N=O:t.disableMultipleColumnsFiltering?N=[Nb({columnField:$},e)]:N=[...O,Nb({columnField:$},e)],e.current.setFilterModel(S({},R,{items:N}))}e.current.showPreferences(kl.filters)},[e,i,t.disableMultipleColumnsFiltering]),m=u.useCallback(()=>{i.debug("Hiding filter panel"),e.current.hidePreferences()},[e,i]),v=u.useCallback($=>{const R=jr(e);R.linkOperator!==$&&e.current.setFilterModel(S({},R,{linkOperator:$}),"changeLogicOperator")},[e]),C=u.useCallback($=>{const R=jr(e);ys(R.quickFilterValues,$)||e.current.setFilterModel(S({},R,{quickFilterValues:[...$]}))},[e]),g=u.useCallback(($,R)=>{jr(e)!==$&&(i.debug("Setting filter model"),e.current.unstable_updateControlState("filter",X_($,t.disableMultipleColumnsFiltering,e),R),e.current.unstable_applyFilters())},[e,i,t.disableMultipleColumnsFiltering]),x=u.useCallback(()=>{const $=Rs(e);return new Map($.map(R=>[R.id,R.model]))},[e]);Kt(e,{setFilterLinkOperator:v,unstable_applyFilters:a,deleteFilterItem:p,upsertFilterItem:c,upsertFilterItems:f,setFilterModel:g,showFilterPanel:h,hideFilterPanel:m,getVisibleRowModels:x,setQuickFilterValues:C});const P=u.useCallback(($,R)=>{var O,N;const U=jr(e);return!R.exportOnlyDirtyModels||t.filterModel!=null||((O=t.initialState)==null||(N=O.filter)==null?void 0:N.filterModel)!=null||!ys(U,Tf())?S({},$,{filter:{filterModel:U}}):$},[e,t.filterModel,(n=t.initialState)==null||(r=n.filter)==null?void 0:r.filterModel]),w=u.useCallback(($,R)=>{var O;const N=(O=R.stateToRestore.filter)==null?void 0:O.filterModel;return N==null?$:(e.current.unstable_updateControlState("filter",X_(N,t.disableMultipleColumnsFiltering,e),"restoreState"),S({},$,{callbacks:[...$.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),E=u.useCallback(($,R)=>{if(R===kl.filters){var O;const N=t.components.FilterPanel;return T.jsx(N,S({},(O=t.componentsProps)==null?void 0:O.filterPanel))}return $},[t.components.FilterPanel,(o=t.componentsProps)==null?void 0:o.filterPanel]),I=u.useCallback($=>{if(t.filterMode===Uc.client&&$.isRowMatchingFilters){const R=Vc(e),O={};for(let N=0;N<R.length;N+=1){const U=R[N];let H;if(typeof U=="string"&&U.startsWith("auto-generated-group-footer"))H=!0;else{const{passingFilterItems:L,passingQuickFilterValues:D}=$.isRowMatchingFilters(U);H=$de([L],[D],$.filterModel)}O[U]=H}return{filteredRowsLookup:O,visibleRowsLookup:O,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode]);rr(e,"exportState",P),rr(e,"restoreState",w),rr(e,"preferencePanel",E),Fx(e,dp,"filtering",I);const _=u.useCallback(()=>{i.debug("onColUpdated - GridColumns changed, applying filters");const $=jr(e),R=dse(e),O=$.items.filter(N=>N.columnField&&R[N.columnField]);O.length<$.items.length&&e.current.setFilterModel(S({},$,{items:O}))},[e,i]),k=u.useCallback($=>{$==="filtering"&&e.current.unstable_applyFilters()},[e]);Ne(e,"rowsSet",s),Ne(e,"rowExpansionChange",e.current.unstable_applyFilters),Ne(e,"columnsChange",_),Ne(e,"activeStrategyProcessorChange",k),up(()=>{e.current.unstable_applyFilters()}),u.useEffect(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,i,t.filterModel])},Rde=e=>S({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}}),Ode=(e,t)=>{const n=Wn(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((g,x)=>{const b=ui(e);(b==null?void 0:b.id)===g&&(b==null?void 0:b.field)===x||(e.current.setState(P=>(n.debug(`Focusing on cell with id=${g} and field=${x}`),S({},P,{tabIndex:{cell:{id:g,field:x},columnHeader:null},focus:{cell:{id:g,field:x},columnHeader:null}}))),e.current.forceUpdate(),e.current.getRow(g)&&(b&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(b.id,b.field)),e.current.publishEvent("cellFocusIn",e.current.getCellParams(g,x))))},[e,n]),i=u.useCallback((g,x={})=>{const b=ui(e);b&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(b.id,b.field),x),e.current.setState(P=>(n.debug(`Focusing on column header with colIndex=${g}`),S({},P,{tabIndex:{columnHeader:{field:g},cell:null},focus:{columnHeader:{field:g},cell:null}}))),e.current.forceUpdate()},[e,n]),s=u.useCallback((g,x,b)=>{let P=e.current.getColumnIndex(x),w=e.current.getRowIndexRelativeToVisibleRows(g);const E=dr(e);b==="right"?P+=1:b==="left"?P-=1:w+=1;const I=Ev(e,{pagination:t.pagination,paginationMode:t.paginationMode});P>=E.length?(w+=1,w<I.rows.length&&(P=0)):P<0&&(w-=1,w>=0&&(P=E.length-1)),w=Mf(w,0,I.rows.length-1),P=Mf(P,0,E.length-1);const _=I.rows[w],k=E[P];e.current.setCellFocus(_.id,k.field)},[e,t.pagination,t.paginationMode]),a=u.useCallback(({id:g,field:x})=>{e.current.setCellFocus(g,x)},[e]),c=u.useCallback((g,x)=>{x.key==="Enter"||x.key==="Tab"||ap(x.key)||e.current.setCellFocus(g.id,g.field)},[e]),f=u.useCallback(({field:g},x)=>{x.target===x.currentTarget&&e.current.setColumnHeaderFocus(g,x)},[e]),p=u.useCallback(()=>{n.debug("Clearing focus"),e.current.setState(g=>S({},g,{focus:{cell:null,columnHeader:null}}))},[n,e]),h=u.useCallback(g=>{r.current=g},[]),m=u.useCallback(g=>{const x=r.current;r.current=null;const b=ui(e);if(!b){x&&e.current.setCellFocus(x.id,x.field);return}if((x==null?void 0:x.id)===b.id&&(x==null?void 0:x.field)===b.field)return;const P=e.current.getCellElement(b.id,b.field);P!=null&&P.contains(g.target)||e.current.getRow(b.id)&&(x?e.current.setCellFocus(x.id,x.field):(e.current.setState(w=>S({},w,{focus:{cell:null,columnHeader:null}})),e.current.forceUpdate(),e.current.publishEvent("cellFocusOut",e.current.getCellParams(b.id,b.field),g)))},[e]),v=u.useCallback(g=>{if(g.cellMode==="view")return;const x=ui(e);((x==null?void 0:x.id)!==g.id||(x==null?void 0:x.field)!==g.field)&&e.current.setCellFocus(g.id,g.field)},[e]),C=u.useCallback(()=>{const g=ui(e);g&&!e.current.getRow(g.id)&&e.current.setState(x=>S({},x,{focus:{cell:null,columnHeader:null}}))},[e]);Kt(e,{setCellFocus:o,setColumnHeaderFocus:i,unstable_moveFocusToRelativeCell:s}),u.useEffect(()=>{const g=yn(e.current.rootElementRef.current);return g.addEventListener("click",m),()=>{g.removeEventListener("click",m)}},[e,m]),Ne(e,"columnHeaderBlur",p),Ne(e,"cellDoubleClick",a),Ne(e,"cellMouseUp",h),Ne(e,"cellKeyDown",c),Ne(e,"cellModeChange",v),Ne(e,"columnHeaderFocus",f),Ne(e,"rowsSet",C)};function Lde(e,t){const n=op(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const Ade=(e,t)=>{const n=Wn(e,"useGridKeyboardNavigation"),r=Ba(e,t).rows,o=u.useMemo(()=>Lde(e,r),[e,r]),i=u.useCallback((h,m,v="left")=>{const C=Rs(e),g=e.current.unstable_getCellColSpanInfo(m,h);g&&g.spannedByColSpan&&(v==="left"?h=g.leftVisibleCellIndex:v==="right"&&(h=g.rightVisibleCellIndex));const x=C.findIndex(P=>P.id===m);n.debug(`Navigating to cell row ${x}, col ${h}`),e.current.scrollToIndexes({colIndex:h,rowIndex:x});const b=e.current.getVisibleColumns()[h].field;e.current.setCellFocus(m,b)},[e,n]),s=u.useCallback((h,m)=>{n.debug(`Navigating to header col ${h}`),e.current.scrollToIndexes({colIndex:h});const v=e.current.getVisibleColumns()[h].field;e.current.setColumnHeaderFocus(v,m)},[e,n]),a=u.useCallback(h=>o[h].id,[o]),c=u.useCallback((h,m)=>{const v=e.current.getRootDimensions();if(o.length===0||!v)return;const C=e.current.unstable_getViewportPageSize(),g=h.field?e.current.getColumnIndex(h.field):0,x=o.findIndex(_=>_.id===h.id),b=0,P=o.length-1,w=0,E=dr(e).length-1;let I=!0;switch(m.key){case"ArrowDown":case"Enter":{x<P&&i(g,a(x+1));break}case"ArrowUp":{x>b?i(g,a(x-1)):s(g,m);break}case"ArrowRight":{g<E&&i(g+1,a(x),"right");break}case"ArrowLeft":{g>w&&i(g-1,a(x));break}case"Tab":{m.shiftKey&&g>w?i(g-1,a(x),"left"):!m.shiftKey&&g<E&&i(g+1,a(x),"right");break}case" ":{if(h.field===Lx)break;const k=h.colDef;if(k&&k.type==="treeDataGroup")break;!m.shiftKey&&x<P&&i(g,a(Math.min(x+C,P)));break}case"PageDown":{x<P&&i(g,a(Math.min(x+C,P)));break}case"PageUp":{const _=Math.max(x-C,b);_!==x&&_>=b?i(g,a(_)):s(g,m);break}case"Home":{m.ctrlKey||m.metaKey||m.shiftKey?i(w,a(b)):i(w,a(x));break}case"End":{m.ctrlKey||m.metaKey||m.shiftKey?i(E,a(P)):i(E,a(x));break}default:I=!1}I&&m.preventDefault()},[e,o,i,s,a]),f=u.useCallback((h,m)=>{const v=m.currentTarget.querySelector(`.${Z.columnHeaderTitleContainerContent}`);if(!!v&&v.contains(m.target)&&h.field!==cp.field||!e.current.getRootDimensions())return;const x=e.current.unstable_getViewportPageSize(),b=h.field?e.current.getColumnIndex(h.field):0,P=0,w=o.length-1,E=0,I=dr(e).length-1;let _=!0;switch(m.key){case"ArrowDown":{i(b,a(P));break}case"ArrowRight":{b<I&&s(b+1,m);break}case"ArrowLeft":{b>E&&s(b-1,m);break}case"PageDown":{w!==null&&i(b,a(Math.min(P+x,w)));break}case"Home":{s(E,m);break}case"End":{s(I,m);break}case"Enter":{(m.ctrlKey||m.metaKey)&&e.current.toggleColumnMenu(h.field);break}case" ":break;default:_=!1}_&&m.preventDefault()},[e,o,i,s,a]),p=u.useCallback((h,m)=>{if(!m.currentTarget.contains(m.target))return;const v=e.current.getCellParams(h.id,h.field);v.cellMode!==Rt.Edit&&ap(m.key)&&e.current.publishEvent("cellNavigationKeyDown",v,m)},[e]);Ne(e,"cellNavigationKeyDown",c),Ne(e,"columnHeaderKeyDown",f),Ne(e,"cellKeyDown",p)},gA=e=>e?0:100,Q_=e=>t=>S({},t,{pagination:S({},t.pagination,{pageSize:e})}),Fde=(e,t)=>{var n,r;const o=Wn(e,"useGridPageSize"),i=Ue(e,sp);e.current.unstable_registerControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:Kd,changeEvent:"pageSizeChange"});const a={setPageSize:u.useCallback(h=>{h!==Kd(e)&&(o.debug(`Setting page size to ${h}`),e.current.setState(Q_(h)),e.current.forceUpdate())},[e,o])};Kt(e,a);const c=u.useCallback((h,m)=>{var v,C;const g=Kd(e);return!m.exportOnlyDirtyModels||t.pageSize!=null||((v=t.initialState)==null||(C=v.pagination)==null?void 0:C.pageSize)!=null||g!==gA(t.autoPageSize)?S({},h,{pagination:S({},h.pagination,{pageSize:g})}):h},[e,t.pageSize,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize,t.autoPageSize]),f=u.useCallback((h,m)=>{var v;const C=(v=m.stateToRestore.pagination)==null?void 0:v.pageSize;return C!=null&&e.current.setState(Q_(C)),h},[e]);rr(e,"exportState",c),rr(e,"restoreState",f);const p=u.useCallback(()=>{const h=e.current.getRootDimensions();if(!t.autoPageSize||!h)return;const m=hA(e),v=Math.floor((h.viewportInnerSize.height-m.top-m.bottom)/i);e.current.setPageSize(v)},[e,t.autoPageSize,i]);Ne(e,"viewportInnerSizeChange",p),u.useEffect(()=>{t.pageSize!=null&&!t.autoPageSize&&e.current.setPageSize(t.pageSize)},[e,t.autoPageSize,t.pageSize]),u.useEffect(()=>{p()},[p])},Db=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,Bb=e=>e.pageCount?S({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,J_=e=>t=>S({},t,{pagination:Bb(S({},t.pagination,{page:e}))});gi(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error");const Nde=(e,t)=>{var n,r;const o=Wn(e,"useGridPage"),i=Ue(e,IL);e.current.unstable_registerControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:Pd,changeEvent:"pageChange"});const a={setPage:u.useCallback(m=>{o.debug(`Setting page to ${m}`),e.current.setState(J_(m)),e.current.forceUpdate()},[e,o])};Kt(e,a);const c=u.useCallback((m,v)=>{var C,g;const x=Pd(e);return!v.exportOnlyDirtyModels||t.page!=null||((C=t.initialState)==null||(g=C.pagination)==null?void 0:g.page)!=null||x!==0?S({},m,{pagination:S({},m.pagination,{page:x})}):m},[e,t.page,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.page]),f=u.useCallback((m,v)=>{var C,g;const x=(C=(g=v.stateToRestore.pagination)==null?void 0:g.page)!=null?C:Pd(e);return e.current.setState(J_(x)),m},[e]);rr(e,"exportState",c),rr(e,"restoreState",f);const p=m=>{e.current.setState(v=>{const C=Db(v.pagination.rowCount,m);return S({},v,{pagination:Bb(S({},v.pagination,{pageCount:C,page:v.pagination.page}))})}),e.current.forceUpdate()},h=()=>e.current.scrollToIndexes({rowIndex:Pd(e)*Kd(e)});Ne(e,"pageSizeChange",p),Ne(e,"pageChange",h),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{e.current.setState(m=>{const v=t.rowCount!==void 0?t.rowCount:i,C=Db(v,m.pagination.pageSize),g=t.page==null?m.pagination.page:t.page;return S({},m,{pagination:Bb(S({},m.pagination,{page:g,rowCount:v,pageCount:C}))})}),e.current.forceUpdate()},[i,t.rowCount,t.page,t.paginationMode,e])},Dde=(e,t)=>{var n,r,o,i,s,a,c,f;let p;return t.pageSize!=null?p=t.pageSize:((n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize)!=null?p=t.initialState.pagination.pageSize:p=gA(t.autoPageSize),S({},e,{pagination:{pageSize:p,page:(o=(i=t.page)!=null?i:(s=t.initialState)==null||(a=s.pagination)==null?void 0:a.page)!=null?o:0,pageCount:Db((c=t.rowCount)!=null?c:0,p),rowCount:(f=t.rowCount)!=null?f:0}})},Bde=(e,t)=>{Fde(e,t),Nde(e,t)},zde=(e,t)=>{var n,r;return S({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},jde=(e,t)=>{var n;const r=Wn(e,"useGridPreferencesPanel"),o=u.useRef(),i=u.useRef(),s=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=Xm(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(v=>S({},v,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),a=u.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),c=u.useCallback(()=>{o.current=setTimeout(s,100)},[s]),f=u.useCallback(m=>{r.debug("Opening Preferences Panel"),a(),e.current.setState(v=>S({},v,{preferencePanel:S({},v.preferencePanel,{open:!0,openedPanelValue:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,a,e]);Kt(e,{showPreferences:f,hidePreferences:c});const p=u.useCallback((m,v)=>{var C;const g=Xm(e.current.state);return!v.exportOnlyDirtyModels||((C=t.initialState)==null?void 0:C.preferencePanel)!=null||g.open?S({},m,{preferencePanel:g}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),h=u.useCallback((m,v)=>{const C=v.stateToRestore.preferencePanel;return C!=null&&e.current.setState(g=>S({},g,{preferencePanel:C})),m},[e]);rr(e,"exportState",p),rr(e,"restoreState",h),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},An=e=>e.editRows;function Z_(e){return typeof e.then=="function"}const Hde=(e,t)=>{var n;const r=Wn(e,"useGridEditRows"),o=w=>(...E)=>{t.editMode===Cr.Cell&&w(...E)},i=u.useCallback((w,E,I)=>{e.current.getCellMode(w,E)!==I&&(r.debug(`Switching cell id: ${w} field: ${E} to mode: ${I}`),e.current.setState(_=>{const k=S({},_.editRows);return k[w]=S({},k[w]),I===Rt.Edit?k[w][E]={value:e.current.getCellValue(w,E)}:(delete k[w][E],Object.keys(k[w]).length||delete k[w]),S({},_,{editRows:k})}),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(w,E)))},[e,r]),s=u.useCallback((w,E)=>{const I=An(e.current.state);return I[w]&&I[w][E]?Rt.Edit:Rt.View},[e]),a=u.useCallback((w,E={})=>{var I;const{id:_,field:k}=w;e.current.unstable_runPendingEditCellValueMutation(_,k);const $=e.current.getEditRowsModel();if(!$[_]||!$[_][k])throw new Error(`MUI: Cell at id: ${_} and field: ${k} is not in edit mode.`);const R=$[_][k],O=e.current.getColumn(k),N=e.current.getRow(_);if((I=t.experimentalFeatures)!=null&&I.preventCommitWhileValidating){const L=$[_][k];if(L.isValidating||L.error)return!1}const U=S({},w,{value:R.value});let H=!!R.error;if(!H&&typeof O.preProcessEditCellProps=="function"){const L=O.preProcessEditCellProps({id:_,row:N,props:R});if(Z_(L))return L.then(D=>(e.current.unstable_setEditCellProps({id:_,field:k,props:D}),D.error?!1:(e.current.publishEvent("cellEditCommit",U,E),!0)));e.current.unstable_setEditCellProps({id:_,field:k,props:L}),H=!!L.error}return H?!1:(e.current.publishEvent("cellEditCommit",U,E),!0)},[e,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),c=u.useCallback(w=>{const E=e.current.getColumn(w.field),I=e.current.getRow(w.id);return new Promise(_=>{let k={value:w.value};const R=e.current.getEditRowsModel()[w.id][w.field];if(typeof E.preProcessEditCellProps!="function"){e.current.unstable_setEditCellProps(S({},w,{props:k})),_(!0);return}k=e.current.unstable_setEditCellProps(S({},w,{props:S({},R,{isValidating:!0})})),Promise.resolve(E.preProcessEditCellProps({id:w.id,row:I,props:S({},k,{value:e.current.unstable_parseValue(w.id,w.field,w.value)})})).then(O=>{e.current.unstable_setEditCellProps(S({},w,{props:S({},O,{isValidating:!1})})),_(!O.error)})})},[e]);Kt(e,{setCellMode:i,getCellMode:s,commitCellChange:a,unstable_setCellEditingEditCellValue:c});const p=u.useCallback((w,E)=>ft(void 0,null,function*(){if(E.which===229)return;const{id:I,field:_,cellMode:k,isEditable:$}=w;if(!$)return;const R=k===Rt.Edit,O=E.ctrlKey||E.metaKey||E.altKey;if(!R&&yle(E)&&!O&&!(E.key===" "&&E.shiftKey)&&e.current.publishEvent("cellEditStart",w,E),!R&&Ob(E.key)&&(e.current.setEditCellValue({id:I,field:_,value:""}),e.current.commitCellChange({id:I,field:_},E),e.current.publishEvent("cellEditStop",w,E)),R&&F_(E.key)){const N={id:I,field:_};if(!(yield e.current.commitCellChange(N,E)))return}R&&ble(E.key)&&e.current.publishEvent("cellEditStop",w,E)}),[e]),h=u.useCallback((w,E)=>{w.isEditable&&e.current.publishEvent("cellEditStart",w,E)},[e]),m=(w,E)=>ft(void 0,null,function*(){w.cellMode!==Rt.View&&(yield e.current.commitCellChange(w,E),e.current.publishEvent("cellEditStop",w,E))}),v=zn((w,E)=>{m(w,E)}),C=zn(()=>{const w=ui(e);if(!w)return;const E=e.current.getCellParams(w.id,w.field);m(E,{})}),g=u.useCallback((w,E)=>{w.isEditable&&(e.current.setCellMode(w.id,w.field,Rt.Edit),Lb(E)&&xv(E)&&e.current.unstable_setEditCellProps({id:w.id,field:w.field,props:{value:""}}))},[e]),x=u.useCallback((w,E)=>{if(e.current.setCellMode(w.id,w.field,Rt.View),!!Lb(E)){if(F_(E.key)){e.current.publishEvent("cellNavigationKeyDown",w,E);return}(E.key==="Escape"||Ob(E.key))&&e.current.setCellFocus(w.id,w.field)}},[e]),b=u.useCallback(w=>{const{id:E,field:I}=w,_=e.current.getEditRowsModel(),{value:k}=_[E][I];r.debug(`Setting cell id: ${E} field: ${I} to value: ${k==null?void 0:k.toString()}`);const $=e.current.getRow(E);if($){const R=e.current.getColumn(w.field);let O=S({},$,{[I]:k});R.valueSetter&&(O=R.valueSetter({row:$,value:k})),e.current.updateRows([O])}},[e,r]),P=u.useCallback(w=>{const E=e.current.getRow(w.id),I=e.current.getColumn(w.field),_=I.preProcessEditCellProps?I.preProcessEditCellProps({id:w.id,row:E,props:w.props}):w.props;Z_(_)?_.then(k=>{e.current.unstable_setEditCellProps(S({},w,{props:k}))}):e.current.unstable_setEditCellProps(S({},w,{props:_}))},[e]);Ne(e,"cellKeyDown",o(p)),Ne(e,"cellDoubleClick",o(h)),Ne(e,"cellFocusOut",o(v)),Ne(e,"columnHeaderDragStart",o(C)),Ne(e,"cellEditStart",o(g)),Ne(e,"cellEditStop",o(x)),Ne(e,"cellEditCommit",o(b)),Ne(e,"editCellPropsChange",o(P)),At(e,"cellEditCommit",t.onCellEditCommit),At(e,"cellEditStart",t.onCellEditStart),At(e,"cellEditStop",t.onCellEditStop)},Vde=(e,t)=>{var n,r;const o=u.useRef(null),i=u.useRef(null),s=Ue(e,Vo),a=k=>(...$)=>{t.editMode===Cr.Row&&k(...$)},c=u.useCallback((k,$)=>{$!==e.current.getRowMode(k)&&(e.current.setState(R=>{const O=S({},R.editRows);return $===Xt.Edit?(O[k]={},s.forEach(N=>{const U=e.current.getCellParams(k,N.field);U.isEditable&&(O[k][N.field]={value:U.value})})):delete O[k],S({},R,{editRows:O})}),e.current.forceUpdate())},[e,s]),f=u.useCallback(k=>t.editMode===Cr.Cell?Xt.View:An(e.current.state)[k]?Xt.Edit:Xt.View,[e,t.editMode]),p=u.useCallback((k,$={})=>{var R;if(t.editMode===Cr.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(k);const N=e.current.getEditRowsModel()[k];if(!N)throw new Error(`MUI: Row at id: ${k} is not being edited.`);if((R=t.experimentalFeatures)!=null&&R.preventCommitWhileValidating&&!Object.keys(N).reduce((D,B)=>D&&!N[B].isValidating&&!N[B].error,!0)||Object.values(N).some(L=>!!L.error))return!1;const H=Object.keys(N).filter(L=>typeof e.current.getColumn(L).preProcessEditCellProps=="function");if(H.length>0){const L=e.current.getRow(k),D=H.map(B=>ft(void 0,null,function*(){const W=e.current.getColumn(B),A=yield Promise.resolve(W.preProcessEditCellProps({id:k,row:L,props:N[B]}));return e.current.unstable_setEditCellProps({id:k,field:B,props:A}),A.error}));return Promise.all(D).then(B=>B.some(W=>!!W)?!1:(e.current.publishEvent("rowEditCommit",k,$),!0))}return e.current.publishEvent("rowEditCommit",k,$),!0},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),h=u.useCallback(k=>{const R=e.current.getEditRowsModel()[k.id],O=e.current.getRow(k.id);let N=!0;return new Promise(U=>{Object.keys(R).forEach(H=>ft(void 0,null,function*(){const L=e.current.getColumn(H);let D=H===k.field?{value:k.value}:R[H];D=e.current.unstable_setEditCellProps({id:k.id,field:H,props:S({},D,{isValidating:!0})}),L.preProcessEditCellProps&&(D=yield Promise.resolve(L.preProcessEditCellProps({id:k.id,row:O,props:S({},D,{value:H===k.field?e.current.unstable_parseValue(k.id,H,k.value):D.value})}))),D.error&&(N=!1),e.current.unstable_setEditCellProps({id:k.id,field:H,props:S({},D,{isValidating:!1})})})),U(N)})},[e]);Kt(e,{setRowMode:c,getRowMode:f,commitRowChange:p,unstable_setRowEditingEditCellValue:h});const v=u.useCallback((k,$)=>ft(void 0,null,function*(){if($.which===229)return;const{cellMode:R,isEditable:O}=k;if(!O)return;const N=R===Rt.Edit,U=e.current.getRowParams(k.id);if(N)if($.key==="Enter"){var H;if(!(yield e.current.commitRowChange(k.id))&&(H=t.experimentalFeatures)!=null&&H.preventCommitWhileValidating)return;e.current.publishEvent("rowEditStop",U,$)}else $.key==="Escape"&&e.current.publishEvent("rowEditStop",U,$);else $.key==="Enter"&&e.current.publishEvent("rowEditStart",U,$)}),[e,(r=t.experimentalFeatures)==null?void 0:r.preventCommitWhileValidating]),C=u.useCallback((k,$)=>{if(!k.isEditable)return;const R=e.current.getRowParams(k.id);e.current.publishEvent("rowEditStart",R,$)},[e]),g=u.useCallback(k=>{const $=e.current.getRow(k.id),O=e.current.getEditRowsModel()[k.id];Object.keys(O).forEach(N=>ft(void 0,null,function*(){const U=e.current.getColumn(N);if(U.preProcessEditCellProps){const H=N===k.field?k.props:O[N],L=yield Promise.resolve(U.preProcessEditCellProps({id:k.id,row:$,props:H}));e.current.unstable_setEditCellProps({id:k.id,field:N,props:L})}else N===k.field&&e.current.unstable_setEditCellProps(k)}))},[e]),x=u.useCallback(k=>{e.current.setRowMode(k.id,Xt.Edit)},[e]),b=u.useCallback((k,$)=>{e.current.setRowMode(k.id,Xt.View),$.key==="Enter"&&e.current.publishEvent("cellNavigationKeyDown",k,$)},[e]),P=u.useCallback(k=>{const R=e.current.getEditRowsModel()[k];if(!R)throw new Error(`MUI: Row at id: ${k} is not being edited.`);const O=e.current.getRow(k);if(O){let N=S({},O);Object.keys(R).forEach(U=>{const H=e.current.getColumn(U),L=R[U].value;H.valueSetter?N=H.valueSetter({row:N,value:L}):N[U]=L}),e.current.updateRows([N])}},[e]),w=u.useCallback(k=>{i.current=k},[]),E=(k,$)=>ft(void 0,null,function*(){k.cellMode!==Rt.View&&(i.current=null,o.current=setTimeout(()=>ft(void 0,null,function*(){var R;if(((R=i.current)==null?void 0:R.id)!==k.id){yield e.current.commitRowChange(k.id,$);const O=e.current.getRowParams(k.id);e.current.publishEvent("rowEditStop",O,$)}})))}),I=zn((k,$)=>{E(k,$)}),_=zn(()=>{const k=ui(e);if(!k)return;const $=e.current.getCellParams(k.id,k.field);E($,{})});Ne(e,"cellKeyDown",a(v)),Ne(e,"cellDoubleClick",a(C)),Ne(e,"editCellPropsChange",a(g)),Ne(e,"rowEditStart",a(x)),Ne(e,"rowEditStop",a(b)),Ne(e,"rowEditCommit",a(P)),Ne(e,"cellFocusIn",a(w)),Ne(e,"cellFocusOut",a(I)),Ne(e,"columnHeaderDragStart",a(_)),At(e,"rowEditCommit",t.onRowEditCommit),At(e,"rowEditStart",t.onRowEditStart),At(e,"rowEditStop",t.onRowEditStop)},Ude=e=>S({},e,{editRows:{}});function Wde(e,t){var n;const r=Wn(e,"useGridEditRows");Hde(e,t),Vde(e,t);const o=u.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:An,changeEvent:"editRowsModelChange"});const i=u.useCallback(g=>!g.rowNode.isAutoGenerated&&!g.rowNode.isPinned&&!!g.colDef.editable&&!!g.colDef.renderEditCell&&(!t.isCellEditable||t.isCellEditable(g)),[t.isCellEditable]),s=(g,x,b,P)=>{if(!b){P();return}if(o.current[g]||(o.current[g]={}),o.current[g][x]){const[I]=o.current[g][x];clearTimeout(I)}const w=()=>{P();const[I]=o.current[g][x];clearTimeout(I),delete o.current[g][x]},E=setTimeout(()=>{P(),delete o.current[g][x]},b);o.current[g][x]=[E,w]},a=u.useCallback((g,x)=>{if(o.current[g]){if(!x)Object.keys(o.current[g]).forEach(b=>{const[,P]=o.current[g][b];P()});else if(o.current[g][x]){const[,b]=o.current[g][x];b()}}},[]),c=u.useCallback((g,x={})=>{s(g.id,g.field,g.debounceMs,()=>{var b;if((b=t.experimentalFeatures)!=null&&b.preventCommitWhileValidating)return t.editMode==="row"?e.current.unstable_setRowEditingEditCellValue(g):e.current.unstable_setCellEditingEditCellValue(g);const P={id:g.id,field:g.field,props:{value:g.value}};return e.current.publishEvent("editCellPropsChange",P,x)})},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),f=u.useCallback((g,x,b)=>{const P=e.current.getColumn(x);return P.valueParser?P.valueParser(b,e.current.getCellParams(g,x)):b},[e]),p=u.useCallback(g=>{const{id:x,field:b,props:P}=g;return r.debug(`Setting cell props on id: ${x} field: ${b}`),e.current.setState(E=>{const I=S({},E.editRows);return I[x]=S({},E.editRows[x]),I[x][b]=S({},P,{value:f(x,b,P.value)}),S({},E,{editRows:I})}),e.current.forceUpdate(),An(e.current.state)[x][b]},[e,r,f]),h=u.useCallback(g=>{An(e.current.state)!==g&&(r.debug("Setting editRows model"),e.current.setState(b=>S({},b,{editRows:g})),e.current.forceUpdate())},[e,r]),m=u.useCallback(()=>An(e.current.state),[e]),v=u.useCallback((g,x)=>{const b=x.detail>1;g.isEditable&&g.cellMode===Rt.View&&b&&x.preventDefault()},[]);Ne(e,"cellMouseDown",v),At(e,"editCellPropsChange",t.onEditCellPropsChange),Kt(e,{isCellEditable:i,setEditRowsModel:h,getEditRowsModel:m,setEditCellValue:c,unstable_setEditCellProps:p,unstable_parseValue:f,unstable_runPendingEditCellValueMutation:a}),u.useEffect(()=>{t.editRowsModel!==void 0&&e.current.setEditRowsModel(t.editRowsModel)},[e,t.editRowsModel])}const Gde=["id","field"],Kde=["id","field"],qde=gi(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),Yde=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:f,signature:p}=t,h=L=>(...D)=>{t.editMode===Cr.Cell&&L(...D)},m=u.useCallback((L,D)=>{const B=e.current.getCellParams(L,D);if(!e.current.isCellEditable(B))throw new Error(`MUI: The cell with id=${L} and field=${D} is not editable.`)},[e]),v=u.useCallback((L,D,B)=>{if(e.current.getCellMode(L,D)!==B)throw new Error(`MUI: The cell with id=${L} and field=${D} is not in ${B} mode.`)},[e]),C=u.useCallback((L,D)=>{if(!L.isEditable||L.cellMode===Rt.Edit)return;const B=S({},L,{reason:cs.cellDoubleClick});e.current.publishEvent("cellEditStart",B,D)},[e]),g=u.useCallback((L,D)=>{if(L.cellMode===Rt.View||e.current.getCellMode(L.id,L.field)===Rt.View)return;const B=S({},L,{reason:ki.cellFocusOut});e.current.publishEvent("cellEditStop",B,D)},[e]),x=u.useCallback((L,D)=>{if(L.cellMode===Rt.Edit){if(D.which===229)return;let B;if(D.key==="Escape"?B=ki.escapeKeyDown:D.key==="Enter"?B=ki.enterKeyDown:D.key==="Tab"&&(B=D.shiftKey?ki.shiftTabKeyDown:ki.tabKeyDown,D.preventDefault()),B){const W=S({},L,{reason:B});e.current.publishEvent("cellEditStop",W,D)}}else if(L.isEditable){let B;if(xv(D)||(D.ctrlKey||D.metaKey)&&D.key==="v"?B=cs.printableKeyDown:D.key==="Enter"?B=cs.enterKeyDown:(D.key==="Delete"||D.key==="Backspace")&&(B=cs.deleteKeyDown),B){const W=S({},L,{reason:B});e.current.publishEvent("cellEditStart",W,D)}}},[e]),b=u.useCallback(L=>{const{id:D,field:B,reason:W}=L,A={id:D,field:B};(W===cs.deleteKeyDown||W===cs.printableKeyDown)&&(A.deleteValue=!0),e.current.startCellEditMode(A)},[e]),P=u.useCallback(L=>{const{id:D,field:B,reason:W}=L;e.current.unstable_runPendingEditCellValueMutation(D,B);let A;W===ki.enterKeyDown?A="below":W===ki.tabKeyDown?A="right":W===ki.shiftTabKeyDown&&(A="left");let z=W==="escapeKeyDown";An(e.current.state)[D][B].isProcessingProps&&!t.disableIgnoreModificationsIfProcessingProps&&(z=!0),e.current.stopCellEditMode({id:D,field:B,ignoreModifications:z,cellToFocusAfter:A})},[e,t.disableIgnoreModificationsIfProcessingProps]);Ne(e,"cellDoubleClick",h(C)),Ne(e,"cellFocusOut",h(g)),Ne(e,"cellKeyDown",h(x)),Ne(e,"cellEditStart",h(b)),Ne(e,"cellEditStop",h(P)),At(e,"cellEditStart",t.onCellEditStart),At(e,"cellEditStop",t.onCellEditStop);const w=u.useCallback((L,D)=>{const B=An(e.current.state);return B[L]&&B[L][D]?Rt.Edit:Rt.View},[e]),E=u.useCallback(L=>{const D=L!==t.cellModesModel;if(f&&D){const B=p===_a.DataGridPro?{api:e.current}:{};f(L,B)}t.cellModesModel&&D||(r(L),o.current=L,e.current.publishEvent("cellModesModelChange",L))},[e,f,t.cellModesModel,p]),I=u.useCallback((L,D,B)=>{const W=S({},o.current);if(B!==null)W[L]=S({},W[L],{[D]:S({},B)});else{const A=W[L],z=oe(A,[D].map(Of));W[L]=z,Object.keys(W[L]).length===0&&delete W[L]}E(W)},[E]),_=u.useCallback((L,D,B)=>{e.current.setState(W=>{const A=S({},W.editRows);return B!==null?A[L]=S({},A[L],{[D]:S({},B)}):(delete A[L][D],Object.keys(A[L]).length===0&&delete A[L]),S({},W,{editRows:A})}),e.current.forceUpdate()},[e]),k=u.useCallback(L=>{const{id:D,field:B}=L,W=oe(L,Gde);m(D,B),v(D,B,Rt.View),I(D,B,S({mode:Rt.Edit},W))},[m,v,I]),$=u.useCallback(L=>{const{id:D,field:B,deleteValue:W}=L,A={value:W?"":e.current.getCellValue(D,B),error:!1,isProcessingProps:!1};_(D,B,A),e.current.setCellFocus(D,B)},[e,_]),R=u.useCallback(L=>{const{id:D,field:B}=L,W=oe(L,Kde);v(D,B,Rt.Edit),I(D,B,S({mode:Rt.View},W))},[v,I]),O=u.useCallback(L=>ft(void 0,null,function*(){const{id:D,field:B,ignoreModifications:W,cellToFocusAfter:A="none"}=L;v(D,B,Rt.Edit),e.current.unstable_runPendingEditCellValueMutation(D,B);const z=()=>{_(D,B,null),I(D,B,null),A!=="none"&&e.current.unstable_moveFocusToRelativeCell(D,B,A)};if(W){z();return}const G=An(e.current.state),{error:q,isProcessingProps:X}=G[D][B];if(q||X){i.current[D][B].mode=Rt.Edit;return}const ie=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(D,B);if(s){const ee=se=>{i.current[D][B].mode=Rt.Edit,a?a(se):qde()};try{const se=e.current.getRow(D);Promise.resolve(s(ie,se)).then(ae=>{e.current.updateRows([ae]),z()}).catch(ee)}catch(se){ee(se)}}else e.current.updateRows([ie]),z()}),[e,a,s,v,I,_]),N=u.useCallback(L=>ft(void 0,null,function*(){var D,B;const{id:W,field:A,value:z}=L;m(W,A),v(W,A,Rt.Edit);const G=e.current.getColumn(A),q=e.current.getRow(W);let X=z;G.valueParser&&(X=G.valueParser(z,e.current.getCellParams(W,A)));let ie=An(e.current.state),ee=S({},ie[W][A],{value:X});if(G.preProcessEditCellProps){const se=z!==ie[W][A].value;ee=S({},ee,{isProcessingProps:!0}),_(W,A,ee),ee=yield Promise.resolve(G.preProcessEditCellProps({id:W,row:q,props:ee,hasChanged:se}))}return e.current.getCellMode(W,A)===Rt.View?!1:(ie=An(e.current.state),ee=S({},ee,{isProcessingProps:!1}),ee.value=G.preProcessEditCellProps?ie[W][A].value:X,_(W,A,ee),ie=An(e.current.state),!((D=ie[W])!=null&&(B=D[A])!=null&&B.error))}),[e,m,v,_]),U=u.useCallback((L,D)=>{const B=e.current.getColumn(D),W=An(e.current.state),{value:A}=W[L][D],z=e.current.getRow(L);return B.valueSetter?B.valueSetter({value:A,row:z}):S({},z,{[D]:A})},[e]);Kt(e,{getCellMode:w,startCellEditMode:k,stopCellEditMode:R,unstable_setCellEditingEditCellValue:N,unstable_getRowWithUpdatedValuesFromCellEditing:U}),u.useEffect(()=>{c&&E(c)},[c,E]),u.useEffect(()=>{const L=SL(e),D=i.current;i.current=n,Object.entries(n).forEach(([B,W])=>{Object.entries(W).forEach(([A,z])=>{var G,q,X;const ie=((G=D[B])==null||(q=G[A])==null?void 0:q.mode)||Rt.View,ee=(X=L[B])!=null?X:B;z.mode===Rt.Edit&&ie===Rt.View?$(S({id:ee,field:A},z)):z.mode===Rt.View&&ie===Rt.Edit&&O(S({id:ee,field:A},z))})})},[e,n,$,O])},Xde=["id"],Qde=["id"],Jde=gi(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),Zde=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),s=u.useRef(null),a=u.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:f,rowModesModel:p,onRowModesModelChange:h,signature:m}=t,v=A=>(...z)=>{t.editMode===Cr.Row&&A(...z)},C=u.useCallback((A,z)=>{const G=e.current.getCellParams(A,z);if(!e.current.isCellEditable(G))throw new Error(`MUI: The cell with id=${A} and field=${z} is not editable.`)},[e]),g=u.useCallback((A,z)=>{if(e.current.getRowMode(A)!==z)throw new Error(`MUI: The row with id=${A} is not in ${z} mode.`)},[e]),x=u.useCallback((A,z)=>{if(!A.isEditable||e.current.getRowMode(A.id)===Xt.Edit)return;const G=e.current.getRowParams(A.id),q=S({},G,{field:A.field,reason:us.cellDoubleClick});e.current.publishEvent("rowEditStart",q,z)},[e]),b=u.useCallback(A=>{a.current=A},[]),P=u.useCallback((A,z)=>{A.isEditable&&e.current.getRowMode(A.id)!==Xt.View&&(a.current=null,s.current=setTimeout(()=>{var G;if(s.current=null,((G=a.current)==null?void 0:G.id)!==A.id){if(!e.current.getRow(A.id)||e.current.getRowMode(A.id)===Xt.View)return;const q=e.current.getRowParams(A.id),X=S({},q,{field:A.field,reason:Ii.rowFocusOut});e.current.publishEvent("rowEditStop",X,z)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(s.current)},[]);const w=u.useCallback((A,z)=>{if(A.cellMode===Xt.Edit){if(z.which===229)return;let G;if(z.key==="Escape")G=Ii.escapeKeyDown;else if(z.key==="Enter")G=Ii.enterKeyDown;else if(z.key==="Tab"){const q=ka(e).filter(X=>e.current.isCellEditable(e.current.getCellParams(A.id,X)));z.shiftKey?A.field===q[0]&&(G=Ii.shiftTabKeyDown):A.field===q[q.length-1]&&(G=Ii.tabKeyDown),G&&z.preventDefault()}if(G){const q=e.current.getRowParams(A.id),X=S({},q,{reason:G,field:A.field});e.current.publishEvent("rowEditStop",X,z)}}else if(A.isEditable){let G;if(xv(z)||(z.ctrlKey||z.metaKey)&&z.key==="v"?G=us.printableKeyDown:z.key==="Enter"?G=us.enterKeyDown:(z.key==="Delete"||z.key==="Backspace")&&(G=us.deleteKeyDown),G){const q=e.current.getRowParams(A.id),X=S({},q,{field:A.field,reason:G});e.current.publishEvent("rowEditStart",X,z)}}},[e]),E=u.useCallback(A=>{const{id:z,field:G,reason:q}=A,X={id:z,fieldToFocus:G};(q===us.deleteKeyDown||q===us.printableKeyDown)&&(X.deleteValue=!!G),e.current.startRowEditMode(X)},[e]),I=u.useCallback(A=>{const{id:z,reason:G,field:q}=A;e.current.unstable_runPendingEditCellValueMutation(z);let X;G===Ii.enterKeyDown?X="below":G===Ii.tabKeyDown?X="right":G===Ii.shiftTabKeyDown&&(X="left");let ie=G==="escapeKeyDown";const ee=An(e.current.state);!ie&&!t.disableIgnoreModificationsIfProcessingProps&&(ie=Object.values(ee[z]).some(se=>se.isProcessingProps)),e.current.stopRowEditMode({id:z,ignoreModifications:ie,field:q,cellToFocusAfter:X})},[e,t.disableIgnoreModificationsIfProcessingProps]);Ne(e,"cellDoubleClick",v(x)),Ne(e,"cellFocusIn",v(b)),Ne(e,"cellFocusOut",v(P)),Ne(e,"cellKeyDown",v(w)),Ne(e,"rowEditStart",v(E)),Ne(e,"rowEditStop",v(I)),At(e,"rowEditStart",t.onRowEditStart),At(e,"rowEditStop",t.onRowEditStop);const _=u.useCallback(A=>{if(t.editMode===Cr.Cell)return Xt.View;const z=An(e.current.state);return z[A]&&Object.keys(z[A]).length>0?Xt.Edit:Xt.View},[e,t.editMode]),k=u.useCallback(A=>{const z=A!==t.rowModesModel;if(h&&z){const G=m===_a.DataGridPro?{api:e.current}:{};h(A,G)}t.rowModesModel&&z||(r(A),o.current=A,e.current.publishEvent("rowModesModelChange",A))},[e,h,t.rowModesModel,m]),$=u.useCallback((A,z)=>{const G=S({},o.current);z!==null?G[A]=S({},z):delete G[A],k(G)},[k]),R=u.useCallback((A,z)=>{e.current.setState(G=>{const q=S({},G.editRows);return z!==null?q[A]=z:delete q[A],S({},G,{editRows:q})}),e.current.forceUpdate()},[e]),O=u.useCallback((A,z,G)=>{e.current.setState(q=>{const X=S({},q.editRows);return G!==null?X[A]=S({},X[A],{[z]:S({},G)}):(delete X[A][z],Object.keys(X[A]).length===0&&delete X[A]),S({},q,{editRows:X})}),e.current.forceUpdate()},[e]),N=u.useCallback(A=>{const{id:z}=A,G=oe(A,Xde);g(z,Xt.View),$(z,S({mode:Xt.Edit},G))},[g,$]),U=u.useCallback(A=>{const{id:z,fieldToFocus:G,deleteValue:q}=A,ie=ka(e).reduce((ee,se)=>{if(!e.current.getCellParams(z,se).isEditable)return ee;const we=q&&G===se;return ee[se]={value:we?"":e.current.getCellValue(z,se),error:!1,isProcessingProps:!1},ee},{});R(z,ie),G&&e.current.setCellFocus(z,G)},[e,R]),H=u.useCallback(A=>{const{id:z}=A,G=oe(A,Qde);g(z,Xt.Edit),$(z,S({mode:Xt.View},G))},[g,$]),L=u.useCallback(A=>{const{id:z,ignoreModifications:G,field:q,cellToFocusAfter:X="none"}=A;e.current.unstable_runPendingEditCellValueMutation(z);const ie=()=>{X!=="none"&&q&&e.current.unstable_moveFocusToRelativeCell(z,q,X),R(z,null),$(z,null)};if(G){ie();return}const ee=An(e.current.state),se=e.current.getRow(z);if(Object.values(ee[z]).some(le=>le.isProcessingProps)){i.current[z].mode=Xt.Edit;return}if(Object.values(ee[z]).some(le=>le.error)){i.current[z].mode=Xt.Edit;return}const de=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(z);if(c){const le=te=>{i.current[z].mode=Xt.Edit,f?f(te):Jde()};try{Promise.resolve(c(de,se)).then(te=>{e.current.updateRows([te]),ie()}).catch(le)}catch(te){le(te)}}else e.current.updateRows([de]),ie()},[e,f,c,R,$]),D=u.useCallback(A=>{const{id:z,field:G,value:q}=A;C(z,G);const X=e.current.getColumn(G),ie=e.current.getRow(z);let ee=q;X.valueParser&&(ee=X.valueParser(q,e.current.getCellParams(z,G)));let se=An(e.current.state),ae=S({},se[z][G],{value:ee});return X.preProcessEditCellProps||O(z,G,ae),new Promise(we=>{const de=[];if(X.preProcessEditCellProps){const le=ae.value!==se[z][G].value;ae=S({},ae,{isProcessingProps:!0}),O(z,G,ae);const te=se[z],be=oe(te,[G].map(Of)),_e=Promise.resolve(X.preProcessEditCellProps({id:z,row:ie,props:ae,hasChanged:le,otherFieldsProps:be})).then(Se=>{if(e.current.getRowMode(z)===Xt.View){we(!1);return}se=An(e.current.state),Se=S({},Se,{isProcessingProps:!1}),Se.value=X.preProcessEditCellProps?se[z][G].value:ee,O(z,G,Se)});de.push(_e)}Object.entries(se[z]).forEach(([le,te])=>{if(le===G)return;const be=e.current.getColumn(le);if(!be.preProcessEditCellProps)return;te=S({},te,{isProcessingProps:!0}),O(z,le,te),se=An(e.current.state);const _e=se[z],Se=oe(_e,[le].map(Of)),Fe=Promise.resolve(be.preProcessEditCellProps({id:z,row:ie,props:te,hasChanged:!1,otherFieldsProps:Se})).then(Re=>{if(e.current.getRowMode(z)===Xt.View){we(!1);return}Re=S({},Re,{isProcessingProps:!1}),O(z,le,Re)});de.push(Fe)}),Promise.all(de).then(()=>{e.current.getRowMode(z)===Xt.Edit?(se=An(e.current.state),we(!se[z][G].error)):we(!1)})})},[e,C,O]),B=u.useCallback(A=>{const z=An(e.current.state),G=e.current.getRow(A);let q=S({},G);return Object.entries(z[A]).forEach(([X,ie])=>{const ee=e.current.getColumn(X);ee.valueSetter?q=ee.valueSetter({value:ie.value,row:q}):q[X]=ie.value}),q},[e]);Kt(e,{getRowMode:_,startRowEditMode:N,stopRowEditMode:H,unstable_setRowEditingEditCellValue:D,unstable_getRowWithUpdatedValuesFromRowEditing:B}),u.useEffect(()=>{p&&k(p)},[p,k]),u.useEffect(()=>{const A=SL(e),z=i.current;i.current=n,Object.entries(n).forEach(([G,q])=>{var X,ie;const ee=((X=z[G])==null?void 0:X.mode)||Xt.View,se=(ie=A[G])!=null?ie:G;q.mode===Xt.Edit&&ee===Xt.View?U(S({id:se},q)):q.mode===Xt.View&&ee===Xt.Edit&&L(S({id:se},q))})},[e,n,U,L])},efe=e=>S({},e,{editRows:{}}),tfe=(e,t)=>{Yde(e,t),Zde(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(p=>p.rowNode.isAutoGenerated||!p.colDef.editable||!p.colDef.renderEditCell?!1:r?r(p):!p.rowNode.isPinned,[r]),i=(p,h,m,v)=>{if(!m){v();return}if(n.current[p]||(n.current[p]={}),n.current[p][h]){const[x]=n.current[p][h];clearTimeout(x)}const C=()=>{const[x]=n.current[p][h];clearTimeout(x),v(),delete n.current[p][h]},g=setTimeout(()=>{v(),delete n.current[p][h]},m);n.current[p][h]=[g,C]};u.useEffect(()=>{const p=n.current;return()=>{Object.entries(p).forEach(([h,m])=>{Object.keys(m).forEach(v=>{const[C]=p[h][v];clearTimeout(C),delete p[h][v]})})}},[]);const s=u.useCallback((p,h)=>{if(n.current[p]){if(!h)Object.keys(n.current[p]).forEach(m=>{const[,v]=n.current[p][m];v()});else if(n.current[p][h]){const[,m]=n.current[p][h];m()}}},[]),a=u.useCallback(p=>{const{id:h,field:m,debounceMs:v}=p;return new Promise(C=>{i(h,m,v,()=>ft(void 0,null,function*(){const g=t.editMode===Cr.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue;if(e.current.getCellMode(h,m)===Rt.Edit){const x=yield g(p);C(x)}}))})},[e,t.editMode]),c=u.useCallback((p,h)=>t.editMode===Cr.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(p,h):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(p),[e,t.editMode]);Kt(e,{isCellEditable:o,setEditCellValue:a,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:c})},nfe=(e,t,n)=>(n.current.unstable_caches.rows=om({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),S({},e,{rows:fA({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})),rfe=(e,t)=>{const n=Wn(e,"useGridRows"),r=Ba(e,t),o=u.useRef(Date.now()),i=u.useRef(null),s=u.useCallback(R=>{var O;return(O=_f(e)[R])!=null?O:null},[e]),a=u.useMemo(()=>r.rows.reduce((R,{id:O},N)=>(R[O]=N,R),{}),[r.rows]),c=u.useCallback((R,O)=>{const N=()=>{i.current=null,o.current=Date.now(),e.current.setState(H=>S({},H,{rows:fA({apiRef:e,previousTree:ma(e),rowCountProp:t.rowCount,loadingProp:t.loading})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.current&&(clearTimeout(i.current),i.current=null),e.current.unstable_caches.rows=R,!O){N();return}const U=t.throttleRowsMs-(Date.now()-o.current);if(U>0){i.current=setTimeout(N,U);return}N()},[t.throttleRowsMs,t.rowCount,t.loading,e]),f=u.useCallback(R=>{n.debug(`Updating all rows, new length ${R.length}`),c(om({rows:R,getRowId:t.getRowId,loading:t.loading}),!0)},[n,t.getRowId,t.loading,c]),p=u.useCallback(R=>{if(t.signature===_a.DataGrid&&R.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
276
|
+
`));const O=new Map;R.forEach(L=>{const D=dA(L,t.getRowId,"A row was provided without id when calling updateRows():");O.has(D)?O.set(D,S({},O.get(D),L)):O.set(D,L)});const N=[],U=e.current.unstable_caches.rows,H={rowsBeforePartialUpdates:U.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:U.loadingPropBeforePartialUpdates,idRowsLookup:S({},U.idRowsLookup),idToIdLookup:S({},U.idToIdLookup),ids:[...U.ids]};O.forEach((L,D)=>{if(L._action==="delete"){delete H.idRowsLookup[D],delete H.idToIdLookup[D],N.push(D);return}if(!e.current.getRow(D)){H.idRowsLookup[D]=L,H.idToIdLookup[D]=D,H.ids.push(D);return}H.idRowsLookup[D]=S({},e.current.getRow(D),L)}),N.length>0&&(H.ids=H.ids.filter(L=>!N.includes(L))),c(H,!0)},[t.signature,t.getRowId,c,e]),h=u.useCallback(()=>{const R=Vc(e),O=_f(e);return new Map(R.map(N=>[N,O[N]]))},[e]),m=u.useCallback(()=>bv(e),[e]),v=u.useCallback(()=>Vc(e),[e]),C=u.useCallback(R=>a[R],[a]),g=u.useCallback((R,O)=>{const N=e.current.getRowNode(R);if(!N)throw new Error(`MUI: No row with id #${R} found`);const U=S({},N,{childrenExpanded:O});e.current.setState(H=>S({},H,{rows:S({},H.rows,{tree:S({},H.rows.tree,{[R]:U})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",U)},[e]),x=u.useCallback(R=>{var O;return(O=ma(e)[R])!=null?O:null},[e]),b=u.useCallback(({skipAutoGeneratedRows:R=!0,groupId:O,applySorting:N,applyFiltering:U})=>{const H=ma(e);let L;if(N){const D=H[O];if(!D)return[];const B=Px(e);L=[];const W=B.findIndex(A=>A===O)+1;for(let A=W;A<B.length&&H[B[A]].depth>D.depth;A+=1){const z=B[A],G=H[z];(!R||!G.isAutoGenerated)&&L.push(z)}}else L=pA(H,O,R);if(U){const D=EL(e);L=L.filter(B=>D[B]!==!1)}return L},[e]),P=u.useCallback((R,O)=>{const N=Vc(e),U=N.findIndex(L=>L===R);if(U===-1||U===O)return;n.debug(`Moving row ${R} to index ${O}`);const H=[...N];H.splice(O,0,H.splice(U,1)[0]),e.current.setState(L=>S({},L,{rows:S({},L.rows,{ids:H})})),e.current.applySorting()},[e,n]),w={getRow:s,getRowModels:h,getRowsCount:m,getAllRowIds:v,setRows:f,setRowIndex:P,updateRows:p,setRowChildrenExpansion:g,getRowNode:x,getRowIndexRelativeToVisibleRows:C,getRowGroupChildren:b},E=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let R;e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows?R=e.current.unstable_caches.rows:R=om({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),c(R,!1)},[n,e,t.rows,t.getRowId,t.loading,c]),I=u.useCallback(R=>{R==="rowTreeCreation"&&E()},[E]),_=u.useCallback(()=>{e.current.unstable_getActiveStrategy("rowTree")!==lse(e)&&E()},[e,E]);Ne(e,"activeStrategyProcessorChange",I),Ne(e,"strategyAvailabilityChange",_);const k=u.useCallback(()=>{e.current.setState(R=>S({},R,{rows:S({},R.rows,e.current.unstable_applyPipeProcessors("hydrateRows",R.rows.groupingResponseBeforeRowHydration))})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e]);Ax(e,"hydrateRows",k),Kt(e,w),u.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const $=u.useRef(!0);u.useEffect(()=>{if($.current){$.current=!1;return}const R=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows,O=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===t.loading;if(R){O||(e.current.setState(N=>S({},N,{rows:S({},N.rows,{loading:t.loading})})),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c(om({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),!1)},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},ofe=({ids:e,idRowsLookup:t,idToIdLookup:n,previousTree:r})=>{const o={};for(let i=0;i<e.length;i+=1){const s=e[i];r&&r[s]&&r[s].depth===0&&r[s].parent==null&&!r[s].isPinned?o[s]=r[s]:o[s]={id:s,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:dp,tree:o,treeDepth:1,idRowsLookup:t,idToIdLookup:n,ids:e}},ife=e=>{Fx(e,dp,"rowTreeCreation",ofe)};gi(["MUI: You are calling getValue. This method is deprecated and will be removed in the next major version.","Instead, you can access the data from `params.row`."]);function sfe(e){const t=u.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),n=u.useCallback((...h)=>e.current.getCellValue(...h),[e]),r=u.useCallback(h=>{const m=e.current.getRow(h);if(!m)throw new Error(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:m,getValue:n}},[e,n]),o=u.useCallback((h,m)=>{const v=e.current.getRow(h),C=e.current.getRowNode(h);if(!v||!C)throw new Error(`No row with id #${h} found`);const g=ui(e),x=qm(e);return{id:h,field:m,row:v,rowNode:C,value:v[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(h,m),getValue:n,api:e.current,hasFocus:g!==null&&g.field===m&&g.id===h,tabIndex:x&&x.field===m&&x.id===h?0:-1}},[e,n]),i=u.useCallback((h,m)=>{const v=e.current.getColumn(m),C=e.current.getCellValue(h,m),g=e.current.getRow(h),x=e.current.getRowNode(h);if(!g||!x)throw new Error(`No row with id #${h} found`);const b=ui(e),P=qm(e),w={id:h,field:m,row:g,rowNode:x,colDef:v,cellMode:e.current.getCellMode(h,m),getValue:n,hasFocus:b!==null&&b.field===m&&b.id===h,tabIndex:P&&P.field===m&&P.id===h?0:-1,value:C,formattedValue:C};return v.valueFormatter&&(w.formattedValue=v.valueFormatter({id:h,field:w.field,value:w.value,api:e.current})),w.isEditable=v&&e.current.isCellEditable(w),w},[e,n]),s=u.useCallback((h,m)=>{const v=e.current.getColumn(m);if(!v||!v.valueGetter){const C=e.current.getRow(h);if(!C)throw new Error(`No row with id #${h} found`);return C[m]}return v.valueGetter(o(h,m))},[e,o]),a=u.useCallback(h=>e.current.rootElementRef.current?rae(e.current.rootElementRef.current,h):null,[e]),c=u.useCallback(h=>e.current.rootElementRef.current?HL(e.current.rootElementRef.current,h):null,[e]),f=u.useCallback((h,m)=>e.current.rootElementRef.current?oae(e.current.rootElementRef.current,{id:h,field:m}):null,[e]);Kt(e,{getCellValue:s,getCellParams:i,getCellElement:f,getRowParams:r,getRowElement:c,getColumnHeaderParams:t,getColumnHeaderElement:a})}const vA=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],lfe=(e,t)=>{var n;return S({},e,{selection:(n=vA(t.selectionModel))!=null?n:[]})},afe=(e,t)=>{const n=Wn(e,"useGridSelection"),r=u.useMemo(()=>vA(t.selectionModel,Ro(e.current.state)),[e,t.selectionModel]),o=u.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:r,propOnChange:t.onSelectionModelChange,stateSelector:Ro,changeEvent:"selectionChange"});const{checkboxSelection:i,disableMultipleSelection:s,disableSelectionOnClick:a,pagination:c,paginationMode:f,isRowSelectable:p}=t,h=!s||i,m=Ba(e,t),v=u.useCallback(L=>{var D;let B=L;const W=(D=o.current)!=null?D:L,A=e.current.isRowSelected(L);if(A){const z=Gd(e),G=z.findIndex(X=>X===W),q=z.findIndex(X=>X===B);if(G===q)return;G>q?B=z[q+1]:B=z[q-1]}o.current=L,e.current.selectRowRange({startId:W,endId:B},!A)},[e]),C=u.useCallback(L=>{Ro(e.current.state)!==L&&(n.debug("Setting selection model"),e.current.setState(B=>S({},B,{selection:L})),e.current.forceUpdate())},[e,n]),g=u.useCallback(L=>Ro(e.current.state).includes(L),[e]),x=u.useCallback(L=>{if(p&&!p(e.current.getRowParams(L)))return!1;const D=e.current.getRowNode(L);return!((D==null?void 0:D.position)==="footer"||D!=null&&D.isPinned)},[e,p]),b=u.useCallback(()=>Eae(e),[e]),P=u.useCallback((L,D=!0,B=!1)=>{if(e.current.isRowSelectable(L))if(o.current=L,B)n.debug(`Setting selection for row ${L}`),e.current.setSelectionModel(D?[L]:[]);else{n.debug(`Toggling selection for row ${L}`);const A=Ro(e.current.state).filter(G=>G!==L);D&&A.push(L),(A.length<2||h)&&e.current.setSelectionModel(A)}},[e,n,h]),w=u.useCallback((L,D=!0,B=!1)=>{n.debug("Setting selection for several rows");const W=L.filter(G=>e.current.isRowSelectable(G));let A;if(B)A=D?W:[];else{const G=S({},Qm(e));W.forEach(q=>{D?G[q]=q:delete G[q]}),A=Object.values(G)}(A.length<2||h)&&e.current.setSelectionModel(A)},[e,n,h]),E=u.useCallback(({startId:L,endId:D},B=!0,W)=>{if(!e.current.getRow(L)||!e.current.getRow(D))return;n.debug(`Expanding selection from row ${L} to row ${D}`);const A=Gd(e),z=A.indexOf(L),G=A.indexOf(D),[q,X]=z>G?[G,z]:[z,G],ie=A.slice(q,X+1);e.current.selectRows(ie,B,W)},[e,n]);Kt(e,{selectRow:P,selectRows:w,selectRowRange:E,setSelectionModel:C,getSelectedRows:b,isRowSelected:g,isRowSelectable:x});const _=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const L=Ro(e.current.state),D=_f(e),B=S({},Qm(e));let W=!1;L.forEach(A=>{D[A]||(delete B[A],W=!0)}),W&&e.current.setSelectionModel(Object.values(B))},[e,t.keepNonExistentRowsSelected]),k=u.useCallback((L,D)=>{const B=D.metaKey||D.ctrlKey,W=!i&&!B&&!Lb(D),A=!h||W,z=e.current.isRowSelected(L);A?e.current.selectRow(L,W?!0:!z,!0):e.current.selectRow(L,!z,!1)},[e,h,i]),$=u.useCallback((L,D)=>{a||L.field!==cp.field&&L.field!==Lx&&(L.field&&e.current.getColumn(L.field).type===Ox||L.rowNode.isPinned||(D.shiftKey&&(h||i)?v(L.id):k(L.id,D)))},[a,h,i,e,v,k]),R=u.useCallback((L,D)=>{if(h&&D.shiftKey){var B;(B=window.getSelection())==null||B.removeAllRanges()}},[h]),O=u.useCallback((L,D)=>{D.nativeEvent.shiftKey?v(L.id):e.current.selectRow(L.id,L.value)},[e,v]),N=u.useCallback(L=>{const B=t.checkboxSelectionVisibleOnly&&t.pagination?UL(e):Gd(e);e.current.selectRows(B,L.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),U=u.useCallback((L,D)=>{if(e.current.getCellMode(L.id,L.field)!==Rt.Edit&&D.currentTarget.contains(D.target)){if(ap(D.key)&&D.shiftKey){const B=ui(e);if(B&&B.id!==L.id){D.preventDefault();const W=e.current.isRowSelected(B.id);if(!h){e.current.selectRow(B.id,!W,!0);return}const A=e.current.getRowIndexRelativeToVisibleRows(B.id),z=e.current.getRowIndexRelativeToVisibleRows(L.id);let G,q;A>z?W?(G=z,q=A-1):(G=z,q=A):W?(G=A+1,q=z):(G=A,q=z);const X=m.rows.slice(G,q+1).map(ie=>ie.id);e.current.selectRows(X,!W);return}}if(D.key===" "&&D.shiftKey){D.preventDefault(),k(L.id,D);return}D.key.toLowerCase()==="a"&&(D.ctrlKey||D.metaKey)&&(D.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,k,w,m.rows,h]);Ne(e,"sortedRowsSet",_),Ne(e,"cellClick",$),Ne(e,"rowSelectionCheckboxChange",O),Ne(e,"headerSelectionCheckboxChange",N),Ne(e,"cellMouseDown",R),Ne(e,"cellKeyDown",U),u.useEffect(()=>{r!==void 0&&e.current.setSelectionModel(r)},[e,r]);const H=r!=null;u.useEffect(()=>{if(H)return;const L=Ro(e.current.state);if(x){const D=L.filter(B=>x(B));D.length<L.length&&e.current.setSelectionModel(D)}},[e,x,H]),u.useEffect(()=>{const L=Ro(e.current.state);if(!h&&L.length>1){const{rows:D}=Ev(e,{pagination:c,paginationMode:f}),B=D.reduce((A,{id:z})=>(A[z]=!0,A),{}),W=L.find(A=>{let z=!0;return x&&(z=x(A)),z&&B[A]});e.current.setSelectionModel(W!==void 0?[W]:[])}},[e,h,i,s,x,c,f])},cfe={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},ufe=["sortingOrder"],dfe=u.memo(function(t){const{sortingOrder:n}=t,r=oe(t,ufe),o=Ye(),[i]=n,s=i==="asc"?o.components.ColumnSortedAscendingIcon:o.components.ColumnSortedDescendingIcon;return s?T.jsx(s,S({},r)):null}),ffe=["message","hasError","errorInfo"],pfe=u.forwardRef(function(t,n){const{message:r}=t,o=oe(t,ffe),i=mt(),s=i.current.getLocaleText("errorOverlayDefaultLabel"),a=Ue(i,sp);return T.jsx(Sv,S({ref:n,sx:{width:"100%",minHeight:2*a}},o,{children:r||s}))}),hfe=u.forwardRef(function(t,n){const o=mt().current.getLocaleText("noResultsOverlayLabel");return T.jsx(Sv,S({ref:n},t,{children:o}))}),mfe={BooleanCellTrueIcon:ole,BooleanCellFalseIcon:G0,ColumnMenuIcon:tle,OpenFilterButtonIcon:Kse,FilterPanelDeleteIcon:G0,ColumnFilteredIcon:qse,ColumnSelectorIcon:Xse,ColumnUnsortedIcon:dfe,ColumnSortedAscendingIcon:Wse,ColumnSortedDescendingIcon:Gse,ColumnResizeIcon:Qse,DensityCompactIcon:Jse,DensityStandardIcon:Zse,DensityComfortableIcon:ele,ExportIcon:rle,MoreActionsIcon:ile,TreeDataCollapseIcon:A_,TreeDataExpandIcon:L_,GroupingCriteriaCollapseIcon:A_,GroupingCriteriaExpandIcon:L_,DetailPanelExpandIcon:LL,DetailPanelCollapseIcon:nle,RowReorderIcon:AL,QuickFilterIcon:Yse,QuickFilterClearIcon:G0},e$=S({},mfe,{BaseCheckbox:iO,BaseTextField:Zf,BaseFormControl:Aa,BaseSelect:RC,BaseSwitch:$O,BaseButton:Qn,BaseTooltip:av,BasePopper:Oa,Cell:Tse,ColumnHeaderFilterIconButton:yae,ColumnMenu:Sce,ErrorOverlay:pfe,Footer:Cue,Header:xue,Toolbar:null,PreferencesPanel:Yce,LoadingOverlay:Sue,NoResultsOverlay:hfe,NoRowsOverlay:Eue,Pagination:kue,FilterPanel:aue,ColumnsPanel:Vce,Panel:qce,Row:Mue}),gfe=e=>{const{classes:t}=e;return u.useMemo(()=>Ie({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Nt,t),[t])},vfe=(e,t)=>{const n={classes:t.classes},r=gfe(n),o=u.useCallback(i=>{const s=S({},cp,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[Ks]!=null;return a&&!c?(i.lookup[Ks]=s,i.all=[Ks,...i.all]):!a&&c?(delete i.lookup[Ks],i.all=i.all.filter(f=>f!==Ks)):a&&c&&(i.lookup[Ks]=S({},s,i.lookup[Ks])),i},[e,r,t.checkboxSelection]);rr(e,"hydrateColumns",o)},yfe=(e,t)=>{var n,r,o,i;const s=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(i=o.sorting)==null?void 0:i.sortModel)!=null?n:[];return S({},e,{sorting:{sortModel:WL(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},bfe=(e,t)=>{var n,r;const o=Wn(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:si,changeEvent:"sortModelChange"});const i=u.useCallback((k,$)=>{const R=si(e),O=R.findIndex(U=>U.field===k);let N=[...R];return O>-1?$?N.splice(O,1,$):N.splice(O,1):N=[...R,$],N},[e]),s=u.useCallback((k,$)=>{var R;const N=si(e).find(H=>H.field===k.field);if(N){var U;const H=$===void 0?D_((U=k.sortingOrder)!=null?U:t.sortingOrder,N.sort):$;return H==null?void 0:S({},N,{sort:H})}return{field:k.field,sort:$===void 0?D_((R=k.sortingOrder)!=null?R:t.sortingOrder):$}},[e,t.sortingOrder]),a=u.useCallback(()=>{e.current.setState(k=>{if(t.sortingMode===Uc.server)return o.debug("Skipping sorting rows as sortingMode = server"),S({},k,{sorting:S({},k.sorting,{sortedRows:Vc(k,e.current.instanceId)})});const $=si(k,e.current.instanceId),R=Nae($,e),O=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:R});return S({},k,{sorting:S({},k.sorting,{sortedRows:O})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,o,t.sortingMode]),c=u.useCallback(k=>{si(e)!==k&&(o.debug("Setting sort model"),e.current.setState(N_(k,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,o,t.disableMultipleColumnsSorting]),f=u.useCallback((k,$,R)=>{if(!k.sortable)return;const O=s(k,$);let N;!R||t.disableMultipleColumnsSorting?N=O?[O]:[]:N=i(k.field,O),e.current.setSortModel(N)},[e,i,s,t.disableMultipleColumnsSorting]),p=u.useCallback(()=>si(e),[e]),h=u.useCallback(()=>kx(e).map($=>$.model),[e]),m=u.useCallback(()=>Px(e),[e]),v=u.useCallback(k=>e.current.getSortedRowIds().indexOf(k),[e]),C=u.useCallback(k=>e.current.getSortedRowIds()[k],[e]);Kt(e,{getSortModel:p,getSortedRows:h,getSortedRowIds:m,getRowIndex:v,getRowIdFromRowIndex:C,setSortModel:c,sortColumn:f,applySorting:a});const x=u.useCallback((k,$)=>{var R,O;const N=si(e);return!$.exportOnlyDirtyModels||t.sortModel!=null||((R=t.initialState)==null||(O=R.sorting)==null?void 0:O.sortModel)!=null||N.length>0?S({},k,{sorting:{sortModel:N}}):k},[e,t.sortModel,(n=t.initialState)==null||(r=n.sorting)==null?void 0:r.sortModel]),b=u.useCallback((k,$)=>{var R;const O=(R=$.stateToRestore.sorting)==null?void 0:R.sortModel;return O==null?k:(e.current.setState(N_(O,t.disableMultipleColumnsSorting)),S({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),P=u.useCallback(k=>{const $=ma(e);if(!k.sortRowList){const N=[],U=[];return Vc(e).forEach(H=>{$[H].isPinned||($[H].position==="footer"?U.push(H):N.push(H))}),[...N,...U]}const R=[],O=[];return Object.values($).forEach(N=>{N.isPinned||(N.position==="footer"?O.push(N.id):R.push(N))}),[...k.sortRowList(R),...O]},[e]);rr(e,"exportState",x),rr(e,"restoreState",b),Fx(e,dp,"sorting",P);const w=u.useCallback(({colDef:k},$)=>{const R=$.shiftKey||$.metaKey||$.ctrlKey;f(k,void 0,R)},[f]),E=u.useCallback(({colDef:k},$)=>{NL($.key)&&!$.ctrlKey&&!$.metaKey&&f(k,void 0,$.shiftKey)},[f]),I=u.useCallback(()=>{const k=si(e),$=$u(e);if(k.length>0){const R=k.filter(O=>$[O.field]);R.length<k.length&&e.current.setSortModel(R)}},[e]),_=u.useCallback(k=>{k==="sorting"&&e.current.applySorting()},[e]);Ne(e,"columnHeaderClick",w),Ne(e,"columnHeaderKeyDown",E),Ne(e,"rowsSet",e.current.applySorting),Ne(e,"columnsChange",I),Ne(e,"activeStrategyProcessorChange",_),up(()=>{e.current.applySorting()}),u.useEffect(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function t$(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const wfe=(e,t)=>{const n=Wn(e,"useGridScroll"),r=e.current.columnHeadersElementRef,o=e.current.windowRef,i=Ue(e,Rs),s=u.useCallback(p=>{const h=bv(e),m=dr(e);if(!(p.rowIndex==null)&&h===0||m.length===0)return!1;n.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let C={};if(p.colIndex!=null){const P=Ia(e);let w;if(typeof p.rowIndex!="undefined"){var g;const E=(g=i[p.rowIndex])==null?void 0:g.id,I=e.current.unstable_getCellColSpanInfo(E,p.colIndex);I&&!I.spannedByColSpan&&(w=I.cellProps.width)}typeof w=="undefined"&&(w=m[p.colIndex].computedWidth),C.left=t$({clientHeight:o.current.clientWidth,scrollTop:o.current.scrollLeft,offsetHeight:w,offsetTop:P[p.colIndex]})}if(p.rowIndex!=null){var x,b;const P=Lf(e.current.state),w=Pd(e),E=Kd(e),I=t.pagination?p.rowIndex-w*E:p.rowIndex,_=P.positions[I+1]?P.positions[I+1]-P.positions[I]:P.currentPageTotalHeight-P.positions[I],k=((x=o.current.querySelector(`.${Z["pinnedRows--top"]}`))==null?void 0:x.clientHeight)||0,$=((b=o.current.querySelector(`.${Z["pinnedRows--bottom"]}`))==null?void 0:b.clientHeight)||0;C.top=t$({clientHeight:o.current.clientHeight-k-$,scrollTop:o.current.scrollTop,offsetHeight:_,offsetTop:P.positions[I]})}return C=e.current.unstable_applyPipeProcessors("scrollToIndexes",C,p),typeof C.left!==void 0||typeof C.top!==void 0?(e.current.scroll(C),!0):!1},[n,e,o,t.pagination,i]),a=u.useCallback(p=>{o.current&&p.left!=null&&r.current&&(r.current.scrollLeft=p.left,o.current.scrollLeft=p.left,n.debug(`Scrolling left: ${p.left}`)),o.current&&p.top!=null&&(o.current.scrollTop=p.top,n.debug(`Scrolling top: ${p.top}`)),n.debug("Scrolling, updating container, and viewport")},[o,r,n]),c=u.useCallback(()=>o!=null&&o.current?{top:o.current.scrollTop,left:o.current.scrollLeft}:{top:0,left:0},[o]);Kt(e,{scroll:a,scrollToIndexes:s,getScrollPosition:c})};function Cfe(e,t){At(e,"columnHeaderClick",t.onColumnHeaderClick),At(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),At(e,"columnHeaderOver",t.onColumnHeaderOver),At(e,"columnHeaderOut",t.onColumnHeaderOut),At(e,"columnHeaderEnter",t.onColumnHeaderEnter),At(e,"columnHeaderLeave",t.onColumnHeaderLeave),At(e,"columnOrderChange",t.onColumnOrderChange),At(e,"cellClick",t.onCellClick),At(e,"cellDoubleClick",t.onCellDoubleClick),At(e,"cellKeyDown",t.onCellKeyDown),At(e,"cellFocusOut",t.onCellFocusOut),At(e,"preferencePanelClose",t.onPreferencePanelClose),At(e,"preferencePanelOpen",t.onPreferencePanelOpen),At(e,"menuOpen",t.onMenuOpen),At(e,"menuClose",t.onMenuClose),At(e,"rowDoubleClick",t.onRowDoubleClick),At(e,"rowClick",t.onRowClick),At(e,"componentError",t.onError),At(e,"stateChange",t.onStateChange)}const xfe=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let i=!1,s=!1;return(r||o)&&(i=r,s=e.height+(i?n:0)>t.height,s&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:s}};function Sfe(e,t){const n=Wn(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),i=u.useRef(null),s=Ue(e,Lf),a=Ue(e,lp),c=u.useCallback(()=>{var x;const b=(x=e.current.rootElementRef)==null?void 0:x.current,P=wv(e),w=hA(e);if(!o.current)return;let E;if(t.scrollbarSize!=null)E=t.scrollbarSize;else if(!P||!b)E=0;else{const U=yn(b).createElement("div");U.style.width="99px",U.style.height="99px",U.style.position="absolute",U.style.overflow="scroll",U.className="scrollDiv",b.appendChild(U),E=U.offsetWidth-U.clientWidth,b.removeChild(U)}let I,_,k;if(t.autoHeight)k=!1,_=Math.round(P)>o.current.width,I={width:o.current.width,height:s.currentPageTotalHeight+(_?E:0)};else{I={width:o.current.width,height:o.current.height-a};const N=xfe({content:{width:Math.round(P),height:s.currentPageTotalHeight},container:{width:I.width,height:I.height-w.top-w.bottom},scrollBarSize:E});k=N.hasScrollY,_=N.hasScrollX}const $={width:I.width-(k?E:0),height:I.height-(_?E:0)},R={viewportOuterSize:I,viewportInnerSize:$,hasScrollX:_,hasScrollY:k,scrollBarSize:E},O=i.current;i.current=R,(R.viewportInnerSize.width!==(O==null?void 0:O.viewportInnerSize.width)||R.viewportInnerSize.height!==(O==null?void 0:O.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",R.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a,s.currentPageTotalHeight]),f=u.useCallback(()=>{c(),e.current.publishEvent("debouncedResize",o.current)},[e,c]),p=u.useCallback(()=>i.current,[]),h=u.useCallback(()=>{const x=e.current.getRootDimensions();if(!x)return 0;const b=Ev(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const w=e.current.unstable_getRenderContext(),E=w.lastRowIndex-w.firstRowIndex;return Math.min(E-1,b.rows.length)}const P=Math.floor(x.viewportInnerSize.height/sp(e));return Math.min(P,b.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight]);Kt(e,{resize:f,getRootDimensions:p,unstable_getViewportPageSize:h,unstable_updateGridDimensionsRef:c});const v=u.useMemo(()=>Ss(f,60),[f]),C=u.useRef(!0),g=u.useCallback(x=>{o.current=x;const b=/jsdom/.test(window.navigator.userAgent);if(x.height===0&&!r.current&&!t.autoHeight&&!b&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
277
|
+
`)),r.current=!0),x.width===0&&!r.current&&!b&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
278
|
+
`)),r.current=!0),C.current){f(),C.current=!1;return}v()},[t.autoHeight,v,n,f]);Rn(()=>c(),[c]),At(e,"sortedRowsSet",c),At(e,"pageChange",c),At(e,"pageSizeChange",c),At(e,"columnsChange",c),Ne(e,"resize",g),At(e,"debouncedResize",t.onResize)}const Efe=e=>S({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Pfe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=u.useRef({}),s=u.useRef(-1),a=u.useRef(!1),c=Ue(e,sp),f=Ue(e,ip),p=Ue(e,Mu),h=Ue(e,Ex),m=Ba(e,t),v=Ue(e,op),C=u.useCallback(()=>{var $,R;a.current=!1;const O=bse(e.current.state,e.current.instanceId),N=L=>{i.current[L.id]||(i.current[L.id]={sizes:{base:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:D,needsFirstMeasurement:B,sizes:W}=i.current[L.id];let A=c;const z=W.base;if(D)A=z;else if(n){const ee=n(S({},L,{densityFactor:O}));if(ee==="auto"){if(B){const se=o?o(S({},L,{densityFactor:O})):c;A=se!=null?se:c}else A=z;a.current=!0,i.current[L.id].autoHeight=!0}else A=ee!=null?ee:c,i.current[L.id].needsFirstMeasurement=!1,i.current[L.id].autoHeight=!1}else i.current[L.id].needsFirstMeasurement=!1;const G={base:A};if(r){var q,X;const ee=e.current.getRowIndexRelativeToVisibleRows(L.id),se=r(S({},L,{isFirstVisible:ee===0,isLastVisible:ee===m.rows.length-1,indexRelativeToCurrentPage:ee}));G.spacingTop=(q=se.top)!=null?q:0,G.spacingBottom=(X=se.bottom)!=null?X:0}const ie=e.current.unstable_applyPipeProcessors("rowHeight",G,L);return i.current[L.id].sizes=ie,ie},U=[],H=m.rows.reduce((L,D)=>{U.push(L);const B=N(D),W=Object.values(B).reduce((A,z)=>A+z,0);return L+W},0);v==null||($=v.top)==null||$.forEach(L=>{N(L)}),v==null||(R=v.bottom)==null||R.forEach(L=>{N(L)}),e.current.setState(L=>S({},L,{rowsMeta:{currentPageTotalHeight:H,positions:U}})),a.current||(s.current=1/0),e.current.forceUpdate()},[e,m.rows,c,n,r,o,v]),g=u.useCallback($=>{const R=i.current[$];return R?R.sizes.base:c},[c]),x=$=>{var R;return(R=i.current[$])==null?void 0:R.sizes},b=u.useCallback(($,R)=>{i.current[$].sizes.base=R,i.current[$].isResized=!0,i.current[$].needsFirstMeasurement=!1,C()},[C]),P=u.useMemo(()=>Ss(C),[C]),w=u.useCallback(($,R)=>{if(!i.current[$]||!i.current[$].autoHeight)return;const O=i.current[$].sizes.base!==R;i.current[$].needsFirstMeasurement=!1,i.current[$].sizes.base=R,O&&P()},[P]),E=u.useCallback($=>{var R;return((R=i.current[$])==null?void 0:R.autoHeight)||!1},[]),I=u.useCallback(()=>s.current,[]),_=u.useCallback($=>{a.current&&$>s.current&&(s.current=$)},[]);u.useEffect(()=>{C()},[c,f,p,h,C]),Ax(e,"rowHeight",C),Kt(e,{unstable_getLastMeasuredRowIndex:I,unstable_setLastMeasuredRowIndex:_,unstable_rowHasAutoHeight:E,unstable_getRowHeight:g,unstable_getRowInternalSizes:x,unstable_setRowHeight:b,unstable_storeRowHeightMeasurement:w})},kfe=e=>{const t=u.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=u.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);Kt(e,{exportState:t,restoreState:n})},Ife=e=>{const t=u.useRef({}),n=u.useCallback((c,f,p)=>{const h=t.current;h[c]||(h[c]={}),h[c][f]=p},[]),r=u.useCallback((c,f)=>{var p;return(p=t.current[c])==null?void 0:p[f]},[]),o=u.useCallback(c=>{const{columnIndex:f,rowId:p,minFirstColumnIndex:h,maxLastColumnIndex:m,columns:v}=c,C=v.length,g=v[f],x=typeof g.colSpan=="function"?g.colSpan(e.current.getCellParams(p,g.field)):g.colSpan;if(!x||x===1)return n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:1,width:g.computedWidth}}),{colSpan:1};let b=g.computedWidth;for(let P=1;P<x;P+=1){const w=f+P;if(w>=h&&w<m){const E=v[w];b+=E.computedWidth,n(p,f+P,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(f+x,C-1),leftVisibleCellIndex:f})}n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:x,width:b}})}return{colSpan:x}},[e,n]),i=u.useCallback(({rowId:c,minFirstColumn:f,maxLastColumn:p,columns:h})=>{for(let m=f;m<p;m+=1){const v=o({columnIndex:m,rowId:c,minFirstColumnIndex:f,maxLastColumnIndex:p,columns:h});v.colSpan>1&&(m+=v.colSpan-1)}},[o]);Kt(e,{unstable_getCellColSpanInfo:r,unstable_calculateColSpan:i});const a=u.useCallback(()=>{t.current={}},[]);Ne(e,"columnOrderChange",a)},_fe=(e,t)=>{var n;const r=u.useCallback(o=>{var i;if(!((i=t.experimentalFeatures)!=null&&i.columnGrouping))return o;const s=lA(t.columnGroupingModel);return o.all.forEach(a=>{var c,f;const p=(c=s[a])!=null?c:[],h=o.lookup[a];ude(h)&&ys(p,h==null?void 0:h.groupPath)||(o.lookup[a]=S({},o.lookup[a],{groupPath:(f=s[a])!=null?f:[]}))}),o},[t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);rr(e,"hydrateColumns",r)},$fe=e=>{var t,n;const r=nde(void 0,e);return _fe(r,e),vfe(r,e),ife(r),so(lfe,r,e),so(sde,r,e),so(dde,r,e),so(nfe,r,e),so((t=e.experimentalFeatures)!=null&&t.newEditingApi?efe:Ude,r,e),so(Rde,r,e),so(yfe,r,e),so(zde,r,e),so(Mde,r,e),so(pde,r,e),so(Dde,r,e),so(Efe,r,e),so(ode,r,e),Ade(r,e),afe(r,e),lde(r,e),rfe(r,e),sfe(r),Ife(r),fde(r,e),((n=e.experimentalFeatures)!=null&&n.newEditingApi?tfe:Wde)(r,e),Ode(r,e),jde(r,e),Tde(r,e),bfe(r,e),hde(r,e),Bde(r,e),Pfe(r,e),wfe(r,e),ide(r),bde(r),wde(r,e),rde(r),Sfe(r,e),Cfe(r,e),kfe(r),r},Mfe={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,signature:"DataGrid"},Tfe=100,Rfe={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:$f.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,disableIgnoreModificationsIfProcessingProps:!1,editMode:Cr.Cell,filterMode:Uc.client,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:Uc.client,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:Uc.client,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1},Ofe=e=>{if(e.pageSize>Tfe)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const t=Qe({props:e,name:"MuiDataGrid"}),n=u.useMemo(()=>S({},cfe,t.localeText),[t.localeText]),r=u.useMemo(()=>{const o=t.components;if(!o)return S({},e$);const i={};return Object.entries(e$).forEach(([s,a])=>{i[s]=o[s]===void 0?a:o[s]}),i},[t.components]);return u.useMemo(()=>S({},Rfe,t,{localeText:n,components:r},Mfe),[t,n,r])},Lfe=["className"],Afe=e=>{const{classes:t}=e;return Ie({root:["virtualScroller"]},Nt,t)},Ffe=re("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),Nfe=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Lfe),s={classes:Ye().classes},a=Afe(s);return T.jsx(Ffe,S({ref:n,className:he(a.root,r)},o))}),Dfe=["className","style"],Bfe=e=>{const{classes:t,overflowedContent:n}=e;return Ie({root:["virtualScrollerContent",n&&"virtualScrollerContent--overflowed"]},Nt,t)},zfe=re("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),jfe=u.forwardRef(function(t,n){const{className:r,style:o}=t,i=oe(t,Dfe),s=Ye(),a={classes:s.classes,overflowedContent:!s.autoHeight&&(o==null?void 0:o.minHeight)==="auto"},c=Bfe(a);return T.jsx(zfe,S({ref:n,className:he(c.root,r),style:o},i))}),Hfe=["className"],Vfe=e=>{const{classes:t}=e;return Ie({root:["virtualScrollerRenderZone"]},Nt,t)},Ufe=re("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Wfe=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Hfe),s={classes:Ye().classes},a=Vfe(s);return T.jsx(Ufe,S({ref:n,className:he(a.root,r)},o))}),Gfe=["style"];function Wc(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?Wc(e,t,n,o):Wc(e,t,o+1,r)}function Kfe(e,t,n){let r=1;for(;n<t.length&&t[n]<e;)n+=r,r*=2;return Wc(e,t,Math.floor(n/2),Math.min(n,t.length))}const Jl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Mf(e-n,r,o),Mf(t+n,r,o)],qfe=e=>{var t,n;const r=mt(),o=Ye(),i=Ue(r,dr),{ref:s,disableVirtualization:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=i.length,getRowProps:h}=e,m=Ue(r,Ia),v=Ue(r,wv),C=Ue(r,sp),g=Ue(r,ui),x=Ue(r,qm),b=Ue(r,Lf),P=Ue(r,An),w=Ue(r,Qm),E=Ba(r,o),I=u.useRef(null),_=u.useRef(null),k=St(s,_),[$,R]=u.useState(null),O=u.useRef($),N=u.useRef({top:0,left:0}),[U,H]=u.useState(null),L=u.useRef(v),D=u.useCallback(de=>{var le,te;const _e=r.current.unstable_getLastMeasuredRowIndex()-(((le=E.range)==null?void 0:le.firstRowIndex)||0),Se=Math.max(0,_e);let Fe=Se===1/0;return(te=E.range)!=null&&te.lastRowIndex&&!Fe&&(Fe=Se>=E.range.lastRowIndex),Fe||b.positions[Se]>=de?Wc(de,b.positions):Kfe(de,b.positions,Se)},[r,(t=E.range)==null?void 0:t.firstRowIndex,(n=E.range)==null?void 0:n.lastRowIndex,b.positions]),B=u.useCallback(()=>{if(a)return{firstRowIndex:0,lastRowIndex:E.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:de,left:le}=N.current,te=Math.min(D(de),b.positions.length-1),be=o.autoHeight?te+E.rows.length:D(de+_.current.clientHeight);let _e=!1,Se=0,Fe=m.length;const[Re,Le]=Jl({firstIndex:te,lastIndex:be,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer});for(let Oe=Re;Oe<Le&&!_e;Oe+=1){const Ze=E.rows[Oe];_e=r.current.unstable_rowHasAutoHeight(Ze.id)}return _e||(Se=Wc(le,m),Fe=Wc(le+U,m)),{firstRowIndex:te,lastRowIndex:be,firstColumnIndex:Se,lastColumnIndex:Fe}},[a,D,b.positions.length,o.autoHeight,o.rowBuffer,E.rows,m,i.length,r,U]);u.useEffect(()=>{a?I.current.style.transform="translate3d(0px, 0px, 0px)":(_.current.scrollLeft=0,_.current.scrollTop=0)},[a]),u.useEffect(()=>{H(_.current.clientWidth)},[b.currentPageTotalHeight]);const W=u.useCallback(de=>{H(de.width)},[]);Ne(r,"resize",W);const A=u.useCallback(de=>{const[le,te]=Jl({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer}),[be]=Jl({firstIndex:de.firstColumnIndex,lastIndex:de.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),_e=Fb({firstColumnToRender:be,apiRef:r,firstRowToRender:le,lastRowToRender:te,visibleRows:E.rows}),Se=Lf(r.current.state).positions[le],Fe=Ia(r)[_e];I.current.style.transform=`translate3d(${Fe}px, ${Se}px, 0px)`,typeof c=="function"&&c({top:Se,left:Fe})},[r,E.rows,c,f,p,o.columnBuffer,o.rowBuffer]);u.useLayoutEffect(()=>{$&&A($)},[$,A]);const z=u.useCallback(de=>{R(de),O.current=de},[R,O]);u.useEffect(()=>{if(U==null)return;const de=B();z(de);const{top:le,left:te}=N.current,be={top:le,left:te,renderContext:de};r.current.publishEvent("rowsScroll",be)},[r,B,U,z]);const G=de=>{const{scrollTop:le,scrollLeft:te}=de.currentTarget;if(N.current.top=le,N.current.left=te,te<0||le<0||!O.current)return;const be=a?O.current:B(),_e=Math.abs(be.firstRowIndex-O.current.firstRowIndex),Se=Math.abs(be.lastRowIndex-O.current.lastRowIndex),Fe=Math.abs(be.firstColumnIndex-O.current.firstColumnIndex),Re=Math.abs(be.lastColumnIndex-O.current.lastColumnIndex),Le=_e>=o.rowThreshold||Se>=o.rowThreshold||Fe>=o.columnThreshold||Re>=o.columnThreshold||L.current!==v;r.current.publishEvent("rowsScroll",{top:le,left:te,renderContext:Le?be:O.current},de),Le&&(bl.flushSync(()=>{z(be)}),L.current=v)},q=de=>{r.current.publishEvent("virtualScrollerWheel",{},de)},X=de=>{r.current.publishEvent("virtualScrollerTouchMove",{},de)},ie=(de={renderContext:$})=>{const{renderContext:le,minFirstColumn:te=f,maxLastColumn:be=p,availableSpace:_e=U,ignoreAutoHeight:Se,rowIndexOffset:Fe=0}=de;if(!le||_e==null)return null;const Re=a?0:o.rowBuffer,Le=a?0:o.columnBuffer,[Oe,Ze]=Jl({firstIndex:le.firstRowIndex,lastIndex:le.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:Re}),gt=[];if(de.rows)de.rows.forEach(Te=>{gt.push(Te),r.current.unstable_calculateColSpan({rowId:Te.id,minFirstColumn:te,maxLastColumn:be,columns:i})});else{if(!E.range)return null;for(let Te=Oe;Te<Ze;Te+=1){const ne=E.rows[Te];gt.push(ne),r.current.unstable_calculateColSpan({rowId:ne.id,minFirstColumn:te,maxLastColumn:be,columns:i})}}const[tt,et]=Jl({firstIndex:le.firstColumnIndex,lastIndex:le.lastColumnIndex,minFirstIndex:te,maxLastIndex:be,buffer:Le}),Pt=Fb({firstColumnToRender:tt,apiRef:r,firstRowToRender:Oe,lastRowToRender:Ze,visibleRows:E.rows}),ut=i.slice(Pt,et),ot=[];for(let Te=0;Te<gt.length;Te+=1){var It,Xe;const{id:ne,model:ke}=gt[Te],Ee=Oe+Te===E.rows.length-1,$e=!r.current.unstable_rowHasAutoHeight(ne)||Se?r.current.unstable_getRowHeight(ne):"auto";let Ge;w[ne]==null?Ge=!1:Ge=r.current.isRowSelectable(ne),ot.push(T.jsx(o.components.Row,S({row:ke,rowId:ne,rowHeight:$e,cellFocus:g,cellTabIndex:x,editRowsState:P,renderedColumns:ut,visibleColumns:i,firstColumnToRender:Pt,lastColumnToRender:et,selected:Ge,index:Fe+((E==null||(It=E.range)==null?void 0:It.firstRowIndex)||0)+Oe+Te,containerWidth:_e,isLastVisible:Ee},typeof h=="function"?h(ne,ke):{},(Xe=o.componentsProps)==null?void 0:Xe.row),ne))}return ot},ee=U&&v>U,se=u.useMemo(()=>{const de=Math.max(b.currentPageTotalHeight,1);let le=!1;_!=null&&_.current&&de<=(_==null?void 0:_.current.clientHeight)&&(le=!0);const te={width:ee?v:"auto",height:de,minHeight:le?"100%":"auto"};return o.autoHeight&&E.rows.length===0&&(te.height=2*C),te},[_,v,b.currentPageTotalHeight,E.rows.length,ee,o.autoHeight,C]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,se]),o.autoHeight&&E.rows.length===0&&(se.height=2*C);const ae={};ee||(ae.overflowX="hidden"),o.autoHeight&&(ae.overflowY="hidden");const we=u.useCallback(()=>O.current,[]);return r.current.unstable_getRenderContext=we,{renderContext:$,updateRenderZonePosition:A,getRows:ie,getRootProps:(de={})=>{let{style:le={}}=de,te=oe(de,Gfe);return S({ref:k,onScroll:G,onWheel:q,onTouchMove:X,style:S({},le,ae)},te)},getContentProps:({style:de={}}={})=>({style:S({},de,se)}),getRenderZoneProps:()=>({ref:I})}},Yfe=["className","disableVirtualization"],Xfe=u.forwardRef(function(t,n){const{className:r,disableVirtualization:o}=t,i=oe(t,Yfe),{getRootProps:s,getContentProps:a,getRenderZoneProps:c,getRows:f}=qfe({ref:n,disableVirtualization:o});return T.jsx(Nfe,S({className:r},s(i),{children:T.jsx(jfe,S({},a(),{children:T.jsx(Wfe,S({},c(),{children:f()}))}))}))}),Qfe=e=>{const{classes:t,headerAlign:n,isDragging:r,showRightBorder:o,showColumnBorder:i,groupId:s}=e;return Ie({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"withBorder",i&&"columnHeader--showColumnBorder",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},Nt,t)};function Jfe(e){var t,n;const{groupId:r,width:o,depth:i,maxDepth:s,fields:a,height:c,colIndex:f,isLastColumn:p,extendRowFullWidth:h}=e,m=Ye(),v=mt(),C=Ue(v,iA),{hasScrollX:g,hasScrollY:x}=(t=v.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},b=r?C[r]:{},{headerName:P=r!=null?r:"",description:w="",headerAlign:E=void 0}=b;let I;const _=r&&((n=C[r])==null?void 0:n.renderHeaderGroup),k={groupId:r,headerName:P,description:w,depth:i,maxDepth:s,fields:a,colIndex:f,isLastColumn:p};r&&_&&(I=_(k));const R=p?!(p&&g&&!x)&&!h:m.showColumnRightBorder,O=m.showColumnRightBorder,N=S({},e,{classes:m.classes,showRightBorder:R,showColumnBorder:O,headerAlign:E,depth:i,isDragging:!1}),U=P!=null?P:r,H=En(),L=r===null?`empty-group-cell-${H}`:r,D=Qfe(N),B=typeof b.headerClassName=="function"?b.headerClassName(k):b.headerClassName;return T.jsx(VL,{classes:D,columnMenuOpen:!1,colIndex:f,height:c,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:-1,isDraggable:!1,headerComponent:I,headerClassName:B,description:w,elementId:L,width:o,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:U,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,disableHeaderSeparator:!0})}const n$=re("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function Zfe(e){return!!e.target}const epe=e=>{const{innerRef:t,minColumnIndex:n=0}=e,[r,o]=u.useState(""),[i,s]=u.useState(""),a=mt(),c=Ue(a,dr),f=Ue(a,Ia),p=Ue(a,RL),h=Ue(a,qm),m=Ue(a,Ise),v=Ue(a,_L),C=Ue(a,Ix),g=Ue(a,lp),x=Ue(a,vse),b=Ue(a,use),P=Ue(a,oA),w=Ye(),E=u.useRef(null),I=St(t,E),[_,k]=u.useState(null),$=u.useRef(_),R=u.useRef(0),O=Ba(a,w);u.useEffect(()=>{a.current.columnHeadersContainerElementRef.current.scrollLeft=0},[a]);const N=u.useRef(xL(wce,{equalityCheck:(ie,ee)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(se=>ie[se]===ee[se])})),U=u.useCallback(ie=>{const[ee,se]=Jl({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:O.rows.length,buffer:w.rowBuffer}),ae=N.current({firstColumnIndex:ie.firstColumnIndex,minColumnIndex:n,columnBuffer:w.columnBuffer,firstRowToRender:ee,lastRowToRender:se,apiRef:a,visibleRows:O.rows}),we=ae>0?R.current-f[ae]:R.current;E.current.style.transform=`translate3d(${-we}px, 0px, 0px)`},[f,n,w.columnBuffer,a,O.rows,w.rowBuffer]);u.useLayoutEffect(()=>{_&&U(_)},[_,U]);const H=u.useCallback(({left:ie,renderContext:ee=null},se)=>{var ae,we;if(!E.current||R.current===ie&&((ae=$.current)==null?void 0:ae.firstColumnIndex)===(ee==null?void 0:ee.firstColumnIndex)&&((we=$.current)==null?void 0:we.lastColumnIndex)===(ee==null?void 0:ee.lastColumnIndex))return;R.current=ie;let de=!1;ee!==$.current||!$.current?(Zfe(se)?(bl.flushSync(()=>{k(ee)}),de=!0):k(ee),$.current=ee):de=!0,ee&&de&&U(ee)},[U]),L=u.useCallback(ie=>s(ie.field),[]),D=u.useCallback(()=>s(""),[]),B=u.useCallback(ie=>o(ie.field),[]),W=u.useCallback(()=>o(""),[]);Ne(a,"columnResizeStart",L),Ne(a,"columnResizeStop",D),Ne(a,"columnHeaderDragStart",B),Ne(a,"columnHeaderDragEnd",W),Ne(a,"rowsScroll",H);const A=ie=>{const{renderContext:ee=_,minFirstColumn:se=n,maxLastColumn:ae=c.length}=ie||{};if(!ee)return null;const[we,de]=Jl({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:O.rows.length,buffer:w.rowBuffer}),le=N.current({firstColumnIndex:ee.firstColumnIndex,minColumnIndex:se,columnBuffer:w.columnBuffer,apiRef:a,firstRowToRender:we,lastRowToRender:de,visibleRows:O.rows}),te=Math.min(ee.lastColumnIndex+w.columnBuffer,ae);return{renderedColumns:c.slice(le,te),firstColumnToRender:le,lastColumnToRender:te,minFirstColumn:se,maxLastColumn:ae}},z=(ie,ee={})=>{const se=A(ie);if(se==null)return null;const{renderedColumns:ae,firstColumnToRender:we}=se,de=[];for(let le=0;le<ae.length;le+=1){const te=ae[le],be=we+le,_e=be===0,Se=!(p===null&&h===null),Fe=p!==null&&p.field===te.field||_e&&!Se?0:-1,Re=m!==null&&m.field===te.field,Le=P.open&&P.field===te.field;de.push(T.jsx(gae,S({},b[te.field],{columnMenuOpen:Le,filterItemsCounter:x[te.field]&&x[te.field].length,headerHeight:v,isDragging:te.field===r,column:te,colIndex:be,isResizing:i===te.field,isLastColumn:be===c.length-1,extendRowFullWidth:!w.disableExtendRowFullWidth,hasFocus:Re,tabIndex:Fe},ee),te.field))}return T.jsx(n$,{role:"row","aria-rowindex":C+1,children:de})},G=(ie=[],ee)=>ie.slice(0,ee+1),q=ie=>{if(C===0)return null;const ee=A(ie);if(ee==null)return null;const{renderedColumns:se,firstColumnToRender:ae,lastColumnToRender:we,maxLastColumn:de}=ee,le=[],te=[];for(let ut=0;ut<C;ut+=1){var be,_e,Se;const ot=[];let It=0,Xe=ae-1;const Te=(be=c[ae])==null||(_e=be.groupPath)==null?void 0:_e[ut],ne=G((Se=c[ae])==null?void 0:Se.groupPath,ut);for(;Te!==null&&Xe>=n&&(Fe=c[Xe])!=null&&Fe.groupPath&&ys(G((Re=c[Xe])==null?void 0:Re.groupPath,ut),ne);){var Fe,Re,Le;const $e=c[Xe];if(It+=(Le=$e.computedWidth)!=null?Le:0,ot.length===0){var Oe;ot.push({width:(Oe=$e.computedWidth)!=null?Oe:0,fields:[$e.field],groupId:Te,groupParents:ne,colIndex:Xe})}else{var Ze;ot[0].width+=(Ze=$e.computedWidth)!=null?Ze:0,ot[0].fields.push($e.field),ot[0].colIndex=Xe}Xe-=1}const ke=se.reduce(($e,Ge,Ct)=>{var zt;const jt=$e[$e.length-1];if(Ge.groupPath&&Ge.groupPath.length>ut){var Jn;if(jt&&jt.groupId===Ge.groupPath[ut]){var pn;return[...$e.slice(0,$e.length-1),S({},jt,{width:jt.width+((pn=Ge.computedWidth)!=null?pn:0),fields:[...jt.fields,Ge.field]})]}return[...$e,{groupId:Ge.groupPath[ut],groupParents:G(Ge.groupPath,ut),width:(Jn=Ge.computedWidth)!=null?Jn:0,fields:[Ge.field],colIndex:ae+Ct}]}if(jt&&jt.groupId===null&&ys(G(Ge.groupPath,ut),jt.groupParents)){var Gn;return[...$e.slice(0,$e.length-1),S({},jt,{width:jt.width+((Gn=Ge.computedWidth)!=null?Gn:0),fields:[...jt.fields,Ge.field]})]}return[...$e,{groupId:null,groupParents:G(Ge.groupPath,ut),width:(zt=Ge.computedWidth)!=null?zt:0,fields:[Ge.field],colIndex:ae+Ct}]},ot);Xe=we;const Ee=ke[ke.length-1].groupId;for(;Ee!==null&&Xe<de&&(gt=c[Xe])!=null&>.groupPath&&((tt=c[Xe])==null||(et=tt.groupPath)==null?void 0:et[ut])===Ee;){var gt,tt,et,Pt;const $e=c[Xe];ke[ke.length-1].width+=(Pt=$e.computedWidth)!=null?Pt:0,ke[ke.length-1].fields.push($e.field),Xe+=1}te.push({leftOverflow:It,elements:[...ke]})}return te.forEach((ut,ot)=>{le.push(T.jsx(n$,{style:{height:`${v}px`,transform:`translateX(-${ut.leftOverflow}px)`},role:"row","aria-rowindex":ot+1,children:ut.elements.map(({groupId:It,width:Xe,fields:Te,colIndex:ne},ke)=>T.jsx(Jfe,{groupId:It,width:Xe,fields:Te,colIndex:ne,depth:ot,isLastColumn:ne===c.length-Te.length,extendRowFullWidth:!w.disableExtendRowFullWidth,maxDepth:te.length,height:v},ke))},ot))}),le},X={minHeight:g,maxHeight:g,lineHeight:`${v}px`};return{renderContext:_,getColumnHeaders:z,getColumnGroupHeaders:q,isDragging:!!r,getRootProps:(ie={})=>S({style:X},ie),getInnerProps:()=>({ref:I,role:"rowgroup"})}},tpe=["className"],npe=e=>{const{classes:t}=e;return Ie({root:["columnHeaders"]},Nt,t)},rpe=re("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})(({theme:e})=>({position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",borderBottom:`1px solid ${e.palette.mode==="light"?Ps(rt(e.palette.divider,1),.88):Es(rt(e.palette.divider,1),.68)}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius})),ope=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,tpe),s={classes:Ye().classes},a=npe(s);return T.jsx(rpe,S({ref:n,className:he(r,a.root)},o))}),ipe=["isDragging","className"],spe=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Ie({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Nt,r)},lpe=re("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${Z.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${Z.columnHeaderDropZone} .${Z.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${Z["columnHeadersInner--scrollable"]} .${Z.columnHeader}:last-child`]:{borderRight:"none"}})),ape=u.forwardRef(function(t,n){var r,o;const{isDragging:i,className:s}=t,a=oe(t,ipe),c=mt(),f=Ye(),p={isDragging:i,hasScrollX:(r=(o=c.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1,classes:f.classes},h=spe(p);return T.jsx(lpe,S({ref:n,className:he(s,h.root)},a))}),cpe=["innerRef","className"],upe=u.forwardRef(function(t,n){const{innerRef:r}=t,o=oe(t,cpe),{isDragging:i,getRootProps:s,getInnerProps:a,getColumnHeaders:c,getColumnGroupHeaders:f}=epe({innerRef:r});return T.jsxs(ope,S({ref:n},s(o),{children:[T.jsx(U_,{scrollDirection:"left"}),T.jsxs(ape,S({isDragging:i},a(),{children:[f(),c()]})),T.jsx(U_,{scrollDirection:"right"})]}))}),yA=u.forwardRef(function(t,n){const r=Ofe(t),o=$fe(r);return T.jsx(jue,{apiRef:o,props:r,children:T.jsx(Nle,{className:r.className,style:r.style,sx:r.sx,ref:n,children:T.jsxs(Ese,{children:[T.jsx(kse,{}),T.jsx(xse,{ColumnHeadersComponent:upe,VirtualScrollerComponent:Xfe}),T.jsx(Pse,{})]})})})}),fp=u.memo(yA);yA.propTypes={"aria-label":ue.string,"aria-labelledby":ue.string,autoHeight:ue.bool,autoPageSize:ue.bool,cellModesModel:ue.object,checkboxSelection:ue.bool,classes:ue.object,columnBuffer:ue.number,columnGroupingModel:ue.arrayOf(ue.object),columns:S0(ue.array.isRequired),columnThreshold:ue.number,columnTypes:ue.object,columnVisibilityModel:ue.object,components:ue.object,componentsProps:ue.object,density:ue.oneOf(["comfortable","compact","standard"]),disableColumnFilter:ue.bool,disableColumnMenu:ue.bool,disableColumnSelector:ue.bool,disableDensitySelector:ue.bool,disableExtendRowFullWidth:ue.bool,disableIgnoreModificationsIfProcessingProps:ue.bool,disableSelectionOnClick:ue.bool,disableVirtualization:ue.bool,editMode:ue.oneOf(["cell","row"]),editRowsModel:ue.object,error:ue.any,experimentalFeatures:ue.shape({columnGrouping:ue.bool,newEditingApi:ue.bool,preventCommitWhileValidating:ue.bool,warnIfFocusStateIsNotSynced:ue.bool}),filterMode:ue.oneOf(["client","server"]),filterModel:ue.shape({items:ue.arrayOf(ue.shape({columnField:ue.string.isRequired,id:ue.oneOfType([ue.number,ue.string]),operatorValue:ue.string,value:ue.any})).isRequired,linkOperator:ue.oneOf(["and","or"]),quickFilterLogicOperator:ue.oneOf(["and","or"]),quickFilterValues:ue.array}),getCellClassName:ue.func,getDetailPanelContent:ue.func,getEstimatedRowHeight:ue.func,getRowClassName:ue.func,getRowHeight:ue.func,getRowId:ue.func,getRowSpacing:ue.func,headerHeight:ue.number,hideFooter:ue.bool,hideFooterPagination:ue.bool,hideFooterSelectedRowCount:ue.bool,initialState:ue.object,isCellEditable:ue.func,isRowSelectable:ue.func,keepNonExistentRowsSelected:ue.bool,loading:ue.bool,localeText:ue.object,logger:ue.shape({debug:ue.func.isRequired,error:ue.func.isRequired,info:ue.func.isRequired,warn:ue.func.isRequired}),logLevel:ue.oneOf(["debug","error","info","warn",!1]),nonce:ue.string,onCellClick:ue.func,onCellDoubleClick:ue.func,onCellEditCommit:ue.func,onCellEditStart:ue.func,onCellEditStop:ue.func,onCellFocusOut:ue.func,onCellKeyDown:ue.func,onCellModesModelChange:ue.func,onColumnHeaderClick:ue.func,onColumnHeaderDoubleClick:ue.func,onColumnHeaderEnter:ue.func,onColumnHeaderLeave:ue.func,onColumnHeaderOut:ue.func,onColumnHeaderOver:ue.func,onColumnOrderChange:ue.func,onColumnVisibilityChange:ue.func,onColumnVisibilityModelChange:ue.func,onEditCellPropsChange:ue.func,onEditRowsModelChange:ue.func,onError:ue.func,onFilterModelChange:ue.func,onMenuClose:ue.func,onMenuOpen:ue.func,onPageChange:ue.func,onPageSizeChange:ue.func,onPreferencePanelClose:ue.func,onPreferencePanelOpen:ue.func,onProcessRowUpdateError:ue.func,onResize:ue.func,onRowClick:ue.func,onRowDoubleClick:ue.func,onRowEditCommit:ue.func,onRowEditStart:ue.func,onRowEditStop:ue.func,onRowModesModelChange:ue.func,onSelectionModelChange:ue.func,onSortModelChange:ue.func,onStateChange:ue.func,page:ue.number,pageSize:S0(ue.number),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
|
|
279
|
+
`)):null,paginationMode:ue.oneOf(["client","server"]),processRowUpdate:ue.func,rowBuffer:ue.number,rowCount:ue.number,rowHeight:ue.number,rowModesModel:ue.object,rows:ue.array.isRequired,rowSpacingType:ue.oneOf(["border","margin"]),rowsPerPageOptions:ue.arrayOf(ue.number),rowThreshold:ue.number,scrollbarSize:ue.number,selectionModel:S0(ue.oneOfType([ue.number,ue.string,ue.array])),showCellRightBorder:ue.bool,showColumnRightBorder:ue.bool,sortingMode:ue.oneOf(["client","server"]),sortingOrder:ue.arrayOf(ue.oneOf(["asc","desc"])),sortModel:ue.arrayOf(ue.shape({field:ue.string.isRequired,sort:ue.oneOf(["asc","desc"])})),sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object])};function dpe(){return u.createElement(u.Fragment,{},u.createElement(ppe),u.createElement(hpe))}const fpe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function ppe(){const{data:e,element:t}=ji("get_status"),{data:n}=Pie("get_connection_stats");e&&n&&Object.assign(e,n);const r=Pf("md"),o=Pf("sm");return t||u.createElement(yt,{display:"flex",flexWrap:"wrap",gap:"1em",mb:2},r&&i("started"),r&&i("http",{label:"HTTP",render:s}),r&&i("https",{label:"HTTPS",render:s}),o&&i("connections"),i("sent",{render:Eu,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:bA}));function i(a,{label:c,minWidth:f,render:p}={}){let h=Sn.get(e,a);if(h===void 0)return null;typeof h=="string"&&fpe.test(h)&&(h=new Date(h).toLocaleString());let m;return p&&(h=p(h),Array.isArray(h)&&([h,m]=h)),c||(c=Sn.capitalize(a.replaceAll("_"," "))),u.createElement(ev,{variant:"filled",color:m,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:f}},h))})}function s(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function hpe(){const{list:e,error:t,props:n}=_u("get_connections"),[r,o]=u.useState(!0),[i,s]=u.useState(!1),a=u.useMemo(()=>e==null?void 0:e.filter(f=>!r||f.path).map((f,p)=>Ae({id:p},f)),[!i&&e,r]),c=u.useMemo(()=>[{field:"ip",headerName:"Address",flex:1,maxWidth:400,valueGetter:({row:f,value:p})=>(f.v===6?`[${p}]`:p)+" :"+f.port},{field:"user",headerName:"User"},{field:"started",headerName:"Started",type:"dateTime",width:130,valueFormatter:({value:f})=>new Date(f).toLocaleTimeString()},{field:"path",headerName:"File",flex:1,renderCell({value:f,row:p}){if(!f)return;if(p.archive)return u.createElement(u.Fragment,{},u.createElement(yL,{sx:{mr:1}}),p.archive,u.createElement(yt,{ml:2,color:"text.secondary"},f));const h=f==null?void 0:f.lastIndexOf("/");return u.createElement(u.Fragment,{},f.slice(h+1),h>0&&u.createElement(yt,{ml:2,color:"text.secondary"},f.slice(0,h)))}},{field:"v",headerName:"Protocol",align:"center",hide:!0,renderCell:({value:f,row:p})=>u.createElement(u.Fragment,{},"IPv"+f,p.secure&&as(wx,"HTTPS",{opacity:.5}))},{field:"outSpeed",headerName:"Speed",type:"number",valueFormatter:({value:f})=>bA(f)},{field:"sent",headerName:"Total",type:"number",valueFormatter:({value:f})=>Eu(f)},{field:"Actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:f}){return u.createElement("div",{},u.createElement(Rr,{icon:Fa,title:"Disconnect",onClick:()=>Gt("disconnect",Sn.pick(f,["ip","port"]))}),u.createElement(Rr,{icon:vL,title:"Block IP",disabled:f.ip===(n==null?void 0:n.you),onClick:()=>mpe(f.ip)}))}}],[n]);return u.createElement(u.Fragment,{},u.createElement(yt,{display:"flex",alignItems:"center"},u.createElement(Pu,{fullWidth:!1,value:r,onChange:o,options:{"Show only downloads":!0,"Show all connections":!1}}),u.createElement(yt,{flex:1}),u.createElement(Rr,{title:i?"Resume":"Pause",icon:i?yv:gL,sx:{mr:1},onClick(){s(!i)}})),t?u.createElement(qi,{severity:"error"},t):u.createElement(fp,{rows:a,columns:c,localeText:r?{noRowsLabel:"No downloads at the moment"}:void 0}))}function mpe(e){return tie("block",t=>[...t,{ip:e}])}function bA(e){return e?Eu(e*1e3,{post:"B/s",k:1e3,digits:1}):""}var Dx={},gpe=pt;Object.defineProperty(Dx,"__esModule",{value:!0});var wA=Dx.default=void 0,vpe=gpe(vt()),ype=ht(),bpe=(0,vpe.default)((0,ype.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");wA=Dx.default=bpe;var Bx={},wpe=pt;Object.defineProperty(Bx,"__esModule",{value:!0});var CA=Bx.default=void 0,Cpe=wpe(vt()),xpe=ht(),Spe=(0,Cpe.default)((0,xpe.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");CA=Bx.default=Spe;var zx={},Epe=pt;Object.defineProperty(zx,"__esModule",{value:!0});var xA=zx.default=void 0,Ppe=Epe(vt()),kpe=ht(),Ipe=(0,Ppe.default)((0,kpe.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");xA=zx.default=Ipe;var jx={},_pe=pt;Object.defineProperty(jx,"__esModule",{value:!0});var SA=jx.default=void 0,$pe=_pe(vt()),Mpe=ht(),Tpe=(0,$pe.default)((0,Mpe.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");SA=jx.default=Tpe;var Hx={},Rpe=pt;Object.defineProperty(Hx,"__esModule",{value:!0});var EA=Hx.default=void 0,Ope=Rpe(vt()),Lpe=ht(),Ape=(0,Ope.default)((0,Lpe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");EA=Hx.default=Ape;var Vx={},Fpe=pt;Object.defineProperty(Vx,"__esModule",{value:!0});var PA=Vx.default=void 0,Npe=Fpe(vt()),r$=ht(),Dpe=(0,Npe.default)([(0,r$.jsx)("path",{d:"M2 16.5C2 19.54 4.46 22 7.5 22s5.5-2.46 5.5-5.5V10H2v6.5zm5.5 2C6.12 18.5 5 17.83 5 17h5c0 .83-1.12 1.5-2.5 1.5zM10 13c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,r$.jsx)("path",{d:"M11 3v6h3v2.5c0-.83 1.12-1.5 2.5-1.5s2.5.67 2.5 1.5h-5v2.89c.75.38 1.6.61 2.5.61 3.04 0 5.5-2.46 5.5-5.5V3H11zm3 5.08c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1zm5 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1z"},"1")],"TheaterComedy");PA=Vx.default=Dpe;var Ux={},Bpe=pt;Object.defineProperty(Ux,"__esModule",{value:!0});var kA=Ux.default=void 0,zpe=Bpe(vt()),jpe=ht(),Hpe=(0,zpe.default)((0,jpe.jsx)("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"Folder");kA=Ux.default=Hpe;var Wx={},Vpe=pt;Object.defineProperty(Wx,"__esModule",{value:!0});var IA=Wx.default=void 0,Upe=Vpe(vt()),Wpe=ht(),Gpe=(0,Upe.default)((0,Wpe.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");IA=Wx.default=Gpe;var Gx={},Kpe=pt;Object.defineProperty(Gx,"__esModule",{value:!0});var _A=Gx.default=void 0,qpe=Kpe(vt()),Ype=ht(),Xpe=(0,qpe.default)((0,Ype.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}),"InsertDriveFileOutlined");_A=Gx.default=Xpe;var Kx={},Qpe=pt;Object.defineProperty(Kx,"__esModule",{value:!0});var $A=Kx.default=void 0,Jpe=Qpe(vt()),Zpe=ht(),ehe=(0,Jpe.default)((0,Zpe.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye");$A=Kx.default=ehe;var qx={},the=pt;Object.defineProperty(qx,"__esModule",{value:!0});var MA=qx.default=void 0,nhe=the(vt()),rhe=ht(),ohe=(0,nhe.default)((0,rhe.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"}),"Web");MA=qx.default=ohe;const TA=kA,RA=_A;function ihe({id2node:e}){const{vfs:t,selectedFiles:n}=Fl(),[r,o]=u.useState(n.map(f=>f.id)),[i,s]=u.useState(Array.from(e.keys()));if(!t)return null;return u.createElement(tL,{expanded:i,selected:r,multiSelect:!0,sx:{overflowX:"auto","& ul":{borderLeft:"1px dashed #444",marginLeft:"15px"}},onNodeSelect(f,p){o(p),$n.selectedFiles=Sa(p.map(h=>e.get(h)))}},c(t));function a(f){return f!==void 0&&f!==!0}function c(f){var g,x;let{id:p,name:h,source:m,isRoot:v}=f;if(!p)debugger;const C=f.type==="folder";return C&&!lL(m)&&m===h&&(m="./"+m),u.createElement(Ib,{label:u.createElement(yt,{sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},v?as(IA,"home, or root if you like"):C?as(TA,"Folder"):as(RA,"File"),a(f.can_see)&&as($A,"Restrictions on who can see"),a(f.can_read)&&as(wx,"Restrictions on who can download"),f.default&&as(MA,"Act as website"),f.masks&&as(PA,"Masks"),v?"Home":(m==null?void 0:m.length)<45&&(m!=null&&m.endsWith(h))?u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},m.slice(0,-h.length)),u.createElement("span",{},m.slice(-h.length))):h),key:h,collapseIcon:u.createElement(EA,{onClick(b){s(i.filter(P=>P!==p)),b.preventDefault(),b.stopPropagation()}}),expandIcon:u.createElement(SA,{onClick(b){s([...i,p]),b.preventDefault(),b.stopPropagation()}}),nodeId:p},v&&!((g=f.children)!=null&&g.length)?u.createElement(Ib,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(x=f.children)==null?void 0:x.map(c))}}var o$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function she(e,t){return!!(e===t||o$(e)&&o$(t))}function lhe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!she(e[n],t[n]))return!1;return!0}function Y0(e,t){t===void 0&&(t=lhe);var n,r=[],o,i=!1;function s(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return i&&n===this&&t(a,r)||(o=e.apply(this,a),i=!0,n=this,r=a),o}return s}var ahe=typeof performance=="object"&&typeof performance.now=="function",i$=ahe?function(){return performance.now()}:function(){return Date.now()};function s$(e){cancelAnimationFrame(e.id)}function che(e,t){var n=i$();function r(){i$()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var hc=null;function l$(e){if(e===void 0&&(e=!1),hc===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?hc="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?hc="negative":hc="positive-ascending"),document.body.removeChild(t),hc}return hc}var uhe=150,dhe=function(t,n){return t};function fhe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,c=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(h){CC(m,h);function m(C){var g;return g=h.call(this,C)||this,g._instanceProps=c(g.props,db(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:db(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Y0(function(x,b,P,w){return g.props.onItemsRendered({overscanStartIndex:x,overscanStopIndex:b,visibleStartIndex:P,visibleStopIndex:w})}),g._callOnScroll=void 0,g._callOnScroll=Y0(function(x,b,P){return g.props.onScroll({scrollDirection:x,scrollOffset:b,scrollUpdateWasRequested:P})}),g._getItemStyle=void 0,g._getItemStyle=function(x){var b=g.props,P=b.direction,w=b.itemSize,E=b.layout,I=g._getItemStyleCache(f&&w,f&&E,f&&P),_;if(I.hasOwnProperty(x))_=I[x];else{var k=n(g.props,x,g._instanceProps),$=o(g.props,x,g._instanceProps),R=P==="horizontal"||E==="horizontal",O=P==="rtl",N=R?k:0;I[x]=_={position:"absolute",left:O?void 0:N,right:O?N:void 0,top:R?0:k,height:R?"100%":$,width:R?$:"100%"}}return _},g._getItemStyleCache=void 0,g._getItemStyleCache=Y0(function(x,b,P){return{}}),g._onScrollHorizontal=function(x){var b=x.currentTarget,P=b.clientWidth,w=b.scrollLeft,E=b.scrollWidth;g.setState(function(I){if(I.scrollOffset===w)return null;var _=g.props.direction,k=w;if(_==="rtl")switch(l$()){case"negative":k=-w;break;case"positive-descending":k=E-P-w;break}return k=Math.max(0,Math.min(k,E-P)),{isScrolling:!0,scrollDirection:I.scrollOffset<w?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(x){var b=x.currentTarget,P=b.clientHeight,w=b.scrollHeight,E=b.scrollTop;g.setState(function(I){if(I.scrollOffset===E)return null;var _=Math.max(0,Math.min(E,w-P));return{isScrolling:!0,scrollDirection:I.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(x){var b=g.props.outerRef;g._outerRef=x,typeof b=="function"?b(x):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=x)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&s$(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=che(g._resetIsScrolling,uhe)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}m.getDerivedStateFromProps=function(g,x){return phe(g,x),p(g),null};var v=m.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(x){return x.scrollOffset===g?null:{scrollDirection:x.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,x){x===void 0&&(x="auto");var b=this.props.itemCount,P=this.state.scrollOffset;g=Math.max(0,Math.min(g,b-1)),this.scrollTo(i(this.props,g,x,P,this._instanceProps))},v.componentDidMount=function(){var g=this.props,x=g.direction,b=g.initialScrollOffset,P=g.layout;if(typeof b=="number"&&this._outerRef!=null){var w=this._outerRef;x==="horizontal"||P==="horizontal"?w.scrollLeft=b:w.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,x=g.direction,b=g.layout,P=this.state,w=P.scrollOffset,E=P.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var I=this._outerRef;if(x==="horizontal"||b==="horizontal")if(x==="rtl")switch(l$()){case"negative":I.scrollLeft=-w;break;case"positive-ascending":I.scrollLeft=w;break;default:var _=I.clientWidth,k=I.scrollWidth;I.scrollLeft=k-_-w;break}else I.scrollLeft=w;else I.scrollTop=w}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&s$(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,x=g.children,b=g.className,P=g.direction,w=g.height,E=g.innerRef,I=g.innerElementType,_=g.innerTagName,k=g.itemCount,$=g.itemData,R=g.itemKey,O=R===void 0?dhe:R,N=g.layout,U=g.outerElementType,H=g.outerTagName,L=g.style,D=g.useIsScrolling,B=g.width,W=this.state.isScrolling,A=P==="horizontal"||N==="horizontal",z=A?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),q=G[0],X=G[1],ie=[];if(k>0)for(var ee=q;ee<=X;ee++)ie.push(u.createElement(x,{data:$,key:O(ee,$),index:ee,isScrolling:D?W:void 0,style:this._getItemStyle(ee)}));var se=r(this.props,this._instanceProps);return u.createElement(U||H||"div",{className:b,onScroll:z,ref:this._outerRefSetter,style:S({position:"relative",height:w,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:P},L)},u.createElement(I||_||"div",{children:ie,ref:E,style:{height:A?"100%":se,pointerEvents:W?"none":void 0,width:A?se:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var x=this._getRangeToRender(),b=x[0],P=x[1],w=x[2],E=x[3];this._callOnItemsRendered(b,P,w,E)}}if(typeof this.props.onScroll=="function"){var I=this.state,_=I.scrollDirection,k=I.scrollOffset,$=I.scrollUpdateWasRequested;this._callOnScroll(_,k,$)}},v._getRangeToRender=function(){var g=this.props,x=g.itemCount,b=g.overscanCount,P=this.state,w=P.isScrolling,E=P.scrollDirection,I=P.scrollOffset;if(x===0)return[0,0,0,0];var _=s(this.props,I,this._instanceProps),k=a(this.props,_,I,this._instanceProps),$=!w||E==="backward"?Math.max(1,b):1,R=!w||E==="forward"?Math.max(1,b):1;return[Math.max(0,_-$),Math.max(0,Math.min(x-1,k+R)),_,k]},m}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var phe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},hhe=fhe({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,o){var i=t.direction,s=t.height,a=t.itemCount,c=t.itemSize,f=t.layout,p=t.width,h=i==="horizontal"||f==="horizontal",m=h?p:s,v=Math.max(0,a*c-m),C=Math.min(v,n*c),g=Math.max(0,n*c-m+c);switch(r==="smart"&&(o>=g-m&&o<=C+m?r="auto":r="center"),r){case"start":return C;case"end":return g;case"center":{var x=Math.round(g+(C-g)/2);return x<Math.ceil(m/2)?0:x>v+Math.floor(m/2)?v:x}case"auto":default:return o>=g&&o<=C?o:o<g?g:C}},getStartIndexForOffset:function(t,n){var r=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,r){var o=t.direction,i=t.height,s=t.itemCount,a=t.itemSize,c=t.layout,f=t.width,p=o==="horizontal"||c==="horizontal",h=n*a,m=p?f:i,v=Math.ceil((m+r-h)/a);return Math.max(0,Math.min(s-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function OA({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:i=""}){const[s,a]=u.useState(i),[c,f]=u.useState(!1),p=u.useRef(!1);u.useEffect(()=>{Gt("resolve_path",{path:i,closestFolder:!0}).then(U=>{typeof U.path=="string"&&(a(U.path),p.current=U.path[1]===":")}).finally(()=>f(!0))},[i]);const{list:h,error:m,loading:v}=_u(c&&"ls",{path:s,files:n,fileMask:o});u.useEffect(()=>{g([]),b("")},[s]);const[C,g]=u.useState([]),[x,b]=u.useState(""),P=u.useMemo(()=>Sn.debounce(U=>b(U)),[]),w=u.useMemo(()=>{const U=new RegExp(Sn.escapeRegExp(x),"i");return H=>U.test(H)},[x]),[E,I]=u.useState(0),_=u.useMemo(()=>h.filter(U=>w(U.n)),[h,w]);if(v)return sL();const k=p.current?"":"/",$=p.current?"\\":"/",R=Hre($,s),O=s.length<2;return u.createElement(u.Fragment,{},u.createElement(yt,{display:"flex",gap:1},u.createElement(Qn,{title:"root",disabled:O,onClick(){a(k)}},u.createElement(xA)),u.createElement(Qn,{disabled:O,title:"parent folder",onClick(){const U=/[\\/]$/.test(s)?s.slice(0,-1):s,H=lL(U)?k:U.slice(0,U.lastIndexOf($)||1);a(H)}},u.createElement(CA)),u.createElement(Bo,{label:"Current path",value:s,InputLabelProps:{shrink:!0},onChange(U){return ft(this,null,function*(){if(!U)return a(k);const H=yield Gt("resolve_path",{path:U});a(H.path)})}})),m?u.createElement(qi,{severity:"error"},aL(m)):u.createElement(u.Fragment,{},u.createElement(yt,{ref(U){if(!U)return;const H=(U==null?void 0:U.clientHeight)-1;H-E>1&&I(H)},sx:{flex:1,display:"flex",flexDirection:"column"}},h.length?u.createElement(hhe,{width:"100%",height:E,itemSize:46,itemCount:_.length,overscanCount:5,children({index:U,style:H}){const L=_[U],D=L.k==="d";return u.createElement(cr,{style:Ht(Ae({},H),{padding:0}),key:L.n,onClick(){D?a(R+L.n):e([R+L.n])}},t&&u.createElement(iO,{checked:C.includes(L.n),disabled:!r&&D,onClick(B){const W=L.n,A=C.filter(z=>z!==W);g(A.length<C.length?A:[...C,W]),B.stopPropagation()}}),u.createElement(CO,{},u.createElement(L.k?TA:RA)),u.createElement(Jf,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},L.n),!D&&L.s!==void 0&&u.createElement(br,{variant:"body2",color:"text.secondary",ml:4,mr:1},Eu(L.s)))}}):u.createElement(ax,{flex:1,mt:"4em"},"No elements in this folder")),u.createElement(yt,{display:"flex",gap:1},(t||r||!n)&&u.createElement(Qn,{variant:"contained",disabled:!s||!r&&!C.length&&n,sx:{minWidth:"max-content"},onClick(){e(C.length?C.map(U=>R+U):[s])}},n&&(C.length||!r)?`Select (${C.length})`:"Select this folder"),u.createElement(Zf,{value:x,label:`Filter results (${_.length}${_.length<h.length?"/"+h.length:""})`,onChange(U){P(U.target.value)},sx:{flex:1}}))))}function Zm(c){var f=c,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:i,title:s}=f,a=un(f,["value","onChange","files","folders","fileMask","defaultPath","title"]);const p=Pf("md");return u.createElement(Bo,Ht(Ae({},a),{value:e,onChange:t,InputProps:{endAdornment:u.createElement(Bm,{position:"end"},u.createElement(Rr,{icon:wA,title:"Browse files...",edge:"end",onClick(){const h=Ts({title:s!=null?s:n?"Pick a file":"Pick a folder",dialogProps:{fullScreen:!p,sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){return u.createElement(OA,{multiple:!1,folders:r,files:n,fileMask:o,from:e||i,onSelect(v){return ft(this,null,function*(){var x;let C=v==null?void 0:v[0];if(!C)return;const g=(x=yield Gt("get_cwd"))==null?void 0:x.path;C.startsWith(g)&&(C=C.slice(g.length+1)||"."),t(C,{was:e,event:"picker"}),h()})}})}})}}))}}))}var Yx={},mhe=pt;Object.defineProperty(Yx,"__esModule",{value:!0});var LA=Yx.default=void 0,ghe=mhe(vt()),vhe=ht(),yhe=(0,ghe.default)((0,vhe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");LA=Yx.default=yhe;var Xx={},bhe=pt;Object.defineProperty(Xx,"__esModule",{value:!0});var AA=Xx.default=void 0,whe=bhe(vt()),Che=ht(),xhe=(0,whe.default)((0,Che.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch");AA=Xx.default=xhe;function ia(e){typeof e!="string"&&(e=e[0]);const t=/([`*/_])(.+)\1|(\n)/g,n=[];let r=0,o;for(;o=t.exec(e);){if(n.push(e.slice(r,o.index)),o[3])n.push(u.createElement("br"));else{const i={"`":"code","*":"b","/":"i",_:"u"}[o[1]];if(!i)throw Error("should never happen");n.push(u.createElement(i,{},o[2]))}r=o.index+o[0].length}return u.createElement(u.Fragment,{},...n,e.slice(r,1/0))}function She(){var b,P,w;const e=" — ",{username:t}=Fl(),{data:n,reload:r,element:o}=ji("get_status"),{data:i}=ji("get_vfs"),[s]=rp(t&&"get_account"),{data:a,reload:c}=ji("get_config",{only:["https_port","cert","private_key","proxies","ignore_proxies"]}),{list:f}=_u("get_plugins");if(o||!n)return o;const{http:p,https:h}=n,m=!(p!=null&&p.listening)&&(h!=null&&h.listening)?"s":"",v=m?h:(p==null?void 0:p.listening)&&p,C=v&&`http${m}://`+window.location.hostname+(v.port===(m?443:80)?"":":"+v.port),g=XO(n,I=>I.busy?[`port ${I.port} already used by ${I.busy}${e}choose a `,Nh("different port"),` or stop ${I.busy}`]:I.error),x=g&&Sa(Object.entries(g).map(([I,_])=>_&&[ia(`Protocol _${I}_ cannot work: `),_,(Qx(_)||Jx(_))&&[e,u.createElement(Sf,{sx:{cursor:"pointer"},onClick(){Zx().then(c).then(r)}},"make one")," or ",e,Nh("provide adequate files")]]));return u.createElement(yt,{display:"flex",gap:2,flexDirection:"column"},t&&Si("","Welcome "+t),x.length?jm(x.map(I=>Si("error",jm(I)))):Si("success","Server is working"),i?!((P=(b=i.root)==null?void 0:b.children)!=null&&P.length)&&!((w=i.root)!=null&&w.source)?Si("warning","You have no files shared",e,Ehe("add some")):Si("",ia("This is Admin-panel, where you manage your server. Access your files on "),u.createElement(Sf,{target:"frontend",href:"/"},"Frontend",u.createElement(AA,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(CJ),!C&&Si("warning","Frontend unreachable: ",["http","https"].map(I=>I+" "+(g[I]?"is in error":"is off")).join(", "),!x.length&&[e,Nh("switch http or https on")]),f.find(I=>I.badApi)&&Si("warning","Some plugins may be incompatible"),!(s!=null&&s.adminActualAccess)&&Si("",ia("On _localhost_ you don't need to login"),e,u.createElement(lx,{to:"accounts"},"to access from another computer create an account with /admin/ permission")),FA(a,n)&&Si("warning","A proxy was detected but none is configured",e,Nh("set the number of proxies"),e,"unless you are sure you can ",u.createElement(Qn,{onClick(){return ft(this,null,function*(){(yield vs("Go on only if you know what you are doing"))&&(yield Gt("set_config",{values:{ignore_proxies:!0}}))&&c()})}},"ignore this warning")),n.frpDetected&&Si("warning",'FRP is detected. It should not be used with "type = tcp" with HFS. Possible solutions are',u.createElement("ol",{},u.createElement("li",{},"configure FRP with type=http (best solution)"),u.createElement("li",{},ia("configure FRP to connect to HFS _not_ with 127.0.0.1 (safe, but you won't see users' IPs)")),u.createElement("li",{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))))}function Si(e,...t){return u.createElement(yt,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:LA,info:au,"":au,warning:qC,error:cv}[e],{sx:{mb:"-3px",mr:1}}),...t)}function Ehe(e="File System page"){return u.createElement(lx,{to:"fs"},e)}function Nh(e="Configuration page"){return u.createElement(lx,{to:"configuration"},e)}function FA(e,t){return e&&!e.proxies&&!e.ignore_proxies&&(t==null?void 0:t.proxyDetected)}let vl,zb;const NA=ep({changes:{}});rx($n,"config",DA);const eg={log:"Access log file",error_log:"Access error log file"};function Phe(){var m;const{data:e,reload:t,element:n}=ji("get_config",{omit:["vfs"]});let r=Fl();const{changes:o}=uv(NA),i=ji(e&&"get_status"),s=i.data,a=zb=i.reload;u.useEffect(()=>void a(),[e]),u.useEffect(()=>()=>zb=void 0,[]);const c=(m=rp("get_admins")[0])==null?void 0:m.list;if(n)return n;if(i.error)return i.element;const f=vl!==e?$n.config=vl=e:r.config,p={comp:Xs,min:1,placeholder:"no limit"};return u.createElement(tp,{sx:{maxWidth:"60em"},values:f,set(v,C){$n.config[C]=v},stickyBar:!0,onError:wr,save:{onClick:h,sx:sx(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(Qn,{onClick(){t(),a()},startIcon:u.createElement(np)},"Reload")],defaults({comp:v}){return v===X0?{sm:6,md:3}:v===Xs?{sm:3}:{sm:6}},fields:[{k:"port",comp:X0,label:"HTTP port",status:(s==null?void 0:s.http)||!0,suggestedPort:80},{k:"https_port",comp:X0,label:"HTTPS port",status:(s==null?void 0:s.https)||!0,suggestedPort:443,onChange(v){return v>=0&&f.https_port<0&&!f.cert&&Ihe(),v}},Ht(Ae({k:"max_kbps"},p),{label:"Limit output KB/s",helperText:"Doesn't apply to localhost"}),Ht(Ae({k:"max_kbps_per_ip"},p),{label:"Limit output KB/s per-ip"}),f.https_port>=0&&Ae({k:"cert",comp:Zm,label:"HTTPS certificate file"},a$(s==null?void 0:s.https.error,v=>Qx(v)?{error:!0,helperText:[v," - ",u.createElement(Sf,{key:"fix",sx:{cursor:"pointer"},onClick:Zx},"make one")]}:null)),f.https_port>=0&&Ae({k:"private_key",comp:Zm,label:"HTTPS private key file"},a$(s==null?void 0:s.https.error,v=>Jx(v)?{error:!0,helperText:v}:null)),{k:"open_browser_at_start",comp:pu},{k:"localhost_admin",comp:pu,label:"Admin access for localhost connections",getError:v=>!v&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"To access Admin without entering credentials"},{k:"log",label:eg.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:eg.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:Pu,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To avoid an endlessly-growing single log file, you can opt for rotation"},{k:"proxies",comp:Xs,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:FA(f,s),helperText:"Wrong number will prevent detection of users' IP address"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:khe},{k:"delete_unfinished_uploads_after",comp:Xs,sm:6,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Xs,sm:6,md:3,min:0,unit:"MBytes",placeholder:"None",label:"Min. available disk space",helperText:"Reject uploads that don't comply"},{k:"zip_calculate_size_for_seconds",comp:Xs,sm:12,md:6,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"custom_header",multiline:!0,sm:12,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Any HTML code here will be displayed on top of the Frontend"},{k:"mime",comp:Doe,keyLabel:"Files",keyWidth:7,valueLabel:"Mime type",valueWidth:4},{k:"block",label:"Blocked IPs",multiline:!0,minRows:3,helperText:"Enter an IP address for each line. CIDR and * are supported.",fromField:v=>v.split(`
|
|
280
|
+
`).map(C=>C.trim()).filter(Boolean).map(C=>({ip:C})),toField:v=>Array.isArray(v)?v.map(C=>C==null?void 0:C.ip).filter(Boolean).join(`
|
|
281
|
+
`):""}]});function h(){return ft(this,null,function*(){if(Sn.isEmpty(o))return ha("Nothing to save");const v=window.location,C=v.protocol==="http:"?o.port:o.https_port;if(!(C<=0&&!(yield vs("You are switching off the server port and you will be disconnected")))&&!(C>0&&!(yield vs("You are changing the port and you may be disconnected")))&&!(v.protocol==="https:"&&("cert"in o||"private_key"in o)&&!(yield vs("You may disrupt https service, kicking you out")))){if(yield Gt("set_config",{values:o}),C>0)return yield wr("You are being redirected but in some cases this may fail. Hold on tight!","warning"),window.location.href=v.protocol+"//"+v.hostname+":"+C+v.pathname;setTimeout(a,"port"in o||"https_port"in o?1e3:0),Object.assign(vl,o),DA(),ha("Changes applied","success")}})}}function DA(){const e={};if($n.config)for(const[t,n]of Object.entries($n.config))JSON.stringify(n)!==JSON.stringify(vl==null?void 0:vl[t])&&(e[t]=n);NA.changes=e}function Qx(e){return/certificate/.test(e)}function Jx(e){return/private key/.test(e)}function X0({label:e,value:t,onChange:n,getApi:r,status:o,suggestedPort:i=1,error:s,helperText:a}){const c=u.useRef(i);t>0&&(c.current=t);const f=Number(t>0?c.current:t)||0;let p=o==null?void 0:o.error;return p&&(Qx(p)||Jx(p)?p=void 0:s=!0),u.createElement(yt,{},u.createElement(yt,{display:"flex"},u.createElement(Pu,{sx:{flexGrow:1},label:e,error:s,value:f,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:c.current}],onChange:n}),t>0&&u.createElement(Xs,{label:"Number",fullWidth:!1,value:t,onChange:n,getApi:r,error:s,min:1,max:65535,helperText:a,sx:{minWidth:"5.5em"}})),o&&u.createElement(lv,{error:s},o===!0?"...":p!=null?p:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function khe({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",i="example.com";return u.createElement(yt,{display:"flex"},u.createElement(Pu,{label:e,value:o?t:i,options:{"allow all":"","forbid all":"-","allow some":i},onChange:n,error:r,sx:o?void 0:{maxWidth:"11em"}}),!o&&u.createElement(Bo,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:"Masks supported"}))}function Ihe(){Ts({Content:()=>u.createElement(yt,{},u.createElement(yt,{display:"flex",gap:1},u.createElement(au),"You are enabling HTTPs. It needs a valid certificate + private key to work."),u.createElement(yt,{mt:4,display:"flex",gap:1,justifyContent:"space-around"},u.createElement(Qn,{variant:"contained",onClick(){Ki(),Zx().then()}},"Help me!"),u.createElement(Qn,{onClick:Ki},"I will handle the matter myself")))})}function Zx(){return ft(this,null,function*(){if(!window.crypto.subtle)return wr("Retry this procedure on localhost","warning");const e=yield Ef({fields:[u.createElement(yt,{display:"flex",gap:1},u.createElement(au),"We'll generate a basic certificate for you"),{k:"commonName",label:"Enter a domain, or leave empty"}],save:{children:"Continue"}});if(!e)return;const t=eie();try{const n=yield Gt("save_pem",yield _he(e));yield Gt("set_config",{values:n}),vl&&Object.assign(vl,n),setTimeout(zb,1e3),Object.assign($n.config,n),yield wr("Certificate saved","success")}finally{t()}})}function _he(e){return ft(this,null,function*(){const{pki:t}=window.forge,n=t.rsa.generateKeyPair(2048),r=t.createCertificate();r.publicKey=n.publicKey,r.serialNumber="01",r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.validity.notAfter.setFullYear(r.validity.notBefore.getFullYear()+1);const o=Object.entries(e).map(i=>({name:i[0],value:i[1]}));return r.setSubject(o),r.setIssuer(o),r.sign(n.privateKey),{cert:t.certificateToPem(r),private_key:t.privateKeyToPem(n.privateKey)}})}function a$(e,t){return t(e)}function $he(){const e=Ts({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=BA();return u.createElement(u.Fragment,{},u.createElement(yt,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added to virtual path "+(t||"(home)")),u.createElement(OA,{onSelect(r){return ft(this,null,function*(){let o=yield Promise.all(r.map(i=>Gt("add_vfs",{under:t,source:i}).then(()=>"",()=>i)));o=Sa(o),o.length&&(yield wr("Some elements have been rejected: "+o.join(", "),"error")),vp(),e()})}}))}})}function Mhe(){return ft(this,null,function*(){try{const e=yield Zoe("Enter folder name");if(!e)return;const t=BA();yield Gt("add_vfs",{under:t,name:e}),vp([(t||"")+"/"+e]),yield wr(`Folder "${e}" created`,"success")}catch(e){yield wr(e)}})}function BA(){let e=$n.selectedFiles[0];if(!e)return"";e.type!=="folder"&&(e=e.parent);const{id:t}=e;return t==="/"?"":t}function zA(n){var r=n,{items:e}=r,t=un(r,["items"]);const[o,i]=No.useState(),s=Boolean(o),a=u.useCallback(()=>i(void 0),[]);return u.createElement(No.Fragment,{},u.createElement(Qn,Ae({"aria-controls":s?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c=>{i(c.currentTarget)}},t)),u.createElement(SO,{anchorEl:o,open:s,onClose:a,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((c,f)=>u.createElement(cr,Ht(Ae({key:f},c),{onClick(){var p;a(),(p=c.onClick)==null||p.apply(this,arguments)}})))}))}function The(){const{selectedFiles:e}=Fl();return u.createElement(yt,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(zA,{variant:"contained",startIcon:u.createElement(vv),items:[{children:"from disk",onClick:$he},{children:"virtual folder",onClick:Mhe}]},"Add"),u.createElement(Qn,{onClick:Rhe,disabled:!e.length,startIcon:u.createElement(Fa)},"Remove"),u.createElement(Rr,{icon:np,title:"Reload",onClick(){vp()}}))}function Rhe(){return ft(this,null,function*(){const e=$n.selectedFiles;if(e.length&&(yield vs(`Remove ${e.length} item(s)?`)))try{const t=e.map(o=>o.id),{errors:n}=yield Gt("del_vfs",{uris:t}),r=t.filter((o,i)=>n[i]);if(r.length)return wr("Following elements couldn't be removed: "+r.join(", "),"error");vp()}catch(t){yield wr(t)}})}const eS=Symbol.for("yaml.alias"),jb=Symbol.for("yaml.document"),yl=Symbol.for("yaml.map"),jA=Symbol.for("yaml.pair"),Is=Symbol.for("yaml.scalar"),Tu=Symbol.for("yaml.seq"),qo=Symbol.for("yaml.node.type"),za=e=>!!e&&typeof e=="object"&&e[qo]===eS,pp=e=>!!e&&typeof e=="object"&&e[qo]===jb,ja=e=>!!e&&typeof e=="object"&&e[qo]===yl,Pn=e=>!!e&&typeof e=="object"&&e[qo]===jA,fn=e=>!!e&&typeof e=="object"&&e[qo]===Is,Ru=e=>!!e&&typeof e=="object"&&e[qo]===Tu;function _n(e){if(e&&typeof e=="object")switch(e[qo]){case yl:case Tu:return!0}return!1}function jn(e){if(e&&typeof e=="object")switch(e[qo]){case eS:case yl:case Is:case Tu:return!0}return!1}const Ohe=e=>(fn(e)||_n(e))&&!!e.anchor;class tS{constructor(t){Object.defineProperty(this,qo,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}}const Ur=Symbol("break visit"),HA=Symbol("skip children"),Hi=Symbol("remove node");function _l(e,t){const n=VA(t);pp(e)?Oc(null,e.contents,n,Object.freeze([e]))===Hi&&(e.contents=null):Oc(null,e,n,Object.freeze([]))}_l.BREAK=Ur;_l.SKIP=HA;_l.REMOVE=Hi;function Oc(e,t,n,r){const o=UA(e,t,n,r);if(jn(o)||Pn(o))return WA(e,r,o),Oc(e,o,n,r);if(typeof o!="symbol"){if(_n(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=Oc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Ur)return Ur;s===Hi&&(t.items.splice(i,1),i-=1)}}}else if(Pn(t)){r=Object.freeze(r.concat(t));const i=Oc("key",t.key,n,r);if(i===Ur)return Ur;i===Hi&&(t.key=null);const s=Oc("value",t.value,n,r);if(s===Ur)return Ur;s===Hi&&(t.value=null)}}return o}function Pv(e,t){return ft(this,null,function*(){const n=VA(t);pp(e)?(yield Lc(null,e.contents,n,Object.freeze([e])))===Hi&&(e.contents=null):yield Lc(null,e,n,Object.freeze([]))})}Pv.BREAK=Ur;Pv.SKIP=HA;Pv.REMOVE=Hi;function Lc(e,t,n,r){return ft(this,null,function*(){const o=yield UA(e,t,n,r);if(jn(o)||Pn(o))return WA(e,r,o),Lc(e,o,n,r);if(typeof o!="symbol"){if(_n(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=yield Lc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Ur)return Ur;s===Hi&&(t.items.splice(i,1),i-=1)}}}else if(Pn(t)){r=Object.freeze(r.concat(t));const i=yield Lc("key",t.key,n,r);if(i===Ur)return Ur;i===Hi&&(t.key=null);const s=yield Lc("value",t.value,n,r);if(s===Ur)return Ur;s===Hi&&(t.value=null)}}return o})}function VA(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function UA(e,t,n,r){var o,i,s,a,c;if(typeof n=="function")return n(e,t,r);if(ja(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(Ru(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if(Pn(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(fn(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(za(t))return(c=n.Alias)==null?void 0:c.call(n,e,t,r)}function WA(e,t,n){const r=t[t.length-1];if(_n(r))r.items[e]=n;else if(Pn(r))e==="key"?r.key=n:r.value=n;else if(pp(r))r.contents=n;else{const o=za(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Lhe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Ahe=e=>e.replace(/[!,[\]{}]/g,t=>Lhe[t]);class $r{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},$r.defaultYaml,t),this.tags=Object.assign({},$r.defaultTags,n)}clone(){const t=new $r(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new $r(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:$r.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},$r.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:$r.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},$r.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[i,s]=r;return this.tags[i]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const s=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,s),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),s)}const[,r,o]=t.match(/^(.*!)([^!]*)$/);o||n(`The ${t} tag has no suffix`);const i=this.tags[r];return i?i+decodeURIComponent(o):r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+Ahe(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(t&&r.length>0&&jn(t.contents)){const i={};_l(t.contents,(s,a)=>{jn(a)&&a.tag&&(i[a.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,s]of r)i==="!!"&&s==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join(`
|
|
282
|
+
`)}}$r.defaultYaml={explicit:!1,version:"1.2"};$r.defaultTags={"!!":"tag:yaml.org,2002:"};function GA(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function KA(e){const t=new Set;return _l(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function qA(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function Fhe(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o||(o=KA(e));const s=qA(t,o);return o.add(s),s},setAnchors:()=>{for(const i of n){const s=r.get(i);if(typeof s=="object"&&s.anchor&&(fn(s.node)||_n(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:r}}class kv extends tS{constructor(t){super(eS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return _l(t,{Node:(r,o)=>{if(o===this)return _l.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:i}=n,s=this.resolve(o);if(!s){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}const a=r.get(s);if(!a||a.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=im(o,s,r)),a.count*a.aliasCount>i)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(GA(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function im(e,t,n){if(za(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(_n(t)){let r=0;for(const o of t.items){const i=im(e,o,n);i>r&&(r=i)}return r}else if(Pn(t)){const r=im(e,t.key,n),o=im(e,t.value,n);return Math.max(r,o)}return 1}function Vi(e,t,n){if(Array.isArray(e))return e.map((r,o)=>Vi(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Ohe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}const YA=e=>!e||typeof e!="function"&&typeof e!="object";class Et extends tS{constructor(t){super(Is),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Vi(this.value,t,n)}toString(){return String(this.value)}}Et.BLOCK_FOLDED="BLOCK_FOLDED";Et.BLOCK_LITERAL="BLOCK_LITERAL";Et.PLAIN="PLAIN";Et.QUOTE_DOUBLE="QUOTE_DOUBLE";Et.QUOTE_SINGLE="QUOTE_SINGLE";const Nhe="tag:yaml.org,2002:";function Dhe(e,t,n){var r;if(t){const o=n.filter(s=>s.tag===t),i=(r=o.find(s=>!s.format))!=null?r:o[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(o=>{var i;return((i=o.identify)==null?void 0:i.call(o,e))&&!o.format})}function Af(e,t,n){var h,m;if(pp(e)&&(e=e.contents),jn(e))return e;if(Pn(e)){const v=(m=(h=n.schema[yl]).createNode)==null?void 0:m.call(h,n.schema,null,n);return v.items.push(e),v}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt=="function"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=n;let c;if(r&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor||(c.anchor=o(e)),new kv(c.anchor);c={anchor:null,node:null},a.set(e,c)}t!=null&&t.startsWith("!!")&&(t=Nhe+t.slice(2));let f=Dhe(e,t,s.tags);if(!f){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const v=new Et(e);return c&&(c.node=v),v}f=e instanceof Map?s[yl]:Symbol.iterator in Object(e)?s[Tu]:s[yl]}i&&(i(f),delete n.onTagObj);const p=f!=null&&f.createNode?f.createNode(n.schema,e,n):new Et(e);return t&&(p.tag=t),c&&(c.node=p),p}function tg(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const s=[];s[i]=r,r=s}else r=new Map([[i,r]])}return Af(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Id=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Iv extends tS{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>jn(r)||Pn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Id(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if(_n(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,tg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const o=this.get(n,!0);if(_n(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,i=this.get(r,!0);return o.length===0?!n&&fn(i)?i.value:i:_n(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Pn(n))return!1;const r=n.value;return r==null||t&&fn(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const o=this.get(n,!0);return _n(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const i=this.get(r,!0);if(_n(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,tg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}Iv.maxFlowStringSingleLineLength=60;const Bhe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function ms(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const sl=(e,t,n)=>e.endsWith(`
|
|
283
|
+
`)?ms(n,t):n.includes(`
|
|
284
|
+
`)?`
|
|
285
|
+
`+ms(n,t):(e.endsWith(" ")?"":" ")+n,XA="flow",Hb="block",sm="quoted";function _v(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const c=Math.max(1+i,1+o-t.length);if(e.length<=c)return e;const f=[],p={};let h=o-t.length;typeof r=="number"&&(r>o-Math.max(2,i)?f.push(0):h=o-r);let m,v,C=!1,g=-1,x=-1,b=-1;n===Hb&&(g=c$(e,g),g!==-1&&(h=g+c));for(let w;w=e[g+=1];){if(n===sm&&w==="\\"){switch(x=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if(w===`
|
|
286
|
+
`)n===Hb&&(g=c$(e,g)),h=g+c,m=void 0;else{if(w===" "&&v&&v!==" "&&v!==`
|
|
287
|
+
`&&v!==" "){const E=e[g+1];E&&E!==" "&&E!==`
|
|
288
|
+
`&&E!==" "&&(m=g)}if(g>=h)if(m)f.push(m),h=m+c,m=void 0;else if(n===sm){for(;v===" "||v===" ";)v=w,w=e[g+=1],C=!0;const E=g>b+1?g-2:x-1;if(p[E])return e;f.push(E),p[E]=!0,h=E+c,m=void 0}else C=!0}v=w}if(C&&a&&a(),f.length===0)return e;s&&s();let P=e.slice(0,f[0]);for(let w=0;w<f.length;++w){const E=f[w],I=f[w+1]||e.length;E===0?P=`
|
|
289
|
+
${t}${e.slice(0,I)}`:(n===sm&&p[E]&&(P+=`${e[E]}\\`),P+=`
|
|
290
|
+
${t}${e.slice(E+1,I)}`)}return P}function c$(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
|
|
291
|
+
`);n=e[t+1]}return t}const $v=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Mv=e=>/^(%|---|\.\.\.)/m.test(e);function zhe(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let i=0,s=0;i<o;++i)if(e[i]===`
|
|
292
|
+
`){if(i-s>r)return!0;if(s=i+1,o-s<=r)return!1}return!0}function qd(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Mv(e)?" ":"");let s="",a=0;for(let c=0,f=n[c];f;f=n[++c])if(f===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(s+=n.slice(a,c)+"\\ ",c+=1,a=c,f="\\"),f==="\\")switch(n[c+1]){case"u":{s+=n.slice(a,c);const p=n.substr(c+2,4);switch(p){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:p.substr(0,2)==="00"?s+="\\x"+p.substr(2):s+=n.substr(c,6)}c+=5,a=c+1}break;case"n":if(r||n[c+2]==='"'||n.length<o)c+=1;else{for(s+=n.slice(a,c)+`
|
|
293
|
+
|
|
294
|
+
`;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)s+=`
|
|
295
|
+
`,c+=2;s+=i,n[c+2]===" "&&(s+="\\"),c+=1,a=c+1}break;default:c+=1}return s=a?s+n.slice(a):n,r?s:_v(s,i,sm,$v(t))}function Vb(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
296
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return qd(e,t);const n=t.indent||(Mv(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
297
|
+
${n}`)+"'";return t.implicitKey?r:_v(r,n,XA,$v(t))}function Yd(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=qd;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=Vb:i&&!o?r=qd:r=n?Vb:qd}return r(e,t)}function lm({comment:e,type:t,value:n},r,o,i){const{blockQuote:s,commentString:a,lineWidth:c}=r.options;if(!s||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Yd(n,r);const f=r.indent||(r.forceBlockIndent||Mv(n)?" ":""),p=s==="literal"?!0:s==="folded"||t===Et.BLOCK_FOLDED?!1:t===Et.BLOCK_LITERAL?!0:!zhe(n,c,f.length);if(!n)return p?`|
|
|
298
|
+
`:`>
|
|
299
|
+
`;let h,m;for(m=n.length;m>0;--m){const _=n[m-1];if(_!==`
|
|
300
|
+
`&&_!==" "&&_!==" ")break}let v=n.substring(m);const C=v.indexOf(`
|
|
301
|
+
`);C===-1?h="-":n===v||C!==v.length-1?(h="+",i&&i()):h="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
|
|
302
|
+
`&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${f}`));let g=!1,x,b=-1;for(x=0;x<n.length;++x){const _=n[x];if(_===" ")g=!0;else if(_===`
|
|
303
|
+
`)b=x;else break}let P=n.substring(0,b<x?b+1:x);P&&(n=n.substring(P.length),P=P.replace(/\n+/g,`$&${f}`));let E=(p?"|":">")+(g?f?"2":"1":"")+h;if(e&&(E+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p)return n=n.replace(/\n+/g,`$&${f}`),`${E}
|
|
304
|
+
${f}${P}${n}${v}`;n=n.replace(/\n+/g,`
|
|
305
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`);const I=_v(`${P}${n}${v}`,f,Hb,$v(r));return`${E}
|
|
306
|
+
${f}${I}`}function jhe(e,t,n,r){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:c,inFlow:f}=t;if(a&&/[\n[\]{},]/.test(i)||f&&/[[\]{},]/.test(i))return Yd(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||f||!i.includes(`
|
|
307
|
+
`)?Yd(i,t):lm(e,t,n,r);if(!a&&!f&&o!==Et.PLAIN&&i.includes(`
|
|
308
|
+
`))return lm(e,t,n,r);if(c===""&&Mv(i))return t.forceBlockIndent=!0,lm(e,t,n,r);const p=i.replace(/\n+/g,`$&
|
|
309
|
+
${c}`);if(s){const h=C=>{var g;return C.default&&C.tag!=="tag:yaml.org,2002:str"&&((g=C.test)==null?void 0:g.test(p))},{compat:m,tags:v}=t.doc.schema;if(v.some(h)||m!=null&&m.some(h))return Yd(i,t)}return a?p:_v(p,c,XA,$v(t))}function hp(e,t,n,r){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Et.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Et.QUOTE_DOUBLE);const c=p=>{switch(p){case Et.BLOCK_FOLDED:case Et.BLOCK_LITERAL:return o||i?Yd(s.value,t):lm(s,t,n,r);case Et.QUOTE_DOUBLE:return qd(s.value,t);case Et.QUOTE_SINGLE:return Vb(s.value,t);case Et.PLAIN:return jhe(s,t,n,r);default:return null}};let f=c(a);if(f===null){const{defaultKeyType:p,defaultStringType:h}=t.options,m=o&&p||h;if(f=c(m),f===null)throw new Error(`Unsupported default string type ${m}`)}return f}function QA(e,t){const n=Object.assign({blockQuote:!0,commentString:Bhe,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function Hhe(e,t){var o,i,s,a;if(t.tag){const c=e.filter(f=>f.tag===t.tag);if(c.length>0)return(o=c.find(f=>f.format===t.format))!=null?o:c[0]}let n,r;if(fn(t)){r=t.value;const c=e.filter(f=>{var p;return(p=f.identify)==null?void 0:p.call(f,r)});n=(i=c.find(f=>f.format===t.format))!=null?i:c.find(f=>!f.format)}else r=t,n=e.find(c=>c.nodeClass&&r instanceof c.nodeClass);if(!n){const c=(a=(s=r==null?void 0:r.constructor)==null?void 0:s.name)!=null?a:typeof r;throw new Error(`Tag not resolved for ${c} value`)}return n}function Vhe(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(fn(e)||_n(e))&&e.anchor;i&&GA(i)&&(n.add(i),o.push(`&${i}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&o.push(r.directives.tagString(s)),o.join(" ")}function $a(e,t,n,r){var c,f;if(Pn(e))return e.toString(t,n,r);if(za(e)){if(t.doc.directives)return e.toString(t);if((c=t.resolvedAliases)!=null&&c.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=jn(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=Hhe(t.doc.schema.tags,i));const s=Vhe(i,o,t);s.length>0&&(t.indentAtStart=((f=t.indentAtStart)!=null?f:0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,n,r):fn(i)?hp(i,t,n,r):i.toString(t,n,r);return s?fn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
|
|
310
|
+
${t.indent}${a}`:a}function Uhe({key:e,value:t},n,r,o){const{allNullValues:i,doc:s,indent:a,indentStep:c,options:{commentString:f,indentSeq:p,simpleKeys:h}}=n;let m=jn(e)&&e.comment||null;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(_n(e)){const _="With simple keys, collection cannot be used as a key value";throw new Error(_)}}let v=!h&&(!e||m&&t==null&&!n.inFlow||_n(e)||(fn(e)?e.type===Et.BLOCK_FOLDED||e.type===Et.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(h||!i),indent:a+c});let C=!1,g=!1,x=$a(e,n,()=>C=!0,()=>g=!0);if(!v&&!n.inFlow&&x.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(n.inFlow){if(i||t==null)return C&&r&&r(),x===""?"?":v?`? ${x}`:x}else if(i&&!h||t==null&&v)return x=`? ${x}`,m&&!C?x+=sl(x,n.indent,f(m)):g&&o&&o(),x;C&&(m=null),v?(m&&(x+=sl(x,n.indent,f(m))),x=`? ${x}
|
|
311
|
+
${a}:`):(x=`${x}:`,m&&(x+=sl(x,n.indent,f(m))));let b="",P=null;if(jn(t)){if(t.spaceBefore&&(b=`
|
|
312
|
+
`),t.commentBefore){const _=f(t.commentBefore);b+=`
|
|
313
|
+
${ms(_,n.indent)}`}P=t.comment}else t&&typeof t=="object"&&(t=s.createNode(t));n.implicitKey=!1,!v&&!m&&fn(t)&&(n.indentAtStart=x.length+1),g=!1,!p&&c.length>=2&&!n.inFlow&&!v&&Ru(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substr(2));let w=!1;const E=$a(t,n,()=>w=!0,()=>g=!0);let I=" ";return b||m?E===""&&!n.inFlow?I=b===`
|
|
314
|
+
`?`
|
|
315
|
+
|
|
316
|
+
`:b:I=`${b}
|
|
317
|
+
${n.indent}`:!v&&_n(t)?(!(E[0]==="["||E[0]==="{")||E.includes(`
|
|
318
|
+
`))&&(I=`
|
|
319
|
+
${n.indent}`):(E===""||E[0]===`
|
|
320
|
+
`)&&(I=""),x+=I+E,n.inFlow?w&&r&&r():P&&!w?x+=sl(x,n.indent,f(P)):g&&o&&o(),x}function JA(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const u$="<<";function ZA(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&Whe(n))if(r=za(r)?r.resolve(e.doc):r,Ru(r))for(const o of r.items)Q0(e,t,o);else if(Array.isArray(r))for(const o of r)Q0(e,t,o);else Q0(e,t,r);else{const o=Vi(n,"",e);if(t instanceof Map)t.set(o,Vi(r,o,e));else if(t instanceof Set)t.add(o);else{const i=Ghe(n,o,e),s=Vi(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const Whe=e=>e===u$||fn(e)&&e.value===u$&&(!e.type||e.type===Et.PLAIN);function Q0(e,t,n){const r=e&&za(n)?n.resolve(e.doc):n;if(!ja(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[i,s]of o)t instanceof Map?t.has(i)||t.set(i,s):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function Ghe(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(jn(e)&&n&&n.doc){const r=QA(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),JA(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function nS(e,t,n){const r=Af(e,void 0,n),o=Af(t,void 0,n);return new xr(r,o)}class xr{constructor(t,n=null){Object.defineProperty(this,qo,{value:jA}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return jn(n)&&(n=n.clone(t)),jn(r)&&(r=r.clone(t)),new xr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return ZA(n,r,this)}toString(t,n,r){return t!=null&&t.doc?Uhe(this,t,n,r):JSON.stringify(this)}}function eF(e,t,n){var i;return(((i=t.inFlow)!=null?i:e.flow)?qhe:Khe)(e,t,n)}function Khe({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:c,options:{commentString:f}}=n,p=Object.assign({},n,{indent:i,type:null});let h=!1;const m=[];for(let C=0;C<t.length;++C){const g=t[C];let x=null;if(jn(g))!h&&g.spaceBefore&&m.push(""),ng(n,m,g.commentBefore,h),g.comment&&(x=g.comment);else if(Pn(g)){const P=jn(g.key)?g.key:null;P&&(!h&&P.spaceBefore&&m.push(""),ng(n,m,P.commentBefore,h))}h=!1;let b=$a(g,p,()=>x=null,()=>h=!0);x&&(b+=sl(b,i,f(x))),h&&x&&(h=!1),m.push(r+b)}let v;if(m.length===0)v=o.start+o.end;else{v=m[0];for(let C=1;C<m.length;++C){const g=m[C];v+=g?`
|
|
321
|
+
${c}${g}`:`
|
|
322
|
+
`}}return e?(v+=`
|
|
323
|
+
`+ms(f(e),c),a&&a()):h&&s&&s(),v}function qhe({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,options:{commentString:c}}=n;o+=a;const f=Object.assign({},n,{indent:o,inFlow:!0,type:null});let p=!1,h=0;const m=[];for(let x=0;x<t.length;++x){const b=t[x];let P=null;if(jn(b))b.spaceBefore&&m.push(""),ng(n,m,b.commentBefore,!1),b.comment&&(P=b.comment);else if(Pn(b)){const E=jn(b.key)?b.key:null;E&&(E.spaceBefore&&m.push(""),ng(n,m,E.commentBefore,!1),E.comment&&(p=!0));const I=jn(b.value)?b.value:null;I?(I.comment&&(P=I.comment),I.commentBefore&&(p=!0)):b.value==null&&E&&E.comment&&(P=E.comment)}P&&(p=!0);let w=$a(b,f,()=>P=null);x<t.length-1&&(w+=","),P&&(w+=sl(w,o,c(P))),!p&&(m.length>h||w.includes(`
|
|
324
|
+
`))&&(p=!0),m.push(w),h=m.length}let v;const{start:C,end:g}=r;if(m.length===0)v=C+g;else if(p||(p=m.reduce((b,P)=>b+P.length+2,2)>Iv.maxFlowStringSingleLineLength),p){v=C;for(const x of m)v+=x?`
|
|
325
|
+
${a}${s}${x}`:`
|
|
326
|
+
`;v+=`
|
|
327
|
+
${s}${g}`}else v=`${C} ${m.join(" ")} ${g}`;return e&&(v+=sl(v,c(e),s),i&&i()),v}function ng({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=ms(t(r),e);n.push(i.trimStart())}}function sa(e,t){const n=fn(t)?t.value:t;for(const r of e)if(Pn(r)&&(r.key===t||r.key===n||fn(r.key)&&r.key.value===n))return r}class Fo extends Iv{constructor(t){super(yl,t),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(t,n){var s;let r;Pn(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new xr(t,t==null?void 0:t.value):r=new xr(t.key,t.value);const o=sa(this.items,r.key),i=(s=this.schema)==null?void 0:s.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);fn(o.value)&&YA(r.value)?o.value.value=r.value:o.value=r.value}else if(i){const a=this.items.findIndex(c=>i(r,c)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){const n=sa(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var i;const r=sa(this.items,t),o=r==null?void 0:r.value;return(i=!n&&fn(o)?o.value:o)!=null?i:void 0}has(t){return!!sa(this.items,t)}set(t,n){this.add(new xr(t,n),!0)}toJSON(t,n,r){const o=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(o);for(const i of this.items)ZA(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Pn(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),eF(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}function Yhe(e,t,n){const{keepUndefined:r,replacer:o}=n,i=new Fo(e),s=(a,c)=>{if(typeof o=="function")c=o.call(t,a,c);else if(Array.isArray(o)&&!o.includes(a))return;(c!==void 0||r)&&i.items.push(nS(a,c,n))};if(t instanceof Map)for(const[a,c]of t)s(a,c);else if(t&&typeof t=="object")for(const a of Object.keys(t))s(a,t[a]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}const Ou={collection:"map",createNode:Yhe,default:!0,nodeClass:Fo,tag:"tag:yaml.org,2002:map",resolve(e,t){return ja(e)||t("Expected a mapping for this tag"),e}};class Ha extends Iv{constructor(t){super(Tu,t),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(t){this.items.push(t)}delete(t){const n=Dh(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Dh(t);if(typeof r!="number")return;const o=this.items[r];return!n&&fn(o)?o.value:o}has(t){const n=Dh(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Dh(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];fn(o)&&YA(n)?o.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let o=0;for(const i of this.items)r.push(Vi(i,String(o++),n));return r}toString(t,n,r){return t?eF(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}}function Dh(e){let t=fn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function Xhe(e,t,n){const{replacer:r}=n,o=new Ha(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let s of t){if(typeof r=="function"){const a=t instanceof Set?s:String(i++);s=r.call(t,a,s)}o.items.push(Af(s,void 0,n))}}return o}const Lu={collection:"seq",createNode:Xhe,default:!0,nodeClass:Ha,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Ru(e)||t("Expected a sequence for this tag"),e}},Tv={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),hp(e,t,n,r)}},Rv={identify:e=>e==null,createNode:()=>new Et(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Et(null),stringify:({source:e},t)=>typeof e=="string"&&Rv.test.test(e)?e:t.options.nullStr},rS={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Et(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&rS.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function vi({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const o=typeof r=="number"?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let s=i.indexOf(".");s<0&&(s=i.length,i+=".");let a=t-(i.length-s-1);for(;a-- >0;)i+="0"}return i}const tF={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:vi},nF={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():vi(e)}},rF={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Et(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:vi},Ov=e=>typeof e=="bigint"||Number.isInteger(e),oS=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function oF(e,t,n){const{value:r}=e;return Ov(r)&&r>=0?n+r.toString(t):vi(e)}const iF={identify:e=>Ov(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>oS(e,2,8,n),stringify:e=>oF(e,8,"0o")},sF={identify:Ov,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>oS(e,0,10,n),stringify:vi},lF={identify:e=>Ov(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>oS(e,2,16,n),stringify:e=>oF(e,16,"0x")},Qhe=[Ou,Lu,Tv,Rv,rS,iF,sF,lF,tF,nF,rF];function d$(e){return typeof e=="bigint"||Number.isInteger(e)}const Bh=({value:e})=>JSON.stringify(e),Jhe=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Bh},{identify:e=>e==null,createNode:()=>new Et(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Bh},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Bh},{identify:d$,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>d$(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Bh}],Zhe={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},eme=[Ou,Lu].concat(Jhe,Zhe),iS={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,i){const s=n;let a;if(typeof Buffer=="function")a=s instanceof Buffer?s.toString("base64"):Buffer.from(s.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let f=0;f<s.length;++f)c+=String.fromCharCode(s[f]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Et.BLOCK_LITERAL),t!==Et.QUOTE_DOUBLE){const c=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),f=Math.ceil(a.length/c),p=new Array(f);for(let h=0,m=0;h<f;++h,m+=c)p[h]=a.substr(m,c);a=p.join(t===Et.BLOCK_LITERAL?`
|
|
328
|
+
`:" ")}return hp({comment:e,type:t,value:a},r,o,i)}};function aF(e,t){var n;if(Ru(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!Pn(o)){if(ja(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const i=o.items[0]||new xr(new Et(null));if(o.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${o.commentBefore}
|
|
329
|
+
${i.key.commentBefore}`:o.commentBefore),o.comment){const s=(n=i.value)!=null?n:i.key;s.comment=s.comment?`${o.comment}
|
|
330
|
+
${s.comment}`:o.comment}o=i}e.items[r]=Pn(o)?o:new xr(o)}}else t("Expected a sequence for this tag");return e}function cF(e,t,n){const{replacer:r}=n,o=new Ha(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof r=="function"&&(s=r.call(t,String(i++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const f=Object.keys(s);if(f.length===1)a=f[0],c=s[a];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else a=s;o.items.push(nS(a,c,n))}return o}const sS={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:aF,createNode:cF};class Gc extends Ha{constructor(){super(),this.add=Fo.prototype.add.bind(this),this.delete=Fo.prototype.delete.bind(this),this.get=Fo.prototype.get.bind(this),this.has=Fo.prototype.has.bind(this),this.set=Fo.prototype.set.bind(this),this.tag=Gc.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const o of this.items){let i,s;if(Pn(o)?(i=Vi(o.key,"",n),s=Vi(o.value,i,n)):i=Vi(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}}Gc.tag="tag:yaml.org,2002:omap";const lS={collection:"seq",identify:e=>e instanceof Map,nodeClass:Gc,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=aF(e,t),r=[];for(const{key:o}of n.items)fn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new Gc,n)},createNode(e,t,n){const r=cF(e,t,n),o=new Gc;return o.items=r.items,o}};function uF({value:e,source:t},n){return t&&(e?dF:fF).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const dF={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Et(!0),stringify:uF},fF={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Et(!1),stringify:uF},tme={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:vi},nme={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():vi(e)}},rme={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Et(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:vi},mp=e=>typeof e=="bigint"||Number.isInteger(e);function Lv(e,t,n,{intAsBigInt:r}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return o==="-"?BigInt(-1)*s:s}const i=parseInt(e,n);return o==="-"?-1*i:i}function aS(e,t,n){const{value:r}=e;if(mp(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return vi(e)}const ome={identify:mp,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Lv(e,2,2,n),stringify:e=>aS(e,2,"0b")},ime={identify:mp,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Lv(e,1,8,n),stringify:e=>aS(e,8,"0")},sme={identify:mp,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Lv(e,0,10,n),stringify:vi},lme={identify:mp,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Lv(e,2,16,n),stringify:e=>aS(e,16,"0x")};class Kc extends Fo{constructor(t){super(t),this.tag=Kc.tag}add(t){let n;Pn(t)?n=t:typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new xr(t.key,null):n=new xr(t,null),sa(this.items,n.key)||this.items.push(n)}get(t,n){const r=sa(this.items,t);return!n&&Pn(r)?fn(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=sa(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new xr(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}}Kc.tag="tag:yaml.org,2002:set";const cS={collection:"map",identify:e=>e instanceof Set,nodeClass:Kc,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(ja(e)){if(e.hasAllNullValues(!0))return Object.assign(new Kc,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,o=new Kc(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof r=="function"&&(i=r.call(t,i,i)),o.items.push(nS(i,null,n));return o}};function uS(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=s=>t?BigInt(s):Number(s),i=r.replace(/_/g,"").split(":").reduce((s,a)=>s*o(60)+o(a),o(0));return n==="-"?o(-1)*i:i}function pF(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return vi(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(s=>s<10?"0"+String(s):String(s)).join(":").replace(/000000\d*$/,"")}const hF={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>uS(e,n),stringify:pF},mF={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>uS(e,!1),stringify:pF},Av={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Av.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,i,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let f=Date.UTC(n,r-1,o,i||0,s||0,a||0,c);const p=t[8];if(p&&p!=="Z"){let h=uS(p,!1);Math.abs(h)<30&&(h*=60),f-=6e4*h}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},f$=[Ou,Lu,Tv,Rv,dF,fF,ome,ime,sme,lme,tme,nme,rme,iS,lS,sS,cS,hF,mF,Av],p$=new Map([["core",Qhe],["failsafe",[Ou,Lu,Tv]],["json",eme],["yaml11",f$],["yaml-1.1",f$]]),h$={binary:iS,bool:rS,float:rF,floatExp:nF,floatNaN:tF,floatTime:mF,int:sF,intHex:lF,intOct:iF,intTime:hF,map:Ou,null:Rv,omap:lS,pairs:sS,seq:Lu,set:cS,timestamp:Av},ame={"tag:yaml.org,2002:binary":iS,"tag:yaml.org,2002:omap":lS,"tag:yaml.org,2002:pairs":sS,"tag:yaml.org,2002:set":cS,"tag:yaml.org,2002:timestamp":Av};function J0(e,t){let n=p$.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(p$.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${r} or define customTags array`)}if(Array.isArray(e))for(const r of e)n=n.concat(r);else typeof e=="function"&&(n=e(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const o=h$[r];if(o)return o;const i=Object.keys(h$).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}const cme=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Fv{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?J0(t,"compat"):t?J0(null,t):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=o?ame:{},this.tags=J0(n,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,yl,{value:Ou}),Object.defineProperty(this,Is,{value:Tv}),Object.defineProperty(this,Tu,{value:Lu}),this.sortMapEntries=typeof s=="function"?s:s===!0?cme:null}clone(){const t=Object.create(Fv.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function ume(e,t){var c;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=QA(e,t),{commentString:i}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=i(e.commentBefore);n.unshift(ms(f,""))}let s=!1,a=null;if(e.contents){if(jn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(ms(h,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const f=a?void 0:()=>s=!0;let p=$a(e.contents,o,()=>a=null,f);a&&(p+=sl(p,"",i(a))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push($a(e.contents,o));if((c=e.directives)!=null&&c.docEnd)if(e.comment){const f=i(e.comment);f.includes(`
|
|
331
|
+
`)?(n.push("..."),n.push(ms(f,""))):n.push(`... ${f}`)}else n.push("...");else{let f=e.comment;f&&s&&(f=f.replace(/^\n+/,"")),f&&((!s||a)&&n[n.length-1]!==""&&n.push(""),n.push(ms(i(f),"")))}return n.join(`
|
|
332
|
+
`)+`
|
|
333
|
+
`}function _d(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,i=r.length;o<i;++o){const s=r[o],a=_d(e,r,String(o),s);a===void 0?delete r[o]:a!==s&&(r[o]=a)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const i=r.get(o),s=_d(e,r,o,i);s===void 0?r.delete(o):s!==i&&r.set(o,s)}else if(r instanceof Set)for(const o of Array.from(r)){const i=_d(e,r,o,o);i===void 0?r.delete(o):i!==o&&(r.delete(o),r.add(i))}else for(const[o,i]of Object.entries(r)){const s=_d(e,r,o,i);s===void 0?delete r[o]:s!==i&&(r[o]=s)}return e.call(t,n,r)}class Au{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,qo,{value:jb});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:s}=i;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new $r({version:s}),this.setSchema(s,r),t===void 0?this.contents=null:this.contents=this.createNode(t,o,r)}clone(){const t=Object.create(Au.prototype,{[qo]:{value:jb}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=jn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){mc(this.contents)&&this.contents.add(t)}addIn(t,n){mc(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=KA(this);t.anchor=!n||r.has(n)?qA(n||"a",r):n}return new kv(t.anchor)}createNode(t,n,r){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const x=P=>typeof P=="number"||P instanceof String||P instanceof Number,b=n.filter(x).map(String);b.length>0&&(n=n.concat(b)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:f,tag:p}=r!=null?r:{},{onAnchor:h,setAnchors:m,sourceObjects:v}=Fhe(this,s||"a"),C={aliasDuplicateObjects:i!=null?i:!0,keepUndefined:c!=null?c:!1,onAnchor:h,onTagObj:f,replacer:o,schema:this.schema,sourceObjects:v},g=Af(t,p,C);return a&&_n(g)&&(g.flow=!0),m(),g}createPair(t,n,r={}){const o=this.createNode(t,null,r),i=this.createNode(n,null,r);return new xr(o,i)}delete(t){return mc(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Id(t)?this.contents==null?!1:(this.contents=null,!0):mc(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return _n(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Id(t)?!n&&fn(this.contents)?this.contents.value:this.contents:_n(this.contents)?this.contents.getIn(t,n):void 0}has(t){return _n(this.contents)?this.contents.has(t):!1}hasIn(t){return Id(t)?this.contents!==void 0:_n(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=tg(this.schema,[t],n):mc(this.contents)&&this.contents.set(t,n)}setIn(t,n){Id(t)?this.contents=n:this.contents==null?this.contents=tg(this.schema,Array.from(t),n):mc(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new $r({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new $r({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Fv(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:o,onAnchor:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100,stringify:$a},c=Vi(this.contents,n!=null?n:"",a);if(typeof i=="function")for(const{count:f,res:p}of a.anchors.values())i(p,f);return typeof s=="function"?_d(s,{"":c},"",c):c}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return ume(this,t)}}function mc(e){if(_n(e))return!0;throw new Error("Expected a YAML collection as document contents")}class dS extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class la extends dS{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class gF extends dS{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const rg=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>t.linePos(a));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const a=Math.min(i-39,s.length-79);s="…"+s.substring(a),i-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,i))){let a=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`…
|
|
334
|
+
`),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=n.linePos[1];c&&c.line===r&&c.col>o&&(a=Math.min(c.col-o,80-i));const f=" ".repeat(i)+"^".repeat(a);n.message+=`:
|
|
335
|
+
|
|
336
|
+
${s}
|
|
337
|
+
${f}
|
|
338
|
+
`}};function mu(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,f=s,p="",h="",m=!1,v=!1,C=!1,g=null,x=null,b=null,P=null,w=null;for(const _ of e)switch(C&&(_.type!=="space"&&_.type!=="newline"&&_.type!=="comma"&&i(_.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),C=!1),_.type){case"space":!t&&c&&n!=="doc-start"&&_.source[0]===" "&&i(_,"TAB_AS_INDENT","Tabs are not allowed as indentation"),f=!0;break;case"comment":{f||i(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const k=_.source.substring(1)||" ";p?p+=h+k:p=k,h="",c=!1;break}case"newline":c?p?p+=_.source:a=!0:h+=_.source,c=!0,m=!0,(g||x)&&(v=!0),f=!0;break;case"anchor":g&&i(_,"MULTIPLE_ANCHORS","A node can have at most one anchor"),_.source.endsWith(":")&&i(_.offset+_.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=_,w===null&&(w=_.offset),c=!1,f=!1,C=!0;break;case"tag":{x&&i(_,"MULTIPLE_TAGS","A node can have at most one tag"),x=_,w===null&&(w=_.offset),c=!1,f=!1,C=!0;break}case n:(g||x)&&i(_,"BAD_PROP_ORDER",`Anchors and tags must be after the ${_.source} indicator`),P&&i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.source} in ${t!=null?t:"collection"}`),P=_,c=!1,f=!1;break;case"comma":if(t){b&&i(_,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),b=_,c=!1,f=!1;break}default:i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.type} token`),c=!1,f=!1}const E=e[e.length-1],I=E?E.offset+E.source.length:o;return C&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:b,found:P,spaceBefore:a,comment:p,hasNewline:m,hasNewlineAfterProp:v,anchor:g,tag:x,end:I,start:w!=null?w:I}}function Ff(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
339
|
+
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Ff(t.key)||Ff(t.value))return!0}return!1;default:return!0}}function Ub(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Ff(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function vF(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,s)=>i===s||fn(i)&&fn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,n))}const m$="All mapping items must start at the same column";function dme({composeNode:e,composeEmptyNode:t},n,r,o){var a;const i=new Fo(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset;for(const c of r.items){const{start:f,key:p,sep:h,value:m}=c,v=mu(f,{indicator:"explicit-key-ind",next:p!=null?p:h==null?void 0:h[0],offset:s,onError:o,startOnNewline:!0}),C=!v.found;if(C){if(p&&(p.type==="block-seq"?o(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==r.indent&&o(s,"BAD_INDENT",m$)),!v.anchor&&!v.tag&&!h){v.comment&&(i.comment?i.comment+=`
|
|
340
|
+
`+v.comment:i.comment=v.comment);continue}(v.hasNewlineAfterProp||Ff(p))&&o(p!=null?p:f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((a=v.found)==null?void 0:a.indent)!==r.indent&&o(s,"BAD_INDENT",m$);const g=v.end,x=p?e(n,p,v,o):t(n,g,f,null,v,o);n.schema.compat&&Ub(r.indent,p,o),vF(n,i.items,x)&&o(g,"DUPLICATE_KEY","Map keys must be unique");const b=mu(h!=null?h:[],{indicator:"map-value-ind",next:m,offset:x.range[2],onError:o,startOnNewline:!p||p.type==="block-scalar"});if(s=b.end,b.found){C&&((m==null?void 0:m.type)==="block-map"&&!b.hasNewline&&o(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&v.start<b.found.offset-1024&&o(x.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const P=m?e(n,m,b,o):t(n,s,h,null,b,o);n.schema.compat&&Ub(r.indent,m,o),s=P.range[2];const w=new xr(x,P);n.options.keepSourceTokens&&(w.srcToken=c),i.items.push(w)}else{C&&o(x.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),b.comment&&(x.comment?x.comment+=`
|
|
341
|
+
`+b.comment:x.comment=b.comment);const P=new xr(x);n.options.keepSourceTokens&&(P.srcToken=c),i.items.push(P)}}return i.range=[r.offset,s,s],i}function fme({composeNode:e,composeEmptyNode:t},n,r,o){const i=new Ha(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset;for(const{start:a,value:c}of r.items){const f=mu(a,{indicator:"seq-item-ind",next:c,offset:s,onError:o,startOnNewline:!0});if(s=f.end,!f.found)if(f.anchor||f.tag||c)c&&c.type==="block-seq"?o(s,"BAD_INDENT","All sequence items must start at the same column"):o(s,"MISSING_CHAR","Sequence item without - indicator");else{f.comment&&(i.comment=f.comment);continue}const p=c?e(n,c,f,o):t(n,s,a,null,f,o);n.schema.compat&&Ub(r.indent,c,o),s=p.range[2],i.items.push(p)}return i.range=[r.offset,s,s],i}function gp(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:c,type:f}=a;switch(f){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=c.substring(1)||" ";o?o+=s+p:o=p,s="";break}case"newline":o&&(s+=c),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${f} at node end`)}t+=c.length}}return{comment:o,offset:t}}const Z0="Block collections are not allowed within flow collections",e1=e=>e&&(e.type==="block-map"||e.type==="block-seq");function pme({composeNode:e,composeEmptyNode:t},n,r,o){var C;const i=r.start.source==="{",s=i?"flow map":"flow sequence",a=i?new Fo(n.schema):new Ha(n.schema);a.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let f=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){const x=r.items[g],{start:b,key:P,sep:w,value:E}=x,I=mu(b,{flow:s,indicator:"explicit-key-ind",next:P!=null?P:w==null?void 0:w[0],offset:f,onError:o,startOnNewline:!1});if(!I.found){if(!I.anchor&&!I.tag&&!w&&!E){g===0&&I.comma?o(I.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):g<r.items.length-1&&o(I.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),I.comment&&(a.comment?a.comment+=`
|
|
342
|
+
`+I.comment:a.comment=I.comment),f=I.end;continue}!i&&n.options.strict&&Ff(P)&&o(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)I.comma&&o(I.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(I.comma||o(I.start,"MISSING_CHAR",`Missing , between ${s} items`),I.comment){let _="";e:for(const k of b)switch(k.type){case"comma":case"space":break;case"comment":_=k.source.substring(1);break e;default:break e}if(_){let k=a.items[a.items.length-1];Pn(k)&&(k=(C=k.value)!=null?C:k.key),k.comment?k.comment+=`
|
|
343
|
+
`+_:k.comment=_,I.comment=I.comment.substring(_.length+1)}}if(!i&&!w&&!I.found){const _=E?e(n,E,I,o):t(n,I.end,w,null,I,o);a.items.push(_),f=_.range[2],e1(E)&&o(_.range,"BLOCK_IN_FLOW",Z0)}else{const _=I.end,k=P?e(n,P,I,o):t(n,_,b,null,I,o);e1(P)&&o(k.range,"BLOCK_IN_FLOW",Z0);const $=mu(w!=null?w:[],{flow:s,indicator:"map-value-ind",next:E,offset:k.range[2],onError:o,startOnNewline:!1});if($.found){if(!i&&!I.found&&n.options.strict){if(w)for(const N of w){if(N===$.found)break;if(N.type==="newline"){o(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}I.start<$.found.offset-1024&&o($.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source&&E.source[0]===":"?o(E,"MISSING_CHAR",`Missing space after : in ${s}`):o($.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const R=E?e(n,E,$,o):$.found?t(n,$.end,w,null,$,o):null;R?e1(E)&&o(R.range,"BLOCK_IN_FLOW",Z0):$.comment&&(k.comment?k.comment+=`
|
|
344
|
+
`+$.comment:k.comment=$.comment);const O=new xr(k,R);if(n.options.keepSourceTokens&&(O.srcToken=x),i){const N=a;vF(n,N.items,k)&&o(_,"DUPLICATE_KEY","Map keys must be unique"),N.items.push(O)}else{const N=new Fo(n.schema);N.flow=!0,N.items.push(O),a.items.push(N)}f=R?R.range[2]:$.end}}const p=i?"}":"]",[h,...m]=r.end;let v=f;if(h&&h.source===p)v=h.offset+h.source.length;else{const g=s[0].toUpperCase()+s.substring(1),x=c?`${g} must end with a ${p}`:`${g} in block collection must be sufficiently indented and end with a ${p}`;o(f,c?"MISSING_CHAR":"BAD_INDENT",x),h&&h.source.length!==1&&m.unshift(h)}if(m.length>0){const g=gp(m,v,n.options.strict,o);g.comment&&(a.comment?a.comment+=`
|
|
345
|
+
`+g.comment:a.comment=g.comment),a.range=[r.offset,v,g.offset]}else a.range=[r.offset,v,v];return a}function hme(e,t,n,r,o){let i;switch(n.type){case"block-map":{i=dme(e,t,n,o);break}case"block-seq":{i=fme(e,t,n,o);break}case"flow-collection":{i=pme(e,t,n,o);break}}if(!r)return i;const s=t.directives.tagName(r.source,m=>o(r,"TAG_RESOLVE_FAILED",m));if(!s)return i;const a=i.constructor;if(s==="!"||s===a.tagName)return i.tag=a.tagName,i;const c=ja(i)?"map":"seq";let f=t.schema.tags.find(m=>m.collection===c&&m.tag===s);if(!f){const m=t.schema.knownTags[s];if(m&&m.collection===c)t.schema.tags.push(Object.assign({},m,{default:!1})),f=m;else return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),i.tag=s,i}const p=f.resolve(i,m=>o(r,"TAG_RESOLVE_FAILED",m),t.options),h=jn(p)?p:new Et(p);return h.range=i.range,h.tag=s,f!=null&&f.format&&(h.format=f.format),h}function yF(e,t,n){const r=e.offset,o=mme(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?Et.BLOCK_FOLDED:Et.BLOCK_LITERAL,s=e.source?gme(e.source):[];let a=s.length;for(let g=s.length-1;g>=0;--g){const x=s[g][1];if(x===""||x==="\r")a=g;else break}if(a===0){const g=o.chomp==="+"&&s.length>0?`
|
|
346
|
+
`.repeat(Math.max(1,s.length-1)):"";let x=r+o.length;return e.source&&(x+=e.source.length),{value:g,type:i,comment:o.comment,range:[r,x,x]}}let c=e.indent+o.indent,f=e.offset+o.length,p=0;for(let g=0;g<a;++g){const[x,b]=s[g];if(b===""||b==="\r")o.indent===0&&x.length>c&&(c=x.length);else{if(x.length<c){const P="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(f+x.length,"MISSING_CHAR",P)}o.indent===0&&(c=x.length),p=g;break}f+=x.length+b.length+1}for(let g=s.length-1;g>=a;--g)s[g][0].length>c&&(a=g+1);let h="",m="",v=!1;for(let g=0;g<p;++g)h+=s[g][0].slice(c)+`
|
|
347
|
+
`;for(let g=p;g<a;++g){let[x,b]=s[g];f+=x.length+b.length+1;const P=b[b.length-1]==="\r";if(P&&(b=b.slice(0,-1)),b&&x.length<c){const E=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(f-b.length-(P?2:1),"BAD_INDENT",E),x=""}i===Et.BLOCK_LITERAL?(h+=m+x.slice(c)+b,m=`
|
|
348
|
+
`):x.length>c||b[0]===" "?(m===" "?m=`
|
|
349
|
+
`:!v&&m===`
|
|
350
|
+
`&&(m=`
|
|
351
|
+
|
|
352
|
+
`),h+=m+x.slice(c)+b,m=`
|
|
353
|
+
`,v=!0):b===""?m===`
|
|
354
|
+
`?h+=`
|
|
355
|
+
`:m=`
|
|
356
|
+
`:(h+=m+b,m=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let g=a;g<s.length;++g)h+=`
|
|
357
|
+
`+s[g][0].slice(c);h[h.length-1]!==`
|
|
358
|
+
`&&(h+=`
|
|
359
|
+
`);break;default:h+=`
|
|
360
|
+
`}const C=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,C,C]}}function mme({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let s=0,a="",c=-1;for(let m=1;m<o.length;++m){const v=o[m];if(!a&&(v==="-"||v==="+"))a=v;else{const C=Number(v);!s&&C?s=C:c===-1&&(c=e+m)}}c!==-1&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let f=!1,p="",h=o.length;for(let m=1;m<t.length;++m){const v=t[m];switch(v.type){case"space":f=!0;case"newline":h+=v.source.length;break;case"comment":n&&!f&&r(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=v.source.length,p=v.source.substring(1);break;case"error":r(v,"UNEXPECTED_TOKEN",v.message),h+=v.source.length;break;default:{const C=`Unexpected token in block scalar header: ${v.type}`;r(v,"UNEXPECTED_TOKEN",C);const g=v.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:i,indent:s,chomp:a,comment:p,length:h}}function gme(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let s=1;s<t.length;s+=2)i.push([t[s],t[s+1]]);return i}function bF(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,c;const f=(m,v,C)=>n(r+m,v,C);switch(o){case"scalar":a=Et.PLAIN,c=vme(i,f);break;case"single-quoted-scalar":a=Et.QUOTE_SINGLE,c=yme(i,f);break;case"double-quoted-scalar":a=Et.QUOTE_DOUBLE,c=bme(i,f);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const p=r+i.length,h=gp(s,p,t,n);return{value:c,type:a,comment:h.comment,range:[r,p,h.offset]}}function vme(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),wF(e)}function yme(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),wF(e.slice(1,-1)).replace(/''/g,"'")}function wF(e){var c;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
361
|
+
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
362
|
+
`,"sy")}catch(f){t=new RegExp("(.*?)[ \\t]*\\r?\\n","sy"),n=new RegExp("[ \\t]*(.*?)[ \\t]*\\r?\\n","sy")}let r=t.exec(e);if(!r)return e;let o=r[1],i=" ",s=t.lastIndex;for(n.lastIndex=s;r=n.exec(e);)r[1]===""?i===`
|
|
363
|
+
`?o+=i:i=`
|
|
364
|
+
`:(o+=i+r[1],i=" "),s=n.lastIndex;const a=new RegExp("[ \\t]*(.*)","sy");return a.lastIndex=s,r=a.exec(e),o+i+((c=r==null?void 0:r[1])!=null?c:"")}function bme(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
|
|
365
|
+
`))if(o===`
|
|
366
|
+
`){const{fold:i,offset:s}=wme(e,r);n+=i,r=s}else if(o==="\\"){let i=e[++r];const s=Cme[i];if(s)n+=s;else if(i===`
|
|
367
|
+
`)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
|
|
368
|
+
`)for(i=e[++r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const a={x:2,u:4,U:8}[i];n+=xme(e,r+1,a,t),r+=a}else{const a=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(o===" "||o===" "){const i=r;let s=e[r+1];for(;s===" "||s===" ";)s=e[++r+1];s!==`
|
|
369
|
+
`&&!(s==="\r"&&e[r+2]===`
|
|
370
|
+
`)&&(n+=r>i?e.slice(i,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function wme(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|
371
|
+
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|
372
|
+
`);)r===`
|
|
373
|
+
`&&(n+=`
|
|
374
|
+
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Cme={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
375
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function xme(e,t,n,r){const o=e.substr(t,n),s=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const a=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}function CF(e,t,n,r){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?yF(t,e.options.strict,r):bF(t,e.options.strict,r),c=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null,f=n&&c?Sme(e.schema,o,c,n,r):t.type==="scalar"?Eme(e,o,t,r):e.schema[Is];let p;try{const h=f.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);p=fn(h)?h:new Et(h)}catch(h){const m=h instanceof Error?h.message:String(h);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),p=new Et(o)}return p.range=a,p.source=o,i&&(p.type=i),c&&(p.tag=c),f.format&&(p.format=f.format),s&&(p.comment=s),p}function Sme(e,t,n,r,o){var a;if(n==="!")return e[Is];const i=[];for(const c of e.tags)if(!c.collection&&c.tag===n)if(c.default&&c.test)i.push(c);else return c;for(const c of i)if((a=c.test)!=null&&a.test(t))return c;const s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Is])}function Eme({directives:e,schema:t},n,r,o){var s;const i=t.tags.find(a=>{var c;return a.default&&((c=a.test)==null?void 0:c.test(n))})||t[Is];if(t.compat){const a=(s=t.compat.find(c=>{var f;return c.default&&((f=c.test)==null?void 0:f.test(n))}))!=null?s:t[Is];if(i.tag!==a.tag){const c=e.tagString(i.tag),f=e.tagString(a.tag),p=`Value may be parsed as either ${c} or ${f}`;o(r,"TAG_RESOLVE_FAILED",p,!0)}}return i}function Pme(e,t,n){if(t){n===null&&(n=t.length);for(let r=n-1;r>=0;--r){let o=t[r];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++r];(o==null?void 0:o.type)==="space";)e+=o.source.length,o=t[++r];break}}return e}const kme={composeNode:xF,composeEmptyNode:fS};function xF(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let c,f=!0;switch(t.type){case"alias":c=Ime(e,t,r),(s||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=CF(e,t,a,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=hme(kme,e,t,a,r),s&&(c.anchor=s.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",p),c=fS(e,t.offset,void 0,null,n,r),f=!1}}return s&&c.anchor===""&&r(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?c.comment=i:c.commentBefore=i),e.options.keepSourceTokens&&f&&(c.srcToken=t),c}function fS(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a},c){const f={type:"scalar",offset:Pme(t,n,r),indent:-1,source:""},p=CF(e,f,a,c);return s&&(p.anchor=s.source.substring(1),p.anchor===""&&c(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),i&&(p.comment=i),p}function Ime({options:e},{offset:t,source:n,end:r},o){const i=new kv(n.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+n.length,a=gp(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function _me(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({_directives:t},e),c=new Au(void 0,a),f={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=mu(r,{indicator:"doc-start",next:o!=null?o:i==null?void 0:i[0],offset:n,onError:s,startOnNewline:!0});p.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!p.hasNewline&&s(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?xF(f,o,p,s):fS(f,p.end,r,null,p,s);const h=c.contents.range[2],m=gp(i,h,!1,s);return m.comment&&(c.comment=m.comment),c.range=[n,h,m.offset],c}function gd(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function g$(e){var o;let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const s=e[i];switch(s[0]){case"#":t+=(t===""?"":r?`
|
|
376
|
+
|
|
377
|
+
`:`
|
|
378
|
+
`)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":((o=e[i+1])==null?void 0:o[0])!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class pS{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const s=gd(n);i?this.warnings.push(new gF(s,r,o)):this.errors.push(new la(s,r,o))},this.directives=new $r({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=g$(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
379
|
+
${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if(_n(i)&&!i.flow&&i.items.length>0){let s=i.items[0];Pn(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
|
|
380
|
+
${a}`:r}else{const s=i.commentBefore;i.commentBefore=s?`${r}
|
|
381
|
+
${s}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:g$(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*this.next(o);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const i=gd(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=_me(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new la(gd(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new la(gd(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=gp(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
|
|
382
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new la(gd(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),o=new Au(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}function $me(e,t=!0,n){if(e){const r=(o,i,s)=>{const a=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(n)n(a,i,s);else throw new la([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return bF(e,t,r);case"block-scalar":return yF(e,t,r)}}return null}function Mme(e,t){var f;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=hp({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=(f=t.end)!=null?f:[{type:"newline",offset:-1,indent:r,source:`
|
|
383
|
+
`}];switch(a[0]){case"|":case">":{const p=a.indexOf(`
|
|
384
|
+
`),h=a.substring(0,p),m=a.substring(p+1)+`
|
|
385
|
+
`,v=[{type:"block-scalar-header",offset:i,indent:r,source:h}];return SF(v,c)||v.push({type:"newline",offset:-1,indent:r,source:`
|
|
386
|
+
`}),{type:"block-scalar",offset:i,indent:r,props:v,source:m}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:a,end:c};default:return{type:"scalar",offset:i,indent:r,source:a,end:c}}}function Tme(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=n,a="indent"in e?e.indent:null;if(r&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const f=e.props[0];if(f.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=f.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const c=hp({type:s,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":Rme(e,c);break;case'"':t1(e,c,"double-quoted-scalar");break;case"'":t1(e,c,"single-quoted-scalar");break;default:t1(e,c,"scalar")}}function Rme(e,t){const n=t.indexOf(`
|
|
387
|
+
`),r=t.substring(0,n),o=t.substring(n+1)+`
|
|
388
|
+
`;if(e.type==="block-scalar"){const i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=r,e.source=o}else{const{offset:i}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:s,source:r}];SF(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
|
|
389
|
+
`});for(const c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:o})}}function SF(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function t1(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(const i of r)i.offset+=o;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
|
|
390
|
+
`};delete e.items,Object.assign(e,{type:n,source:t,end:[o]});break}default:{const r="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:n,indent:r,source:t,end:o})}}}const Ome=e=>"type"in e?og(e):am(e);function og(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=og(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=am(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=am(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=am(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function am({start:e,key:t,sep:n,value:r}){let o="";for(const i of e)o+=i.source;if(t&&(o+=og(t)),n)for(const i of n)o+=i.source;return r&&(o+=og(r)),o}const Wb=Symbol("break visit"),Lme=Symbol("skip children"),EF=Symbol("remove item");function Ma(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),PF(Object.freeze([]),e,t)}Ma.BREAK=Wb;Ma.SKIP=Lme;Ma.REMOVE=EF;Ma.itemAtPath=(e,t)=>{let n=e;for(const[r,o]of t){const i=n==null?void 0:n[r];if(i&&"items"in i)n=i.items[o];else return}return n};Ma.parentCollection=(e,t)=>{const n=Ma.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n==null?void 0:n[r];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function PF(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let s=0;s<i.items.length;++s){const a=PF(Object.freeze(e.concat([[o,s]])),i.items[s],n);if(typeof a=="number")s=a-1;else{if(a===Wb)return Wb;a===EF&&(i.items.splice(s,1),s-=1)}}typeof r=="function"&&o==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const Nv="\uFEFF",Dv="",Bv="",Nf="",Ame=e=>!!e&&"items"in e,Fme=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function Nme(e){switch(e){case Nv:return"<BOM>";case Dv:return"<DOC>";case Bv:return"<FLOW_END>";case Nf:return"<SCALAR>";default:return JSON.stringify(e)}}function kF(e){switch(e){case Nv:return"byte-order-mark";case Dv:return"doc-mode";case Bv:return"flow-error-end";case Nf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
391
|
+
`:case`\r
|
|
392
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const Dme=Object.freeze(Object.defineProperty({__proto__:null,BOM:Nv,DOCUMENT:Dv,FLOW_END:Bv,SCALAR:Nf,createScalarToken:Mme,isCollection:Ame,isScalar:Fme,prettyToken:Nme,resolveAsScalar:$me,setScalarValue:Tme,stringify:Ome,tokenType:kF,visit:Ma},Symbol.toStringTag,{value:"Module"}));function To(e){switch(e){case void 0:case" ":case`
|
|
393
|
+
`:case"\r":case" ":return!0;default:return!1}}const v$="0123456789ABCDEFabcdef".split(""),Bme="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),n1=",[]{}".split(""),zme=` ,[]{}
|
|
394
|
+
\r `.split(""),r1=e=>!e||zme.includes(e);class IF{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){var o;t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let r=(o=this.next)!=null?o:"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
|
395
|
+
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
396
|
+
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const o=this.buffer[r+t+1];if(o===`
|
|
397
|
+
`||!o&&!this.atEnd)return t+r+1}return n===`
|
|
398
|
+
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&To(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
399
|
+
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Nv&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length;const r=t.indexOf("#");if(r!==-1){const i=t[r-1];(i===" "||i===" ")&&(n=r-1)}for(;;){const i=t[n-1];if(i===" "||i===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Dv,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&To(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&To(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!To(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&To(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(r1),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&o[0]!=="#"||r===0&&(o.startsWith("---")||o.startsWith("..."))&&To(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Bv,yield*this.parseLineStart();let i=0;for(;o[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),o[i]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(r1),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||To(s)||s===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
|
|
400
|
+
`,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
|
|
401
|
+
`,i)}o!==-1&&(n=o-(r[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>To(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let o=this.pos;r=this.buffer[o];++o)switch(r){case" ":n+=1;break;case`
|
|
402
|
+
`:t=o,n=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
|
|
403
|
+
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(`
|
|
404
|
+
`,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let o=t-1,i=this.buffer[o];i==="\r"&&(i=this.buffer[--o]);const s=o;for(;i===" "||i===" ";)i=this.buffer[--o];if(i===`
|
|
405
|
+
`&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield Nf,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,o;for(;o=this.buffer[++r];)if(o===":"){const i=this.buffer[r+1];if(To(i)||t&&i===",")break;n=r}else if(To(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
|
|
406
|
+
`?(r+=1,o=`
|
|
407
|
+
`,i=this.buffer[r+1]):n=r),i==="#"||t&&n1.includes(i))break;if(o===`
|
|
408
|
+
`){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&n1.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Nf,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(r1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(To(n)||t&&n1.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!To(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(Bme.includes(n))n=this.buffer[++t];else if(n==="%"&&v$.includes(this.buffer[t+1])&&v$.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
|
409
|
+
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
410
|
+
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class _F{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function oi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function y$(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function $F(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function zh(e){var t;switch(e.type){case"document":return e.start;case"block-map":{const n=e.items[e.items.length-1];return(t=n.sep)!=null?t:n.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function gc(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function b$(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!oi(t.start,"explicit-key-ind")&&!oi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,$F(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class hS{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new IF,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=kF(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t!=null?t:this.stack.pop();if(n)if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&b$(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const o=r.items[r.items.length-1];if(o.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!oi(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=r.items[r.items.length-1];o.value?r.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=r.items[r.items.length-1];!o||o.value?r.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&y$(o.start)===-1&&(n.indent===0||o.start.every(i=>i.type!=="comment"||i.indent<n.indent))&&(r.type==="document"?r.end=o.start:r.items.push({start:o.start}),n.items.splice(-1,1))}}else{const r="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:r}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{y$(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=zh(this.peek(2)),r=gc(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
411
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
412
|
+
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],i=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const o=!this.onKeyLine&&this.indent===t.indent&&n.sep;let i=[];if(o&&n.sep&&!n.value){const s=[];for(let a=0;a<n.sep.length;++a){const c=n.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>t.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(i=n.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!oi(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(i.push(this.sourceToken),t.items.push({start:i})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(oi(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(oi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if($F(n.key)&&!oi(n.sep,"newline")){const s=gc(n.start),a=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else i.length>0?n.sep=n.sep.concat(i,this.sourceToken):n.sep.push(this.sourceToken);else if(oi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=gc(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):oi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);o||n.value?(t.items.push({start:i,key:s,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(s):(Object.assign(n,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){o&&s.type!=="block-seq"&&oi(n.start,"explicit-key-ind")&&t.items.push({start:i}),this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],i=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||oi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=zh(r),i=gc(o);b$(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
413
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
414
|
+
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=zh(t),r=gc(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r}]}}case"map-value-ind":{this.onKeyLine=!0;const n=zh(t),r=gc(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function MF(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new _F||null,prettyErrors:t}}function jme(e,t={}){const{lineCounter:n,prettyErrors:r}=MF(t),o=new hS(n==null?void 0:n.addNewLine),i=new pS(t),s=Array.from(i.compose(o.parse(e)));if(r&&n)for(const a of s)a.errors.forEach(rg(e,n)),a.warnings.forEach(rg(e,n));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function TF(e,t={}){const{lineCounter:n,prettyErrors:r}=MF(t),o=new hS(n==null?void 0:n.addNewLine),i=new pS(t);let s=null;for(const a of i.compose(o.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new la(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(rg(e,n)),s.warnings.forEach(rg(e,n))),s}function Hme(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=TF(e,n);if(!o)return null;if(o.warnings.forEach(i=>JA(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function Vme(e,t,n){var o;let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){const{keepUndefined:i}=(o=n!=null?n:t)!=null?o:{};if(!i)return}return new Au(e,r,n).toString(n)}const w$=Object.freeze(Object.defineProperty({__proto__:null,Alias:kv,CST:Dme,Composer:pS,Document:Au,Lexer:IF,LineCounter:_F,Pair:xr,Parser:hS,Scalar:Et,Schema:Fv,YAMLError:dS,YAMLMap:Fo,YAMLParseError:la,YAMLSeq:Ha,YAMLWarning:gF,isAlias:za,isCollection:_n,isDocument:pp,isMap:ja,isNode:jn,isPair:Pn,isScalar:fn,isSeq:Ru,parse:Hme,parseAllDocuments:jme,parseDocument:TF,stringify:Vme,visit:_l,visitAsync:Pv},Symbol.toStringTag,{value:"Module"}));function Ume({file:e,defaultPerms:t}){var E;const w=e,{parent:n,children:r,isRoot:o}=w,i=un(w,["parent","children","isRoot"]),[s,a]=u.useState(i);u.useEffect(()=>{a(Object.assign({can_see:null,can_read:null,can_upload:null},i))},[e]);const{source:c}=e,f=e.type==="folder",p=c!==void 0,h=p&&f,m=u.useMemo(()=>{const _={};let k=n;for(;k;)Sn.defaults(_,k),k=k.parent;return Sn.defaults(_,t)},[n]),v=((E=s.can_read)!=null?E:m.can_read)===!0,C=p&&Boolean(s.ctime),{data:g,element:x}=ji("get_accounts");if(x||!g)return x;const b=g.list;return u.createElement(tp,{values:s,set(_,k){a(Ht(Ae({},s),{[k]:_}))},addToBar:[u.createElement(Qn,{sx:{ml:2},onClick(){$n.selectedFiles=[]}},"Close")],onError:wr,save:{sx:sx(!ix(s,e)),onClick(){return ft(this,null,function*(){const _=Ae({},s);_.masks||(_.masks=null),yield Gt("set_vfs",{uri:s.id,props:_}),_.name!==e.name&&($n.selectedFiles[0].id=e.id.slice(0,-e.name.length)+_.name),vp()})}},fields:[o?u.createElement(qi,{severity:"info"},"This is Home, the root of your shared files. Options set here will be applied to all files."):{k:"name",required:!0,helperText:c&&"You can decide a name that's different from the one on your disk"},{k:"source",label:"Source on disk",comp:Zm,files:!f,folders:f,multiline:!0,placeholder:"Not on disk, this is a virtual folder"},P("can_read","Who can download","Note: who can't download won't see it in the list"),v&&P("can_see","Who can see","You can hide and keep it downloadable if you have a direct link"),f&&P("can_upload","Who can upload",p?"":"Works only on folders with source"),p&&!h&&{k:"size",comp:B0,toField:Eu},C&&{k:"ctime",comp:B0,lg:6,label:"Created",toField:C$},C&&{k:"mtime",comp:B0,lg:6,label:"Modified",toField:C$},e.website&&{k:"default",comp:pu,label:"Serve index.html",toField:Boolean,fromField:_=>_?"index.html":null,helperText:ia("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")},f&&{k:"masks",multiline:!0,xl:!0,toField:w$.stringify,fromField:_=>_?w$.parse(_):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Special field, leave empty unless you know what you are doing. YAML syntax."}]});function P(_,k,$="",R={}){return Ae({k:_,xl:6,comp:Wme,parent:n,accounts:b,label:k,inherit:m[_],helperText:$},R)}}function C$(e){return e?new Date(e).toLocaleString():"-"}function Wme(a){var c=a,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:i}=c,s=un(c,["value","onChange","parent","inherit","accounts","helperText"]);const f=u.useMemo(()=>Sa([{value:null,label:(n?"Same as parent: ":"Default: ")+x$(r)},{value:!0},{value:!1},{value:"*"},{value:[],label:"Select accounts"}].map(h=>(h.value===e||h.value!==r)&&Ae({label:Sn.capitalize(x$(h.value))},h))),[r,n,e]),p=Array.isArray(e);return u.createElement("div",{},u.createElement(Pu,Ht(Ae({},s),{helperText:!p&&i,value:p?[]:e,onChange(h,{was:m,event:v}){t(h,{was:m,event:v})},options:f})),p&&u.createElement(ex,{label:o!=null&&o.length?"Choose accounts for "+s.label:"You didn't create any account yet",value:e,onChange:t,helperText:i,options:(o==null?void 0:o.map(h=>({value:h.username,label:h.username})))||[]}))}function x$(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):"*UNKNOWN*"+JSON.stringify(e)}let Gb;function Gme(){var p,h,m;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n}=Fl(),{data:r,reload:o,element:i}=ji("get_vfs");u.useMemo(()=>t||o(),[t,o]),u.useEffect(()=>{if($n.vfs=void 0,!r)return;e.clear();const{root:v}=r;if(!v)return;g(v),v.isRoot=!0,$n.vfs=v;const C=Gb||$n.selectedFiles.map(x=>x.id);Gb=void 0,$n.selectedFiles=Sa(C.map(x=>e.get(x)));function g(x,b="",P=void 0){if(x.parent=P,x.id=jre(b,x.name)||"/",e.set(x.id,x),!!x.children)for(const w of x.children)g(w,(b&&x.id)+"/",x)}},[r,e]);const[s]=rp(window.location.host==="localhost"&&"get_status"),a=u.useMemo(()=>{var v,C;return typeof s=="object"&&Sn.sortBy(Sa(Object.values(((v=s.urls)==null?void 0:v.https)||((C=s.urls)==null?void 0:C.http)||{}).map(g=>typeof g=="string"&&g)),g=>g.includes("["))},[s]);if(i)return e.clear(),i;const f=!((h=(p=r==null?void 0:r.root)==null?void 0:p.children)!=null&&h.length)&&!((m=r==null?void 0:r.root)!=null&&m.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:a&&{severity:"info",children:["Your shared files can be browsed from ",are(" or ",a.slice(0,3).map(v=>u.createElement(Sf,{href:v},v)))]};return u.createElement(Hn,{container:!0,rowSpacing:1,maxWidth:"80em",columnSpacing:2},f&&u.createElement(Hn,{item:!0,mb:2,xs:12},u.createElement(qi,f)),u.createElement(Hn,{item:!0,sm:6,lg:5},u.createElement(br,{variant:"h6",mb:1},"Virtual File System"),u.createElement(The),t&&u.createElement(ihe,{id2node:e})),u.createElement(Hn,{item:!0,sm:6,lg:7,maxWidth:"100%"},n.length===0?null:n.length===1?u.createElement(Ume,{defaultPerms:r==null?void 0:r.defaultPerms,file:n[0]}):u.createElement(Qf,{},n.length+" selected",n.map(v=>u.createElement(_C,{key:v.name},u.createElement(Jf,{primary:v.name,secondary:v.source}))))))}function vp(e){Gb=e,$n.vfs=void 0}var mS={},Kme=pt;Object.defineProperty(mS,"__esModule",{value:!0});var RF=mS.default=void 0,qme=Kme(vt()),Yme=ht(),Xme=(0,qme.default)((0,Yme.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"Group");RF=mS.default=Xme;var gS={},Qme=pt;Object.defineProperty(gS,"__esModule",{value:!0});var OF=gS.default=void 0,Jme=Qme(vt()),Zme=ht(),ege=(0,Jme.default)((0,Zme.jsx)("path",{d:"M17 10.43V2H7v8.43c0 .35.18.68.49.86l4.18 2.51-.99 2.34-3.41.29 2.59 2.24L9.07 22 12 20.23 14.93 22l-.78-3.33 2.59-2.24-3.41-.29-.99-2.34 4.18-2.51c.3-.18.48-.5.48-.86zm-4 1.8-1 .6-1-.6V3h2v9.23z"}),"MilitaryTech");OF=gS.default=ege;var vS={},tge=pt;Object.defineProperty(vS,"__esModule",{value:!0});var LF=vS.default=void 0,nge=tge(vt()),rge=ht(),oge=(0,nge.default)((0,rge.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");LF=vS.default=oge;var yS={},ige=pt;Object.defineProperty(yS,"__esModule",{value:!0});var AF=yS.default=void 0,sge=ige(vt()),lge=ht(),age=(0,sge.default)((0,lge.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"PersonAdd");AF=yS.default=age;function cge({account:e,done:t,groups:n,close:r}){const[o,i]=u.useState(e),[s,a]=u.useState([]);u.useEffect(()=>{var m,v;i(e),a(n.filter(C=>C!==e.username)),(v=(m=p.current)==null?void 0:m.querySelector("input"))==null||v.focus()},[JSON.stringify(e)]);const c=!e.username,f=!o.hasPassword,p=u.useRef();return u.createElement(tp,{formRef:p,values:o,set(m,v){i(Ht(Ae({},o),{[v]:m}))},addToBar:[u.createElement(Qn,{onClick:r,sx:{ml:2}},"Close"),u.createElement(yt,{flex:1}),FF(o,{fontSize:"large",sx:{p:1}})],fields:[{k:"username",label:f?"Group name":void 0,autoComplete:"off",required:!0,xl:f?12:4,getError:m=>m!==e.username&&Gt("get_account",{username:m}).then(v=>v.username===e.username?"usernames are case-insensitive":"already used",()=>!1)},!f&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:c,label:c?"Password":"Change password"},!f&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(m,{values:v})=>(m||"")!==(v.password||"")&&"Enter same password"},{k:"ignore_limits",comp:pu,xl:6,helperText:o.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},Ae({k:"admin",comp:pu,xl:6,fromField:m=>m||null,label:"Permission to access Admin-panel",helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),{k:"belongs",comp:ex,label:"Inherits from",options:s,helperText:"Specify groups to inherit permissions from."+(s.length?"":" There are no groups available, create one first.")},{k:"redirect",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:wr,save:{sx:sx(!ix(o,e)),onClick(){return ft(this,null,function*(){const P=o,{password:m="",password2:v,adminActualAccess:C}=P,g=un(P,["password","password2","adminActualAccess"]),{username:x}=o;if(c){const w=yield Gt("add_account",g);if(m)try{yield S$(x,m)}catch(E){throw Gt("del_account",{username:x}).then(),E}return t(w.username),wr("Account created","success")}const b=yield Gt("set_account",{username:e.username,changes:g});return m&&(yield S$(x,m)),t(b.username),wr("Account modified","success")})}}})}function S$(e,t){return ft(this,null,function*(){const n=new pa.SRPRoutines(new pa.SRPParameters),r=yield pa.createVerifierAndSalt(n,e,t);return Gt("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==406)throw o;return Gt("change_password_others",{username:e,newPassword:t})})})}function uge(){const{data:e,reload:t,element:n}=ji("get_accounts"),[r,o]=u.useState([]),i=Array.isArray(r);if(u.useEffect(()=>{Array.isArray(e==null?void 0:e.list)&&i&&o(r.filter(c=>e.list.find(f=>(f==null?void 0:f.username)===c)))},[e]),n)return n;const{list:s}=e;return u.createElement(Hn,{container:!0,maxWidth:"80em"},u.createElement(Hn,{item:!0,xs:12},u.createElement(yt,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(zA,{variant:"contained",startIcon:u.createElement(AF),items:[{children:"user",onClick:()=>o("new-user")},{children:"group",onClick:()=>o("new-group")}]},"Add"),u.createElement(Qn,{disabled:!i||!r.length,startIcon:u.createElement(Fa),onClick(){return ft(this,null,function*(){if(!i||!(yield vs(`You are going to delete ${r.length} account(s)`)))return;const c=Sa(yield Promise.all(r.map(f=>Gt("del_account",{username:f}).then(()=>null,()=>f))));if(c.length)return wr(c.length===r.length?"Request failed":dge("Some accounts were not deleted",c),"error");t()})}},"Remove"),u.createElement(Qn,{onClick:t,startIcon:u.createElement(np)},"Reload"),s.length>0&&u.createElement(br,{p:1},`${s.length} account(s)`))),u.createElement(Hn,{item:!0,md:5},!s.length&&u.createElement(qi,{severity:"info"},ia`To access administration _remotely_ you will need to create a user account with admin permission`),u.createElement(tL,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:i?r:[],onNodeSelect(c,f){o(f)}},s.map(c=>{var f,p;return u.createElement(Ib,{key:c.username,nodeId:c.username,label:u.createElement(yt,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},FF(c),c.adminActualAccess&&as(OF,"Can login into Admin"),c.username,Boolean((f=c.belongs)==null?void 0:f.length)&&u.createElement(yt,{sx:{color:"text.secondary",fontSize:"small"}},"(",(p=c.belongs)==null?void 0:p.join(", "),")"))})}))),r.length>0&&u.createElement(Hn,{item:!0,md:7},u.createElement($Y,{},u.createElement(AY,{},i&&r.length>1?u.createElement(yt,{},u.createElement(br,{},r.length+" selected"),u.createElement(Qf,{},r.map(c=>u.createElement(_C,{key:c},u.createElement(Jf,{},c))))):u.createElement(cge,{account:i&&s.find(c=>c.username===r[0])||{username:"",hasPassword:r==="new-user"},groups:s.filter(c=>!c.hasPassword).map(c=>c.username),close(){o([])},done(c){o([c]),t()}})))))}function dge(e,t){return u.createElement(u.Fragment,{},e>""&&u.createElement(br,{},e),u.createElement(Qf,{},t.map((n,r)=>u.createElement(_C,{key:r},typeof n=="string"?u.createElement(Jf,{},n):n))))}function FF(e,t={}){return u.createElement(e.hasPassword?LF:RF,t)}function fge(){const{element:e}=ji("get_config",{only:[]}),{username:t}=Fl();return e||(t?u.createElement(yt,{display:"flex",flexDirection:"column",gap:2},"You are logged in as "+t,u.createElement(yt,{},u.createElement(Qn,{size:"large",variant:"contained",onClick(){Gt("logout").catch(n=>n.code!==401&&wr(n))}},"Yes, I want to logout"))):u.createElement(qi,{severity:"info"},"You are not logged in, because authentication is not required on localhost"))}function pge(){const[e,t]=u.useState(0),n=nie(eg);return u.createElement(u.Fragment,{},u.createElement(RO,{value:e,onChange(r,o){t(o)}},n.map(r=>u.createElement(MO,{label:eg[r],key:r}))),u.createElement(hge,{key:e,file:n[e]}))}function hge({file:e}){const{list:t,error:n,connecting:r}=_u("get_log",{file:e},{addId:!0});return n||u.createElement(fp,{loading:r,rows:t,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230},{field:"user",headerName:"Username",flex:.4,maxWidth:200},{field:"ts",headerName:"Timestamp",type:"dateTime",width:170,valueFormatter:({value:o})=>new Date(o).toLocaleString()},{field:"method",headerName:"Method",width:80},{field:"status",headerName:"Code",type:"number",width:70},{field:"length",headerName:"Size",type:"number",valueFormatter:({value:o})=>Eu(o)},{field:"uri",headerName:"URI",flex:2,minWidth:100}]})}var bS={},mge=pt;Object.defineProperty(bS,"__esModule",{value:!0});var NF=bS.default=void 0;yge(u);var gge=mge(vt()),vge=ht();function DF(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(DF=function(r){return r?n:t})(e)}function yge(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=DF(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var bge=(0,gge.default)((0,vge.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");NF=bS.default=bge;var wS={},wge=pt;Object.defineProperty(wS,"__esModule",{value:!0});var Kb=wS.default=void 0,Cge=wge(vt()),xge=ht(),Sge=(0,Cge.default)((0,xge.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 14H8V8h8v8z"}),"StopCircle");Kb=wS.default=Sge;var CS={},Ege=pt;Object.defineProperty(CS,"__esModule",{value:!0});var BF=CS.default=void 0,Pge=Ege(vt()),kge=ht(),Ige=(0,Pge.default)((0,kge.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");BF=CS.default=Ige;var xS={},_ge=pt;Object.defineProperty(xS,"__esModule",{value:!0});var zF=xS.default=void 0,$ge=_ge(vt()),Mge=ht(),Tge=(0,$ge.default)((0,Mge.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");zF=xS.default=Tge;function jF(c){var f=c,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:i,getApi:s}=f,a=un(f,["label","helperText","fields","value","onChange","onError","getApi"]);const p=u.useMemo(()=>(r||[]).map((m,v)=>Ure(Ae({},m),"id"in m?{$idx:v}:{id:v})),[JSON.stringify(r)]),h=u.useMemo(()=>[...n.map(m=>{var v;return Ae(Ae({field:m.k,headerName:(v=m.headerName)!=null?v:typeof m.label=="string"?m.label:rL(m.k),disableColumnMenu:!0},m.$width>=8?{width:m.$width}:{flex:m.$width||1}),m.$column)}),{field:"",width:80,disableColumnMenu:!0,sortable:!1,align:"center",headerAlign:"center",renderHeader(){return u.createElement(Rr,{icon:vv,title:"Add",onClick:m=>Ef({fields:n}).then(v=>v&&o([...r||[],v],{was:r,event:m}))})},renderCell({row:m}){const{$idx:v=m.id}=m;return u.createElement("div",{},u.createElement(Rr,{icon:zF,title:"Modify",onClick:C=>Ef({fields:n,values:m}).then(g=>{if(!g)return;const x=r.map((b,P)=>P===v?g:b);o(x,{was:r,event:C})})}),u.createElement(Rr,{icon:Fa,title:"Delete",onClick:C=>vs("Delete?").then(g=>{if(!g)return;const x=r.filter((b,P)=>P!==v);o(x,{was:r,event:C})})}))}}],[n,r,o]);return u.createElement(u.Fragment,{},e&&u.createElement(fO,{sx:{ml:1}},e),t&&u.createElement(lv,{},t),u.createElement(yt,Ae({height:"20em"},a),u.createElement(fp,{columns:h,rows:p,hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}}})))}function E$({updates:e}){const{list:t,setList:n,error:r,initializing:o}=_u(e?"get_plugin_updates":"get_plugins");return r?UF(r):u.createElement(fp,{rows:t.length?t:[],loading:o,disableColumnSelector:!0,disableColumnMenu:!0,columnVisibilityModel:{started:!e},localeText:e&&{noRowsLabel:"No updates available. Only online plugins are checked."},columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell({row:i,value:s}){return u.createElement(u.Fragment,{},s,typeof i.badApi=="string"&&u.createElement(av,{title:i.badApi,children:u.createElement(cv,{color:"warning",sx:{ml:1}})}),VF(i.repo))}},{field:"version",width:70},{field:"description",flex:1},{field:"actions",width:120,align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:i}){const{config:s,id:a}=i;return e?u.createElement(WF,{id:a,then:()=>n(t.filter(p=>p.id!==a))}):u.createElement("div",{},u.createElement(Rr,i.started?{icon:Kb,title:u.createElement(yt,{},`Stop ${a}`,u.createElement("br"),"Started "+new Date(i.started).toLocaleString()),color:"success",onClick:()=>Gt("set_plugin",{id:a,enabled:!1}).then(()=>ha("Plugin is stopping",u.createElement(Kb,{color:"warning"})))}:{icon:yv,title:`Start ${a}`,onClick:()=>GF(a)}),u.createElement(Rr,{icon:jC,title:"Configuration",disabled:!s&&"No configuration available for this plugin",onClick(){return ft(this,null,function*(){const p=yield Gt("get_plugin",{id:a}),h=yield Ef(Ae({title:`${a} configuration`,fields:[u.createElement(yt,{},i.description),...HF(s)],values:p.config},i.configDialog));!h||Sn.isEqual(p.config,h)||(yield Gt("set_plugin",{id:a,config:h}),ha("Configuration saved"))})}}),u.createElement(Rr,{icon:Fa,title:"Uninstall",confirm:"Remove?",onClick(){return ft(this,null,function*(){yield Gt("uninstall_plugin",{id:a}),ha("Plugin uninstalled")})}}))}}]})}function HF(e){return Object.entries(e).map(([t,n])=>{if(!Sn.isPlainObject(n))return n;let p=n,{type:r,defaultValue:o,fields:i,$column:s,$width:a}=p,c=un(p,["type","defaultValue","fields","$column","$width"]);const f=Rge[r];return f===jF&&(i=HF(i)),o!==void 0&&r==="boolean"&&(c.placeholder=`Default value is ${JSON.stringify(o)}`),Ae({k:t,comp:f,fields:i},c)})}const Rge={string:Bo,number:Xs,boolean:pu,select:Pu,multiselect:ex,array:jF,real_path:Zm};function VF(e){return e&&u.createElement(Rr,{icon:NF,title:"Open web page",link:"https://github.com/"+e})}function UF(e){return u.createElement(qi,{severity:"error"},rie(e,{ENOTFOUND:"Couldn't reach github.com"}))}function WF({id:e,then:t}){return u.createElement(Rr,{icon:BF,title:"Update",onClick(){return ft(this,null,function*(){yield Gt("update_plugin",{id:e}),t==null||t(e),ha("Plugin updated")})}})}function GF(e){return Gt("set_plugin",{id:e,enabled:!0}).then(()=>ha("Plugin is starting",u.createElement(yv,{color:"success"})))}var SS={},Oge=pt;Object.defineProperty(SS,"__esModule",{value:!0});var KF=SS.default=void 0,Lge=Oge(vt()),Age=ht(),Fge=(0,Lge.default)((0,Age.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");KF=SS.default=Fge;var ES={},Nge=pt;Object.defineProperty(ES,"__esModule",{value:!0});var qF=ES.default=void 0,Dge=Nge(vt()),Bge=ht(),zge=(0,Dge.default)((0,Bge.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");qF=ES.default=zge;function jge(e,t,n){var r=this,o=u.useRef(null),i=u.useRef(0),s=u.useRef(null),a=u.useRef([]),c=u.useRef(),f=u.useRef(),p=u.useRef(e),h=u.useRef(!0);p.current=e;var m=!t&&t!==0&&typeof window!="undefined";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0,n=n||{};var v=!!n.leading,C="trailing"in n?!!n.trailing:!0,g="maxWait"in n,x=g?Math.max(+n.maxWait||0,t):null;u.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var b=u.useMemo(function(){var P=function($){var R=a.current,O=c.current;return a.current=c.current=null,i.current=$,f.current=p.current.apply(O,R)},w=function($,R){m&&cancelAnimationFrame(s.current),s.current=m?requestAnimationFrame($):setTimeout($,R)},E=function($){if(!h.current)return!1;var R=$-o.current,O=$-i.current;return!o.current||R>=t||R<0||g&&O>=x},I=function($){return s.current=null,C&&a.current?P($):(a.current=c.current=null,f.current)},_=function(){var $=Date.now();if(E($))return I($);if(h.current){var R=$-o.current,O=$-i.current,N=t-R,U=g?Math.min(N,x-O):N;w(_,U)}},k=function(){for(var $=[],R=0;R<arguments.length;R++)$[R]=arguments[R];var O=Date.now(),N=E(O);if(a.current=$,c.current=r,o.current=O,N){if(!s.current&&h.current)return i.current=o.current,w(_,t),v?P(o.current):f.current;if(g)return w(_,t),P(o.current)}return s.current||w(_,t),f.current};return k.cancel=function(){s.current&&(m?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=c.current=s.current=null},k.isPending=function(){return!!s.current},k.flush=function(){return s.current?I(Date.now()):f.current},k},[v,g,t,x,C,m]);return b}function Hge(e,t){return e===t}function P$(e){return typeof e=="function"?function(){return e}:e}function Vge(e){var t=u.useState(P$(e)),n=t[0],r=t[1],o=u.useCallback(function(i){return r(P$(i))},[]);return[n,o]}function Uge(e,t,n){var r=n&&n.equalityFn||Hge,o=Vge(e),i=o[0],s=o[1],a=jge(u.useCallback(function(f){return s(f)},[s]),t,n),c=u.useRef(e);return r(c.current,e)||(a(e),c.current=e),[i,a]}function Wge(){const[e,t]=u.useState(""),[n]=Uge(e,1e3),{list:r,error:o,initializing:i,updateList:s}=_u("search_online_plugins",{text:n}),a=Fl();return o?UF(o):u.createElement(u.Fragment,{},u.createElement(Bo,{value:e,onChange:t,start:u.createElement(qF),typing:!0,label:"Search text"}),u.createElement(fp,{rows:r.length?r:[],localeText:{noRowsLabel:"No compatible plugins have been found"},loading:i,columnVisibilityModel:a.onlinePluginsColumns,onColumnVisibilityModelChange:c=>Object.assign($n.onlinePluginsColumns,c),columns:[{field:"id",headerName:"name",flex:1},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:c})=>new Date(c).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3},{field:"stargazers_count",width:50,headerName:"stars",align:"center"},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,hideable:!1,renderCell({row:c}){const{id:f,branch:p}=c;return u.createElement("div",{},VF(f),c.update?u.createElement(WF,{id:f,then(){s(m=>Sn.find(m,{id:f}).update=!1)}}):u.createElement(Rr,{icon:KF,title:"Install",progress:c.downloading,disabled:c.installed&&"Already installed",tooltipProps:{placement:"bottom-end"},confirm:"WARNING - Proceed only if you trust this author and this plugin",onClick(){return ft(this,null,function*(){const{id:m}=yield Gt("download_plugin",{id:f,branch:p});(yield vs(ia(`Plugin /${f}/ installed.
|
|
415
|
+
Do you want to start it now?`)))&&(yield GF(m))})}}))}}]}))}const YF={Installed:E$,"Search online":Wge,"Check updates":()=>u.createElement(E$,{updates:!0})},Gge=Object.keys(YF),Kge=Object.values(YF);function qge(){const[e,t]=u.useState(0);return u.createElement(u.Fragment,{},u.createElement(RO,{value:e,onChange(n,r){t(r)}},Gge.map(n=>u.createElement(MO,{label:n,key:n}))),u.createElement(Kge[e]))}const qb=[{path:"",icon:BO,label:"Home",title:"Admin panel",comp:She},{path:"fs",icon:OO,label:"Shared files",comp:Gme},{path:"accounts",icon:NO,comp:uge},{path:"configuration",icon:jC,comp:Phe},{path:"monitoring",icon:DO,comp:dpe},{path:"logs",icon:AO,comp:pge},{path:"plugins",icon:LO,comp:qge},{path:"logout",icon:FO,comp:fge}];let o1;function k$({onSelect:e}){var n;const[t]=rp(!o1&&"get_status");return o1||(o1=(n=t==null?void 0:t.version)==null?void 0:n.replace("-"," ")),u.createElement(Qf,{sx:{pr:1,bgcolor:"primary.main",color:"primary.contrastText",minHeight:"100%",boxSizing:"border-box"}},u.createElement(yt,{display:"flex",px:2,py:1,gap:2,alignItems:"flex-end"},u.createElement(br,{variant:"h3"},"HFS"),u.createElement(yt,{pb:1,fontSize:"small"},o1)),qb.map(r=>u.createElement(KJ,{key:r.path,to:r.path,component:mH,onClick:e,style:({isActive:o})=>o?{textDecoration:"underline"}:{},children:void 0},r.icon&&u.createElement(CO,{sx:{color:"primary.contrastText"}},u.createElement(r.icon)),u.createElement(Jf,{primary:XF(r)}))))}function XF(e){var t;return e&&((t=e.label)!=null?t:Sn.capitalize(e.path))}const Yge={};function Xge(){const e=gO("(prefers-color-scheme: dark)")?null:Yge;return u.useMemo(()=>wC({palette:e||{mode:"dark",text:{primary:"#bbb"},primary:{main:"#469"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiTextField:{defaultProps:{variant:"filled"},styleOverrides:e||{root:{"& label.Mui-focused":{color:"#ccc"}}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:e||{root({ownerState:t}){return t.color==="primary"&&{color:t.variant==="contained"?"#ddd":"#68c"}}}}}}),[e])}function Qge({children:e}){const{loginRequired:t}=Fl();return t===403?u.createElement(ax,{},u.createElement(qi,{severity:"error"},"Admin-panel only for localhost"),u.createElement(yt,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(Jge):u.createElement(u.Fragment,{},e)}function Jge(){const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState("");return u.createElement(ax,{},u.createElement(tp,{values:e,set(i,s){t(Ht(Ae({},e),{[s]:i}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(qi,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return ft(this,null,function*(){try{r(""),yield Zge(e.username,e.password)}catch(i){r(String(i))}})}}}))}function Zge(e,t){return ft(this,null,function*(){const n=yield zre(e,t,Gt).catch(r=>{throw(r==null?void 0:r.code)===401?"Wrong username or password":r==="trust"?"Login aborted: server identity cannot be trusted":(r==null?void 0:r.name)==="AbortError"?"Server didn't respond":(r==null?void 0:r.message)||"Unknown error"});if(!n.adminUrl)throw"This account has no Admin access";$n.loginRequired=!1,PS(n)})}PS(window.SESSION);function PS(e){if(!e)return;const{exp:t,username:n}=e;if($n.username=n,!n||!t)return;const r=new Date(t).getTime()-Date.now(),o=Math.min(r-3e4,6e5);console.debug("session refresh in",Math.round(o/1e3)),setTimeout(()=>Gt("refresh_session").then(PS),o)}var kS={},eve=pt;Object.defineProperty(kS,"__esModule",{value:!0});var QF=kS.default=void 0,tve=eve(vt()),nve=ht(),rve=(0,tve.default)((0,nve.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");QF=kS.default=rve;function ove(){return u.createElement(uU,{theme:Xge()},u.createElement(ive,{},u.createElement(Qge,{},u.createElement(pH,{},u.createElement(sve)))))}function ive(e){return u.createElement(yt,Ae({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1}},e))}function sve(){const e=bu().pathname.slice(1),t=qb.find(s=>s.path===e),n=t&&(t.title||XF(t)),[r,o]=u.useState(!1),i=Pf("lg");return u.createElement(u.Fragment,{},!i&&u.createElement(lve,{title:n,openMenu:()=>o(!0)}),!i&&u.createElement(eQ,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(k$,{onSelect:()=>o(!1)})),u.createElement(yt,{display:"flex",flex:1},i&&u.createElement(k$),u.createElement(yt,{component:"main",sx:{background:"url(logo.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:2,md:3},pb:"1em",position:"relative",display:"flex",flexDirection:"column",width:"100%"}},n&&i&&u.createElement(br,{variant:"h2",mb:2},n),u.createElement(uH,{},qb.map((s,a)=>u.createElement(jT,{key:a,path:s.path,element:u.createElement(s.comp)})))),u.createElement(Mre)))}function lve({title:e,openMenu:t}){return u.createElement(tq,{position:"sticky",sx:{mb:2}},u.createElement(TO,{},u.createElement(tr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(QF)),e))}FT(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(ove)));export{co as c};
|