hfs 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -16
- package/admin/assets/index-963c15a5.js +517 -0
- package/{frontend/assets/sha512-b32d8af7.js → admin/assets/sha512-471fbd54.js} +2 -2
- package/admin/index.html +1 -1
- package/frontend/assets/index-c0f02a72.js +94 -0
- package/frontend/assets/index-f2f8fd6b.css +1 -0
- package/{admin/assets/sha512-c0389c0d.js → frontend/assets/sha512-7dcc825b.js} +2 -2
- package/frontend/fontello.css +1 -1
- package/frontend/index.html +2 -3
- package/package.json +4 -3
- package/plugins/download-counter/plugin.js +3 -1
- package/plugins/download-counter/public/main.js +3 -2
- package/plugins/list-uploader/plugin.js +21 -0
- package/plugins/list-uploader/public/main.js +27 -0
- package/plugins/vhosting/plugin.js +6 -3
- package/src/adminApis.js +9 -3
- package/src/api.auth.js +4 -4
- package/src/api.file_list.js +4 -5
- package/src/api.monitor.js +7 -5
- package/src/api.plugins.js +57 -13
- package/src/api.vfs.js +2 -1
- package/src/apiMiddleware.js +4 -0
- package/src/commands.js +11 -0
- package/src/config.js +9 -5
- package/src/connections.js +1 -1
- package/src/const.js +4 -3
- package/src/frontEndApis.js +33 -1
- package/src/github.js +65 -33
- package/src/index.js +4 -4
- package/src/lang.js +3 -2
- package/src/langs/embedded.js +2 -1
- package/src/langs/hfs-lang-fr.json +16 -4
- package/src/langs/hfs-lang-it.json +11 -4
- package/src/langs/hfs-lang-ru.json +16 -4
- package/src/langs/hfs-lang-vi.json +116 -0
- package/src/log.js +50 -47
- package/src/middlewares.js +10 -3
- package/src/plugins.js +181 -98
- package/src/serveFile.js +13 -5
- package/src/serveGuiFiles.js +8 -10
- package/src/throttler.js +11 -6
- package/src/update.js +1 -4
- package/src/upload.js +26 -9
- package/src/util-files.js +25 -6
- package/src/vfs.js +6 -12
- package/src/zip.js +2 -2
- package/admin/assets/index-101f19c9.js +0 -510
- package/frontend/assets/index-59572489.css +0 -1
- package/frontend/assets/index-5aeff3af.js +0 -94
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
var t6=Object.defineProperty,n6=Object.defineProperties;var r6=Object.getOwnPropertyDescriptors;var mh=Object.getOwnPropertySymbols;var QP=Object.prototype.hasOwnProperty,XP=Object.prototype.propertyIsEnumerable;var ks=Math.pow,T0=(e,t,n)=>t in e?t6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$e=(e,t)=>{for(var n in t||(t={}))QP.call(t,n)&&T0(e,n,t[n]);if(mh)for(var n of mh(t))XP.call(t,n)&&T0(e,n,t[n]);return e},kt=(e,t)=>n6(e,r6(t));var Zt=(e,t)=>{var n={};for(var r in e)QP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&mh)for(var r of mh(e))t.indexOf(r)<0&&XP.call(e,r)&&(n[r]=e[r]);return n};var Hi=(e,t,n)=>(T0(e,typeof t!="symbol"?t+"":t,n),n);var pt=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(d){o(d)}},s=c=>{try{a(n.throw(c))}catch(d){o(d)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function o6(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 bn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ip(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i6(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 NT={exports:{}},Dt={};/**
|
|
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 sp=Symbol.for("react.element"),s6=Symbol.for("react.portal"),l6=Symbol.for("react.fragment"),a6=Symbol.for("react.strict_mode"),c6=Symbol.for("react.profiler"),u6=Symbol.for("react.provider"),d6=Symbol.for("react.context"),f6=Symbol.for("react.forward_ref"),p6=Symbol.for("react.suspense"),h6=Symbol.for("react.memo"),m6=Symbol.for("react.lazy"),JP=Symbol.iterator;function g6(e){return e===null||typeof e!="object"?null:(e=JP&&e[JP]||e["@@iterator"],typeof e=="function"?e:null)}var DT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},BT=Object.assign,zT={};function Nu(e,t,n){this.props=e,this.context=t,this.refs=zT,this.updater=n||DT}Nu.prototype.isReactComponent={};Nu.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")};Nu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function HT(){}HT.prototype=Nu.prototype;function Rw(e,t,n){this.props=e,this.context=t,this.refs=zT,this.updater=n||DT}var Ow=Rw.prototype=new HT;Ow.constructor=Rw;BT(Ow,Nu.prototype);Ow.isPureReactComponent=!0;var ZP=Array.isArray,jT=Object.prototype.hasOwnProperty,Lw={current:null},VT={key:!0,ref:!0,__self:!0,__source:!0};function UT(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)jT.call(t,r)&&!VT.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),d=0;d<a;d++)c[d]=arguments[d+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:sp,type:e,key:i,ref:s,props:o,_owner:Lw.current}}function v6(e,t){return{$$typeof:sp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Aw(e){return typeof e=="object"&&e!==null&&e.$$typeof===sp}function y6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ek=/\/+/g;function _0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?y6(""+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 sp:case s6:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+_0(s,0):r,ZP(o)?(n="",e!=null&&(n=e.replace(ek,"$&/")+"/"),Jh(o,t,n,"",function(d){return d})):o!=null&&(Aw(o)&&(o=v6(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(ek,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",ZP(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+_0(i,a);s+=Jh(i,t,n,c,o)}else if(c=g6(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+_0(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 gh(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 b6(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 jr={current:null},Zh={transition:null},w6={ReactCurrentDispatcher:jr,ReactCurrentBatchConfig:Zh,ReactCurrentOwner:Lw};Dt.Children={map:gh,forEach:function(e,t,n){gh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return gh(e,function(){t++}),t},toArray:function(e){return gh(e,function(t){return t})||[]},only:function(e){if(!Aw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Dt.Component=Nu;Dt.Fragment=l6;Dt.Profiler=c6;Dt.PureComponent=Rw;Dt.StrictMode=a6;Dt.Suspense=p6;Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w6;Dt.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=BT({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Lw.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)jT.call(t,c)&&!VT.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 d=0;d<c;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:sp,type:e.type,key:o,ref:i,props:r,_owner:s}};Dt.createContext=function(e){return e={$$typeof:d6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:u6,_context:e},e.Consumer=e};Dt.createElement=UT;Dt.createFactory=function(e){var t=UT.bind(null,e);return t.type=e,t};Dt.createRef=function(){return{current:null}};Dt.forwardRef=function(e){return{$$typeof:f6,render:e}};Dt.isValidElement=Aw;Dt.lazy=function(e){return{$$typeof:m6,_payload:{_status:-1,_result:e},_init:b6}};Dt.memo=function(e,t){return{$$typeof:h6,type:e,compare:t===void 0?null:t}};Dt.startTransition=function(e){var t=Zh.transition;Zh.transition={};try{e()}finally{Zh.transition=t}};Dt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Dt.useCallback=function(e,t){return jr.current.useCallback(e,t)};Dt.useContext=function(e){return jr.current.useContext(e)};Dt.useDebugValue=function(){};Dt.useDeferredValue=function(e){return jr.current.useDeferredValue(e)};Dt.useEffect=function(e,t){return jr.current.useEffect(e,t)};Dt.useId=function(){return jr.current.useId()};Dt.useImperativeHandle=function(e,t,n){return jr.current.useImperativeHandle(e,t,n)};Dt.useInsertionEffect=function(e,t){return jr.current.useInsertionEffect(e,t)};Dt.useLayoutEffect=function(e,t){return jr.current.useLayoutEffect(e,t)};Dt.useMemo=function(e,t){return jr.current.useMemo(e,t)};Dt.useReducer=function(e,t,n){return jr.current.useReducer(e,t,n)};Dt.useRef=function(e){return jr.current.useRef(e)};Dt.useState=function(e){return jr.current.useState(e)};Dt.useSyncExternalStore=function(e,t,n){return jr.current.useSyncExternalStore(e,t,n)};Dt.useTransition=function(){return jr.current.useTransition()};Dt.version="18.2.0";NT.exports=Dt;var u=NT.exports;const Po=ip(u),Ma=o6({__proto__:null,default:Po},[u]);var WT={exports:{}},Lo={},GT={exports:{}},KT={};/**
|
|
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(F,z){var W=F.length;F.push(z);e:for(;0<W;){var K=W-1>>>1,Y=F[K];if(0<o(Y,z))F[K]=z,F[W]=Y,W=K;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var z=F[0],W=F.pop();if(W!==z){F[0]=W;e:for(var K=0,Y=F.length,ae=Y>>>1;K<ae;){var re=2*(K+1)-1,de=F[re],ie=re+1,se=F[ie];if(0>o(de,W))ie<Y&&0>o(se,de)?(F[K]=se,F[ie]=W,K=ie):(F[K]=de,F[re]=W,K=re);else if(ie<Y&&0>o(se,W))F[K]=se,F[ie]=W,K=ie;else break e}}return z}function o(F,z){var W=F.sortIndex-z.sortIndex;return W!==0?W:F.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=[],d=[],p=1,h=null,m=3,g=!1,b=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(F){for(var z=n(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=F)r(d),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(d)}}function P(F){if(v=!1,x(F),!b)if(n(c)!==null)b=!0,H($);else{var z=n(d);z!==null&&V(P,z.startTime-F)}}function $(F,z){b=!1,v&&(v=!1,w(M),M=-1),g=!0;var W=m;try{for(x(z),h=n(c);h!==null&&(!(h.expirationTime>z)||F&&!L());){var K=h.callback;if(typeof K=="function"){h.callback=null,m=h.priorityLevel;var Y=K(h.expirationTime<=z);z=e.unstable_now(),typeof Y=="function"?h.callback=Y:h===n(c)&&r(c),x(z)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var re=n(d);re!==null&&V(P,re.startTime-z),ae=!1}return ae}finally{h=null,m=W,g=!1}}var I=!1,k=null,M=-1,O=5,A=-1;function L(){return!(e.unstable_now()-A<O)}function D(){if(k!==null){var F=e.unstable_now();A=F;var z=!0;try{z=k(!0,F)}finally{z?j():(I=!1,k=null)}}else I=!1}var j;if(typeof C=="function")j=function(){C(D)};else if(typeof MessageChannel!="undefined"){var R=new MessageChannel,N=R.port2;R.port1.onmessage=D,j=function(){N.postMessage(null)}}else j=function(){E(D,0)};function H(F){k=F,I||(I=!0,j())}function V(F,z){M=E(function(){F(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(F){F.callback=null},e.unstable_continueExecution=function(){b||g||(b=!0,H($))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(F){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var W=m;m=z;try{return F()}finally{m=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,z){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var W=m;m=F;try{return z()}finally{m=W}},e.unstable_scheduleCallback=function(F,z,W){var K=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?K+W:K):W=K,F){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=W+Y,F={id:p++,callback:z,priorityLevel:F,startTime:W,expirationTime:Y,sortIndex:-1},W>K?(F.sortIndex=W,t(d,F),n(c)===null&&F===n(d)&&(v?(w(M),M=-1):v=!0,V(P,W-K))):(F.sortIndex=Y,t(c,F),b||g||(b=!0,H($))),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var z=m;return function(){var W=m;m=z;try{return F.apply(this,arguments)}finally{m=W}}}})(KT);GT.exports=KT;var C6=GT.exports;/**
|
|
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 qT=u,_o=C6;function Oe(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 YT=new Set,bf={};function Ya(e,t){hu(e,t),hu(e+"Capture",t)}function hu(e,t){for(bf[e]=t,e=0;e<t.length;e++)YT.add(t[e])}var Ns=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),U1=Object.prototype.hasOwnProperty,x6=/^[: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]*$/,tk={},nk={};function S6(e){return U1.call(nk,e)?!0:U1.call(tk,e)?!1:x6.test(e)?nk[e]=!0:(tk[e]=!0,!1)}function E6(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 P6(e,t,n,r){if(t===null||typeof t=="undefined"||E6(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 Vr(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 br={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){br[e]=new Vr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];br[t]=new Vr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){br[e]=new Vr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){br[e]=new Vr(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){br[e]=new Vr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){br[e]=new Vr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){br[e]=new Vr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){br[e]=new Vr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){br[e]=new Vr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fw=/[\-:]([a-z])/g;function Nw(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(Fw,Nw);br[t]=new Vr(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(Fw,Nw);br[t]=new Vr(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(Fw,Nw);br[t]=new Vr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){br[e]=new Vr(e,1,!1,e.toLowerCase(),null,!1,!1)});br.xlinkHref=new Vr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){br[e]=new Vr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dw(e,t,n,r){var o=br.hasOwnProperty(t)?br[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(P6(t,n,o,r)&&(n=null),r||o===null?S6(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 Ws=qT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vh=Symbol.for("react.element"),Fc=Symbol.for("react.portal"),Nc=Symbol.for("react.fragment"),Bw=Symbol.for("react.strict_mode"),W1=Symbol.for("react.profiler"),QT=Symbol.for("react.provider"),XT=Symbol.for("react.context"),zw=Symbol.for("react.forward_ref"),G1=Symbol.for("react.suspense"),K1=Symbol.for("react.suspense_list"),Hw=Symbol.for("react.memo"),dl=Symbol.for("react.lazy"),JT=Symbol.for("react.offscreen"),rk=Symbol.iterator;function xd(e){return e===null||typeof e!="object"?null:(e=rk&&e[rk]||e["@@iterator"],typeof e=="function"?e:null)}var Nn=Object.assign,M0;function Ud(e){if(M0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M0=t&&t[1]||""}return`
|
|
26
|
+
`+M0+e}var R0=!1;function O0(e,t){if(!e||R0)return"";R0=!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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.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{R0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ud(e):""}function k6(e){switch(e.tag){case 5:return Ud(e.type);case 16:return Ud("Lazy");case 13:return Ud("Suspense");case 19:return Ud("SuspenseList");case 0:case 2:case 15:return e=O0(e.type,!1),e;case 11:return e=O0(e.type.render,!1),e;case 1:return e=O0(e.type,!0),e;default:return""}}function q1(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 Nc:return"Fragment";case Fc:return"Portal";case W1:return"Profiler";case Bw:return"StrictMode";case G1:return"Suspense";case K1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case XT:return(e.displayName||"Context")+".Consumer";case QT:return(e._context.displayName||"Context")+".Provider";case zw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hw:return t=e.displayName||null,t!==null?t:q1(e.type)||"Memo";case dl:t=e._payload,e=e._init;try{return q1(e(t))}catch(n){}}return null}function I6(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 q1(t);case 8:return t===Bw?"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 Nl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ZT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $6(e){var t=ZT(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 yh(e){e._valueTracker||(e._valueTracker=$6(e))}function e_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ZT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function km(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 Y1(e,t){var n=t.checked;return Nn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function ok(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nl(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 t_(e,t){t=t.checked,t!=null&&Dw(e,"checked",t,!1)}function Q1(e,t){t_(e,t);var n=Nl(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")?X1(e,t.type,n):t.hasOwnProperty("defaultValue")&&X1(e,t.type,Nl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ik(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 X1(e,t,n){(t!=="number"||km(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wd=Array.isArray;function eu(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=""+Nl(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 J1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Oe(91));return Nn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function sk(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Oe(92));if(Wd(n)){if(1<n.length)throw Error(Oe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Nl(n)}}function n_(e,t){var n=Nl(t.value),r=Nl(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 lk(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function r_(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 Z1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?r_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var bh,o_=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(bh=bh||document.createElement("div"),bh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=bh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ef={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},T6=["Webkit","ms","Moz","O"];Object.keys(ef).forEach(function(e){T6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ef[t]=ef[e]})});function i_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ef.hasOwnProperty(e)&&ef[e]?(""+t).trim():t+"px"}function s_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=i_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var _6=Nn({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 eb(e,t){if(t){if(_6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Oe(62))}}function tb(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 nb=null;function jw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rb=null,tu=null,nu=null;function ak(e){if(e=cp(e)){if(typeof rb!="function")throw Error(Oe(280));var t=e.stateNode;t&&(t=Rg(t),rb(e.stateNode,e.type,t))}}function l_(e){tu?nu?nu.push(e):nu=[e]:tu=e}function a_(){if(tu){var e=tu,t=nu;if(nu=tu=null,ak(e),t)for(e=0;e<t.length;e++)ak(t[e])}}function c_(e,t){return e(t)}function u_(){}var L0=!1;function d_(e,t,n){if(L0)return e(t,n);L0=!0;try{return c_(e,t,n)}finally{L0=!1,(tu!==null||nu!==null)&&(u_(),a_())}}function Cf(e,t){var n=e.stateNode;if(n===null)return null;var r=Rg(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(Oe(231,t,typeof n));return n}var ob=!1;if(Ns)try{var Sd={};Object.defineProperty(Sd,"passive",{get:function(){ob=!0}}),window.addEventListener("test",Sd,Sd),window.removeEventListener("test",Sd,Sd)}catch(e){ob=!1}function M6(e,t,n,r,o,i,s,a,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(p){this.onError(p)}}var tf=!1,Im=null,$m=!1,ib=null,R6={onError:function(e){tf=!0,Im=e}};function O6(e,t,n,r,o,i,s,a,c){tf=!1,Im=null,M6.apply(R6,arguments)}function L6(e,t,n,r,o,i,s,a,c){if(O6.apply(this,arguments),tf){if(tf){var d=Im;tf=!1,Im=null}else throw Error(Oe(198));$m||($m=!0,ib=d)}}function Qa(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 f_(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 ck(e){if(Qa(e)!==e)throw Error(Oe(188))}function A6(e){var t=e.alternate;if(!t){if(t=Qa(e),t===null)throw Error(Oe(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 ck(o),e;if(i===r)return ck(o),t;i=i.sibling}throw Error(Oe(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(Oe(189))}}if(n.alternate!==r)throw Error(Oe(190))}if(n.tag!==3)throw Error(Oe(188));return n.stateNode.current===n?e:t}function p_(e){return e=A6(e),e!==null?h_(e):null}function h_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=h_(e);if(t!==null)return t;e=e.sibling}return null}var m_=_o.unstable_scheduleCallback,uk=_o.unstable_cancelCallback,F6=_o.unstable_shouldYield,N6=_o.unstable_requestPaint,Wn=_o.unstable_now,D6=_o.unstable_getCurrentPriorityLevel,Vw=_o.unstable_ImmediatePriority,g_=_o.unstable_UserBlockingPriority,Tm=_o.unstable_NormalPriority,B6=_o.unstable_LowPriority,v_=_o.unstable_IdlePriority,$g=null,Xi=null;function z6(e){if(Xi&&typeof Xi.onCommitFiberRoot=="function")try{Xi.onCommitFiberRoot($g,e,void 0,(e.current.flags&128)===128)}catch(t){}}var _i=Math.clz32?Math.clz32:V6,H6=Math.log,j6=Math.LN2;function V6(e){return e>>>=0,e===0?32:31-(H6(e)/j6|0)|0}var wh=64,Ch=4194304;function Gd(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 _m(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=Gd(a):(i&=s,i!==0&&(r=Gd(i)))}else s=n&~o,s!==0?r=Gd(s):i!==0&&(r=Gd(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-_i(t),o=1<<n,r|=e[n],t&=~o;return r}function U6(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 W6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-_i(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=U6(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function sb(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function y_(){var e=wh;return wh<<=1,!(wh&4194240)&&(wh=64),e}function A0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_i(t),e[t]=n}function G6(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-_i(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Uw(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_i(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var tn=0;function b_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var w_,Ww,C_,x_,S_,lb=!1,xh=[],El=null,Pl=null,kl=null,xf=new Map,Sf=new Map,gl=[],K6="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 dk(e,t){switch(e){case"focusin":case"focusout":El=null;break;case"dragenter":case"dragleave":Pl=null;break;case"mouseover":case"mouseout":kl=null;break;case"pointerover":case"pointerout":xf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sf.delete(t.pointerId)}}function Ed(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=cp(t),t!==null&&Ww(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function q6(e,t,n,r,o){switch(t){case"focusin":return El=Ed(El,e,t,n,r,o),!0;case"dragenter":return Pl=Ed(Pl,e,t,n,r,o),!0;case"mouseover":return kl=Ed(kl,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return xf.set(i,Ed(xf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Sf.set(i,Ed(Sf.get(i)||null,e,t,n,r,o)),!0}return!1}function E_(e){var t=ga(e.target);if(t!==null){var n=Qa(t);if(n!==null){if(t=n.tag,t===13){if(t=f_(n),t!==null){e.blockedOn=t,S_(e.priority,function(){C_(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 em(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ab(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nb=r,n.target.dispatchEvent(r),nb=null}else return t=cp(n),t!==null&&Ww(t),e.blockedOn=n,!1;t.shift()}return!0}function fk(e,t,n){em(e)&&n.delete(t)}function Y6(){lb=!1,El!==null&&em(El)&&(El=null),Pl!==null&&em(Pl)&&(Pl=null),kl!==null&&em(kl)&&(kl=null),xf.forEach(fk),Sf.forEach(fk)}function Pd(e,t){e.blockedOn===t&&(e.blockedOn=null,lb||(lb=!0,_o.unstable_scheduleCallback(_o.unstable_NormalPriority,Y6)))}function Ef(e){function t(o){return Pd(o,e)}if(0<xh.length){Pd(xh[0],e);for(var n=1;n<xh.length;n++){var r=xh[n];r.blockedOn===e&&(r.blockedOn=null)}}for(El!==null&&Pd(El,e),Pl!==null&&Pd(Pl,e),kl!==null&&Pd(kl,e),xf.forEach(t),Sf.forEach(t),n=0;n<gl.length;n++)r=gl[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<gl.length&&(n=gl[0],n.blockedOn===null);)E_(n),n.blockedOn===null&&gl.shift()}var ru=Ws.ReactCurrentBatchConfig,Mm=!0;function Q6(e,t,n,r){var o=tn,i=ru.transition;ru.transition=null;try{tn=1,Gw(e,t,n,r)}finally{tn=o,ru.transition=i}}function X6(e,t,n,r){var o=tn,i=ru.transition;ru.transition=null;try{tn=4,Gw(e,t,n,r)}finally{tn=o,ru.transition=i}}function Gw(e,t,n,r){if(Mm){var o=ab(e,t,n,r);if(o===null)W0(e,t,r,Rm,n),dk(e,r);else if(q6(o,e,t,n,r))r.stopPropagation();else if(dk(e,r),t&4&&-1<K6.indexOf(e)){for(;o!==null;){var i=cp(o);if(i!==null&&w_(i),i=ab(e,t,n,r),i===null&&W0(e,t,r,Rm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else W0(e,t,r,null,n)}}var Rm=null;function ab(e,t,n,r){if(Rm=null,e=jw(r),e=ga(e),e!==null)if(t=Qa(e),t===null)e=null;else if(n=t.tag,n===13){if(e=f_(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 Rm=e,null}function P_(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(D6()){case Vw:return 1;case g_:return 4;case Tm:case B6:return 16;case v_:return 536870912;default:return 16}default:return 16}}var bl=null,Kw=null,tm=null;function k_(){if(tm)return tm;var e,t=Kw,n=t.length,r,o="value"in bl?bl.value:bl.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 tm=o.slice(e,1<r?1-r:void 0)}function nm(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 Sh(){return!0}function pk(){return!1}function Ao(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)?Sh:pk,this.isPropagationStopped=pk,this}return Nn(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=Sh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Sh)},persist:function(){},isPersistent:Sh}),t}var Du={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qw=Ao(Du),ap=Nn({},Du,{view:0,detail:0}),J6=Ao(ap),F0,N0,kd,Tg=Nn({},ap,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yw,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!==kd&&(kd&&e.type==="mousemove"?(F0=e.screenX-kd.screenX,N0=e.screenY-kd.screenY):N0=F0=0,kd=e),F0)},movementY:function(e){return"movementY"in e?e.movementY:N0}}),hk=Ao(Tg),Z6=Nn({},Tg,{dataTransfer:0}),e9=Ao(Z6),t9=Nn({},ap,{relatedTarget:0}),D0=Ao(t9),n9=Nn({},Du,{animationName:0,elapsedTime:0,pseudoElement:0}),r9=Ao(n9),o9=Nn({},Du,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),i9=Ao(o9),s9=Nn({},Du,{data:0}),mk=Ao(s9),l9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a9={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"},c9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u9(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=c9[e])?!!t[e]:!1}function Yw(){return u9}var d9=Nn({},ap,{key:function(e){if(e.key){var t=l9[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?a9[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yw,charCode:function(e){return e.type==="keypress"?nm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),f9=Ao(d9),p9=Nn({},Tg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gk=Ao(p9),h9=Nn({},ap,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yw}),m9=Ao(h9),g9=Nn({},Du,{propertyName:0,elapsedTime:0,pseudoElement:0}),v9=Ao(g9),y9=Nn({},Tg,{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}),b9=Ao(y9),w9=[9,13,27,32],Qw=Ns&&"CompositionEvent"in window,nf=null;Ns&&"documentMode"in document&&(nf=document.documentMode);var C9=Ns&&"TextEvent"in window&&!nf,I_=Ns&&(!Qw||nf&&8<nf&&11>=nf),vk=String.fromCharCode(32),yk=!1;function $_(e,t){switch(e){case"keyup":return w9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dc=!1;function x9(e,t){switch(e){case"compositionend":return T_(t);case"keypress":return t.which!==32?null:(yk=!0,vk);case"textInput":return e=t.data,e===vk&&yk?null:e;default:return null}}function S9(e,t){if(Dc)return e==="compositionend"||!Qw&&$_(e,t)?(e=k_(),tm=Kw=bl=null,Dc=!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 I_&&t.locale!=="ko"?null:t.data;default:return null}}var E9={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 bk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!E9[e.type]:t==="textarea"}function __(e,t,n,r){l_(r),t=Om(t,"onChange"),0<t.length&&(n=new qw("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var rf=null,Pf=null;function P9(e){H_(e,0)}function _g(e){var t=Hc(e);if(e_(t))return e}function k9(e,t){if(e==="change")return t}var M_=!1;if(Ns){var B0;if(Ns){var z0="oninput"in document;if(!z0){var wk=document.createElement("div");wk.setAttribute("oninput","return;"),z0=typeof wk.oninput=="function"}B0=z0}else B0=!1;M_=B0&&(!document.documentMode||9<document.documentMode)}function Ck(){rf&&(rf.detachEvent("onpropertychange",R_),Pf=rf=null)}function R_(e){if(e.propertyName==="value"&&_g(Pf)){var t=[];__(t,Pf,e,jw(e)),d_(P9,t)}}function I9(e,t,n){e==="focusin"?(Ck(),rf=t,Pf=n,rf.attachEvent("onpropertychange",R_)):e==="focusout"&&Ck()}function $9(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _g(Pf)}function T9(e,t){if(e==="click")return _g(t)}function _9(e,t){if(e==="input"||e==="change")return _g(t)}function M9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oi=typeof Object.is=="function"?Object.is:M9;function kf(e,t){if(Oi(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(!U1.call(t,o)||!Oi(e[o],t[o]))return!1}return!0}function xk(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sk(e,t){var n=xk(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=xk(n)}}function O_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function L_(){for(var e=window,t=km();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=km(e.document)}return t}function Xw(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 R9(e){var t=L_(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&O_(n.ownerDocument.documentElement,n)){if(r!==null&&Xw(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=Sk(n,i);var s=Sk(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 O9=Ns&&"documentMode"in document&&11>=document.documentMode,Bc=null,cb=null,of=null,ub=!1;function Ek(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ub||Bc==null||Bc!==km(r)||(r=Bc,"selectionStart"in r&&Xw(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}),of&&kf(of,r)||(of=r,r=Om(cb,"onSelect"),0<r.length&&(t=new qw("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bc)))}function Eh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zc={animationend:Eh("Animation","AnimationEnd"),animationiteration:Eh("Animation","AnimationIteration"),animationstart:Eh("Animation","AnimationStart"),transitionend:Eh("Transition","TransitionEnd")},H0={},A_={};Ns&&(A_=document.createElement("div").style,"AnimationEvent"in window||(delete zc.animationend.animation,delete zc.animationiteration.animation,delete zc.animationstart.animation),"TransitionEvent"in window||delete zc.transitionend.transition);function Mg(e){if(H0[e])return H0[e];if(!zc[e])return e;var t=zc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in A_)return H0[e]=t[n];return e}var F_=Mg("animationend"),N_=Mg("animationiteration"),D_=Mg("animationstart"),B_=Mg("transitionend"),z_=new Map,Pk="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 ql(e,t){z_.set(e,t),Ya(t,[e])}for(var j0=0;j0<Pk.length;j0++){var V0=Pk[j0],L9=V0.toLowerCase(),A9=V0[0].toUpperCase()+V0.slice(1);ql(L9,"on"+A9)}ql(F_,"onAnimationEnd");ql(N_,"onAnimationIteration");ql(D_,"onAnimationStart");ql("dblclick","onDoubleClick");ql("focusin","onFocus");ql("focusout","onBlur");ql(B_,"onTransitionEnd");hu("onMouseEnter",["mouseout","mouseover"]);hu("onMouseLeave",["mouseout","mouseover"]);hu("onPointerEnter",["pointerout","pointerover"]);hu("onPointerLeave",["pointerout","pointerover"]);Ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ya("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kd="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(" "),F9=new Set("cancel close invalid load scroll toggle".split(" ").concat(Kd));function kk(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,L6(r,t,void 0,e),e.currentTarget=null}function H_(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,d=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;kk(o,a,d),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,d=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;kk(o,a,d),i=c}}}if($m)throw e=ib,$m=!1,ib=null,e}function vn(e,t){var n=t[mb];n===void 0&&(n=t[mb]=new Set);var r=e+"__bubble";n.has(r)||(j_(t,e,2,!1),n.add(r))}function U0(e,t,n){var r=0;t&&(r|=4),j_(n,e,r,t)}var Ph="_reactListening"+Math.random().toString(36).slice(2);function If(e){if(!e[Ph]){e[Ph]=!0,YT.forEach(function(n){n!=="selectionchange"&&(F9.has(n)||U0(n,!1,e),U0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ph]||(t[Ph]=!0,U0("selectionchange",!1,t))}}function j_(e,t,n,r){switch(P_(t)){case 1:var o=Q6;break;case 4:o=X6;break;default:o=Gw}n=o.bind(null,t,n,e),o=void 0,!ob||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 W0(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=ga(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}d_(function(){var d=i,p=jw(n),h=[];e:{var m=z_.get(e);if(m!==void 0){var g=qw,b=e;switch(e){case"keypress":if(nm(n)===0)break e;case"keydown":case"keyup":g=f9;break;case"focusin":b="focus",g=D0;break;case"focusout":b="blur",g=D0;break;case"beforeblur":case"afterblur":g=D0;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":g=hk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=e9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=m9;break;case F_:case N_:case D_:g=r9;break;case B_:g=v9;break;case"scroll":g=J6;break;case"wheel":g=b9;break;case"copy":case"cut":case"paste":g=i9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=gk}var v=(t&4)!==0,E=!v&&e==="scroll",w=v?m!==null?m+"Capture":null:m;v=[];for(var C=d,x;C!==null;){x=C;var P=x.stateNode;if(x.tag===5&&P!==null&&(x=P,w!==null&&(P=Cf(C,w),P!=null&&v.push($f(C,P,x)))),E)break;C=C.return}0<v.length&&(m=new g(m,b,null,n,p),h.push({event:m,listeners:v}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==nb&&(b=n.relatedTarget||n.fromElement)&&(ga(b)||b[Ds]))break e;if((g||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,g?(b=n.relatedTarget||n.toElement,g=d,b=b?ga(b):null,b!==null&&(E=Qa(b),b!==E||b.tag!==5&&b.tag!==6)&&(b=null)):(g=null,b=d),g!==b)){if(v=hk,P="onMouseLeave",w="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(v=gk,P="onPointerLeave",w="onPointerEnter",C="pointer"),E=g==null?m:Hc(g),x=b==null?m:Hc(b),m=new v(P,C+"leave",g,n,p),m.target=E,m.relatedTarget=x,P=null,ga(p)===d&&(v=new v(w,C+"enter",b,n,p),v.target=x,v.relatedTarget=E,P=v),E=P,g&&b)t:{for(v=g,w=b,C=0,x=v;x;x=yc(x))C++;for(x=0,P=w;P;P=yc(P))x++;for(;0<C-x;)v=yc(v),C--;for(;0<x-C;)w=yc(w),x--;for(;C--;){if(v===w||w!==null&&v===w.alternate)break t;v=yc(v),w=yc(w)}v=null}else v=null;g!==null&&Ik(h,m,g,v,!1),b!==null&&E!==null&&Ik(h,E,b,v,!0)}}e:{if(m=d?Hc(d):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var $=k9;else if(bk(m))if(M_)$=_9;else{$=$9;var I=I9}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&($=T9);if($&&($=$(e,d))){__(h,$,n,p);break e}I&&I(e,m,d),e==="focusout"&&(I=m._wrapperState)&&I.controlled&&m.type==="number"&&X1(m,"number",m.value)}switch(I=d?Hc(d):window,e){case"focusin":(bk(I)||I.contentEditable==="true")&&(Bc=I,cb=d,of=null);break;case"focusout":of=cb=Bc=null;break;case"mousedown":ub=!0;break;case"contextmenu":case"mouseup":case"dragend":ub=!1,Ek(h,n,p);break;case"selectionchange":if(O9)break;case"keydown":case"keyup":Ek(h,n,p)}var k;if(Qw)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else Dc?$_(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(I_&&n.locale!=="ko"&&(Dc||M!=="onCompositionStart"?M==="onCompositionEnd"&&Dc&&(k=k_()):(bl=p,Kw="value"in bl?bl.value:bl.textContent,Dc=!0)),I=Om(d,M),0<I.length&&(M=new mk(M,e,null,n,p),h.push({event:M,listeners:I}),k?M.data=k:(k=T_(n),k!==null&&(M.data=k)))),(k=C9?x9(e,n):S9(e,n))&&(d=Om(d,"onBeforeInput"),0<d.length&&(p=new mk("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:d}),p.data=k))}H_(h,t)})}function $f(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Om(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Cf(e,n),i!=null&&r.unshift($f(e,i,o)),i=Cf(e,t),i!=null&&r.push($f(e,i,o))),e=e.return}return r}function yc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ik(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,d=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&d!==null&&(a=d,o?(c=Cf(n,i),c!=null&&s.unshift($f(n,c,a))):o||(c=Cf(n,i),c!=null&&s.push($f(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var N9=/\r\n?/g,D9=/\u0000|\uFFFD/g;function $k(e){return(typeof e=="string"?e:""+e).replace(N9,`
|
|
30
|
+
`).replace(D9,"")}function kh(e,t,n){if(t=$k(t),$k(e)!==t&&n)throw Error(Oe(425))}function Lm(){}var db=null,fb=null;function pb(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 hb=typeof setTimeout=="function"?setTimeout:void 0,B9=typeof clearTimeout=="function"?clearTimeout:void 0,Tk=typeof Promise=="function"?Promise:void 0,z9=typeof queueMicrotask=="function"?queueMicrotask:typeof Tk!="undefined"?function(e){return Tk.resolve(null).then(e).catch(H9)}:hb;function H9(e){setTimeout(function(){throw e})}function G0(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),Ef(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ef(t)}function Il(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 _k(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 Bu=Math.random().toString(36).slice(2),Yi="__reactFiber$"+Bu,Tf="__reactProps$"+Bu,Ds="__reactContainer$"+Bu,mb="__reactEvents$"+Bu,j9="__reactListeners$"+Bu,V9="__reactHandles$"+Bu;function ga(e){var t=e[Yi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ds]||n[Yi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_k(e);e!==null;){if(n=e[Yi])return n;e=_k(e)}return t}e=n,n=e.parentNode}return null}function cp(e){return e=e[Yi]||e[Ds],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Oe(33))}function Rg(e){return e[Tf]||null}var gb=[],jc=-1;function Yl(e){return{current:e}}function wn(e){0>jc||(e.current=gb[jc],gb[jc]=null,jc--)}function pn(e,t){jc++,gb[jc]=e.current,e.current=t}var Dl={},Rr=Yl(Dl),to=Yl(!1),Ra=Dl;function mu(e,t){var n=e.type.contextTypes;if(!n)return Dl;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 no(e){return e=e.childContextTypes,e!=null}function Am(){wn(to),wn(Rr)}function Mk(e,t,n){if(Rr.current!==Dl)throw Error(Oe(168));pn(Rr,t),pn(to,n)}function V_(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(Oe(108,I6(e)||"Unknown",o));return Nn({},n,r)}function Fm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dl,Ra=Rr.current,pn(Rr,e),pn(to,to.current),!0}function Rk(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=V_(e,t,Ra),r.__reactInternalMemoizedMergedChildContext=e,wn(to),wn(Rr),pn(Rr,e)):wn(to),pn(to,n)}var _s=null,Og=!1,K0=!1;function U_(e){_s===null?_s=[e]:_s.push(e)}function U9(e){Og=!0,U_(e)}function Ql(){if(!K0&&_s!==null){K0=!0;var e=0,t=tn;try{var n=_s;for(tn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}_s=null,Og=!1}catch(o){throw _s!==null&&(_s=_s.slice(e+1)),m_(Vw,Ql),o}finally{tn=t,K0=!1}}return null}var Vc=[],Uc=0,Nm=null,Dm=0,ei=[],ti=0,Oa=null,Rs=1,Os="";function ua(e,t){Vc[Uc++]=Dm,Vc[Uc++]=Nm,Nm=e,Dm=t}function W_(e,t,n){ei[ti++]=Rs,ei[ti++]=Os,ei[ti++]=Oa,Oa=e;var r=Rs;e=Os;var o=32-_i(r)-1;r&=~(1<<o),n+=1;var i=32-_i(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Rs=1<<32-_i(t)+o|n<<o|r,Os=i+e}else Rs=1<<i|n<<o|r,Os=e}function Jw(e){e.return!==null&&(ua(e,1),W_(e,1,0))}function Zw(e){for(;e===Nm;)Nm=Vc[--Uc],Vc[Uc]=null,Dm=Vc[--Uc],Vc[Uc]=null;for(;e===Oa;)Oa=ei[--ti],ei[ti]=null,Os=ei[--ti],ei[ti]=null,Rs=ei[--ti],ei[ti]=null}var Io=null,ko=null,kn=!1,Ii=null;function G_(e,t){var n=ri(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 Ok(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,Io=e,ko=Il(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Io=e,ko=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Oa!==null?{id:Rs,overflow:Os}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ri(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Io=e,ko=null,!0):!1;default:return!1}}function vb(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yb(e){if(kn){var t=ko;if(t){var n=t;if(!Ok(e,t)){if(vb(e))throw Error(Oe(418));t=Il(n.nextSibling);var r=Io;t&&Ok(e,t)?G_(r,n):(e.flags=e.flags&-4097|2,kn=!1,Io=e)}}else{if(vb(e))throw Error(Oe(418));e.flags=e.flags&-4097|2,kn=!1,Io=e}}}function Lk(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Io=e}function Ih(e){if(e!==Io)return!1;if(!kn)return Lk(e),kn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pb(e.type,e.memoizedProps)),t&&(t=ko)){if(vb(e))throw K_(),Error(Oe(418));for(;t;)G_(e,t),t=Il(t.nextSibling)}if(Lk(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Oe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ko=Il(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ko=null}}else ko=Io?Il(e.stateNode.nextSibling):null;return!0}function K_(){for(var e=ko;e;)e=Il(e.nextSibling)}function gu(){ko=Io=null,kn=!1}function eC(e){Ii===null?Ii=[e]:Ii.push(e)}var W9=Ws.ReactCurrentBatchConfig;function Ei(e,t){if(e&&e.defaultProps){t=Nn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Bm=Yl(null),zm=null,Wc=null,tC=null;function nC(){tC=Wc=zm=null}function rC(e){var t=Bm.current;wn(Bm),e._currentValue=t}function bb(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 ou(e,t){zm=e,tC=Wc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Jr=!0),e.firstContext=null)}function ai(e){var t=e._currentValue;if(tC!==e)if(e={context:e,memoizedValue:t,next:null},Wc===null){if(zm===null)throw Error(Oe(308));Wc=e,zm.dependencies={lanes:0,firstContext:e}}else Wc=Wc.next=e;return t}var va=null;function oC(e){va===null?va=[e]:va.push(e)}function q_(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,oC(t)):(n.next=o.next,o.next=n),t.interleaved=n,Bs(e,r)}function Bs(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 fl=!1;function iC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Y_(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 As(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $l(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Vt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Bs(e,n)}return o=r.interleaved,o===null?(t.next=t,oC(r)):(t.next=o.next,o.next=t),r.interleaved=t,Bs(e,n)}function rm(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,Uw(e,n)}}function Ak(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 Hm(e,t,n,r){var o=e.updateQueue;fl=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,d=c.next;c.next=null,s===null?i=d:s.next=d,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=d:a.next=d,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=d=c=null,a=i;do{var m=a.lane,g=a.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,v=a;switch(m=t,g=n,v.tag){case 1:if(b=v.payload,typeof b=="function"){h=b.call(g,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,m=typeof b=="function"?b.call(g,h,m):b,m==null)break e;h=Nn({},h,m);break e;case 2:fl=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else g={eventTime:g,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(d=p=g,c=h):p=p.next=g,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=d,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);Aa|=s,e.lanes=s,e.memoizedState=h}}function Fk(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(Oe(191,o));o.call(r)}}}var Q_=new qT.Component().refs;function wb(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Nn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Lg={isMounted:function(e){return(e=e._reactInternals)?Qa(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=zr(),o=_l(e),i=As(r,o);i.payload=t,n!=null&&(i.callback=n),t=$l(e,i,o),t!==null&&(Mi(t,e,o,r),rm(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=zr(),o=_l(e),i=As(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=$l(e,i,o),t!==null&&(Mi(t,e,o,r),rm(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=zr(),r=_l(e),o=As(n,r);o.tag=2,t!=null&&(o.callback=t),t=$l(e,o,r),t!==null&&(Mi(t,e,r,n),rm(t,e,r))}};function Nk(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?!kf(n,r)||!kf(o,i):!0}function X_(e,t,n){var r=!1,o=Dl,i=t.contextType;return typeof i=="object"&&i!==null?i=ai(i):(o=no(t)?Ra:Rr.current,r=t.contextTypes,i=(r=r!=null)?mu(e,o):Dl),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Lg,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Dk(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&&Lg.enqueueReplaceState(t,t.state,null)}function Cb(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Q_,iC(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=ai(i):(i=no(t)?Ra:Rr.current,o.context=mu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(wb(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&&Lg.enqueueReplaceState(o,o.state,null),Hm(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Id(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(Oe(309));var r=n.stateNode}if(!r)throw Error(Oe(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===Q_&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(Oe(284));if(!n._owner)throw Error(Oe(290,e))}return e}function $h(e,t){throw e=Object.prototype.toString.call(t),Error(Oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bk(e){var t=e._init;return t(e._payload)}function J_(e){function t(w,C){if(e){var x=w.deletions;x===null?(w.deletions=[C],w.flags|=16):x.push(C)}}function n(w,C){if(!e)return null;for(;C!==null;)t(w,C),C=C.sibling;return null}function r(w,C){for(w=new Map;C!==null;)C.key!==null?w.set(C.key,C):w.set(C.index,C),C=C.sibling;return w}function o(w,C){return w=Ml(w,C),w.index=0,w.sibling=null,w}function i(w,C,x){return w.index=x,e?(x=w.alternate,x!==null?(x=x.index,x<C?(w.flags|=2,C):x):(w.flags|=2,C)):(w.flags|=1048576,C)}function s(w){return e&&w.alternate===null&&(w.flags|=2),w}function a(w,C,x,P){return C===null||C.tag!==6?(C=e1(x,w.mode,P),C.return=w,C):(C=o(C,x),C.return=w,C)}function c(w,C,x,P){var $=x.type;return $===Nc?p(w,C,x.props.children,P,x.key):C!==null&&(C.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===dl&&Bk($)===C.type)?(P=o(C,x.props),P.ref=Id(w,C,x),P.return=w,P):(P=cm(x.type,x.key,x.props,null,w.mode,P),P.ref=Id(w,C,x),P.return=w,P)}function d(w,C,x,P){return C===null||C.tag!==4||C.stateNode.containerInfo!==x.containerInfo||C.stateNode.implementation!==x.implementation?(C=t1(x,w.mode,P),C.return=w,C):(C=o(C,x.children||[]),C.return=w,C)}function p(w,C,x,P,$){return C===null||C.tag!==7?(C=Ea(x,w.mode,P,$),C.return=w,C):(C=o(C,x),C.return=w,C)}function h(w,C,x){if(typeof C=="string"&&C!==""||typeof C=="number")return C=e1(""+C,w.mode,x),C.return=w,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case vh:return x=cm(C.type,C.key,C.props,null,w.mode,x),x.ref=Id(w,null,C),x.return=w,x;case Fc:return C=t1(C,w.mode,x),C.return=w,C;case dl:var P=C._init;return h(w,P(C._payload),x)}if(Wd(C)||xd(C))return C=Ea(C,w.mode,x,null),C.return=w,C;$h(w,C)}return null}function m(w,C,x,P){var $=C!==null?C.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return $!==null?null:a(w,C,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case vh:return x.key===$?c(w,C,x,P):null;case Fc:return x.key===$?d(w,C,x,P):null;case dl:return $=x._init,m(w,C,$(x._payload),P)}if(Wd(x)||xd(x))return $!==null?null:p(w,C,x,P,null);$h(w,x)}return null}function g(w,C,x,P,$){if(typeof P=="string"&&P!==""||typeof P=="number")return w=w.get(x)||null,a(C,w,""+P,$);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case vh:return w=w.get(P.key===null?x:P.key)||null,c(C,w,P,$);case Fc:return w=w.get(P.key===null?x:P.key)||null,d(C,w,P,$);case dl:var I=P._init;return g(w,C,x,I(P._payload),$)}if(Wd(P)||xd(P))return w=w.get(x)||null,p(C,w,P,$,null);$h(C,P)}return null}function b(w,C,x,P){for(var $=null,I=null,k=C,M=C=0,O=null;k!==null&&M<x.length;M++){k.index>M?(O=k,k=null):O=k.sibling;var A=m(w,k,x[M],P);if(A===null){k===null&&(k=O);break}e&&k&&A.alternate===null&&t(w,k),C=i(A,C,M),I===null?$=A:I.sibling=A,I=A,k=O}if(M===x.length)return n(w,k),kn&&ua(w,M),$;if(k===null){for(;M<x.length;M++)k=h(w,x[M],P),k!==null&&(C=i(k,C,M),I===null?$=k:I.sibling=k,I=k);return kn&&ua(w,M),$}for(k=r(w,k);M<x.length;M++)O=g(k,w,M,x[M],P),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?M:O.key),C=i(O,C,M),I===null?$=O:I.sibling=O,I=O);return e&&k.forEach(function(L){return t(w,L)}),kn&&ua(w,M),$}function v(w,C,x,P){var $=xd(x);if(typeof $!="function")throw Error(Oe(150));if(x=$.call(x),x==null)throw Error(Oe(151));for(var I=$=null,k=C,M=C=0,O=null,A=x.next();k!==null&&!A.done;M++,A=x.next()){k.index>M?(O=k,k=null):O=k.sibling;var L=m(w,k,A.value,P);if(L===null){k===null&&(k=O);break}e&&k&&L.alternate===null&&t(w,k),C=i(L,C,M),I===null?$=L:I.sibling=L,I=L,k=O}if(A.done)return n(w,k),kn&&ua(w,M),$;if(k===null){for(;!A.done;M++,A=x.next())A=h(w,A.value,P),A!==null&&(C=i(A,C,M),I===null?$=A:I.sibling=A,I=A);return kn&&ua(w,M),$}for(k=r(w,k);!A.done;M++,A=x.next())A=g(k,w,M,A.value,P),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?M:A.key),C=i(A,C,M),I===null?$=A:I.sibling=A,I=A);return e&&k.forEach(function(D){return t(w,D)}),kn&&ua(w,M),$}function E(w,C,x,P){if(typeof x=="object"&&x!==null&&x.type===Nc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case vh:e:{for(var $=x.key,I=C;I!==null;){if(I.key===$){if($=x.type,$===Nc){if(I.tag===7){n(w,I.sibling),C=o(I,x.props.children),C.return=w,w=C;break e}}else if(I.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===dl&&Bk($)===I.type){n(w,I.sibling),C=o(I,x.props),C.ref=Id(w,I,x),C.return=w,w=C;break e}n(w,I);break}else t(w,I);I=I.sibling}x.type===Nc?(C=Ea(x.props.children,w.mode,P,x.key),C.return=w,w=C):(P=cm(x.type,x.key,x.props,null,w.mode,P),P.ref=Id(w,C,x),P.return=w,w=P)}return s(w);case Fc:e:{for(I=x.key;C!==null;){if(C.key===I)if(C.tag===4&&C.stateNode.containerInfo===x.containerInfo&&C.stateNode.implementation===x.implementation){n(w,C.sibling),C=o(C,x.children||[]),C.return=w,w=C;break e}else{n(w,C);break}else t(w,C);C=C.sibling}C=t1(x,w.mode,P),C.return=w,w=C}return s(w);case dl:return I=x._init,E(w,C,I(x._payload),P)}if(Wd(x))return b(w,C,x,P);if(xd(x))return v(w,C,x,P);$h(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,C!==null&&C.tag===6?(n(w,C.sibling),C=o(C,x),C.return=w,w=C):(n(w,C),C=e1(x,w.mode,P),C.return=w,w=C),s(w)):n(w,C)}return E}var vu=J_(!0),Z_=J_(!1),up={},Ji=Yl(up),_f=Yl(up),Mf=Yl(up);function ya(e){if(e===up)throw Error(Oe(174));return e}function sC(e,t){switch(pn(Mf,t),pn(_f,e),pn(Ji,up),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Z1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Z1(t,e)}wn(Ji),pn(Ji,t)}function yu(){wn(Ji),wn(_f),wn(Mf)}function eM(e){ya(Mf.current);var t=ya(Ji.current),n=Z1(t,e.type);t!==n&&(pn(_f,e),pn(Ji,n))}function lC(e){_f.current===e&&(wn(Ji),wn(_f))}var On=Yl(0);function jm(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 q0=[];function aC(){for(var e=0;e<q0.length;e++)q0[e]._workInProgressVersionPrimary=null;q0.length=0}var om=Ws.ReactCurrentDispatcher,Y0=Ws.ReactCurrentBatchConfig,La=0,An=null,Zn=null,ar=null,Vm=!1,sf=!1,Rf=0,G9=0;function xr(){throw Error(Oe(321))}function cC(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Oi(e[n],t[n]))return!1;return!0}function uC(e,t,n,r,o,i){if(La=i,An=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,om.current=e===null||e.memoizedState===null?Q9:X9,e=n(r,o),sf){i=0;do{if(sf=!1,Rf=0,25<=i)throw Error(Oe(301));i+=1,ar=Zn=null,t.updateQueue=null,om.current=J9,e=n(r,o)}while(sf)}if(om.current=Um,t=Zn!==null&&Zn.next!==null,La=0,ar=Zn=An=null,Vm=!1,t)throw Error(Oe(300));return e}function dC(){var e=Rf!==0;return Rf=0,e}function Vi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ar===null?An.memoizedState=ar=e:ar=ar.next=e,ar}function ci(){if(Zn===null){var e=An.alternate;e=e!==null?e.memoizedState:null}else e=Zn.next;var t=ar===null?An.memoizedState:ar.next;if(t!==null)ar=t,Zn=e;else{if(e===null)throw Error(Oe(310));Zn=e,e={memoizedState:Zn.memoizedState,baseState:Zn.baseState,baseQueue:Zn.baseQueue,queue:Zn.queue,next:null},ar===null?An.memoizedState=ar=e:ar=ar.next=e}return ar}function Of(e,t){return typeof t=="function"?t(e):t}function Q0(e){var t=ci(),n=t.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=e;var r=Zn,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,d=i;do{var p=d.lane;if((La&p)===p)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:p,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,An.lanes|=p,Aa|=p}d=d.next}while(d!==null&&d!==i);c===null?s=r:c.next=a,Oi(r,t.memoizedState)||(Jr=!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,An.lanes|=i,Aa|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function X0(e){var t=ci(),n=t.queue;if(n===null)throw Error(Oe(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);Oi(i,t.memoizedState)||(Jr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function tM(){}function nM(e,t){var n=An,r=ci(),o=t(),i=!Oi(r.memoizedState,o);if(i&&(r.memoizedState=o,Jr=!0),r=r.queue,fC(iM.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ar!==null&&ar.memoizedState.tag&1){if(n.flags|=2048,Lf(9,oM.bind(null,n,r,o,t),void 0,null),cr===null)throw Error(Oe(349));La&30||rM(n,t,o)}return o}function rM(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=An.updateQueue,t===null?(t={lastEffect:null,stores:null},An.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function oM(e,t,n,r){t.value=n,t.getSnapshot=r,sM(t)&&lM(e)}function iM(e,t,n){return n(function(){sM(t)&&lM(e)})}function sM(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Oi(e,n)}catch(r){return!0}}function lM(e){var t=Bs(e,1);t!==null&&Mi(t,e,1,-1)}function zk(e){var t=Vi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Of,lastRenderedState:e},t.queue=e,e=e.dispatch=Y9.bind(null,An,e),[t.memoizedState,e]}function Lf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=An.updateQueue,t===null?(t={lastEffect:null,stores:null},An.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 aM(){return ci().memoizedState}function im(e,t,n,r){var o=Vi();An.flags|=e,o.memoizedState=Lf(1|t,n,void 0,r===void 0?null:r)}function Ag(e,t,n,r){var o=ci();r=r===void 0?null:r;var i=void 0;if(Zn!==null){var s=Zn.memoizedState;if(i=s.destroy,r!==null&&cC(r,s.deps)){o.memoizedState=Lf(t,n,i,r);return}}An.flags|=e,o.memoizedState=Lf(1|t,n,i,r)}function Hk(e,t){return im(8390656,8,e,t)}function fC(e,t){return Ag(2048,8,e,t)}function cM(e,t){return Ag(4,2,e,t)}function uM(e,t){return Ag(4,4,e,t)}function dM(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 fM(e,t,n){return n=n!=null?n.concat([e]):null,Ag(4,4,dM.bind(null,t,e),n)}function pC(){}function pM(e,t){var n=ci();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cC(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hM(e,t){var n=ci();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cC(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function mM(e,t,n){return La&21?(Oi(n,t)||(n=y_(),An.lanes|=n,Aa|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Jr=!0),e.memoizedState=n)}function K9(e,t){var n=tn;tn=n!==0&&4>n?n:4,e(!0);var r=Y0.transition;Y0.transition={};try{e(!1),t()}finally{tn=n,Y0.transition=r}}function gM(){return ci().memoizedState}function q9(e,t,n){var r=_l(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vM(e))yM(t,n);else if(n=q_(e,t,n,r),n!==null){var o=zr();Mi(n,e,r,o),bM(n,t,r)}}function Y9(e,t,n){var r=_l(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vM(e))yM(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,Oi(a,s)){var c=t.interleaved;c===null?(o.next=o,oC(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch(d){}finally{}n=q_(e,t,o,r),n!==null&&(o=zr(),Mi(n,e,r,o),bM(n,t,r))}}function vM(e){var t=e.alternate;return e===An||t!==null&&t===An}function yM(e,t){sf=Vm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bM(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uw(e,n)}}var Um={readContext:ai,useCallback:xr,useContext:xr,useEffect:xr,useImperativeHandle:xr,useInsertionEffect:xr,useLayoutEffect:xr,useMemo:xr,useReducer:xr,useRef:xr,useState:xr,useDebugValue:xr,useDeferredValue:xr,useTransition:xr,useMutableSource:xr,useSyncExternalStore:xr,useId:xr,unstable_isNewReconciler:!1},Q9={readContext:ai,useCallback:function(e,t){return Vi().memoizedState=[e,t===void 0?null:t],e},useContext:ai,useEffect:Hk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,im(4194308,4,dM.bind(null,t,e),n)},useLayoutEffect:function(e,t){return im(4194308,4,e,t)},useInsertionEffect:function(e,t){return im(4,2,e,t)},useMemo:function(e,t){var n=Vi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vi();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=q9.bind(null,An,e),[r.memoizedState,e]},useRef:function(e){var t=Vi();return e={current:e},t.memoizedState=e},useState:zk,useDebugValue:pC,useDeferredValue:function(e){return Vi().memoizedState=e},useTransition:function(){var e=zk(!1),t=e[0];return e=K9.bind(null,e[1]),Vi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=An,o=Vi();if(kn){if(n===void 0)throw Error(Oe(407));n=n()}else{if(n=t(),cr===null)throw Error(Oe(349));La&30||rM(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Hk(iM.bind(null,r,i,e),[e]),r.flags|=2048,Lf(9,oM.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Vi(),t=cr.identifierPrefix;if(kn){var n=Os,r=Rs;n=(r&~(1<<32-_i(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Rf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=G9++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},X9={readContext:ai,useCallback:pM,useContext:ai,useEffect:fC,useImperativeHandle:fM,useInsertionEffect:cM,useLayoutEffect:uM,useMemo:hM,useReducer:Q0,useRef:aM,useState:function(){return Q0(Of)},useDebugValue:pC,useDeferredValue:function(e){var t=ci();return mM(t,Zn.memoizedState,e)},useTransition:function(){var e=Q0(Of)[0],t=ci().memoizedState;return[e,t]},useMutableSource:tM,useSyncExternalStore:nM,useId:gM,unstable_isNewReconciler:!1},J9={readContext:ai,useCallback:pM,useContext:ai,useEffect:fC,useImperativeHandle:fM,useInsertionEffect:cM,useLayoutEffect:uM,useMemo:hM,useReducer:X0,useRef:aM,useState:function(){return X0(Of)},useDebugValue:pC,useDeferredValue:function(e){var t=ci();return Zn===null?t.memoizedState=e:mM(t,Zn.memoizedState,e)},useTransition:function(){var e=X0(Of)[0],t=ci().memoizedState;return[e,t]},useMutableSource:tM,useSyncExternalStore:nM,useId:gM,unstable_isNewReconciler:!1};function bu(e,t){try{var n="",r=t;do n+=k6(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 J0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function xb(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Z9=typeof WeakMap=="function"?WeakMap:Map;function wM(e,t,n){n=As(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gm||(Gm=!0,Rb=r),xb(e,t)},n}function CM(e,t,n){n=As(-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(){xb(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){xb(e,t),typeof r!="function"&&(Tl===null?Tl=new Set([this]):Tl.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function jk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Z9;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=pH.bind(null,e,t,n),t.then(e,e))}function Vk(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 Uk(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=As(-1,1),t.tag=2,$l(n,t,1))),n.lanes|=1),e)}var eH=Ws.ReactCurrentOwner,Jr=!1;function Nr(e,t,n,r){t.child=e===null?Z_(t,null,n,r):vu(t,e.child,n,r)}function Wk(e,t,n,r,o){n=n.render;var i=t.ref;return ou(t,o),r=uC(e,t,n,r,i,o),n=dC(),e!==null&&!Jr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zs(e,t,o)):(kn&&n&&Jw(t),t.flags|=1,Nr(e,t,r,o),t.child)}function Gk(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!CC(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,xM(e,t,i,r,o)):(e=cm(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:kf,n(s,r)&&e.ref===t.ref)return zs(e,t,o)}return t.flags|=1,e=Ml(i,r),e.ref=t.ref,e.return=t,t.child=e}function xM(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(kf(i,r)&&e.ref===t.ref)if(Jr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Jr=!0);else return t.lanes=e.lanes,zs(e,t,o)}return Sb(e,t,n,r,o)}function SM(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},pn(Kc,bo),bo|=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,pn(Kc,bo),bo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,pn(Kc,bo),bo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,pn(Kc,bo),bo|=r;return Nr(e,t,o,n),t.child}function EM(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Sb(e,t,n,r,o){var i=no(n)?Ra:Rr.current;return i=mu(t,i),ou(t,o),n=uC(e,t,n,r,i,o),r=dC(),e!==null&&!Jr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zs(e,t,o)):(kn&&r&&Jw(t),t.flags|=1,Nr(e,t,n,o),t.child)}function Kk(e,t,n,r,o){if(no(n)){var i=!0;Fm(t)}else i=!1;if(ou(t,o),t.stateNode===null)sm(e,t),X_(t,n,r),Cb(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=ai(d):(d=no(n)?Ra:Rr.current,d=mu(t,d));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!==d)&&Dk(t,s,r,d),fl=!1;var m=t.memoizedState;s.state=m,Hm(t,r,s,o),c=t.memoizedState,a!==r||m!==c||to.current||fl?(typeof p=="function"&&(wb(t,n,p,r),c=t.memoizedState),(a=fl||Nk(t,n,a,r,m,c,d))?(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=d,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Y_(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Ei(t.type,a),s.props=d,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=ai(c):(c=no(n)?Ra:Rr.current,c=mu(t,c));var g=n.getDerivedStateFromProps;(p=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||m!==c)&&Dk(t,s,r,c),fl=!1,m=t.memoizedState,s.state=m,Hm(t,r,s,o);var b=t.memoizedState;a!==h||m!==b||to.current||fl?(typeof g=="function"&&(wb(t,n,g,r),b=t.memoizedState),(d=fl||Nk(t,n,d,r,m,b,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,b,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,b,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=b),s.props=r,s.state=b,s.context=c,r=d):(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 Eb(e,t,n,r,i,o)}function Eb(e,t,n,r,o,i){EM(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Rk(t,n,!1),zs(e,t,i);r=t.stateNode,eH.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=vu(t,e.child,null,i),t.child=vu(t,null,a,i)):Nr(e,t,a,i),t.memoizedState=r.state,o&&Rk(t,n,!0),t.child}function PM(e){var t=e.stateNode;t.pendingContext?Mk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mk(e,t.context,!1),sC(e,t.containerInfo)}function qk(e,t,n,r,o){return gu(),eC(o),t.flags|=256,Nr(e,t,n,r),t.child}var Pb={dehydrated:null,treeContext:null,retryLane:0};function kb(e){return{baseLanes:e,cachePool:null,transitions:null}}function kM(e,t,n){var r=t.pendingProps,o=On.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),pn(On,o&1),e===null)return yb(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=Dg(s,r,0,null),e=Ea(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=kb(n),t.memoizedState=Pb,e):hC(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return tH(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=Ml(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Ml(a,i):(i=Ea(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?kb(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Pb,r}return i=e.child,e=i.sibling,r=Ml(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 hC(e,t){return t=Dg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Th(e,t,n,r){return r!==null&&eC(r),vu(t,e.child,null,n),e=hC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tH(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=J0(Error(Oe(422))),Th(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Dg({mode:"visible",children:r.children},o,0,null),i=Ea(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&vu(t,e.child,null,s),t.child.memoizedState=kb(s),t.memoizedState=Pb,i);if(!(t.mode&1))return Th(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(Oe(419)),r=J0(i,r,void 0),Th(e,t,s,r)}if(a=(s&e.childLanes)!==0,Jr||a){if(r=cr,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,Bs(e,o),Mi(r,e,o,-1))}return wC(),r=J0(Error(Oe(421))),Th(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=hH.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ko=Il(o.nextSibling),Io=t,kn=!0,Ii=null,e!==null&&(ei[ti++]=Rs,ei[ti++]=Os,ei[ti++]=Oa,Rs=e.id,Os=e.overflow,Oa=t),t=hC(t,r.children),t.flags|=4096,t)}function Yk(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),bb(e.return,t,n)}function Z0(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 IM(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Nr(e,t,r.children,n),r=On.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&&Yk(e,n,t);else if(e.tag===19)Yk(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(pn(On,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&&jm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Z0(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&&jm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Z0(t,!0,n,null,i);break;case"together":Z0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Aa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Oe(153));if(t.child!==null){for(e=t.child,n=Ml(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ml(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nH(e,t,n){switch(t.tag){case 3:PM(t),gu();break;case 5:eM(t);break;case 1:no(t.type)&&Fm(t);break;case 4:sC(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;pn(Bm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pn(On,On.current&1),t.flags|=128,null):n&t.child.childLanes?kM(e,t,n):(pn(On,On.current&1),e=zs(e,t,n),e!==null?e.sibling:null);pn(On,On.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return IM(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),pn(On,On.current),r)break;return null;case 22:case 23:return t.lanes=0,SM(e,t,n)}return zs(e,t,n)}var $M,Ib,TM,_M;$M=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}};Ib=function(){};TM=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ya(Ji.current);var i=null;switch(n){case"input":o=Y1(e,o),r=Y1(e,r),i=[];break;case"select":o=Nn({},o,{value:void 0}),r=Nn({},r,{value:void 0}),i=[];break;case"textarea":o=J1(e,o),r=J1(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Lm)}eb(n,r);var s;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var a=o[d];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(bf.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(a=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&c!==a&&(c!=null||a!=null))if(d==="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(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(bf.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&vn("scroll",e),i||a===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};_M=function(e,t,n,r){n!==r&&(t.flags|=4)};function $d(e,t){if(!kn)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 Sr(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 rH(e,t,n){var r=t.pendingProps;switch(Zw(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sr(t),null;case 1:return no(t.type)&&Am(),Sr(t),null;case 3:return r=t.stateNode,yu(),wn(to),wn(Rr),aC(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ih(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ii!==null&&(Ab(Ii),Ii=null))),Ib(e,t),Sr(t),null;case 5:lC(t);var o=ya(Mf.current);if(n=t.type,e!==null&&t.stateNode!=null)TM(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Oe(166));return Sr(t),null}if(e=ya(Ji.current),Ih(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Yi]=t,r[Tf]=i,e=(t.mode&1)!==0,n){case"dialog":vn("cancel",r),vn("close",r);break;case"iframe":case"object":case"embed":vn("load",r);break;case"video":case"audio":for(o=0;o<Kd.length;o++)vn(Kd[o],r);break;case"source":vn("error",r);break;case"img":case"image":case"link":vn("error",r),vn("load",r);break;case"details":vn("toggle",r);break;case"input":ok(r,i),vn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},vn("invalid",r);break;case"textarea":sk(r,i),vn("invalid",r)}eb(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&&kh(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&kh(r.textContent,a,e),o=["children",""+a]):bf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&vn("scroll",r)}switch(n){case"input":yh(r),ik(r,i,!0);break;case"textarea":yh(r),lk(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Lm)}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=r_(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[Yi]=t,e[Tf]=r,$M(e,t,!1,!1),t.stateNode=e;e:{switch(s=tb(n,r),n){case"dialog":vn("cancel",e),vn("close",e),o=r;break;case"iframe":case"object":case"embed":vn("load",e),o=r;break;case"video":case"audio":for(o=0;o<Kd.length;o++)vn(Kd[o],e);o=r;break;case"source":vn("error",e),o=r;break;case"img":case"image":case"link":vn("error",e),vn("load",e),o=r;break;case"details":vn("toggle",e),o=r;break;case"input":ok(e,r),o=Y1(e,r),vn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Nn({},r,{value:void 0}),vn("invalid",e);break;case"textarea":sk(e,r),o=J1(e,r),vn("invalid",e);break;default:o=r}eb(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?s_(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&o_(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&wf(e,c):typeof c=="number"&&wf(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(bf.hasOwnProperty(i)?c!=null&&i==="onScroll"&&vn("scroll",e):c!=null&&Dw(e,i,c,s))}switch(n){case"input":yh(e),ik(e,r,!1);break;case"textarea":yh(e),lk(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Nl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?eu(e,!!r.multiple,i,!1):r.defaultValue!=null&&eu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Lm)}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 Sr(t),null;case 6:if(e&&t.stateNode!=null)_M(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Oe(166));if(n=ya(Mf.current),ya(Ji.current),Ih(t)){if(r=t.stateNode,n=t.memoizedProps,r[Yi]=t,(i=r.nodeValue!==n)&&(e=Io,e!==null))switch(e.tag){case 3:kh(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&kh(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Yi]=t,t.stateNode=r}return Sr(t),null;case 13:if(wn(On),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(kn&&ko!==null&&t.mode&1&&!(t.flags&128))K_(),gu(),t.flags|=98560,i=!1;else if(i=Ih(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Oe(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Oe(317));i[Yi]=t}else gu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sr(t),i=!1}else Ii!==null&&(Ab(Ii),Ii=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||On.current&1?er===0&&(er=3):wC())),t.updateQueue!==null&&(t.flags|=4),Sr(t),null);case 4:return yu(),Ib(e,t),e===null&&If(t.stateNode.containerInfo),Sr(t),null;case 10:return rC(t.type._context),Sr(t),null;case 17:return no(t.type)&&Am(),Sr(t),null;case 19:if(wn(On),i=t.memoizedState,i===null)return Sr(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)$d(i,!1);else{if(er!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=jm(e),s!==null){for(t.flags|=128,$d(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 pn(On,On.current&1|2),t.child}e=e.sibling}i.tail!==null&&Wn()>wu&&(t.flags|=128,r=!0,$d(i,!1),t.lanes=4194304)}else{if(!r)if(e=jm(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$d(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!kn)return Sr(t),null}else 2*Wn()-i.renderingStartTime>wu&&n!==1073741824&&(t.flags|=128,r=!0,$d(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=Wn(),t.sibling=null,n=On.current,pn(On,r?n&1|2:n&1),t):(Sr(t),null);case 22:case 23:return bC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?bo&1073741824&&(Sr(t),t.subtreeFlags&6&&(t.flags|=8192)):Sr(t),null;case 24:return null;case 25:return null}throw Error(Oe(156,t.tag))}function oH(e,t){switch(Zw(t),t.tag){case 1:return no(t.type)&&Am(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yu(),wn(to),wn(Rr),aC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lC(t),null;case 13:if(wn(On),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Oe(340));gu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wn(On),null;case 4:return yu(),null;case 10:return rC(t.type._context),null;case 22:case 23:return bC(),null;case 24:return null;default:return null}}var _h=!1,Ir=!1,iH=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function Gc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){jn(e,t,r)}else n.current=null}function $b(e,t,n){try{n()}catch(r){jn(e,t,r)}}var Qk=!1;function sH(e,t){if(db=Mm,e=L_(),Xw(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(P){n=null;break e}var s=0,a=-1,c=-1,d=0,p=0,h=e,m=null;t:for(;;){for(var g;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),(g=h.firstChild)!==null;)m=h,h=g;for(;;){if(h===e)break t;if(m===n&&++d===o&&(a=s),m===i&&++p===r&&(c=s),(g=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=g}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(fb={focusedElem:e,selectionRange:n},Mm=!1,Qe=t;Qe!==null;)if(t=Qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qe=e;else for(;Qe!==null;){t=Qe;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,E=b.memoizedState,w=t.stateNode,C=w.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ei(t.type,v),E);w.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Oe(163))}}catch(P){jn(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}return b=Qk,Qk=!1,b}function lf(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&&$b(t,n,i)}o=o.next}while(o!==r)}}function Fg(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 Tb(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 MM(e){var t=e.alternate;t!==null&&(e.alternate=null,MM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yi],delete t[Tf],delete t[mb],delete t[j9],delete t[V9])),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 RM(e){return e.tag===5||e.tag===3||e.tag===4}function Xk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RM(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 _b(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=Lm));else if(r!==4&&(e=e.child,e!==null))for(_b(e,t,n),e=e.sibling;e!==null;)_b(e,t,n),e=e.sibling}function Mb(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(Mb(e,t,n),e=e.sibling;e!==null;)Mb(e,t,n),e=e.sibling}var gr=null,ki=!1;function rl(e,t,n){for(n=n.child;n!==null;)OM(e,t,n),n=n.sibling}function OM(e,t,n){if(Xi&&typeof Xi.onCommitFiberUnmount=="function")try{Xi.onCommitFiberUnmount($g,n)}catch(a){}switch(n.tag){case 5:Ir||Gc(n,t);case 6:var r=gr,o=ki;gr=null,rl(e,t,n),gr=r,ki=o,gr!==null&&(ki?(e=gr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):gr.removeChild(n.stateNode));break;case 18:gr!==null&&(ki?(e=gr,n=n.stateNode,e.nodeType===8?G0(e.parentNode,n):e.nodeType===1&&G0(e,n),Ef(e)):G0(gr,n.stateNode));break;case 4:r=gr,o=ki,gr=n.stateNode.containerInfo,ki=!0,rl(e,t,n),gr=r,ki=o;break;case 0:case 11:case 14:case 15:if(!Ir&&(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)&&$b(n,t,s),o=o.next}while(o!==r)}rl(e,t,n);break;case 1:if(!Ir&&(Gc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){jn(n,t,a)}rl(e,t,n);break;case 21:rl(e,t,n);break;case 22:n.mode&1?(Ir=(r=Ir)||n.memoizedState!==null,rl(e,t,n),Ir=r):rl(e,t,n);break;default:rl(e,t,n)}}function Jk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new iH),t.forEach(function(r){var o=mH.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function xi(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:gr=a.stateNode,ki=!1;break e;case 3:gr=a.stateNode.containerInfo,ki=!0;break e;case 4:gr=a.stateNode.containerInfo,ki=!0;break e}a=a.return}if(gr===null)throw Error(Oe(160));OM(i,s,o),gr=null,ki=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){jn(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)LM(t,e),t=t.sibling}function LM(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xi(t,e),ji(e),r&4){try{lf(3,e,e.return),Fg(3,e)}catch(v){jn(e,e.return,v)}try{lf(5,e,e.return)}catch(v){jn(e,e.return,v)}}break;case 1:xi(t,e),ji(e),r&512&&n!==null&&Gc(n,n.return);break;case 5:if(xi(t,e),ji(e),r&512&&n!==null&&Gc(n,n.return),e.flags&32){var o=e.stateNode;try{wf(o,"")}catch(v){jn(e,e.return,v)}}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&&t_(o,i),tb(a,s);var d=tb(a,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?s_(o,h):p==="dangerouslySetInnerHTML"?o_(o,h):p==="children"?wf(o,h):Dw(o,p,h,d)}switch(a){case"input":Q1(o,i);break;case"textarea":n_(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?eu(o,!!i.multiple,g,!1):m!==!!i.multiple&&(i.defaultValue!=null?eu(o,!!i.multiple,i.defaultValue,!0):eu(o,!!i.multiple,i.multiple?[]:"",!1))}o[Tf]=i}catch(v){jn(e,e.return,v)}}break;case 6:if(xi(t,e),ji(e),r&4){if(e.stateNode===null)throw Error(Oe(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){jn(e,e.return,v)}}break;case 3:if(xi(t,e),ji(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ef(t.containerInfo)}catch(v){jn(e,e.return,v)}break;case 4:xi(t,e),ji(e);break;case 13:xi(t,e),ji(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(vC=Wn())),r&4&&Jk(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Ir=(d=Ir)||p,xi(t,e),Ir=d):xi(t,e),ji(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!p&&e.mode&1)for(Qe=e,p=e.child;p!==null;){for(h=Qe=p;Qe!==null;){switch(m=Qe,g=m.child,m.tag){case 0:case 11:case 14:case 15:lf(4,m,m.return);break;case 1:Gc(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(v){jn(r,n,v)}}break;case 5:Gc(m,m.return);break;case 22:if(m.memoizedState!==null){eI(h);continue}}g!==null?(g.return=m,Qe=g):eI(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,d?(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=i_("display",s))}catch(v){jn(e,e.return,v)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(v){jn(e,e.return,v)}}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:xi(t,e),ji(e),r&4&&Jk(e);break;case 21:break;default:xi(t,e),ji(e)}}function ji(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(RM(n)){var r=n;break e}n=n.return}throw Error(Oe(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(wf(o,""),r.flags&=-33);var i=Xk(e);Mb(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Xk(e);_b(e,a,s);break;default:throw Error(Oe(161))}}catch(c){jn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lH(e,t,n){Qe=e,AM(e)}function AM(e,t,n){for(var r=(e.mode&1)!==0;Qe!==null;){var o=Qe,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||_h;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||Ir;a=_h;var d=Ir;if(_h=s,(Ir=c)&&!d)for(Qe=o;Qe!==null;)s=Qe,c=s.child,s.tag===22&&s.memoizedState!==null?tI(o):c!==null?(c.return=s,Qe=c):tI(o);for(;i!==null;)Qe=i,AM(i),i=i.sibling;Qe=o,_h=a,Ir=d}Zk(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Qe=i):Zk(e)}}function Zk(e){for(;Qe!==null;){var t=Qe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ir||Fg(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ir)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ei(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Fk(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}Fk(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 d=t.alternate;if(d!==null){var p=d.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&Ef(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Oe(163))}Ir||t.flags&512&&Tb(t)}catch(m){jn(t,t.return,m)}}if(t===e){Qe=null;break}if(n=t.sibling,n!==null){n.return=t.return,Qe=n;break}Qe=t.return}}function eI(e){for(;Qe!==null;){var t=Qe;if(t===e){Qe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Qe=n;break}Qe=t.return}}function tI(e){for(;Qe!==null;){var t=Qe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Fg(4,t)}catch(c){jn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){jn(t,o,c)}}var i=t.return;try{Tb(t)}catch(c){jn(t,i,c)}break;case 5:var s=t.return;try{Tb(t)}catch(c){jn(t,s,c)}}}catch(c){jn(t,t.return,c)}if(t===e){Qe=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Qe=a;break}Qe=t.return}}var aH=Math.ceil,Wm=Ws.ReactCurrentDispatcher,mC=Ws.ReactCurrentOwner,oi=Ws.ReactCurrentBatchConfig,Vt=0,cr=null,Qn=null,yr=0,bo=0,Kc=Yl(0),er=0,Af=null,Aa=0,Ng=0,gC=0,af=null,qr=null,vC=0,wu=1/0,Ts=null,Gm=!1,Rb=null,Tl=null,Mh=!1,wl=null,Km=0,cf=0,Ob=null,lm=-1,am=0;function zr(){return Vt&6?Wn():lm!==-1?lm:lm=Wn()}function _l(e){return e.mode&1?Vt&2&&yr!==0?yr&-yr:W9.transition!==null?(am===0&&(am=y_()),am):(e=tn,e!==0||(e=window.event,e=e===void 0?16:P_(e.type)),e):1}function Mi(e,t,n,r){if(50<cf)throw cf=0,Ob=null,Error(Oe(185));lp(e,n,r),(!(Vt&2)||e!==cr)&&(e===cr&&(!(Vt&2)&&(Ng|=n),er===4&&vl(e,yr)),ro(e,r),n===1&&Vt===0&&!(t.mode&1)&&(wu=Wn()+500,Og&&Ql()))}function ro(e,t){var n=e.callbackNode;W6(e,t);var r=_m(e,e===cr?yr:0);if(r===0)n!==null&&uk(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&uk(n),t===1)e.tag===0?U9(nI.bind(null,e)):U_(nI.bind(null,e)),z9(function(){!(Vt&6)&&Ql()}),n=null;else{switch(b_(r)){case 1:n=Vw;break;case 4:n=g_;break;case 16:n=Tm;break;case 536870912:n=v_;break;default:n=Tm}n=VM(n,FM.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function FM(e,t){if(lm=-1,am=0,Vt&6)throw Error(Oe(327));var n=e.callbackNode;if(iu()&&e.callbackNode!==n)return null;var r=_m(e,e===cr?yr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=qm(e,r);else{t=r;var o=Vt;Vt|=2;var i=DM();(cr!==e||yr!==t)&&(Ts=null,wu=Wn()+500,Sa(e,t));do try{dH();break}catch(a){NM(e,a)}while(1);nC(),Wm.current=i,Vt=o,Qn!==null?t=0:(cr=null,yr=0,t=er)}if(t!==0){if(t===2&&(o=sb(e),o!==0&&(r=o,t=Lb(e,o))),t===1)throw n=Af,Sa(e,0),vl(e,r),ro(e,Wn()),n;if(t===6)vl(e,r);else{if(o=e.current.alternate,!(r&30)&&!cH(o)&&(t=qm(e,r),t===2&&(i=sb(e),i!==0&&(r=i,t=Lb(e,i))),t===1))throw n=Af,Sa(e,0),vl(e,r),ro(e,Wn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Oe(345));case 2:da(e,qr,Ts);break;case 3:if(vl(e,r),(r&130023424)===r&&(t=vC+500-Wn(),10<t)){if(_m(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){zr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=hb(da.bind(null,e,qr,Ts),t);break}da(e,qr,Ts);break;case 4:if(vl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-_i(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Wn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*aH(r/1960))-r,10<r){e.timeoutHandle=hb(da.bind(null,e,qr,Ts),r);break}da(e,qr,Ts);break;case 5:da(e,qr,Ts);break;default:throw Error(Oe(329))}}}return ro(e,Wn()),e.callbackNode===n?FM.bind(null,e):null}function Lb(e,t){var n=af;return e.current.memoizedState.isDehydrated&&(Sa(e,t).flags|=256),e=qm(e,t),e!==2&&(t=qr,qr=n,t!==null&&Ab(t)),e}function Ab(e){qr===null?qr=e:qr.push.apply(qr,e)}function cH(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(!Oi(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 vl(e,t){for(t&=~gC,t&=~Ng,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_i(t),r=1<<n;e[n]=-1,t&=~r}}function nI(e){if(Vt&6)throw Error(Oe(327));iu();var t=_m(e,0);if(!(t&1))return ro(e,Wn()),null;var n=qm(e,t);if(e.tag!==0&&n===2){var r=sb(e);r!==0&&(t=r,n=Lb(e,r))}if(n===1)throw n=Af,Sa(e,0),vl(e,t),ro(e,Wn()),n;if(n===6)throw Error(Oe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,da(e,qr,Ts),ro(e,Wn()),null}function yC(e,t){var n=Vt;Vt|=1;try{return e(t)}finally{Vt=n,Vt===0&&(wu=Wn()+500,Og&&Ql())}}function Fa(e){wl!==null&&wl.tag===0&&!(Vt&6)&&iu();var t=Vt;Vt|=1;var n=oi.transition,r=tn;try{if(oi.transition=null,tn=1,e)return e()}finally{tn=r,oi.transition=n,Vt=t,!(Vt&6)&&Ql()}}function bC(){bo=Kc.current,wn(Kc)}function Sa(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,B9(n)),Qn!==null)for(n=Qn.return;n!==null;){var r=n;switch(Zw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Am();break;case 3:yu(),wn(to),wn(Rr),aC();break;case 5:lC(r);break;case 4:yu();break;case 13:wn(On);break;case 19:wn(On);break;case 10:rC(r.type._context);break;case 22:case 23:bC()}n=n.return}if(cr=e,Qn=e=Ml(e.current,null),yr=bo=t,er=0,Af=null,gC=Ng=Aa=0,qr=af=null,va!==null){for(t=0;t<va.length;t++)if(n=va[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}va=null}return e}function NM(e,t){do{var n=Qn;try{if(nC(),om.current=Um,Vm){for(var r=An.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Vm=!1}if(La=0,ar=Zn=An=null,sf=!1,Rf=0,mC.current=null,n===null||n.return===null){er=1,Af=t,Qn=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=yr,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=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 g=Vk(s);if(g!==null){g.flags&=-257,Uk(g,s,a,i,t),g.mode&1&&jk(i,d,t),t=g,c=d;var b=t.updateQueue;if(b===null){var v=new Set;v.add(c),t.updateQueue=v}else b.add(c);break e}else{if(!(t&1)){jk(i,d,t),wC();break e}c=Error(Oe(426))}}else if(kn&&a.mode&1){var E=Vk(s);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Uk(E,s,a,i,t),eC(bu(c,a));break e}}i=c=bu(c,a),er!==4&&(er=2),af===null?af=[i]:af.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var w=wM(i,c,t);Ak(i,w);break e;case 1:a=c;var C=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof C.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Tl===null||!Tl.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var P=CM(i,a,t);Ak(i,P);break e}}i=i.return}while(i!==null)}zM(n)}catch($){t=$,Qn===n&&n!==null&&(Qn=n=n.return);continue}break}while(1)}function DM(){var e=Wm.current;return Wm.current=Um,e===null?Um:e}function wC(){(er===0||er===3||er===2)&&(er=4),cr===null||!(Aa&268435455)&&!(Ng&268435455)||vl(cr,yr)}function qm(e,t){var n=Vt;Vt|=2;var r=DM();(cr!==e||yr!==t)&&(Ts=null,Sa(e,t));do try{uH();break}catch(o){NM(e,o)}while(1);if(nC(),Vt=n,Wm.current=r,Qn!==null)throw Error(Oe(261));return cr=null,yr=0,er}function uH(){for(;Qn!==null;)BM(Qn)}function dH(){for(;Qn!==null&&!F6();)BM(Qn)}function BM(e){var t=jM(e.alternate,e,bo);e.memoizedProps=e.pendingProps,t===null?zM(e):Qn=t,mC.current=null}function zM(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=oH(n,t),n!==null){n.flags&=32767,Qn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{er=6,Qn=null;return}}else if(n=rH(n,t,bo),n!==null){Qn=n;return}if(t=t.sibling,t!==null){Qn=t;return}Qn=t=e}while(t!==null);er===0&&(er=5)}function da(e,t,n){var r=tn,o=oi.transition;try{oi.transition=null,tn=1,fH(e,t,n,r)}finally{oi.transition=o,tn=r}return null}function fH(e,t,n,r){do iu();while(wl!==null);if(Vt&6)throw Error(Oe(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(Oe(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(G6(e,i),e===cr&&(Qn=cr=null,yr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Mh||(Mh=!0,VM(Tm,function(){return iu(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=oi.transition,oi.transition=null;var s=tn;tn=1;var a=Vt;Vt|=4,mC.current=null,sH(e,n),LM(n,e),R9(fb),Mm=!!db,fb=db=null,e.current=n,lH(n),N6(),Vt=a,tn=s,oi.transition=i}else e.current=n;if(Mh&&(Mh=!1,wl=e,Km=o),i=e.pendingLanes,i===0&&(Tl=null),z6(n.stateNode),ro(e,Wn()),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(Gm)throw Gm=!1,e=Rb,Rb=null,e;return Km&1&&e.tag!==0&&iu(),i=e.pendingLanes,i&1?e===Ob?cf++:(cf=0,Ob=e):cf=0,Ql(),null}function iu(){if(wl!==null){var e=b_(Km),t=oi.transition,n=tn;try{if(oi.transition=null,tn=16>e?16:e,wl===null)var r=!1;else{if(e=wl,wl=null,Km=0,Vt&6)throw Error(Oe(331));var o=Vt;for(Vt|=4,Qe=e.current;Qe!==null;){var i=Qe,s=i.child;if(Qe.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var d=a[c];for(Qe=d;Qe!==null;){var p=Qe;switch(p.tag){case 0:case 11:case 15:lf(8,p,i)}var h=p.child;if(h!==null)h.return=p,Qe=h;else for(;Qe!==null;){p=Qe;var m=p.sibling,g=p.return;if(MM(p),p===d){Qe=null;break}if(m!==null){m.return=g,Qe=m;break}Qe=g}}}var b=i.alternate;if(b!==null){var v=b.child;if(v!==null){b.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}Qe=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Qe=s;else e:for(;Qe!==null;){if(i=Qe,i.flags&2048)switch(i.tag){case 0:case 11:case 15:lf(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,Qe=w;break e}Qe=i.return}}var C=e.current;for(Qe=C;Qe!==null;){s=Qe;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,Qe=x;else e:for(s=C;Qe!==null;){if(a=Qe,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Fg(9,a)}}catch($){jn(a,a.return,$)}if(a===s){Qe=null;break e}var P=a.sibling;if(P!==null){P.return=a.return,Qe=P;break e}Qe=a.return}}if(Vt=o,Ql(),Xi&&typeof Xi.onPostCommitFiberRoot=="function")try{Xi.onPostCommitFiberRoot($g,e)}catch($){}r=!0}return r}finally{tn=n,oi.transition=t}}return!1}function rI(e,t,n){t=bu(n,t),t=wM(e,t,1),e=$l(e,t,1),t=zr(),e!==null&&(lp(e,1,t),ro(e,t))}function jn(e,t,n){if(e.tag===3)rI(e,e,n);else for(;t!==null;){if(t.tag===3){rI(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Tl===null||!Tl.has(r))){e=bu(n,e),e=CM(t,e,1),t=$l(t,e,1),e=zr(),t!==null&&(lp(t,1,e),ro(t,e));break}}t=t.return}}function pH(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=zr(),e.pingedLanes|=e.suspendedLanes&n,cr===e&&(yr&n)===n&&(er===4||er===3&&(yr&130023424)===yr&&500>Wn()-vC?Sa(e,0):gC|=n),ro(e,t)}function HM(e,t){t===0&&(e.mode&1?(t=Ch,Ch<<=1,!(Ch&130023424)&&(Ch=4194304)):t=1);var n=zr();e=Bs(e,t),e!==null&&(lp(e,t,n),ro(e,n))}function hH(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),HM(e,n)}function mH(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(Oe(314))}r!==null&&r.delete(t),HM(e,n)}var jM;jM=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||to.current)Jr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Jr=!1,nH(e,t,n);Jr=!!(e.flags&131072)}else Jr=!1,kn&&t.flags&1048576&&W_(t,Dm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sm(e,t),e=t.pendingProps;var o=mu(t,Rr.current);ou(t,n),o=uC(null,t,r,e,o,n);var i=dC();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,no(r)?(i=!0,Fm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,iC(t),o.updater=Lg,t.stateNode=o,o._reactInternals=t,Cb(t,r,e,n),t=Eb(null,t,r,!0,i,n)):(t.tag=0,kn&&i&&Jw(t),Nr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sm(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=vH(r),e=Ei(r,e),o){case 0:t=Sb(null,t,r,e,n);break e;case 1:t=Kk(null,t,r,e,n);break e;case 11:t=Wk(null,t,r,e,n);break e;case 14:t=Gk(null,t,r,Ei(r.type,e),n);break e}throw Error(Oe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ei(r,o),Sb(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ei(r,o),Kk(e,t,r,o,n);case 3:e:{if(PM(t),e===null)throw Error(Oe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Y_(e,t),Hm(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=bu(Error(Oe(423)),t),t=qk(e,t,r,n,o);break e}else if(r!==o){o=bu(Error(Oe(424)),t),t=qk(e,t,r,n,o);break e}else for(ko=Il(t.stateNode.containerInfo.firstChild),Io=t,kn=!0,Ii=null,n=Z_(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(gu(),r===o){t=zs(e,t,n);break e}Nr(e,t,r,n)}t=t.child}return t;case 5:return eM(t),e===null&&yb(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,pb(r,o)?s=null:i!==null&&pb(r,i)&&(t.flags|=32),EM(e,t),Nr(e,t,s,n),t.child;case 6:return e===null&&yb(t),null;case 13:return kM(e,t,n);case 4:return sC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vu(t,null,r,n):Nr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ei(r,o),Wk(e,t,r,o,n);case 7:return Nr(e,t,t.pendingProps,n),t.child;case 8:return Nr(e,t,t.pendingProps.children,n),t.child;case 12:return Nr(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,pn(Bm,r._currentValue),r._currentValue=s,i!==null)if(Oi(i.value,s)){if(i.children===o.children&&!to.current){t=zs(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=As(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?c.next=c:(c.next=p.next,p.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),bb(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(Oe(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),bb(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}Nr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ou(t,n),o=ai(o),r=r(o),t.flags|=1,Nr(e,t,r,n),t.child;case 14:return r=t.type,o=Ei(r,t.pendingProps),o=Ei(r.type,o),Gk(e,t,r,o,n);case 15:return xM(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ei(r,o),sm(e,t),t.tag=1,no(r)?(e=!0,Fm(t)):e=!1,ou(t,n),X_(t,r,o),Cb(t,r,o,n),Eb(null,t,r,!0,e,n);case 19:return IM(e,t,n);case 22:return SM(e,t,n)}throw Error(Oe(156,t.tag))};function VM(e,t){return m_(e,t)}function gH(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 ri(e,t,n,r){return new gH(e,t,n,r)}function CC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vH(e){if(typeof e=="function")return CC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zw)return 11;if(e===Hw)return 14}return 2}function Ml(e,t){var n=e.alternate;return n===null?(n=ri(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 cm(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")CC(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Nc:return Ea(n.children,o,i,t);case Bw:s=8,o|=8;break;case W1:return e=ri(12,n,t,o|2),e.elementType=W1,e.lanes=i,e;case G1:return e=ri(13,n,t,o),e.elementType=G1,e.lanes=i,e;case K1:return e=ri(19,n,t,o),e.elementType=K1,e.lanes=i,e;case JT:return Dg(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case QT:s=10;break e;case XT:s=9;break e;case zw:s=11;break e;case Hw:s=14;break e;case dl:s=16,r=null;break e}throw Error(Oe(130,e==null?e:typeof e,""))}return t=ri(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ea(e,t,n,r){return e=ri(7,e,r,t),e.lanes=n,e}function Dg(e,t,n,r){return e=ri(22,e,r,t),e.elementType=JT,e.lanes=n,e.stateNode={isHidden:!1},e}function e1(e,t,n){return e=ri(6,e,null,t),e.lanes=n,e}function t1(e,t,n){return t=ri(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yH(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=A0(0),this.expirationTimes=A0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=A0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function xC(e,t,n,r,o,i,s,a,c){return e=new yH(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ri(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iC(i),e}function bH(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function UM(e){if(!e)return Dl;e=e._reactInternals;e:{if(Qa(e)!==e||e.tag!==1)throw Error(Oe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(no(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Oe(171))}if(e.tag===1){var n=e.type;if(no(n))return V_(e,n,t)}return t}function WM(e,t,n,r,o,i,s,a,c){return e=xC(n,r,!0,e,o,i,s,a,c),e.context=UM(null),n=e.current,r=zr(),o=_l(n),i=As(r,o),i.callback=t!=null?t:null,$l(n,i,o),e.current.lanes=o,lp(e,o,r),ro(e,r),e}function Bg(e,t,n,r){var o=t.current,i=zr(),s=_l(o);return n=UM(n),t.context===null?t.context=n:t.pendingContext=n,t=As(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$l(o,t,s),e!==null&&(Mi(e,o,s,i),rm(e,o,s)),s}function Ym(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 oI(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function SC(e,t){oI(e,t),(e=e.alternate)&&oI(e,t)}function wH(){return null}var GM=typeof reportError=="function"?reportError:function(e){console.error(e)};function EC(e){this._internalRoot=e}zg.prototype.render=EC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Oe(409));Bg(e,t,null,null)};zg.prototype.unmount=EC.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fa(function(){Bg(null,e,null,null)}),t[Ds]=null}};function zg(e){this._internalRoot=e}zg.prototype.unstable_scheduleHydration=function(e){if(e){var t=x_();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gl.length&&t!==0&&t<gl[n].priority;n++);gl.splice(n,0,e),n===0&&E_(e)}};function PC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function iI(){}function CH(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var d=Ym(s);i.call(d)}}var s=WM(t,r,e,0,null,!1,!1,"",iI);return e._reactRootContainer=s,e[Ds]=s.current,If(e.nodeType===8?e.parentNode:e),Fa(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var d=Ym(c);a.call(d)}}var c=xC(e,0,!1,null,null,!1,!1,"",iI);return e._reactRootContainer=c,e[Ds]=c.current,If(e.nodeType===8?e.parentNode:e),Fa(function(){Bg(t,c,n,r)}),c}function jg(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=Ym(s);a.call(c)}}Bg(t,s,e,o)}else s=CH(n,t,e,o,r);return Ym(s)}w_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Gd(t.pendingLanes);n!==0&&(Uw(t,n|1),ro(t,Wn()),!(Vt&6)&&(wu=Wn()+500,Ql()))}break;case 13:Fa(function(){var r=Bs(e,1);if(r!==null){var o=zr();Mi(r,e,1,o)}}),SC(e,1)}};Ww=function(e){if(e.tag===13){var t=Bs(e,134217728);if(t!==null){var n=zr();Mi(t,e,134217728,n)}SC(e,134217728)}};C_=function(e){if(e.tag===13){var t=_l(e),n=Bs(e,t);if(n!==null){var r=zr();Mi(n,e,t,r)}SC(e,t)}};x_=function(){return tn};S_=function(e,t){var n=tn;try{return tn=e,t()}finally{tn=n}};rb=function(e,t,n){switch(t){case"input":if(Q1(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=Rg(r);if(!o)throw Error(Oe(90));e_(r),Q1(r,o)}}}break;case"textarea":n_(e,n);break;case"select":t=n.value,t!=null&&eu(e,!!n.multiple,t,!1)}};c_=yC;u_=Fa;var xH={usingClientEntryPoint:!1,Events:[cp,Hc,Rg,l_,a_,yC]},Td={findFiberByHostInstance:ga,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},SH={bundleType:Td.bundleType,version:Td.version,rendererPackageName:Td.rendererPackageName,rendererConfig:Td.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ws.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=p_(e),e===null?null:e.stateNode},findFiberByHostInstance:Td.findFiberByHostInstance||wH,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 Rh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rh.isDisabled&&Rh.supportsFiber)try{$g=Rh.inject(SH),Xi=Rh}catch(e){}}Lo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xH;Lo.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!PC(t))throw Error(Oe(200));return bH(e,t,null,n)};Lo.createRoot=function(e,t){if(!PC(e))throw Error(Oe(299));var n=!1,r="",o=GM;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=xC(e,1,!1,null,null,n,!1,r,o),e[Ds]=t.current,If(e.nodeType===8?e.parentNode:e),new EC(t)};Lo.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(Oe(188)):(e=Object.keys(e).join(","),Error(Oe(268,e)));return e=p_(t),e=e===null?null:e.stateNode,e};Lo.flushSync=function(e){return Fa(e)};Lo.hydrate=function(e,t,n){if(!Hg(t))throw Error(Oe(200));return jg(null,e,t,!0,n)};Lo.hydrateRoot=function(e,t,n){if(!PC(e))throw Error(Oe(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=GM;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=WM(t,null,e,1,n!=null?n:null,o,!1,i,s),e[Ds]=t.current,If(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 zg(t)};Lo.render=function(e,t,n){if(!Hg(t))throw Error(Oe(200));return jg(null,e,t,!1,n)};Lo.unmountComponentAtNode=function(e){if(!Hg(e))throw Error(Oe(40));return e._reactRootContainer?(Fa(function(){jg(null,null,e,!1,function(){e._reactRootContainer=null,e[Ds]=null})}),!0):!1};Lo.unstable_batchedUpdates=yC;Lo.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hg(n))throw Error(Oe(200));if(e==null||e._reactInternals===void 0)throw Error(Oe(38));return jg(e,t,n,!1,r)};Lo.version="18.2.0-next-9e3b772b8-20220608";function KM(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(KM)}catch(e){console.error(e)}}KM(),WT.exports=Lo;var zu=WT.exports;const Oh=ip(zu);var qM,sI=zu;qM=sI.createRoot,sI.hydrateRoot;const EH="modulepreload",PH=function(e){return"/"+e},lI={},kH=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=PH(i),i in lI)return;lI[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 d=document.createElement("link");if(d.rel=s?"stylesheet":EH,s||(d.as="script",d.crossOrigin=""),d.href=i,document.head.appendChild(d),s)return new Promise((p,h)=>{d.addEventListener("load",p),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var FT;if(!((FT=window.crypto)!=null&&FT.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return pt(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const i=(yield kH(()=>import("./sha512-471fbd54.js").then(s=>s.s),[])).default.arrayBuffer;return i(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}/**
|
|
33
|
+
* @remix-run/router v1.5.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
|
+
*/function Ff(){return Ff=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},Ff.apply(this,arguments)}var Cl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Cl||(Cl={}));const aI="popstate";function IH(e){e===void 0&&(e={});function t(o,i){let{pathname:s="/",search:a="",hash:c=""}=Xa(o.location.hash.substr(1));return Fb("",{pathname:s,search:a,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let s=o.document.querySelector("base"),a="";if(s&&s.getAttribute("href")){let c=o.location.href,d=c.indexOf("#");a=d===-1?c:c.slice(0,d)}return a+"#"+(typeof i=="string"?i:Qm(i))}function r(o,i){Vg(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return TH(t,n,r,e)}function nr(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Vg(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function $H(){return Math.random().toString(36).substr(2,8)}function cI(e,t){return{usr:e.state,key:e.key,idx:t}}function Fb(e,t,n,r){return n===void 0&&(n=null),Ff({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xa(t):t,{state:n,key:t&&t.key||r||$H()})}function Qm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Xa(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function TH(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Cl.Pop,c=null,d=p();d==null&&(d=0,s.replaceState(Ff({},s.state,{idx:d}),""));function p(){return(s.state||{idx:null}).idx}function h(){a=Cl.Pop;let E=p(),w=E==null?null:E-d;d=E,c&&c({action:a,location:v.location,delta:w})}function m(E,w){a=Cl.Push;let C=Fb(v.location,E,w);n&&n(C,E),d=p()+1;let x=cI(C,d),P=v.createHref(C);try{s.pushState(x,"",P)}catch($){o.location.assign(P)}i&&c&&c({action:a,location:v.location,delta:1})}function g(E,w){a=Cl.Replace;let C=Fb(v.location,E,w);n&&n(C,E),d=p();let x=cI(C,d),P=v.createHref(C);s.replaceState(x,"",P),i&&c&&c({action:a,location:v.location,delta:0})}function b(E){let w=o.location.origin!=="null"?o.location.origin:o.location.href,C=typeof E=="string"?E:Qm(E);return nr(w,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,w)}let v={get action(){return a},get location(){return e(o,s)},listen(E){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(aI,h),c=E,()=>{o.removeEventListener(aI,h),c=null}},createHref(E){return t(o,E)},createURL:b,encodeLocation(E){let w=b(E);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:g,go(E){return s.go(E)}};return v}var uI;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(uI||(uI={}));function _H(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Xa(t):t,o=kC(r.pathname||"/",n);if(o==null)return null;let i=YM(e);MH(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=zH(i[a],VH(o));return s}function YM(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let c={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(nr(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Rl([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(nr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),YM(i.children,t,p,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:DH(d,i.index),routesMeta:p})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let c of QM(i.path))o(i,s,c)}),t}function QM(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=QM(r.join("/")),a=[];return a.push(...s.map(c=>c===""?i:[i,c].join("/"))),o&&a.push(...s),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function MH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:BH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const RH=/^:\w+$/,OH=3,LH=2,AH=1,FH=10,NH=-2,dI=e=>e==="*";function DH(e,t){let n=e.split("/"),r=n.length;return n.some(dI)&&(r+=NH),t&&(r+=LH),n.filter(o=>!dI(o)).reduce((o,i)=>o+(RH.test(i)?OH:i===""?AH:FH),r)}function BH(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 zH(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,d=o==="/"?t:t.slice(o.length)||"/",p=HH({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},d);if(!p)return null;Object.assign(r,p.params);let h=a.route;i.push({params:r,pathname:Rl([o,p.pathname]),pathnameBase:KH(Rl([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=Rl([o,p.pathnameBase]))}return i}function HH(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=jH(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((d,p,h)=>{if(p==="*"){let m=a[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return d[p]=UH(a[h]||"",p),d},{}),pathname:i,pathnameBase:s,pattern:e}}function jH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Vg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function VH(e){try{return decodeURI(e)}catch(t){return Vg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function UH(e,t){try{return decodeURIComponent(e)}catch(n){return Vg(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function kC(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function WH(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Xa(e):e;return{pathname:n?n.startsWith("/")?n:GH(n,t):t,search:qH(r),hash:YH(o)}}function GH(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 n1(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function XM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function JM(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Xa(e):(o=Ff({},e),nr(!o.pathname||!o.pathname.includes("?"),n1("?","pathname","search",o)),nr(!o.pathname||!o.pathname.includes("#"),n1("#","pathname","hash",o)),nr(!o.search||!o.search.includes("#"),n1("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;o.pathname=m.join("/")}a=h>=0?t[h]:"/"}let c=WH(o,a),d=s&&s!=="/"&&s.endsWith("/"),p=(i||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||p)&&(c.pathname+="/"),c}const Rl=e=>e.join("/").replace(/\/\/+/g,"/"),KH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,YH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function QH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ZM=["post","put","patch","delete"];new Set(ZM);const XH=["get",...ZM];new Set(XH);/**
|
|
42
|
+
* React Router v6.10.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 JH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const ZH=typeof Object.is=="function"?Object.is:JH,{useState:ej,useEffect:tj,useLayoutEffect:nj,useDebugValue:rj}=Ma;function oj(e,t,n){const r=t(),[{inst:o},i]=ej({inst:{value:r,getSnapshot:t}});return nj(()=>{o.value=r,o.getSnapshot=t,r1(o)&&i({inst:o})},[e,r,t]),tj(()=>(r1(o)&&i({inst:o}),e(()=>{r1(o)&&i({inst:o})})),[e]),rj(r),r}function r1(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!ZH(n,r)}catch(r){return!0}}function ij(e,t,n){return t()}const sj=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",lj=!sj,aj=lj?ij:oj;"useSyncExternalStore"in Ma&&(e=>e.useSyncExternalStore)(Ma);const eR=u.createContext(null),IC=u.createContext(null),Hu=u.createContext(null),Ug=u.createContext(null),ju=u.createContext({outlet:null,matches:[]}),tR=u.createContext(null);function Nb(){return Nb=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},Nb.apply(this,arguments)}function cj(e,t){let{relative:n}=t===void 0?{}:t;dp()||nr(!1);let{basename:r,navigator:o}=u.useContext(Hu),{hash:i,pathname:s,search:a}=$C(e,{relative:n}),c=s;return r!=="/"&&(c=s==="/"?r:Rl([r,s])),o.createHref({pathname:c,search:a,hash:i})}function dp(){return u.useContext(Ug)!=null}function Vu(){return dp()||nr(!1),u.useContext(Ug).location}function uj(){dp()||nr(!1);let{basename:e,navigator:t}=u.useContext(Hu),{matches:n}=u.useContext(ju),{pathname:r}=Vu(),o=JSON.stringify(XM(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 d=JM(a,JSON.parse(o),r,c.relative==="path");e!=="/"&&(d.pathname=d.pathname==="/"?e:Rl([e,d.pathname])),(c.replace?t.replace:t.push)(d,c.state,c)},[e,t,o,r])}function $C(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=u.useContext(ju),{pathname:o}=Vu(),i=JSON.stringify(XM(r).map(s=>s.pathnameBase));return u.useMemo(()=>JM(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function dj(e,t){dp()||nr(!1);let{navigator:n}=u.useContext(Hu),r=u.useContext(IC),{matches:o}=u.useContext(ju),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let c=Vu(),d;if(t){var p;let v=typeof t=="string"?Xa(t):t;a==="/"||(p=v.pathname)!=null&&p.startsWith(a)||nr(!1),d=v}else d=c;let h=d.pathname||"/",m=a==="/"?h:h.slice(a.length)||"/",g=_H(e,{pathname:m}),b=mj(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Rl([a,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:Rl([a,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,r||void 0);return t&&b?u.createElement(Ug.Provider,{value:{location:Nb({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Cl.Pop}},b):b}function fj(){let e=bj(),t=QH(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,i)}class pj extends u.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?u.createElement(ju.Provider,{value:this.props.routeContext},u.createElement(tR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hj(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(eR);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(ju.Provider,{value:t},r)}function mj(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(s=>s.route.id&&(o==null?void 0:o[s.route.id]));i>=0||nr(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,s,a)=>{let c=s.route.id?o==null?void 0:o[s.route.id]:null,d=null;n&&(s.route.ErrorBoundary?d=u.createElement(s.route.ErrorBoundary,null):s.route.errorElement?d=s.route.errorElement:d=u.createElement(fj,null));let p=t.concat(r.slice(0,a+1)),h=()=>{let m=i;return c?m=d:s.route.Component?m=u.createElement(s.route.Component,null):s.route.element&&(m=s.route.element),u.createElement(hj,{match:s,routeContext:{outlet:i,matches:p},children:m})};return n&&(s.route.ErrorBoundary||s.route.errorElement||a===0)?u.createElement(pj,{location:n.location,component:d,error:c,children:h(),routeContext:{outlet:null,matches:p}}):h()},null)}var fI;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(fI||(fI={}));var Xm;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Xm||(Xm={}));function gj(e){let t=u.useContext(IC);return t||nr(!1),t}function vj(e){let t=u.useContext(ju);return t||nr(!1),t}function yj(e){let t=vj(),n=t.matches[t.matches.length-1];return n.route.id||nr(!1),n.route.id}function bj(){var e;let t=u.useContext(tR),n=gj(Xm.UseRouteError),r=yj(Xm.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function nR(e){nr(!1)}function wj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Cl.Pop,navigator:i,static:s=!1}=e;dp()&&nr(!1);let a=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=Xa(r));let{pathname:d="/",search:p="",hash:h="",state:m=null,key:g="default"}=r,b=u.useMemo(()=>{let v=kC(d,a);return v==null?null:{location:{pathname:v,search:p,hash:h,state:m,key:g},navigationType:o}},[a,d,p,h,m,g,o]);return b==null?null:u.createElement(Hu.Provider,{value:c},u.createElement(Ug.Provider,{children:n,value:b}))}function Cj(e){let{children:t,location:n}=e,r=u.useContext(eR),o=r&&!t?r.router.routes:Db(t);return dj(o,n)}var pI;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(pI||(pI={}));new Promise(()=>{});function Db(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let i=[...t,o];if(r.type===u.Fragment){n.push.apply(n,Db(r.props.children,i));return}r.type!==nR&&nr(!1),!r.props.index||!r.props.children||nr(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Db(r.props.children,i)),n.push(s)}),n}/**
|
|
51
|
+
* React Router DOM v6.10.0
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/function Jm(){return Jm=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},Jm.apply(this,arguments)}function rR(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 xj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Sj(e,t){return e.button===0&&(!t||t==="_self")&&!xj(e)}const Ej=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Pj=["aria-current","caseSensitive","className","end","style","to","children"];function kj(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=IH({window:r,v5Compat:!0}));let i=o.current,[s,a]=u.useState({action:i.action,location:i.location});return u.useLayoutEffect(()=>i.listen(a),[i]),u.createElement(wj,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}const Ij=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",$j=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oR=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:c,to:d,preventScrollReset:p}=t,h=rR(t,Ej),{basename:m}=u.useContext(Hu),g,b=!1;if(typeof d=="string"&&$j.test(d)&&(g=d,Ij)){let C=new URL(window.location.href),x=d.startsWith("//")?new URL(C.protocol+d):new URL(d),P=kC(x.pathname,m);x.origin===C.origin&&P!=null?d=P+x.search+x.hash:b=!0}let v=cj(d,{relative:o}),E=_j(d,{replace:s,state:a,target:c,preventScrollReset:p,relative:o});function w(C){r&&r(C),C.defaultPrevented||E(C)}return u.createElement("a",Jm({},h,{href:g||v,onClick:b||i?r:w,ref:n,target:c}))}),Tj=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:c,children:d}=t,p=rR(t,Pj),h=$C(c,{relative:p.relative}),m=Vu(),g=u.useContext(IC),{navigator:b}=u.useContext(Hu),v=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,E=m.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(E=E.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase());let C=E===v||!s&&E.startsWith(v)&&E.charAt(v.length)==="/",x=w!=null&&(w===v||!s&&w.startsWith(v)&&w.charAt(v.length)==="/"),P=C?r:void 0,$;typeof i=="function"?$=i({isActive:C,isPending:x}):$=[i,C?"active":null,x?"pending":null].filter(Boolean).join(" ");let I=typeof a=="function"?a({isActive:C,isPending:x}):a;return u.createElement(oR,Jm({},p,{"aria-current":P,className:$,ref:n,style:I,to:c}),typeof d=="function"?d({isActive:C,isPending:x}):d)});var hI;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(hI||(hI={}));var mI;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mI||(mI={}));function _j(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,a=uj(),c=Vu(),d=$C(e,{relative:s});return u.useCallback(p=>{if(Sj(p,n)){p.preventDefault();let h=r!==void 0?r:Qm(c)===Qm(d);a(e,{replace:h,state:o,preventScrollReset:i,relative:s})}},[c,a,d,r,o,n,e,i,s])}const Mj={black:"#000",white:"#fff"},Nf=Mj,Rj={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"},bc=Rj,Oj={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"},wc=Oj,Lj={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"},Cc=Lj,Aj={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"},xc=Aj,Fj={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"},Sc=Fj,Nj={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"},_d=Nj,Dj={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"},Bj=Dj;function zj(e,t){return()=>null}function ma(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function iR(e){if(!ma(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=iR(e[n])}),t}function ii(e,t,n={clone:!0}){const r=n.clone?$e({},e):e;return ma(e)&&ma(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ma(t[o])&&o in e&&ma(e[o])?r[o]=ii(e[o],t[o],n):n.clone?r[o]=ma(t[o])?iR(t[o]):t[o]:r[o]=t[o])}),r}var sR={exports:{}},Hj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",jj=Hj,Vj=jj;function lR(){}function aR(){}aR.resetWarningCache=lR;var Uj=function(){function e(r,o,i,s,a,c){if(c!==Vj){var d=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 d.name="Invariant Violation",d}}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:aR,resetWarningCache:lR};return n.PropTypes=n,n};sR.exports=Uj();var Wj=sR.exports;const ce=ip(Wj);function Bl(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 ln={};/**
|
|
60
|
+
* @license React
|
|
61
|
+
* react-is.production.min.js
|
|
62
|
+
*
|
|
63
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the MIT license found in the
|
|
66
|
+
* LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/var TC=Symbol.for("react.element"),_C=Symbol.for("react.portal"),Wg=Symbol.for("react.fragment"),Gg=Symbol.for("react.strict_mode"),Kg=Symbol.for("react.profiler"),qg=Symbol.for("react.provider"),Yg=Symbol.for("react.context"),Gj=Symbol.for("react.server_context"),Qg=Symbol.for("react.forward_ref"),Xg=Symbol.for("react.suspense"),Jg=Symbol.for("react.suspense_list"),Zg=Symbol.for("react.memo"),ev=Symbol.for("react.lazy"),Kj=Symbol.for("react.offscreen"),cR;cR=Symbol.for("react.module.reference");function mi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case TC:switch(e=e.type,e){case Wg:case Kg:case Gg:case Xg:case Jg:return e;default:switch(e=e&&e.$$typeof,e){case Gj:case Yg:case Qg:case ev:case Zg:case qg:return e;default:return t}}case _C:return t}}}ln.ContextConsumer=Yg;ln.ContextProvider=qg;ln.Element=TC;ln.ForwardRef=Qg;ln.Fragment=Wg;ln.Lazy=ev;ln.Memo=Zg;ln.Portal=_C;ln.Profiler=Kg;ln.StrictMode=Gg;ln.Suspense=Xg;ln.SuspenseList=Jg;ln.isAsyncMode=function(){return!1};ln.isConcurrentMode=function(){return!1};ln.isContextConsumer=function(e){return mi(e)===Yg};ln.isContextProvider=function(e){return mi(e)===qg};ln.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===TC};ln.isForwardRef=function(e){return mi(e)===Qg};ln.isFragment=function(e){return mi(e)===Wg};ln.isLazy=function(e){return mi(e)===ev};ln.isMemo=function(e){return mi(e)===Zg};ln.isPortal=function(e){return mi(e)===_C};ln.isProfiler=function(e){return mi(e)===Kg};ln.isStrictMode=function(e){return mi(e)===Gg};ln.isSuspense=function(e){return mi(e)===Xg};ln.isSuspenseList=function(e){return mi(e)===Jg};ln.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Wg||e===Kg||e===Gg||e===Xg||e===Jg||e===Kj||typeof e=="object"&&e!==null&&(e.$$typeof===ev||e.$$typeof===Zg||e.$$typeof===qg||e.$$typeof===Yg||e.$$typeof===Qg||e.$$typeof===cR||e.getModuleId!==void 0)};ln.typeOf=mi;function ue(e){if(typeof e!="string")throw new Error(Bl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function gI(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function zl(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 um(e,t){return u.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Cn(e){return e&&e.ownerDocument||document}function ui(e){return Cn(e).defaultView||window}function Zm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const qj=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,sn=qj;let vI=0;function Yj(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(vI+=1,n(`mui-${vI}`))},[t]),r}const yI=Ma["useId".toString()];function on(e){if(yI!==void 0){const t=yI();return e!=null?e:t}return Yj(e)}function Fs({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(d=>{o||s(d)},[]);return[a,c]}function In(e){const t=u.useRef(e);return sn(()=>{t.current=e}),u.useCallback((...n)=>(0,t.current)(...n),[])}function Ht(...e){return u.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Zm(n,t)})},e)}let tv=!0,Bb=!1,bI;const Qj={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 Xj(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Qj[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Jj(e){e.metaKey||e.altKey||e.ctrlKey||(tv=!0)}function o1(){tv=!1}function Zj(){this.visibilityState==="hidden"&&Bb&&(tv=!0)}function e8(e){e.addEventListener("keydown",Jj,!0),e.addEventListener("mousedown",o1,!0),e.addEventListener("pointerdown",o1,!0),e.addEventListener("touchstart",o1,!0),e.addEventListener("visibilitychange",Zj,!0)}function t8(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return tv||Xj(t)}function MC(){const e=u.useCallback(o=>{o!=null&&e8(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(Bb=!0,window.clearTimeout(bI),bI=window.setTimeout(()=>{Bb=!1},100),t.current=!1,!0):!1}function r(o){return t8(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 Ec;function dR(){if(Ec)return Ec;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),Ec="reverse",e.scrollLeft>0?Ec="default":(e.scrollLeft=1,e.scrollLeft===0&&(Ec="negative")),document.body.removeChild(e),Ec}function wI(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 n8=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},RC=n8;function OC(e,t){const n=$e({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$e($e({},e[r]),n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=$e({},i),Object.keys(o).forEach(s=>{n[r][s]=OC(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Me(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const CI=e=>e,r8=()=>{let e=CI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=CI}}},o8=r8(),fR=o8,i8={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ze(e,t,n="Mui"){const r=i8[t];return r?`${n}-${r}`:`${fR.generate(e)}-${t}`}function Xe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ze(e,o,n)}),r}const Na="$$material";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)}function ne(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 pR(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var s8=/^((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)-.*))$/,l8=pR(function(e){return s8.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function a8(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 c8(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 u8=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(c8(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=a8(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}(),Er="-ms-",eg="-moz-",Gt="-webkit-",hR="comm",LC="rule",AC="decl",d8="@import",mR="@keyframes",f8=Math.abs,nv=String.fromCharCode,p8=Object.assign;function h8(e,t){return vr(e,0)^45?(((t<<2^vr(e,0))<<2^vr(e,1))<<2^vr(e,2))<<2^vr(e,3):0}function gR(e){return e.trim()}function m8(e,t){return(e=t.exec(e))?e[0]:e}function qt(e,t,n){return e.replace(t,n)}function zb(e,t){return e.indexOf(t)}function vr(e,t){return e.charCodeAt(t)|0}function Df(e,t,n){return e.slice(t,n)}function Wi(e){return e.length}function FC(e){return e.length}function Lh(e,t){return t.push(e),e}function g8(e,t){return e.map(t).join("")}var rv=1,Cu=1,vR=0,lo=0,Yn=0,Uu="";function ov(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:rv,column:Cu,length:s,return:""}}function Md(e,t){return p8(ov("",null,null,"",null,null,0),e,{length:-e.length},t)}function v8(){return Yn}function y8(){return Yn=lo>0?vr(Uu,--lo):0,Cu--,Yn===10&&(Cu=1,rv--),Yn}function $o(){return Yn=lo<vR?vr(Uu,lo++):0,Cu++,Yn===10&&(Cu=1,rv++),Yn}function Zi(){return vr(Uu,lo)}function dm(){return lo}function fp(e,t){return Df(Uu,e,t)}function Bf(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 yR(e){return rv=Cu=1,vR=Wi(Uu=e),lo=0,[]}function bR(e){return Uu="",e}function fm(e){return gR(fp(lo-1,Hb(e===91?e+2:e===40?e+1:e)))}function b8(e){for(;(Yn=Zi())&&Yn<33;)$o();return Bf(e)>2||Bf(Yn)>3?"":" "}function w8(e,t){for(;--t&&$o()&&!(Yn<48||Yn>102||Yn>57&&Yn<65||Yn>70&&Yn<97););return fp(e,dm()+(t<6&&Zi()==32&&$o()==32))}function Hb(e){for(;$o();)switch(Yn){case e:return lo;case 34:case 39:e!==34&&e!==39&&Hb(Yn);break;case 40:e===41&&Hb(e);break;case 92:$o();break}return lo}function C8(e,t){for(;$o()&&e+Yn!==47+10;)if(e+Yn===42+42&&Zi()===47)break;return"/*"+fp(t,lo-1)+"*"+nv(e===47?e:$o())}function x8(e){for(;!Bf(Zi());)$o();return fp(e,lo)}function S8(e){return bR(pm("",null,null,null,[""],e=yR(e),0,[0],e))}function pm(e,t,n,r,o,i,s,a,c){for(var d=0,p=0,h=s,m=0,g=0,b=0,v=1,E=1,w=1,C=0,x="",P=o,$=i,I=r,k=x;E;)switch(b=C,C=$o()){case 40:if(b!=108&&vr(k,h-1)==58){zb(k+=qt(fm(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=fm(C);break;case 9:case 10:case 13:case 32:k+=b8(b);break;case 92:k+=w8(dm()-1,7);continue;case 47:switch(Zi()){case 42:case 47:Lh(E8(C8($o(),dm()),t,n),c);break;default:k+="/"}break;case 123*v:a[d++]=Wi(k)*w;case 125*v:case 59:case 0:switch(C){case 0:case 125:E=0;case 59+p:g>0&&Wi(k)-h&&Lh(g>32?SI(k+";",r,n,h-1):SI(qt(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(Lh(I=xI(k,t,n,d,p,o,a,x,P=[],$=[],h),i),C===123)if(p===0)pm(k,t,I,I,P,i,h,a,$);else switch(m===99&&vr(k,3)===110?100:m){case 100:case 109:case 115:pm(e,I,I,r&&Lh(xI(e,I,I,0,0,o,a,x,o,P=[],h),$),o,$,h,a,r?P:$);break;default:pm(k,I,I,I,[""],$,0,a,$)}}d=p=g=0,v=w=1,x=k="",h=s;break;case 58:h=1+Wi(k),g=b;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&y8()==125)continue}switch(k+=nv(C),C*v){case 38:w=p>0?1:(k+="\f",-1);break;case 44:a[d++]=(Wi(k)-1)*w,w=1;break;case 64:Zi()===45&&(k+=fm($o())),m=Zi(),p=h=Wi(x=k+=x8(dm())),C++;break;case 45:b===45&&Wi(k)==2&&(v=0)}}return i}function xI(e,t,n,r,o,i,s,a,c,d,p){for(var h=o-1,m=o===0?i:[""],g=FC(m),b=0,v=0,E=0;b<r;++b)for(var w=0,C=Df(e,h+1,h=f8(v=s[b])),x=e;w<g;++w)(x=gR(v>0?m[w]+" "+C:qt(C,/&\f/g,m[w])))&&(c[E++]=x);return ov(e,t,n,o===0?LC:a,c,d,p)}function E8(e,t,n){return ov(e,t,n,hR,nv(v8()),Df(e,2,-2),0)}function SI(e,t,n,r){return ov(e,t,n,AC,Df(e,0,r),Df(e,r+1,-1),r)}function su(e,t){for(var n="",r=FC(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function P8(e,t,n,r){switch(e.type){case d8:case AC:return e.return=e.return||e.value;case hR:return"";case mR:return e.return=e.value+"{"+su(e.children,r)+"}";case LC:e.value=e.props.join(",")}return Wi(n=su(e.children,r))?e.return=e.value+"{"+n+"}":""}function k8(e){var t=FC(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 I8(e){return function(t){t.root||(t=t.return)&&e(t)}}var $8=function(t,n,r){for(var o=0,i=0;o=i,i=Zi(),o===38&&i===12&&(n[r]=1),!Bf(i);)$o();return fp(t,lo)},T8=function(t,n){var r=-1,o=44;do switch(Bf(o)){case 0:o===38&&Zi()===12&&(n[r]=1),t[r]+=$8(lo-1,n,r);break;case 2:t[r]+=fm(o);break;case 4:if(o===44){t[++r]=Zi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=nv(o)}while(o=$o());return t},_8=function(t,n){return bR(T8(yR(t),n))},EI=new WeakMap,M8=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&&!EI.get(r))&&!o){EI.set(t,!0);for(var i=[],s=_8(n,i),a=r.props,c=0,d=0;c<s.length;c++)for(var p=0;p<a.length;p++,d++)t.props[d]=i[c]?s[c].replace(/&\f/g,a[p]):a[p]+" "+s[c]}}},R8=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function wR(e,t){switch(h8(e,t)){case 5103:return Gt+"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 Gt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Gt+e+eg+e+Er+e+e;case 6828:case 4268:return Gt+e+Er+e+e;case 6165:return Gt+e+Er+"flex-"+e+e;case 5187:return Gt+e+qt(e,/(\w+).+(:[^]+)/,Gt+"box-$1$2"+Er+"flex-$1$2")+e;case 5443:return Gt+e+Er+"flex-item-"+qt(e,/flex-|-self/,"")+e;case 4675:return Gt+e+Er+"flex-line-pack"+qt(e,/align-content|flex-|-self/,"")+e;case 5548:return Gt+e+Er+qt(e,"shrink","negative")+e;case 5292:return Gt+e+Er+qt(e,"basis","preferred-size")+e;case 6060:return Gt+"box-"+qt(e,"-grow","")+Gt+e+Er+qt(e,"grow","positive")+e;case 4554:return Gt+qt(e,/([^-])(transform)/g,"$1"+Gt+"$2")+e;case 6187:return qt(qt(qt(e,/(zoom-|grab)/,Gt+"$1"),/(image-set)/,Gt+"$1"),e,"")+e;case 5495:case 3959:return qt(e,/(image-set\([^]*)/,Gt+"$1$`$1");case 4968:return qt(qt(e,/(.+:)(flex-)?(.*)/,Gt+"box-pack:$3"+Er+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Gt+e+e;case 4095:case 3583:case 4068:case 2532:return qt(e,/(.+)-inline(.+)/,Gt+"$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(Wi(e)-1-t>6)switch(vr(e,t+1)){case 109:if(vr(e,t+4)!==45)break;case 102:return qt(e,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+eg+(vr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zb(e,"stretch")?wR(qt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(vr(e,t+1)!==115)break;case 6444:switch(vr(e,Wi(e)-3-(~zb(e,"!important")&&10))){case 107:return qt(e,":",":"+Gt)+e;case 101:return qt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+(vr(e,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+Er+"$2box$3")+e}break;case 5936:switch(vr(e,t+11)){case 114:return Gt+e+Er+qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gt+e+Er+qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gt+e+Er+qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gt+e+Er+e+e}return e}var O8=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case AC:t.return=wR(t.value,t.length);break;case mR:return su([Md(t,{value:qt(t.value,"@","@"+Gt)})],o);case LC:if(t.length)return g8(t.props,function(i){switch(m8(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return su([Md(t,{props:[qt(i,/:(read-\w+)/,":"+eg+"$1")]})],o);case"::placeholder":return su([Md(t,{props:[qt(i,/:(plac\w+)/,":"+Gt+"input-$1")]}),Md(t,{props:[qt(i,/:(plac\w+)/,":"+eg+"$1")]}),Md(t,{props:[qt(i,/:(plac\w+)/,Er+"input-$1")]})],o)}return""})}},L8=[O8],A8=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(v){var E=v.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||L8,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var E=v.getAttribute("data-emotion").split(" "),w=1;w<E.length;w++)i[E[w]]=!0;a.push(v)});var c,d=[M8,R8];{var p,h=[P8,I8(function(v){p.insert(v)})],m=k8(d.concat(o,h)),g=function(E){return su(S8(E),m)};c=function(E,w,C,x){p=C,g(E?E+"{"+w.styles+"}":w.styles),x&&(b.inserted[w.name]=!0)}}var b={key:n,sheet:new u8({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 b.sheet.hydrate(a),b},CR={exports:{}},nn={};/** @license React v16.13.1
|
|
68
|
+
* react-is.production.min.js
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var dr=typeof Symbol=="function"&&Symbol.for,NC=dr?Symbol.for("react.element"):60103,DC=dr?Symbol.for("react.portal"):60106,iv=dr?Symbol.for("react.fragment"):60107,sv=dr?Symbol.for("react.strict_mode"):60108,lv=dr?Symbol.for("react.profiler"):60114,av=dr?Symbol.for("react.provider"):60109,cv=dr?Symbol.for("react.context"):60110,BC=dr?Symbol.for("react.async_mode"):60111,uv=dr?Symbol.for("react.concurrent_mode"):60111,dv=dr?Symbol.for("react.forward_ref"):60112,fv=dr?Symbol.for("react.suspense"):60113,F8=dr?Symbol.for("react.suspense_list"):60120,pv=dr?Symbol.for("react.memo"):60115,hv=dr?Symbol.for("react.lazy"):60116,N8=dr?Symbol.for("react.block"):60121,D8=dr?Symbol.for("react.fundamental"):60117,B8=dr?Symbol.for("react.responder"):60118,z8=dr?Symbol.for("react.scope"):60119;function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case NC:switch(e=e.type,e){case BC:case uv:case iv:case lv:case sv:case fv:return e;default:switch(e=e&&e.$$typeof,e){case cv:case dv:case hv:case pv:case av:return e;default:return t}}case DC:return t}}}function xR(e){return Fo(e)===uv}nn.AsyncMode=BC;nn.ConcurrentMode=uv;nn.ContextConsumer=cv;nn.ContextProvider=av;nn.Element=NC;nn.ForwardRef=dv;nn.Fragment=iv;nn.Lazy=hv;nn.Memo=pv;nn.Portal=DC;nn.Profiler=lv;nn.StrictMode=sv;nn.Suspense=fv;nn.isAsyncMode=function(e){return xR(e)||Fo(e)===BC};nn.isConcurrentMode=xR;nn.isContextConsumer=function(e){return Fo(e)===cv};nn.isContextProvider=function(e){return Fo(e)===av};nn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===NC};nn.isForwardRef=function(e){return Fo(e)===dv};nn.isFragment=function(e){return Fo(e)===iv};nn.isLazy=function(e){return Fo(e)===hv};nn.isMemo=function(e){return Fo(e)===pv};nn.isPortal=function(e){return Fo(e)===DC};nn.isProfiler=function(e){return Fo(e)===lv};nn.isStrictMode=function(e){return Fo(e)===sv};nn.isSuspense=function(e){return Fo(e)===fv};nn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===iv||e===uv||e===lv||e===sv||e===fv||e===F8||typeof e=="object"&&e!==null&&(e.$$typeof===hv||e.$$typeof===pv||e.$$typeof===av||e.$$typeof===cv||e.$$typeof===dv||e.$$typeof===D8||e.$$typeof===B8||e.$$typeof===z8||e.$$typeof===N8)};nn.typeOf=Fo;CR.exports=nn;var H8=CR.exports,SR=H8,j8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ER={};ER[SR.ForwardRef]=j8;ER[SR.Memo]=V8;var U8=!0;function W8(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var PR=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||U8===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},kR=function(t,n,r){PR(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 G8(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 K8={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},q8=/[A-Z]|^ms/g,Y8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,IR=function(t){return t.charCodeAt(1)===45},PI=function(t){return t!=null&&typeof t!="boolean"},i1=pR(function(e){return IR(e)?e:e.replace(q8,"-$&").toLowerCase()}),kI=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Y8,function(r,o,i){return Gi={name:o,styles:i,next:Gi},o})}return K8[t]!==1&&!IR(t)&&typeof n=="number"&&n!==0?n+"px":n};function zf(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 Gi={name:n.name,styles:n.styles,next:Gi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Gi={name:r.name,styles:r.styles,next:Gi},r=r.next;var o=n.styles+";";return o}return Q8(e,t,n)}case"function":{if(e!==void 0){var i=Gi,s=n(e);return Gi=i,zf(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function Q8(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zf(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]+"}":PI(s)&&(r+=i1(i)+":"+kI(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++)PI(s[a])&&(r+=i1(i)+":"+kI(i,s[a])+";");else{var c=zf(e,t,s);switch(i){case"animation":case"animationName":{r+=i1(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var II=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Gi,zC=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="";Gi=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=zf(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=zf(r,n,t[a]),o&&(i+=s[a]);II.lastIndex=0;for(var c="",d;(d=II.exec(i))!==null;)c+="-"+d[1];var p=G8(i)+c;return{name:p,styles:i,next:Gi}},X8=function(t){return t()},$R=Ma["useInsertionEffect"]?Ma["useInsertionEffect"]:!1,J8=$R||X8,$I=$R||u.useLayoutEffect,TR=u.createContext(typeof HTMLElement!="undefined"?A8({key:"css"}):null);TR.Provider;var _R=function(t){return u.forwardRef(function(n,r){var o=u.useContext(TR);return t(n,o,r)})},mv=u.createContext({}),Z8=_R(function(e,t){var n=e.styles,r=zC([n],void 0,u.useContext(mv)),o=u.useRef();return $I(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]),$I(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&kR(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 Hl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return zC(t)}var fs=function(){var t=Hl.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_"}}},eV=l8,tV=function(t){return t!=="theme"},TI=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?eV:tV},_I=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},nV=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return PR(n,r,o),J8(function(){return kR(n,r,o)}),null},rV=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=_I(t,n,r),c=a||TI(o),d=!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,g=1;g<m;g++)h.push(p[g],p[0][g])}var b=_R(function(v,E,w){var C=d&&v.as||o,x="",P=[],$=v;if(v.theme==null){$={};for(var I in v)$[I]=v[I];$.theme=u.useContext(mv)}typeof v.className=="string"?x=W8(E.registered,P,v.className):v.className!=null&&(x=v.className+" ");var k=zC(h.concat(P),E.registered,$);x+=E.key+"-"+k.name,s!==void 0&&(x+=" "+s);var M=d&&a===void 0?TI(C):c,O={};for(var A in v)d&&A==="as"||M(A)&&(O[A]=v[A]);return O.className=x,O.ref=w,u.createElement(u.Fragment,null,u.createElement(nV,{cache:E,serialized:k,isStringTag:typeof C=="string"}),u.createElement(C,O))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=h,b.__emotion_forwardProp=a,Object.defineProperty(b,"toString",{value:function(){return"."+s}}),b.withComponent=function(v,E){return e(v,S({},n,E,{shouldForwardProp:_I(b,E,!0)})).apply(void 0,h)},b}};const oV=rV;var iV=["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"],jb=oV.bind();iV.forEach(function(e){jb[e]=jb(e)});const sV=jb;var MR={exports:{}},gv={};/**
|
|
75
|
+
* @license React
|
|
76
|
+
* react-jsx-runtime.production.min.js
|
|
77
|
+
*
|
|
78
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the MIT license found in the
|
|
81
|
+
* LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/var lV=u,aV=Symbol.for("react.element"),cV=Symbol.for("react.fragment"),uV=Object.prototype.hasOwnProperty,dV=lV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fV={key:!0,ref:!0,__self:!0,__source:!0};function RR(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)uV.call(t,r)&&!fV.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:aV,type:e,key:i,ref:s,props:o,_owner:dV.current}}gv.Fragment=cV;gv.jsx=RR;gv.jsxs=RR;MR.exports=gv;var _=MR.exports;function pV(e){return e==null||Object.keys(e).length===0}function hV(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(pV(o)?n:o):t;return _.jsx(Z8,{styles:r})}/**
|
|
83
|
+
* @mui/styled-engine v5.12.0
|
|
84
|
+
*
|
|
85
|
+
* @license MIT
|
|
86
|
+
* This source code is licensed under the MIT license found in the
|
|
87
|
+
* LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/function OR(e,t){return sV(e,t)}const mV=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},gV=["values","unit","step"],vV=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 yV(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ne(e,gV),i=vV(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 d(m,g){const b=s.indexOf(g);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:g)-r/100}${n})`}function p(m){return s.indexOf(m)+1<s.length?d(m,s[s.indexOf(m)+1]):a(m)}function h(m){const g=s.indexOf(m);return g===0?a(s[1]):g===s.length-1?c(s[g]):d(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return S({keys:s,values:i,up:a,down:c,between:d,only:p,not:h,unit:n},o)}const bV={borderRadius:4},wV=bV;function uf(e,t){return t?ii(e,t,{clone:!1}):e}const HC={xs:0,sm:600,md:900,lg:1200,xl:1536},MI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${HC[e]}px)`};function di(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||MI;return t.reduce((s,a,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||MI;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||HC).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 CV(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function xV(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function SV(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 vv({values:e,breakpoints:t,base:n}){const r=n||SV(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 xu(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 tg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=xu(e,n)||r,t&&(o=t(o,r,e)),o}function Yt(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,d=xu(c,r)||{};return di(s,a,h=>{let m=tg(d,o,h);return h===m&&typeof h=="string"&&(m=tg(d,o,`${t}${h==="default"?"":ue(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function EV(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const PV={m:"margin",p:"padding"},kV={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},RI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},IV=EV(e=>{if(e.length>2)if(RI[e])e=RI[e];else return[e];const[t,n]=e.split(""),r=PV[t],o=kV[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),jC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],VC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...jC,...VC];function pp(e,t,n,r){var o;const i=(o=xu(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 LR(e){return pp(e,"spacing",8)}function hp(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 $V(e,t){return n=>e.reduce((r,o)=>(r[o]=hp(t,n),r),{})}function TV(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=IV(n),i=$V(o,r),s=e[n];return di(e,s,i)}function AR(e,t){const n=LR(e.theme);return Object.keys(e).map(r=>TV(e,t,r,n)).reduce(uf,{})}function zn(e){return AR(e,jC)}zn.propTypes={};zn.filterProps=jC;function Hn(e){return AR(e,VC)}Hn.propTypes={};Hn.filterProps=VC;function _V(e=8){if(e.mui)return e;const t=LR({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}function yv(...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]?uf(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Qi(e){return typeof e!="number"?e:`${e}px solid`}const MV=Yt({prop:"border",themeKey:"borders",transform:Qi}),RV=Yt({prop:"borderTop",themeKey:"borders",transform:Qi}),OV=Yt({prop:"borderRight",themeKey:"borders",transform:Qi}),LV=Yt({prop:"borderBottom",themeKey:"borders",transform:Qi}),AV=Yt({prop:"borderLeft",themeKey:"borders",transform:Qi}),FV=Yt({prop:"borderColor",themeKey:"palette"}),NV=Yt({prop:"borderTopColor",themeKey:"palette"}),DV=Yt({prop:"borderRightColor",themeKey:"palette"}),BV=Yt({prop:"borderBottomColor",themeKey:"palette"}),zV=Yt({prop:"borderLeftColor",themeKey:"palette"}),bv=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:hp(t,r)});return di(e,e.borderRadius,n)}return null};bv.propTypes={};bv.filterProps=["borderRadius"];yv(MV,RV,OV,LV,AV,FV,NV,DV,BV,zV,bv);const wv=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pp(e.theme,"spacing",8),n=r=>({gap:hp(t,r)});return di(e,e.gap,n)}return null};wv.propTypes={};wv.filterProps=["gap"];const Cv=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=pp(e.theme,"spacing",8),n=r=>({columnGap:hp(t,r)});return di(e,e.columnGap,n)}return null};Cv.propTypes={};Cv.filterProps=["columnGap"];const xv=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=pp(e.theme,"spacing",8),n=r=>({rowGap:hp(t,r)});return di(e,e.rowGap,n)}return null};xv.propTypes={};xv.filterProps=["rowGap"];const HV=Yt({prop:"gridColumn"}),jV=Yt({prop:"gridRow"}),VV=Yt({prop:"gridAutoFlow"}),UV=Yt({prop:"gridAutoColumns"}),WV=Yt({prop:"gridAutoRows"}),GV=Yt({prop:"gridTemplateColumns"}),KV=Yt({prop:"gridTemplateRows"}),qV=Yt({prop:"gridTemplateAreas"}),YV=Yt({prop:"gridArea"});yv(wv,Cv,xv,HV,jV,VV,UV,WV,GV,KV,qV,YV);function lu(e,t){return t==="grey"?t:e}const QV=Yt({prop:"color",themeKey:"palette",transform:lu}),XV=Yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lu}),JV=Yt({prop:"backgroundColor",themeKey:"palette",transform:lu});yv(QV,XV,JV);function So(e){return e<=1&&e!==0?`${e*100}%`:e}const ZV=Yt({prop:"width",transform:So}),UC=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])||HC[n]||So(n)}};return di(e,e.maxWidth,t)}return null};UC.filterProps=["maxWidth"];const e7=Yt({prop:"minWidth",transform:So}),t7=Yt({prop:"height",transform:So}),n7=Yt({prop:"maxHeight",transform:So}),r7=Yt({prop:"minHeight",transform:So});Yt({prop:"size",cssProperty:"width",transform:So});Yt({prop:"size",cssProperty:"height",transform:So});const o7=Yt({prop:"boxSizing"});yv(ZV,UC,e7,t7,n7,r7,o7);const i7={border:{themeKey:"borders",transform:Qi},borderTop:{themeKey:"borders",transform:Qi},borderRight:{themeKey:"borders",transform:Qi},borderBottom:{themeKey:"borders",transform:Qi},borderLeft:{themeKey:"borders",transform:Qi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bv},color:{themeKey:"palette",transform:lu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lu},backgroundColor:{themeKey:"palette",transform:lu},p:{style:Hn},pt:{style:Hn},pr:{style:Hn},pb:{style:Hn},pl:{style:Hn},px:{style:Hn},py:{style:Hn},padding:{style:Hn},paddingTop:{style:Hn},paddingRight:{style:Hn},paddingBottom:{style:Hn},paddingLeft:{style:Hn},paddingX:{style:Hn},paddingY:{style:Hn},paddingInline:{style:Hn},paddingInlineStart:{style:Hn},paddingInlineEnd:{style:Hn},paddingBlock:{style:Hn},paddingBlockStart:{style:Hn},paddingBlockEnd:{style:Hn},m:{style:zn},mt:{style:zn},mr:{style:zn},mb:{style:zn},ml:{style:zn},mx:{style:zn},my:{style:zn},margin:{style:zn},marginTop:{style:zn},marginRight:{style:zn},marginBottom:{style:zn},marginLeft:{style:zn},marginX:{style:zn},marginY:{style:zn},marginInline:{style:zn},marginInlineStart:{style:zn},marginInlineEnd:{style:zn},marginBlock:{style:zn},marginBlockStart:{style:zn},marginBlockEnd:{style:zn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wv},rowGap:{style:xv},columnGap:{style:Cv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:So},maxWidth:{style:UC},minWidth:{transform:So},height:{transform:So},maxHeight:{transform:So},minHeight:{transform:So},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Sv=i7;function s7(...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 l7(e,t){return typeof e=="function"?e(t):e}function a7(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:p,style:h}=a;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const m=xu(o,d)||{};return h?h(s):di(s,r,b=>{let v=tg(m,p,b);return b===v&&typeof b=="string"&&(v=tg(m,p,`${n}${b==="default"?"":ue(b)}`,b)),c===!1?v:{[c]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Sv;function a(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const p=CV(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(d).forEach(g=>{const b=l7(d[g],i);if(b!=null)if(typeof b=="object")if(s[g])m=uf(m,e(g,b,i,s));else{const v=di({theme:i},b,E=>({[g]:E}));s7(v,b)?m[g]=t({sx:b,theme:i}):m=uf(m,v)}else m=uf(m,e(g,b,i,s))}),xV(h,m)}return Array.isArray(o)?o.map(a):a(o)}return t}const FR=a7();FR.filterProps=["sx"];const Ev=FR,c7=["breakpoints","palette","spacing","shape"];function WC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=ne(e,c7),a=yV(n),c=_V(o);let d=ii({breakpoints:a,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:c,shape:S({},wV,i)},s);return d=t.reduce((p,h)=>ii(p,h),d),d.unstable_sxConfig=S({},Sv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return Ev({sx:h,theme:this})},d}function u7(e){return Object.keys(e).length===0}function Pv(e=null){const t=u.useContext(mv);return!t||u7(t)?e:t}const d7=WC();function mp(e=d7){return Pv(e)}function f7({styles:e,themeId:t,defaultTheme:n={}}){const r=mp(n),o=typeof e=="function"?e(t&&r[t]||r):e;return _.jsx(hV,{styles:o})}const p7=["sx"],h7=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Sv;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function GC(e){const{sx:t}=e,n=ne(e,p7),{systemProps:r,otherProps:o}=h7(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return ma(a)?S({},r,a):r}:i=S({},r,t),S({},o,{sx:i})}function NR(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=NR(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=NR(e))&&(r&&(r+=" "),r+=t);return r}const m7=["className","component"];function g7(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=OR("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Ev);return u.forwardRef(function(c,d){const p=mp(n),h=GC(c),{className:m,component:g="div"}=h,b=ne(h,m7);return _.jsx(i,S({as:g,ref:d,className:he(m,o?o(r):r),theme:t&&p[t]||p},b))})}const v7=["variant"];function OI(e){return e.length===0}function DR(e){const{variant:t}=e,n=ne(e,v7);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=OI(r)?e[o]:ue(e[o]):r+=`${OI(r)?o:ue(o)}${ue(e[o].toString())}`}),r}const y7=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function b7(e){return Object.keys(e).length===0}function w7(e){return typeof e=="string"&&e.charCodeAt(0)>96}const C7=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,x7=(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=DR(o.props);r[i]=o.style}),r},S7=(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(d=>{let p=!0;Object.keys(d.props).forEach(h=>{s[h]!==d.props[h]&&e[h]!==d.props[h]&&(p=!1)}),p&&a.push(t[DR(d.props)])}),a};function df(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const E7=WC();function Rd({defaultTheme:e,theme:t,themeId:n}){return b7(t)?e:t[n]||t}function BR(e={}){const{themeId:t,defaultTheme:n=E7,rootShouldForwardProp:r=df,slotShouldForwardProp:o=df}=e,i=s=>Ev(S({},s,{theme:Rd(S({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{mV(s,P=>P.filter($=>!($!=null&&$.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:m}=a,g=ne(a,y7),b=p!==void 0?p:d&&d!=="Root"||!1,v=h||!1;let E,w=df;d==="Root"?w=r:d?w=o:w7(s)&&(w=void 0);const C=OR(s,S({shouldForwardProp:w,label:E},g)),x=(P,...$)=>{const I=$?$.map(A=>typeof A=="function"&&A.__emotion_real!==A?L=>A(S({},L,{theme:Rd(S({},L,{defaultTheme:n,themeId:t}))})):A):[];let k=P;c&&m&&I.push(A=>{const L=Rd(S({},A,{defaultTheme:n,themeId:t})),D=C7(c,L);if(D){const j={};return Object.entries(D).forEach(([R,N])=>{j[R]=typeof N=="function"?N(S({},A,{theme:L})):N}),m(A,j)}return null}),c&&!b&&I.push(A=>{const L=Rd(S({},A,{defaultTheme:n,themeId:t}));return S7(A,x7(c,L),L,c)}),v||I.push(i);const M=I.length-$.length;if(Array.isArray(P)&&M>0){const A=new Array(M).fill("");k=[...P,...A],k.raw=[...P.raw,...A]}else typeof P=="function"&&P.__emotion_real!==P&&(k=A=>P(S({},A,{theme:Rd(S({},A,{defaultTheme:n,themeId:t}))})));const O=C(k,...I);return s.muiName&&(O.muiName=s.muiName),O};return C.withConfig&&(x.withConfig=C.withConfig),x}}const P7=BR(),fr=P7;function zR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:OC(t.components[n].defaultProps,r)}function k7({props:e,name:t,defaultTheme:n,themeId:r}){let o=mp(n);return r&&(o=o[r]||o),zR({theme:o,name:t,props:e})}function KC(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function I7(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 Da(e){if(e.type)return e;if(e.charAt(0)==="#")return Da(I7(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Bl(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(Bl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function kv(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 $7(e){e=Da(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(d,p=(d+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])),kv({type:a,values:c})}function LI(e){e=Da(e);let t=e.type==="hsl"||e.type==="hsla"?Da($7(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:ks((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function T7(e,t){const n=LI(e),r=LI(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ct(e,t){return e=Da(e),t=KC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kv(e)}function Ba(e,t){if(e=Da(e),t=KC(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 kv(e)}function za(e,t){if(e=Da(e),t=KC(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 kv(e)}const _7=u.createContext(null),HR=_7;function jR(){return u.useContext(HR)}const M7=typeof Symbol=="function"&&Symbol.for,R7=M7?Symbol.for("mui.nested"):"__THEME_NESTED__";function O7(e,t){return typeof t=="function"?t(e):S({},e,t)}function L7(e){const{children:t,theme:n}=e,r=jR(),o=u.useMemo(()=>{const i=r===null?n:O7(r,n);return i!=null&&(i[R7]=r!==null),i},[n,r]);return _.jsx(HR.Provider,{value:o,children:t})}const AI={};function FI(e,t,n,r=!1){return u.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?S({},t,{[e]:i}):i;return r?()=>s:s}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function A7(e){const{children:t,theme:n,themeId:r}=e,o=Pv(AI),i=jR()||AI,s=FI(r,o,n),a=FI(r,i,n,!0);return _.jsx(L7,{theme:a,children:_.jsx(mv.Provider,{value:s,children:t})})}function F7(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const N7=["mode","contrastThreshold","tonalOffset"],NI={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:Nf.white,default:Nf.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}},s1={text:{primary:Nf.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:Nf.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 DI(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=za(e.main,o):t==="dark"&&(e.dark=Ba(e.main,i)))}function D7(e="light"){return e==="dark"?{main:Cc[200],light:Cc[50],dark:Cc[400]}:{main:Cc[700],light:Cc[400],dark:Cc[800]}}function B7(e="light"){return e==="dark"?{main:wc[200],light:wc[50],dark:wc[400]}:{main:wc[500],light:wc[300],dark:wc[700]}}function z7(e="light"){return e==="dark"?{main:bc[500],light:bc[300],dark:bc[700]}:{main:bc[700],light:bc[400],dark:bc[800]}}function H7(e="light"){return e==="dark"?{main:xc[400],light:xc[300],dark:xc[700]}:{main:xc[700],light:xc[500],dark:xc[900]}}function j7(e="light"){return e==="dark"?{main:Sc[400],light:Sc[300],dark:Sc[700]}:{main:Sc[800],light:Sc[500],dark:Sc[900]}}function V7(e="light"){return e==="dark"?{main:_d[400],light:_d[300],dark:_d[700]}:{main:"#ed6c02",light:_d[500],dark:_d[900]}}function U7(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ne(e,N7),i=e.primary||D7(t),s=e.secondary||B7(t),a=e.error||z7(t),c=e.info||H7(t),d=e.success||j7(t),p=e.warning||V7(t);function h(v){return T7(v,s1.text.primary)>=n?s1.text.primary:NI.text.primary}const m=({color:v,name:E,mainShade:w=500,lightShade:C=300,darkShade:x=700})=>{if(v=S({},v),!v.main&&v[w]&&(v.main=v[w]),!v.hasOwnProperty("main"))throw new Error(Bl(11,E?` (${E})`:"",w));if(typeof v.main!="string")throw new Error(Bl(12,E?` (${E})`:"",JSON.stringify(v.main)));return DI(v,"light",C,r),DI(v,"dark",x,r),v.contrastText||(v.contrastText=h(v.main)),v},g={dark:s1,light:NI};return ii(S({common:S({},Nf),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:d,name:"success"}),grey:Bj,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},g[t]),o)}const W7=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function G7(e){return Math.round(e*1e5)/1e5}const BI={textTransform:"uppercase"},zI='"Roboto", "Helvetica", "Arial", sans-serif';function K7(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=zI,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:h}=n,m=ne(n,W7),g=o/14,b=h||(w=>`${w/d*g}rem`),v=(w,C,x,P,$)=>S({fontFamily:r,fontWeight:w,fontSize:b(C),lineHeight:x},r===zI?{letterSpacing:`${G7(P/C)}em`}:{},$,p),E={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(a,14,1.75,.4,BI),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,BI),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ii(S({htmlFontSize:d,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},E),m,{clone:!1})}const q7=.2,Y7=.14,Q7=.12;function Pn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${q7})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Y7})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Q7})`].join(",")}const X7=["none",Pn(0,2,1,-1,0,1,1,0,0,1,3,0),Pn(0,3,1,-2,0,2,2,0,0,1,5,0),Pn(0,3,3,-2,0,3,4,0,0,1,8,0),Pn(0,2,4,-1,0,4,5,0,0,1,10,0),Pn(0,3,5,-1,0,5,8,0,0,1,14,0),Pn(0,3,5,-1,0,6,10,0,0,1,18,0),Pn(0,4,5,-2,0,7,10,1,0,2,16,1),Pn(0,5,5,-3,0,8,10,1,0,3,14,2),Pn(0,5,6,-3,0,9,12,1,0,3,16,2),Pn(0,6,6,-3,0,10,14,1,0,4,18,3),Pn(0,6,7,-4,0,11,15,1,0,4,20,3),Pn(0,7,8,-4,0,12,17,2,0,5,22,4),Pn(0,7,8,-4,0,13,19,2,0,5,24,4),Pn(0,7,9,-4,0,14,21,2,0,5,26,4),Pn(0,8,9,-5,0,15,22,2,0,6,28,5),Pn(0,8,10,-5,0,16,24,2,0,6,30,5),Pn(0,8,11,-5,0,17,26,2,0,6,32,5),Pn(0,9,11,-5,0,18,28,2,0,7,34,6),Pn(0,9,12,-6,0,19,29,2,0,7,36,6),Pn(0,10,13,-6,0,20,31,3,0,8,38,7),Pn(0,10,13,-6,0,21,33,3,0,8,40,7),Pn(0,10,14,-6,0,22,35,3,0,8,42,7),Pn(0,11,14,-7,0,23,36,3,0,9,44,8),Pn(0,11,15,-7,0,24,38,3,0,9,46,8)],J7=X7,Z7=["duration","easing","delay"],eU={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)"},VR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function HI(e){return`${Math.round(e)}ms`}function tU(e){if(!e)return 0;const t=e/36;return Math.round((4+15*ks(t,.25)+t/5)*10)}function nU(e){const t=S({},eU,e.easing),n=S({},VR,e.duration);return S({getAutoHeightDuration:tU,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return ne(i,Z7),(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:HI(s)} ${a} ${typeof c=="string"?c:HI(c)}`).join(",")}},e,{easing:t,duration:n})}const rU={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},oU=rU,iU=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qC(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=ne(e,iU);if(e.vars)throw new Error(Bl(18));const a=U7(r),c=WC(e);let d=ii(c,{mixins:F7(c.breakpoints,n),palette:a,shadows:J7.slice(),typography:K7(a,i),transitions:nU(o),zIndex:S({},oU)});return d=ii(d,s),d=t.reduce((p,h)=>ii(p,h),d),d.unstable_sxConfig=S({},Sv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return Ev({sx:h,theme:this})},d}function sU(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function lU(e){return parseFloat(e)}const aU=qC(),Iv=aU;function pr(){const e=mp(Iv);return e[Na]||e}function nt({props:e,name:t}){return k7({props:e,name:t,defaultTheme:Iv,themeId:Na})}const No=e=>df(e)&&e!=="classes",cU=df,uU=BR({themeId:Na,defaultTheme:Iv,rootShouldForwardProp:No}),oe=uU,dU=["theme"];function fU(e){let{theme:t}=e,n=ne(e,dU);const r=t[Na];return _.jsx(A7,S({},n,{themeId:r?Na:void 0,theme:r||t}))}const pU=e=>{let t;return e<1?t=5.11916*ks(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},jI=pU;function Ha(e){return typeof e=="string"}function qd(e,t,n){return e===void 0||Ha(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const hU={disableDefaultClasses:!1},mU=u.createContext(hU);function UR(e){const{disableDefaultClasses:t}=u.useContext(mU);return n=>t?"":e(n)}function gU(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 Vb(e,t){return typeof e=="function"?e(t):e}function VI(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 vU(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=he(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=S({},n,o,r);return g.length>0&&(v.className=g),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const s=gU(S({},o,r)),a=VI(r),c=VI(o),d=t(s),p=he(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=S({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},d,n,c,a);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:d.ref}}const yU=["elementType","externalSlotProps","ownerState"];function Hs(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=ne(e,yU),s=Vb(r,o),{props:a,internalRef:c}=vU(S({},i,{externalSlotProps:s})),d=Ht(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return qd(n,S({},a,{ref:d}),o)}function bU(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=RC({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:c=r}=s?i:e,d=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:s,max:c,displayValue:d}}function UI(e){return e.substring(2).toLowerCase()}function wU(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function WR(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),d=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=Ht(t.ref,a),h=In(b=>{const v=d.current;d.current=!1;const E=Cn(a.current);if(!c.current||!a.current||"clientX"in b&&wU(b,E))return;if(s.current){s.current=!1;return}let w;b.composedPath?w=b.composedPath().indexOf(a.current)>-1:w=!E.documentElement.contains(b.target)||a.current.contains(b.target),!w&&(n||!v)&&o(b)}),m=b=>v=>{d.current=!0;const E=t.props[b];E&&E(v)},g={ref:p};return i!==!1&&(g[i]=m(i)),u.useEffect(()=>{if(i!==!1){const b=UI(i),v=Cn(a.current),E=()=>{s.current=!0};return v.addEventListener(b,h),v.addEventListener("touchmove",E),()=>{v.removeEventListener(b,h),v.removeEventListener("touchmove",E)}}},[h,i]),r!==!1&&(g[r]=m(r)),u.useEffect(()=>{if(r!==!1){const b=UI(r),v=Cn(a.current);return v.addEventListener(b,h),()=>{v.removeEventListener(b,h)}}},[h,r]),_.jsx(u.Fragment,{children:u.cloneElement(t,g)})}const CU=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xU(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 SU(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 EU(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||SU(e))}function PU(e){const t=[],n=[];return Array.from(e.querySelectorAll(CU)).forEach((r,o)=>{const i=xU(r);i===-1||!EU(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 kU(){return!0}function GR(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=PU,isEnabled:s=kU,open:a}=e,c=u.useRef(!1),d=u.useRef(null),p=u.useRef(null),h=u.useRef(null),m=u.useRef(null),g=u.useRef(!1),b=u.useRef(null),v=Ht(t.ref,b),E=u.useRef(null);u.useEffect(()=>{!a||!b.current||(g.current=!n)},[n,a]),u.useEffect(()=>{if(!a||!b.current)return;const x=Cn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),u.useEffect(()=>{if(!a||!b.current)return;const x=Cn(b.current),P=k=>{const{current:M}=b;if(M!==null){if(!x.hasFocus()||r||!s()||c.current){c.current=!1;return}if(!M.contains(x.activeElement)){if(k&&m.current!==k.target||x.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!g.current)return;let L=[];if((x.activeElement===d.current||x.activeElement===p.current)&&(L=i(b.current)),L.length>0){var O,A;const D=!!((O=E.current)!=null&&O.shiftKey&&((A=E.current)==null?void 0:A.key)==="Tab"),j=L[0],R=L[L.length-1];typeof j!="string"&&typeof R!="string"&&(D?R.focus():j.focus())}else M.focus()}}},$=k=>{E.current=k,!(r||!s()||k.key!=="Tab")&&x.activeElement===b.current&&k.shiftKey&&(c.current=!0,p.current&&p.current.focus())};x.addEventListener("focusin",P),x.addEventListener("keydown",$,!0);const I=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&P(null)},50);return()=>{clearInterval(I),x.removeEventListener("focusin",P),x.removeEventListener("keydown",$,!0)}},[n,r,o,s,a,i]);const w=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0,m.current=x.target;const P=t.props.onFocus;P&&P(x)},C=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0};return _.jsxs(u.Fragment,{children:[_.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:d,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:v,onFocus:w}),_.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:p,"data-testid":"sentinelEnd"})]})}var oo="top",fi="bottom",pi="right",io="left",YC="auto",gp=[oo,fi,pi,io],Su="start",Hf="end",IU="clippingParents",KR="viewport",Od="popper",$U="reference",WI=gp.reduce(function(e,t){return e.concat([t+"-"+Su,t+"-"+Hf])},[]),qR=[].concat(gp,[YC]).reduce(function(e,t){return e.concat([t,t+"-"+Su,t+"-"+Hf])},[]),TU="beforeRead",_U="read",MU="afterRead",RU="beforeMain",OU="main",LU="afterMain",AU="beforeWrite",FU="write",NU="afterWrite",DU=[TU,_U,MU,RU,OU,LU,AU,FU,NU];function as(e){return e?(e.nodeName||"").toLowerCase():null}function Mo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ja(e){var t=Mo(e).Element;return e instanceof t||e instanceof Element}function si(e){var t=Mo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function QC(e){if(typeof ShadowRoot=="undefined")return!1;var t=Mo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function BU(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];!si(i)||!as(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 zU(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,d){return c[d]="",c},{});!si(o)||!as(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const HU={name:"applyStyles",enabled:!0,phase:"write",fn:BU,effect:zU,requires:["computeStyles"]};function es(e){return e.split("-")[0]}var Pa=Math.max,ng=Math.min,Eu=Math.round;function Ub(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function YR(){return!/^((?!chrome|android).)*safari/i.test(Ub())}function Pu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&si(e)&&(o=e.offsetWidth>0&&Eu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Eu(r.height)/e.offsetHeight||1);var s=ja(e)?Mo(e):window,a=s.visualViewport,c=!YR()&&n,d=(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:d+h,bottom:p+m,left:d,x:d,y:p}}function XC(e){var t=Pu(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 QR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&QC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function js(e){return Mo(e).getComputedStyle(e)}function jU(e){return["table","td","th"].indexOf(as(e))>=0}function Xl(e){return((ja(e)?e.ownerDocument:e.document)||window.document).documentElement}function $v(e){return as(e)==="html"?e:e.assignedSlot||e.parentNode||(QC(e)?e.host:null)||Xl(e)}function GI(e){return!si(e)||js(e).position==="fixed"?null:e.offsetParent}function VU(e){var t=/firefox/i.test(Ub()),n=/Trident/i.test(Ub());if(n&&si(e)){var r=js(e);if(r.position==="fixed")return null}var o=$v(e);for(QC(o)&&(o=o.host);si(o)&&["html","body"].indexOf(as(o))<0;){var i=js(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 vp(e){for(var t=Mo(e),n=GI(e);n&&jU(n)&&js(n).position==="static";)n=GI(n);return n&&(as(n)==="html"||as(n)==="body"&&js(n).position==="static")?t:n||VU(e)||t}function JC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ff(e,t,n){return Pa(e,ng(t,n))}function UU(e,t,n){var r=ff(e,t,n);return r>n?n:r}function XR(){return{top:0,right:0,bottom:0,left:0}}function JR(e){return Object.assign({},XR(),e)}function ZR(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var WU=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,JR(typeof t!="number"?t:ZR(t,gp))};function GU(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=es(n.placement),c=JC(a),d=[io,pi].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!s)){var h=WU(o.padding,n),m=XC(i),g=c==="y"?oo:io,b=c==="y"?fi:pi,v=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],E=s[c]-n.rects.reference[c],w=vp(i),C=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=v/2-E/2,P=h[g],$=C-m[p]-h[b],I=C/2-m[p]/2+x,k=ff(P,I,$),M=c;n.modifiersData[r]=(t={},t[M]=k,t.centerOffset=k-I,t)}}function KU(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)||QR(t.elements.popper,o)&&(t.elements.arrow=o))}const qU={name:"arrow",enabled:!0,phase:"main",fn:GU,effect:KU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ku(e){return e.split("-")[1]}var YU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function QU(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Eu(n*o)/o||0,y:Eu(r*o)/o||0}}function KI(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,g=m===void 0?0:m,b=s.y,v=b===void 0?0:b,E=typeof p=="function"?p({x:g,y:v}):{x:g,y:v};g=E.x,v=E.y;var w=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),x=io,P=oo,$=window;if(d){var I=vp(n),k="clientHeight",M="clientWidth";if(I===Mo(n)&&(I=Xl(n),js(I).position!=="static"&&a==="absolute"&&(k="scrollHeight",M="scrollWidth")),I=I,o===oo||(o===io||o===pi)&&i===Hf){P=fi;var O=h&&I===$&&$.visualViewport?$.visualViewport.height:I[k];v-=O-r.height,v*=c?1:-1}if(o===io||(o===oo||o===fi)&&i===Hf){x=pi;var A=h&&I===$&&$.visualViewport?$.visualViewport.width:I[M];g-=A-r.width,g*=c?1:-1}}var L=Object.assign({position:a},d&&YU),D=p===!0?QU({x:g,y:v},Mo(n)):{x:g,y:v};if(g=D.x,v=D.y,c){var j;return Object.assign({},L,(j={},j[P]=C?"0":"",j[x]=w?"0":"",j.transform=($.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",j))}return Object.assign({},L,(t={},t[P]=C?v+"px":"",t[x]=w?g+"px":"",t.transform="",t))}function XU(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,d={placement:es(t.placement),variation:ku(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,KI(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,KI(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const JU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:XU,data:{}};var Ah={passive:!0};function ZU(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=Mo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,Ah)}),a&&c.addEventListener("resize",n.update,Ah),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Ah)}),a&&c.removeEventListener("resize",n.update,Ah)}}const eW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZU,data:{}};var tW={left:"right",right:"left",bottom:"top",top:"bottom"};function hm(e){return e.replace(/left|right|bottom|top/g,function(t){return tW[t]})}var nW={start:"end",end:"start"};function qI(e){return e.replace(/start|end/g,function(t){return nW[t]})}function ZC(e){var t=Mo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ex(e){return Pu(Xl(e)).left+ZC(e).scrollLeft}function rW(e,t){var n=Mo(e),r=Xl(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var d=YR();(d||!d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+ex(e),y:c}}function oW(e){var t,n=Xl(e),r=ZC(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Pa(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Pa(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+ex(e),c=-r.scrollTop;return js(o||n).direction==="rtl"&&(a+=Pa(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function tx(e){var t=js(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function eO(e){return["html","body","#document"].indexOf(as(e))>=0?e.ownerDocument.body:si(e)&&tx(e)?e:eO($v(e))}function pf(e,t){var n;t===void 0&&(t=[]);var r=eO(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Mo(r),s=o?[i].concat(i.visualViewport||[],tx(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(pf($v(s)))}function Wb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function iW(e,t){var n=Pu(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 YI(e,t,n){return t===KR?Wb(rW(e,n)):ja(t)?iW(t,n):Wb(oW(Xl(e)))}function sW(e){var t=pf($v(e)),n=["absolute","fixed"].indexOf(js(e).position)>=0,r=n&&si(e)?vp(e):e;return ja(r)?t.filter(function(o){return ja(o)&&QR(o,r)&&as(o)!=="body"}):[]}function lW(e,t,n,r){var o=t==="clippingParents"?sW(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(c,d){var p=YI(e,d,r);return c.top=Pa(p.top,c.top),c.right=ng(p.right,c.right),c.bottom=ng(p.bottom,c.bottom),c.left=Pa(p.left,c.left),c},YI(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 tO(e){var t=e.reference,n=e.element,r=e.placement,o=r?es(r):null,i=r?ku(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case oo:c={x:s,y:t.y-n.height};break;case fi:c={x:s,y:t.y+t.height};break;case pi:c={x:t.x+t.width,y:a};break;case io:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?JC(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case Su:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Hf:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function jf(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?IU:a,d=n.rootBoundary,p=d===void 0?KR:d,h=n.elementContext,m=h===void 0?Od:h,g=n.altBoundary,b=g===void 0?!1:g,v=n.padding,E=v===void 0?0:v,w=JR(typeof E!="number"?E:ZR(E,gp)),C=m===Od?$U:Od,x=e.rects.popper,P=e.elements[b?C:m],$=lW(ja(P)?P:P.contextElement||Xl(e.elements.popper),c,p,s),I=Pu(e.elements.reference),k=tO({reference:I,element:x,strategy:"absolute",placement:o}),M=Wb(Object.assign({},x,k)),O=m===Od?M:I,A={top:$.top-O.top+w.top,bottom:O.bottom-$.bottom+w.bottom,left:$.left-O.left+w.left,right:O.right-$.right+w.right},L=e.modifiersData.offset;if(m===Od&&L){var D=L[o];Object.keys(A).forEach(function(j){var R=[pi,fi].indexOf(j)>=0?1:-1,N=[oo,fi].indexOf(j)>=0?"y":"x";A[j]+=D[N]*R})}return A}function aW(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,d=c===void 0?qR:c,p=ku(r),h=p?a?WI:WI.filter(function(b){return ku(b)===p}):gp,m=h.filter(function(b){return d.indexOf(b)>=0});m.length===0&&(m=h);var g=m.reduce(function(b,v){return b[v]=jf(e,{placement:v,boundary:o,rootBoundary:i,padding:s})[es(v)],b},{});return Object.keys(g).sort(function(b,v){return g[b]-g[v]})}function cW(e){if(es(e)===YC)return[];var t=hm(e);return[qI(e),t,qI(t)]}function uW(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,d=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,v=n.allowedAutoPlacements,E=t.options.placement,w=es(E),C=w===E,x=c||(C||!b?[hm(E)]:cW(E)),P=[E].concat(x).reduce(function(re,de){return re.concat(es(de)===YC?aW(t,{placement:de,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:v}):de)},[]),$=t.rects.reference,I=t.rects.popper,k=new Map,M=!0,O=P[0],A=0;A<P.length;A++){var L=P[A],D=es(L),j=ku(L)===Su,R=[oo,fi].indexOf(D)>=0,N=R?"width":"height",H=jf(t,{placement:L,boundary:p,rootBoundary:h,altBoundary:m,padding:d}),V=R?j?pi:io:j?fi:oo;$[N]>I[N]&&(V=hm(V));var F=hm(V),z=[];if(i&&z.push(H[D]<=0),a&&z.push(H[V]<=0,H[F]<=0),z.every(function(re){return re})){O=L,M=!1;break}k.set(L,z)}if(M)for(var W=b?3:1,K=function(de){var ie=P.find(function(se){var Se=k.get(se);if(Se)return Se.slice(0,de).every(function(ye){return ye})});if(ie)return O=ie,"break"},Y=W;Y>0;Y--){var ae=K(Y);if(ae==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const dW={name:"flip",enabled:!0,phase:"main",fn:uW,requiresIfExists:["offset"],data:{_skip:!1}};function QI(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 XI(e){return[oo,pi,fi,io].some(function(t){return e[t]>=0})}function fW(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=jf(t,{elementContext:"reference"}),a=jf(t,{altBoundary:!0}),c=QI(s,r),d=QI(a,o,i),p=XI(c),h=XI(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const pW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fW};function hW(e,t,n){var r=es(e),o=[io,oo].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,[io,pi].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function mW(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=qR.reduce(function(p,h){return p[h]=hW(h,t.rects,i),p},{}),a=s[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const gW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mW};function vW(e){var t=e.state,n=e.name;t.modifiersData[n]=tO({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const yW={name:"popperOffsets",enabled:!0,phase:"read",fn:vW,data:{}};function bW(e){return e==="x"?"y":"x"}function wW(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,d=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,g=m===void 0?!0:m,b=n.tetherOffset,v=b===void 0?0:b,E=jf(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),w=es(t.placement),C=ku(t.placement),x=!C,P=JC(w),$=bW(P),I=t.modifiersData.popperOffsets,k=t.rects.reference,M=t.rects.popper,O=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,A=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(I){if(i){var j,R=P==="y"?oo:io,N=P==="y"?fi:pi,H=P==="y"?"height":"width",V=I[P],F=V+E[R],z=V-E[N],W=g?-M[H]/2:0,K=C===Su?k[H]:M[H],Y=C===Su?-M[H]:-k[H],ae=t.elements.arrow,re=g&&ae?XC(ae):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:XR(),ie=de[R],se=de[N],Se=ff(0,k[H],re[H]),ye=x?k[H]/2-W-Se-ie-A.mainAxis:K-Se-ie-A.mainAxis,Ie=x?-k[H]/2+W+Se+se+A.mainAxis:Y+Se+se+A.mainAxis,ee=t.elements.arrow&&vp(t.elements.arrow),ke=ee?P==="y"?ee.clientTop||0:ee.clientLeft||0:0,_e=(j=L==null?void 0:L[P])!=null?j:0,Ee=V+ye-_e-ke,pe=V+Ie-_e,be=ff(g?ng(F,Ee):F,V,g?Pa(z,pe):z);I[P]=be,D[P]=be-V}if(a){var te,Le=P==="x"?oo:io,Ye=P==="x"?fi:pi,Ke=I[$],Ue=$==="y"?"height":"width",Be=Ke+E[Le],ut=Ke-E[Ye],gt=[oo,io].indexOf(w)!==-1,at=(te=L==null?void 0:L[$])!=null?te:0,St=gt?Be:Ke-k[Ue]-M[Ue]-at+A.altAxis,vt=gt?Ke+k[Ue]+M[Ue]-at-A.altAxis:ut,Ne=g&>?UU(St,Ke,vt):ff(g?St:Be,Ke,g?vt:ut);I[$]=Ne,D[$]=Ne-Ke}t.modifiersData[r]=D}}const CW={name:"preventOverflow",enabled:!0,phase:"main",fn:wW,requiresIfExists:["offset"]};function xW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function SW(e){return e===Mo(e)||!si(e)?ZC(e):xW(e)}function EW(e){var t=e.getBoundingClientRect(),n=Eu(t.width)/e.offsetWidth||1,r=Eu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function PW(e,t,n){n===void 0&&(n=!1);var r=si(t),o=si(t)&&EW(t),i=Xl(t),s=Pu(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((as(t)!=="body"||tx(i))&&(a=SW(t)),si(t)?(c=Pu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=ex(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function kW(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 IW(e){var t=kW(e);return DU.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function $W(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function TW(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 JI={placement:"bottom",modifiers:[],strategy:"absolute"};function ZI(){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 _W(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?JI:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},JI,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,g={state:p,setOptions:function(w){var C=typeof w=="function"?w(p.options):w;v(),p.options=Object.assign({},i,p.options,C),p.scrollParents={reference:ja(a)?pf(a):a.contextElement?pf(a.contextElement):[],popper:pf(c)};var x=IW(TW([].concat(r,p.options.modifiers)));return p.orderedModifiers=x.filter(function(P){return P.enabled}),b(),g.update()},forceUpdate:function(){if(!m){var w=p.elements,C=w.reference,x=w.popper;if(ZI(C,x)){p.rects={reference:PW(C,vp(x),p.options.strategy==="fixed"),popper:XC(x)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(A){return p.modifiersData[A.name]=Object.assign({},A.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var $=p.orderedModifiers[P],I=$.fn,k=$.options,M=k===void 0?{}:k,O=$.name;typeof I=="function"&&(p=I({state:p,options:M,name:O,instance:g})||p)}}}},update:$W(function(){return new Promise(function(E){g.forceUpdate(),E(p)})}),destroy:function(){v(),m=!0}};if(!ZI(a,c))return g;g.setOptions(d).then(function(E){!m&&d.onFirstUpdate&&d.onFirstUpdate(E)});function b(){p.orderedModifiers.forEach(function(E){var w=E.name,C=E.options,x=C===void 0?{}:C,P=E.effect;if(typeof P=="function"){var $=P({state:p,name:w,instance:g,options:x}),I=function(){};h.push($||I)}})}function v(){h.forEach(function(E){return E()}),h=[]}return g}}var MW=[eW,yW,JU,HU,gW,dW,CW,qU,pW],RW=_W({defaultModifiers:MW});function OW(e){return typeof e=="function"?e():e}const LW=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=u.useState(null),c=Ht(u.isValidElement(r)?r.ref:null,n);if(sn(()=>{i||a(OW(o)||document.body)},[o,i]),sn(()=>{if(s&&!i)return Zm(n,s),()=>{Zm(n,null)}},[n,s,i]),i){if(u.isValidElement(r)){const d={ref:c};return u.cloneElement(r,d)}return _.jsx(u.Fragment,{children:r})}return _.jsx(u.Fragment,{children:s&&zu.createPortal(r,s)})}),nO=LW;function AW(e){return Ze("MuiPopper",e)}Xe("MuiPopper",["root"]);const FW=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],NW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function DW(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 Gb(e){return typeof e=="function"?e():e}function BW(e){return e.nodeType!==void 0}const zW=()=>Me({root:["root"]},UR(AW)),HW={},jW=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:s,direction:a,disablePortal:c,modifiers:d,open:p,placement:h,popperOptions:m,popperRef:g,slotProps:b={},slots:v={},TransitionProps:E}=t,w=ne(t,FW),C=u.useRef(null),x=Ht(C,n),P=u.useRef(null),$=Ht(P,g),I=u.useRef($);sn(()=>{I.current=$},[$]),u.useImperativeHandle(g,()=>P.current,[]);const k=DW(h,a),[M,O]=u.useState(k),[A,L]=u.useState(Gb(o));u.useEffect(()=>{P.current&&P.current.forceUpdate()}),u.useEffect(()=>{o&&L(Gb(o))},[o]),sn(()=>{if(!A||!p)return;const H=z=>{O(z.placement)};let V=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{H(z)}}];d!=null&&(V=V.concat(d)),m&&m.modifiers!=null&&(V=V.concat(m.modifiers));const F=RW(A,C.current,S({placement:k},m,{modifiers:V}));return I.current(F),()=>{F.destroy(),I.current(null)}},[A,c,d,p,m,k]);const D={placement:M};E!==null&&(D.TransitionProps=E);const j=zW(),R=(r=s!=null?s:v.root)!=null?r:"div",N=Hs({elementType:R,externalSlotProps:b.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:j.root});return _.jsx(R,S({},N,{children:typeof i=="function"?i(D):i}))}),VW=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:m=HW,popperRef:g,style:b,transition:v=!1,slotProps:E={},slots:w={}}=t,C=ne(t,NW),[x,P]=u.useState(!0),$=()=>{P(!1)},I=()=>{P(!0)};if(!c&&!p&&(!v||x))return null;let k;if(i)k=i;else if(r){const A=Gb(r);k=A&&BW(A)?Cn(A).body:Cn(null).body}const M=!p&&c&&(!v||x)?"none":void 0,O=v?{in:p,onEnter:$,onExited:I}:void 0;return _.jsx(nO,{disablePortal:a,container:k,children:_.jsx(jW,S({anchorEl:r,direction:s,disablePortal:a,modifiers:d,ref:n,open:v?!x:p,placement:h,popperOptions:m,popperRef:g,slotProps:E,slots:w},C,{style:S({position:"fixed",top:0,left:0,display:M},b),TransitionProps:O,children:o}))})}),UW=VW;function WW(e){const t=Cn(e);return t.body===e?ui(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function hf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function e2(e){return parseInt(ui(e).getComputedStyle(e).paddingRight,10)||0}function GW(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 t2(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,c=!GW(s);a&&c&&hf(s,o)})}function l1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function KW(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(WW(r)){const s=uR(Cn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${e2(r)+s}px`;const a=Cn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${e2(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Cn(r).body;else{const s=r.parentElement,a=ui(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 qW(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class YW{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&&hf(t.modalRef,!1);const o=qW(n);t2(n,t.mount,t.modalRef,o,!0);const i=l1(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=l1(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=KW(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=l1(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&&hf(t.modalRef,n),t2(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&&hf(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function QW(e){return Ze("MuiModal",e)}Xe("MuiModal",["root","hidden","backdrop"]);const XW=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],JW=e=>{const{open:t,exited:n}=e;return Me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},UR(QW))};function ZW(e){return typeof e=="function"?e():e}function eG(e){return e?e.props.hasOwnProperty("in"):!1}const tG=new YW,nG=u.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:s=!1,component:a,container:c,disableAutoFocus:d=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:h=!1,disablePortal:m=!1,disableRestoreFocus:g=!1,disableScrollLock:b=!1,hideBackdrop:v=!1,keepMounted:E=!1,manager:w=tG,onBackdropClick:C,onClose:x,onKeyDown:P,open:$,onTransitionEnter:I,onTransitionExited:k,slotProps:M={},slots:O={}}=t,A=ne(t,XW),[L,D]=u.useState(!$),j=u.useRef({}),R=u.useRef(null),N=u.useRef(null),H=Ht(N,n),V=eG(i),F=(r=t["aria-hidden"])!=null?r:!0,z=()=>Cn(R.current),W=()=>(j.current.modalRef=N.current,j.current.mountNode=R.current,j.current),K=()=>{w.mount(W(),{disableScrollLock:b}),N.current&&(N.current.scrollTop=0)},Y=In(()=>{const te=ZW(c)||z().body;w.add(W(),te),N.current&&K()}),ae=u.useCallback(()=>w.isTopModal(W()),[w]),re=In(te=>{R.current=te,!(!te||!N.current)&&($&&ae()?K():hf(N.current,F))}),de=u.useCallback(()=>{w.remove(W(),F)},[w,F]);u.useEffect(()=>()=>{de()},[de]),u.useEffect(()=>{$?Y():(!V||!s)&&de()},[$,de,V,s,Y]);const ie=S({},t,{closeAfterTransition:s,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:h,disablePortal:m,disableRestoreFocus:g,disableScrollLock:b,exited:L,hideBackdrop:v,keepMounted:E}),se=JW(ie),Se=()=>{D(!1),I&&I()},ye=()=>{D(!0),k&&k(),s&&de()},Ie=te=>{te.target===te.currentTarget&&(C&&C(te),x&&x(te,"backdropClick"))},ee=te=>{P&&P(te),!(te.key!=="Escape"||!ae())&&(h||(te.stopPropagation(),x&&x(te,"escapeKeyDown")))},ke={};i.props.tabIndex===void 0&&(ke.tabIndex="-1"),V&&(ke.onEnter=gI(Se,i.props.onEnter),ke.onExited=gI(ye,i.props.onExited));const _e=(o=a!=null?a:O.root)!=null?o:"div",Ee=Hs({elementType:_e,externalSlotProps:M.root,externalForwardedProps:A,additionalProps:{ref:H,role:"presentation",onKeyDown:ee},className:se.root,ownerState:ie}),pe=O.backdrop,be=Hs({elementType:pe,externalSlotProps:M.backdrop,additionalProps:{"aria-hidden":!0,onClick:Ie,open:$},className:se.backdrop,ownerState:ie});return!E&&!$&&(!V||L)?null:_.jsx(nO,{ref:re,container:c,disablePortal:m,children:_.jsxs(_e,S({},Ee,{children:[!v&&pe?_.jsx(pe,S({},be)):null,_.jsx(GR,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:g,isEnabled:ae,open:$,children:u.cloneElement(i,ke)})]}))})}),rG=nG,oG=["onChange","maxRows","minRows","style","value"];function Fh(e){return parseInt(e,10)||0}const iG={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function n2(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const sG=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,c=ne(t,oG),{current:d}=u.useRef(a!=null),p=u.useRef(null),h=Ht(n,p),m=u.useRef(null),g=u.useRef(0),[b,v]=u.useState({outerHeightStyle:0}),E=u.useCallback(()=>{const $=p.current,k=ui($).getComputedStyle($);if(k.width==="0px")return{outerHeightStyle:0};const M=m.current;M.style.width=k.width,M.value=$.value||t.placeholder||"x",M.value.slice(-1)===`
|
|
89
|
+
`&&(M.value+=" ");const O=k.boxSizing,A=Fh(k.paddingBottom)+Fh(k.paddingTop),L=Fh(k.borderBottomWidth)+Fh(k.borderTopWidth),D=M.scrollHeight;M.value="x";const j=M.scrollHeight;let R=D;i&&(R=Math.max(Number(i)*j,R)),o&&(R=Math.min(Number(o)*j,R)),R=Math.max(R,j);const N=R+(O==="border-box"?A+L:0),H=Math.abs(R-D)<=1;return{outerHeightStyle:N,overflow:H}},[o,i,t.placeholder]),w=($,I)=>{const{outerHeightStyle:k,overflow:M}=I;return g.current<20&&(k>0&&Math.abs(($.outerHeightStyle||0)-k)>1||$.overflow!==M)?(g.current+=1,{overflow:M,outerHeightStyle:k}):$},C=u.useCallback(()=>{const $=E();n2($)||v(I=>w(I,$))},[E]),x=()=>{const $=E();n2($)||zu.flushSync(()=>{v(I=>w(I,$))})};u.useEffect(()=>{const $=zl(()=>{g.current=0,p.current&&x()});let I;const k=p.current,M=ui(k);return M.addEventListener("resize",$),typeof ResizeObserver!="undefined"&&(I=new ResizeObserver($),I.observe(k)),()=>{$.clear(),M.removeEventListener("resize",$),I&&I.disconnect()}}),sn(()=>{C()}),u.useEffect(()=>{g.current=0},[a]);const P=$=>{g.current=0,d||C(),r&&r($)};return _.jsxs(u.Fragment,{children:[_.jsx("textarea",S({value:a,onChange:P,ref:h,rows:i,style:S({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},s)},c)),_.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:S({},iG.shadow,s,{padding:0})})]})}),lG=sG;function r2(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function rO(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:c,getOptionLabel:d})=>{let p=s?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=r2(p));const h=p?a.filter(m=>{let g=(i||d)(m);return n&&(g=g.toLowerCase()),t&&(g=r2(g)),o==="start"?g.indexOf(p)===0:g.indexOf(p)>-1}):a;return typeof r=="number"?h.slice(0,r):h}}function a1(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const aG=rO(),o2=5,cG=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function uG(e){const{unstable_isActiveElementInListbox:t=cG,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:p=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:m=!1,disabled:g,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:E=aG,filterSelectedOptions:w=!1,freeSolo:C=!1,getOptionDisabled:x,getOptionLabel:P=we=>{var me;return(me=we.label)!=null?me:we},groupBy:$,handleHomeEndKeys:I=!e.freeSolo,id:k,includeInputInList:M=!1,inputValue:O,isOptionEqualToValue:A=(we,me)=>we===me,multiple:L=!1,onChange:D,onClose:j,onHighlightChange:R,onInputChange:N,onOpen:H,open:V,openOnFocus:F=!1,options:z,readOnly:W=!1,selectOnFocus:K=!e.freeSolo,value:Y}=e,ae=on(k);let re=P;re=we=>{const me=P(we);return typeof me!="string"?String(me):me};const de=u.useRef(!1),ie=u.useRef(!0),se=u.useRef(null),Se=u.useRef(null),[ye,Ie]=u.useState(null),[ee,ke]=u.useState(-1),_e=o?0:-1,Ee=u.useRef(_e),[pe,be]=Fs({controlled:Y,default:p,name:d}),[te,Le]=Fs({controlled:O,default:"",name:d,state:"inputValue"}),[Ye,Ke]=u.useState(!1),Ue=u.useCallback((we,me)=>{if(!(L?pe.length<me.length:me!==null)&&!a)return;let ft;if(L)ft="";else if(me==null)ft="";else{const jt=re(me);ft=typeof jt=="string"?jt:""}te!==ft&&(Le(ft),N&&N(we,ft,"reset"))},[re,te,L,N,Le,a,pe]),[Be,ut]=Fs({controlled:V,default:!1,name:d,state:"open"}),[gt,at]=u.useState(!0),St=!L&&pe!=null&&te===re(pe),vt=Be&&!W,Ne=vt?E(z.filter(we=>!(w&&(L?pe:[pe]).some(me=>me!==null&&A(we,me)))),{inputValue:St&>?"":te,getOptionLabel:re}):[],Fe=RC({filteredOptions:Ne,value:pe});u.useEffect(()=>{const we=pe!==Fe.value;Ye&&!we||C&&!we||Ue(null,pe)},[pe,Ue,Ye,Fe.value,C]);const ze=Be&&Ne.length>0&&!W,et=In(we=>{we===-1?se.current.focus():ye.querySelector(`[data-tag-index="${we}"]`).focus()});u.useEffect(()=>{L&&ee>pe.length-1&&(ke(-1),et(-1))},[pe,L,ee,et]);function Pe(we,me){if(!Se.current||we===-1)return-1;let We=we;for(;;){if(me==="next"&&We===Ne.length||me==="previous"&&We===-1)return-1;const ft=Se.current.querySelector(`[data-option-index="${We}"]`),jt=b?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&!ft.hasAttribute("tabindex")||jt)We+=me==="next"?1:-1;else return We}}const Ae=In(({event:we,index:me,reason:We="auto"})=>{if(Ee.current=me,me===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${ae}-option-${me}`),R&&R(we,me===-1?null:Ne[me],We),!Se.current)return;const ft=Se.current.querySelector(`[role="option"].${n}-focused`);ft&&(ft.classList.remove(`${n}-focused`),ft.classList.remove(`${n}-focusVisible`));const jt=Se.current.parentElement.querySelector('[role="listbox"]');if(!jt)return;if(me===-1){jt.scrollTop=0;return}const _n=Se.current.querySelector(`[data-option-index="${me}"]`);if(_n&&(_n.classList.add(`${n}-focused`),We==="keyboard"&&_n.classList.add(`${n}-focusVisible`),jt.scrollHeight>jt.clientHeight&&We!=="mouse")){const Mn=_n,Ct=jt.clientHeight+jt.scrollTop,ir=Mn.offsetTop+Mn.offsetHeight;ir>Ct?jt.scrollTop=ir-jt.clientHeight:Mn.offsetTop-Mn.offsetHeight*($?1.3:0)<jt.scrollTop&&(jt.scrollTop=Mn.offsetTop-Mn.offsetHeight*($?1.3:0))}}),Ve=In(({event:we,diff:me,direction:We="next",reason:ft="auto"})=>{if(!vt)return;const _n=Pe((()=>{const Mn=Ne.length-1;if(me==="reset")return _e;if(me==="start")return 0;if(me==="end")return Mn;const Ct=Ee.current+me;return Ct<0?Ct===-1&&M?-1:v&&Ee.current!==-1||Math.abs(me)>1?0:Mn:Ct>Mn?Ct===Mn+1&&M?-1:v||Math.abs(me)>1?Mn:0:Ct})(),We);if(Ae({index:_n,reason:ft,event:we}),r&&me!=="reset")if(_n===-1)se.current.value=te;else{const Mn=re(Ne[_n]);se.current.value=Mn,Mn.toLowerCase().indexOf(te.toLowerCase())===0&&te.length>0&&se.current.setSelectionRange(te.length,Mn.length)}}),ot=()=>{const we=(me,We)=>{const ft=me?re(me):"",jt=We?re(We):"";return ft===jt};if(Ee.current!==-1&&Fe.filteredOptions&&Fe.filteredOptions.length!==Ne.length&&(L?pe.length===Fe.value.length&&Fe.value.every((me,We)=>re(pe[We])===re(me)):we(Fe.value,pe))){const me=Fe.filteredOptions[Ee.current];if(me&&Ne.some(ft=>re(ft)===re(me)))return!0}return!1},ht=u.useCallback(()=>{if(!vt||ot())return;const we=L?pe[0]:pe;if(Ne.length===0||we==null){Ve({diff:"reset"});return}if(Se.current){if(we!=null){const me=Ne[Ee.current];if(L&&me&&a1(pe,ft=>A(me,ft))!==-1)return;const We=a1(Ne,ft=>A(ft,we));We===-1?Ve({diff:"reset"}):Ae({index:We});return}if(Ee.current>=Ne.length-1){Ae({index:Ne.length-1});return}Ae({index:Ee.current})}},[Ne.length,L?!1:pe,w,Ve,Ae,vt,te,L]),Qt=In(we=>{Zm(Se,we),we&&ht()});u.useEffect(()=>{ht()},[ht]);const xn=we=>{Be||(ut(!0),at(!0),H&&H(we))},Tn=(we,me)=>{Be&&(ut(!1),j&&j(we,me))},Kn=(we,me,We,ft)=>{if(L){if(pe.length===me.length&&pe.every((jt,_n)=>jt===me[_n]))return}else if(pe===me)return;D&&D(we,me,We,ft),be(me)},rr=u.useRef(!1),or=(we,me,We="selectOption",ft="options")=>{let jt=We,_n=me;if(L){_n=Array.isArray(pe)?pe.slice():[];const Mn=a1(_n,Ct=>A(me,Ct));Mn===-1?_n.push(me):ft!=="freeSolo"&&(_n.splice(Mn,1),jt="removeOption")}Ue(we,_n),Kn(we,_n,jt,{option:me}),!m&&(!we||!we.ctrlKey&&!we.metaKey)&&Tn(we,jt),(s===!0||s==="touch"&&rr.current||s==="mouse"&&!rr.current)&&se.current.blur()};function mn(we,me){if(we===-1)return-1;let We=we;for(;;){if(me==="next"&&We===pe.length||me==="previous"&&We===-1)return-1;const ft=ye.querySelector(`[data-tag-index="${We}"]`);if(!ft||!ft.hasAttribute("tabindex")||ft.disabled||ft.getAttribute("aria-disabled")==="true")We+=me==="next"?1:-1;else return We}}const Xt=(we,me)=>{if(!L)return;te===""&&Tn(we,"toggleInput");let We=ee;ee===-1?te===""&&me==="previous"&&(We=pe.length-1):(We+=me==="next"?1:-1,We<0&&(We=0),We===pe.length&&(We=-1)),We=mn(We,me),ke(We),et(We)},Dn=we=>{de.current=!0,Le(""),N&&N(we,"","clear"),Kn(we,L?[]:null,"clear")},Bo=we=>me=>{if(we.onKeyDown&&we.onKeyDown(me),!me.defaultMuiPrevented&&(ee!==-1&&["ArrowLeft","ArrowRight"].indexOf(me.key)===-1&&(ke(-1),et(-1)),me.which!==229))switch(me.key){case"Home":vt&&I&&(me.preventDefault(),Ve({diff:"start",direction:"next",reason:"keyboard",event:me}));break;case"End":vt&&I&&(me.preventDefault(),Ve({diff:"end",direction:"previous",reason:"keyboard",event:me}));break;case"PageUp":me.preventDefault(),Ve({diff:-o2,direction:"previous",reason:"keyboard",event:me}),xn(me);break;case"PageDown":me.preventDefault(),Ve({diff:o2,direction:"next",reason:"keyboard",event:me}),xn(me);break;case"ArrowDown":me.preventDefault(),Ve({diff:1,direction:"next",reason:"keyboard",event:me}),xn(me);break;case"ArrowUp":me.preventDefault(),Ve({diff:-1,direction:"previous",reason:"keyboard",event:me}),xn(me);break;case"ArrowLeft":Xt(me,"previous");break;case"ArrowRight":Xt(me,"next");break;case"Enter":if(Ee.current!==-1&&vt){const We=Ne[Ee.current],ft=x?x(We):!1;if(me.preventDefault(),ft)return;or(me,We,"selectOption"),r&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else C&&te!==""&&St===!1&&(L&&me.preventDefault(),or(me,te,"createOption","freeSolo"));break;case"Escape":vt?(me.preventDefault(),me.stopPropagation(),Tn(me,"escape")):c&&(te!==""||L&&pe.length>0)&&(me.preventDefault(),me.stopPropagation(),Dn(me));break;case"Backspace":if(L&&!W&&te===""&&pe.length>0){const We=ee===-1?pe.length-1:ee,ft=pe.slice();ft.splice(We,1),Kn(me,ft,"removeOption",{option:pe[We]})}break;case"Delete":if(L&&!W&&te===""&&pe.length>0&&ee!==-1){const We=ee,ft=pe.slice();ft.splice(We,1),Kn(me,ft,"removeOption",{option:pe[We]})}break}},Ni=we=>{Ke(!0),F&&!de.current&&xn(we)},ms=we=>{if(t(Se)){se.current.focus();return}Ke(!1),ie.current=!0,de.current=!1,i&&Ee.current!==-1&&vt?or(we,Ne[Ee.current],"blur"):i&&C&&te!==""?or(we,te,"blur","freeSolo"):a&&Ue(we,pe),Tn(we,"blur")},gs=we=>{const me=we.target.value;te!==me&&(Le(me),at(!1),N&&N(we,me,"input")),me===""?!h&&!L&&Kn(we,null,"clear"):xn(we)},le=we=>{const me=Number(we.currentTarget.getAttribute("data-option-index"));Ee.current!==me&&Ae({event:we,index:me,reason:"mouse"})},ge=we=>{Ae({event:we,index:Number(we.currentTarget.getAttribute("data-option-index")),reason:"touch"}),rr.current=!0},De=we=>{const me=Number(we.currentTarget.getAttribute("data-option-index"));or(we,Ne[me],"selectOption"),rr.current=!1},dt=we=>me=>{const We=pe.slice();We.splice(we,1),Kn(me,We,"removeOption",{option:pe[we]})},st=we=>{Be?Tn(we,"toggleInput"):xn(we)},je=we=>{we.target.getAttribute("id")!==ae&&we.preventDefault()},wt=()=>{se.current.focus(),K&&ie.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),ie.current=!1},zt=we=>{(te===""||!Be)&&st(we)};let Sn=C&&te.length>0;Sn=Sn||(L?pe.length>0:pe!==null);let ao=Ne;return $&&(ao=Ne.reduce((we,me,We)=>{const ft=$(me);return we.length>0&&we[we.length-1].group===ft?we[we.length-1].options.push(me):we.push({key:We,index:We,group:ft,options:[me]}),we},[])),g&&Ye&&ms(),{getRootProps:(we={})=>S({"aria-owns":ze?`${ae}-listbox`:null},we,{onKeyDown:Bo(we),onMouseDown:je,onClick:wt}),getInputLabelProps:()=>({id:`${ae}-label`,htmlFor:ae}),getInputProps:()=>({id:ae,value:te,onBlur:ms,onFocus:Ni,onChange:gs,onMouseDown:zt,"aria-activedescendant":vt?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ze?`${ae}-listbox`:void 0,"aria-expanded":ze,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,onClick:Dn}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:st}),getTagProps:({index:we})=>S({key:we,"data-tag-index":we,tabIndex:-1},!W&&{onDelete:dt(we)}),getListboxProps:()=>({role:"listbox",id:`${ae}-listbox`,"aria-labelledby":`${ae}-label`,ref:Qt,onMouseDown:we=>{we.preventDefault()}}),getOptionProps:({index:we,option:me})=>{const We=(L?pe:[pe]).some(jt=>jt!=null&&A(me,jt)),ft=x?x(me):!1;return{key:re(me),tabIndex:-1,role:"option",id:`${ae}-option-${we}`,onMouseMove:le,onClick:De,onTouchStart:ge,"data-option-index":we,"aria-disabled":ft,"aria-selected":We}},id:ae,inputValue:te,value:pe,dirty:Sn,expanded:vt&&ye,popupOpen:vt,focused:Ye||ee!==-1,anchorEl:ye,setAnchorEl:Ie,focusedTag:ee,groupedOptions:ao}}function dG(e){return Ze("MuiSvgIcon",e)}Xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fG=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pG=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(n)}`]};return Me(o,dG,r)},hG=oe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ue(n.color)}`],t[`fontSize${ue(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,c,d,p,h,m,g,b,v,E,w,C;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||(d=c.pxToRem)==null?void 0:d.call(c,24))||"1.5rem",large:((p=e.typography)==null||(h=p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}[t.fontSize],color:(m=(g=(e.vars||e).palette)==null||(b=g[t.color])==null?void 0:b.main)!=null?m:{action:(v=(e.vars||e).palette)==null||(E=v.action)==null?void 0:E.active,disabled:(w=(e.vars||e).palette)==null||(C=w.action)==null?void 0:C.disabled,inherit:void 0}[t.color]}}),oO=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,g=ne(r,fG),b=S({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m}),v={};p||(v.viewBox=m);const E=pG(b);return _.jsxs(hG,S({as:a,className:he(E.root,i),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},v,g,{ownerState:b,children:[o,h?_.jsx("title",{children:h}):null]}))});oO.muiName="SvgIcon";const i2=oO;function Re(e,t){function n(r,o){return _.jsx(i2,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=i2.muiName,u.memo(u.forwardRef(n))}function Kb(e,t){return Kb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Kb(e,t)}function nx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kb(e,t)}const s2={disabled:!1},rg=Po.createContext(null);var mG=function(t){return t.scrollTop},Yd="unmounted",fa="exited",pa="entering",Rc="entered",qb="exiting",Gs=function(e){nx(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=fa,i.appearStatus=pa):c=Rc:r.unmountOnExit||r.mountOnEnter?c=Yd:c=fa,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Yd?{status:fa}: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!==pa&&s!==Rc&&(i=pa):(s===pa||s===Rc)&&(i=qb)}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===pa){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Oh.findDOMNode(this);s&&mG(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===fa&&this.setState({status:Yd})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[Oh.findDOMNode(this),a],d=c[0],p=c[1],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!o&&!s||s2.disabled){this.safeSetState({status:Rc},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:pa},function(){i.props.onEntering(d,p),i.onTransitionEnd(m,function(){i.safeSetState({status:Rc},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Oh.findDOMNode(this);if(!i||s2.disabled){this.safeSetState({status:fa},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:qb},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:fa},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:Oh.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],d=c[0],p=c[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Yd)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=ne(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Po.createElement(rg.Provider,{value:null},typeof s=="function"?s(o,a):Po.cloneElement(Po.Children.only(s),a))},t}(Po.Component);Gs.contextType=rg;Gs.propTypes={};function Pc(){}Gs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pc,onEntering:Pc,onEntered:Pc,onExit:Pc,onExiting:Pc,onExited:Pc};Gs.UNMOUNTED=Yd;Gs.EXITED=fa;Gs.ENTERING=pa;Gs.ENTERED=Rc;Gs.EXITING=qb;const Tv=Gs;function Yb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rx(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 gG(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 d=r[c][s];a[r[c][s]]=n(d)}a[c]=n(c)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function ba(e,t,n){return n[t]!=null?n[t]:e.props[t]}function vG(e,t){return rx(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ba(n,"appear",e),enter:ba(n,"enter",e),exit:ba(n,"exit",e)})})}function yG(e,t,n){var r=rx(e.children),o=gG(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,d=t[i],p=u.isValidElement(d)&&!d.props.in;c&&(!a||p)?o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:ba(s,"exit",e),enter:ba(s,"enter",e)}):!c&&a&&!p?o[i]=u.cloneElement(s,{in:!1}):c&&a&&u.isValidElement(d)&&(o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:ba(s,"exit",e),enter:ba(s,"enter",e)}))}}),o}var bG=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},wG={component:"div",childFactory:function(t){return t}},ox=function(e){nx(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(Yb(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?vG(o,a):yG(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=rx(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=ne(o,["component","childFactory"]),c=this.state.contextValue,d=bG(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?Po.createElement(rg.Provider,{value:c},d):Po.createElement(rg.Provider,{value:c},Po.createElement(i,a,d))},t}(Po.Component);ox.propTypes={};ox.defaultProps=wG;const CG=ox,ix=e=>e.scrollTop;function jl(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 xG(e){return Ze("MuiCollapse",e)}Xe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const SG=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],EG=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Me(r,xG,n)},PG=oe("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"})),kG=oe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>S({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),IG=oe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),iO=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:c,easing:d,in:p,onEnter:h,onEntered:m,onEntering:g,onExit:b,onExited:v,onExiting:E,orientation:w="vertical",style:C,timeout:x=VR.standard,TransitionComponent:P=Tv}=r,$=ne(r,SG),I=S({},r,{orientation:w,collapsedSize:a}),k=EG(I),M=pr(),O=u.useRef(),A=u.useRef(null),L=u.useRef(),D=typeof a=="number"?`${a}px`:a,j=w==="horizontal",R=j?"width":"height";u.useEffect(()=>()=>{clearTimeout(O.current)},[]);const N=u.useRef(null),H=Ht(n,N),V=ie=>se=>{if(ie){const Se=N.current;se===void 0?ie(Se):ie(Se,se)}},F=()=>A.current?A.current[j?"clientWidth":"clientHeight"]:0,z=V((ie,se)=>{A.current&&j&&(A.current.style.position="absolute"),ie.style[R]=D,h&&h(ie,se)}),W=V((ie,se)=>{const Se=F();A.current&&j&&(A.current.style.position="");const{duration:ye,easing:Ie}=jl({style:C,timeout:x,easing:d},{mode:"enter"});if(x==="auto"){const ee=M.transitions.getAutoHeightDuration(Se);ie.style.transitionDuration=`${ee}ms`,L.current=ee}else ie.style.transitionDuration=typeof ye=="string"?ye:`${ye}ms`;ie.style[R]=`${Se}px`,ie.style.transitionTimingFunction=Ie,g&&g(ie,se)}),K=V((ie,se)=>{ie.style[R]="auto",m&&m(ie,se)}),Y=V(ie=>{ie.style[R]=`${F()}px`,b&&b(ie)}),ae=V(v),re=V(ie=>{const se=F(),{duration:Se,easing:ye}=jl({style:C,timeout:x,easing:d},{mode:"exit"});if(x==="auto"){const Ie=M.transitions.getAutoHeightDuration(se);ie.style.transitionDuration=`${Ie}ms`,L.current=Ie}else ie.style.transitionDuration=typeof Se=="string"?Se:`${Se}ms`;ie.style[R]=D,ie.style.transitionTimingFunction=ye,E&&E(ie)}),de=ie=>{x==="auto"&&(O.current=setTimeout(ie,L.current||0)),o&&o(N.current,ie)};return _.jsx(P,S({in:p,onEnter:z,onEntered:K,onEntering:W,onExit:Y,onExited:ae,onExiting:re,addEndListener:de,nodeRef:N,timeout:x==="auto"?null:x},$,{children:(ie,se)=>_.jsx(PG,S({as:c,className:he(k.root,s,{entered:k.entered,exited:!p&&D==="0px"&&k.hidden}[ie]),style:S({[j?"minWidth":"minHeight"]:D},C),ownerState:S({},I,{state:ie}),ref:H},se,{children:_.jsx(kG,{ownerState:S({},I,{state:ie}),className:k.wrapper,ref:A,children:_.jsx(IG,{ownerState:S({},I,{state:ie}),className:k.wrapperInner,children:i})})}))}))});iO.muiSupportAuto=!0;const sO=iO;function $G(e){return Ze("MuiPaper",e)}Xe("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 TG=["className","component","elevation","square","variant"],_G=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Me(i,$G,o)},MG=oe("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(${ct("#fff",jI(t.elevation))}, ${ct("#fff",jI(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),RG=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,d=ne(r,TG),p=S({},r,{component:i,elevation:s,square:a,variant:c}),h=_G(p);return _.jsx(MG,S({as:i,ownerState:p,className:he(h.root,o),ref:n},d))}),gi=RG;function OG(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:c,timeout:d}=e,[p,h]=u.useState(!1),m=he(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},b=he(n.child,p&&n.childLeaving,r&&n.childPulsate);return!a&&!p&&h(!0),u.useEffect(()=>{if(!a&&c!=null){const v=setTimeout(c,d);return()=>{clearTimeout(v)}}},[c,a,d]),_.jsx("span",{className:m,style:g,children:_.jsx("span",{className:b})})}const LG=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xo=LG,AG=["center","classes","className"];let _v=e=>e,l2,a2,c2,u2;const Qb=550,FG=80,NG=fs(l2||(l2=_v`
|
|
90
|
+
0% {
|
|
91
|
+
transform: scale(0);
|
|
92
|
+
opacity: 0.1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
100% {
|
|
96
|
+
transform: scale(1);
|
|
97
|
+
opacity: 0.3;
|
|
98
|
+
}
|
|
99
|
+
`)),DG=fs(a2||(a2=_v`
|
|
100
|
+
0% {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
100% {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
}
|
|
107
|
+
`)),BG=fs(c2||(c2=_v`
|
|
108
|
+
0% {
|
|
109
|
+
transform: scale(1);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
50% {
|
|
113
|
+
transform: scale(0.92);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
100% {
|
|
117
|
+
transform: scale(1);
|
|
118
|
+
}
|
|
119
|
+
`)),zG=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),HG=oe(OG,{name:"MuiTouchRipple",slot:"Ripple"})(u2||(u2=_v`
|
|
120
|
+
opacity: 0;
|
|
121
|
+
position: absolute;
|
|
122
|
+
|
|
123
|
+
&.${0} {
|
|
124
|
+
opacity: 0.3;
|
|
125
|
+
transform: scale(1);
|
|
126
|
+
animation-name: ${0};
|
|
127
|
+
animation-duration: ${0}ms;
|
|
128
|
+
animation-timing-function: ${0};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.${0} {
|
|
132
|
+
animation-duration: ${0}ms;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
& .${0} {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
display: block;
|
|
138
|
+
width: 100%;
|
|
139
|
+
height: 100%;
|
|
140
|
+
border-radius: 50%;
|
|
141
|
+
background-color: currentColor;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
& .${0} {
|
|
145
|
+
opacity: 0;
|
|
146
|
+
animation-name: ${0};
|
|
147
|
+
animation-duration: ${0}ms;
|
|
148
|
+
animation-timing-function: ${0};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
& .${0} {
|
|
152
|
+
position: absolute;
|
|
153
|
+
/* @noflip */
|
|
154
|
+
left: 0px;
|
|
155
|
+
top: 0;
|
|
156
|
+
animation-name: ${0};
|
|
157
|
+
animation-duration: 2500ms;
|
|
158
|
+
animation-timing-function: ${0};
|
|
159
|
+
animation-iteration-count: infinite;
|
|
160
|
+
animation-delay: 200ms;
|
|
161
|
+
}
|
|
162
|
+
`),Xo.rippleVisible,NG,Qb,({theme:e})=>e.transitions.easing.easeInOut,Xo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xo.child,Xo.childLeaving,DG,Qb,({theme:e})=>e.transitions.easing.easeInOut,Xo.childPulsate,BG,({theme:e})=>e.transitions.easing.easeInOut),jG=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=ne(r,AG),[c,d]=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),g=u.useRef(null),b=u.useRef(null),v=u.useRef(null);u.useEffect(()=>()=>{clearTimeout(g.current)},[]);const E=u.useCallback(P=>{const{pulsate:$,rippleX:I,rippleY:k,rippleSize:M,cb:O}=P;d(A=>[...A,_.jsx(HG,{classes:{ripple:he(i.ripple,Xo.ripple),rippleVisible:he(i.rippleVisible,Xo.rippleVisible),ripplePulsate:he(i.ripplePulsate,Xo.ripplePulsate),child:he(i.child,Xo.child),childLeaving:he(i.childLeaving,Xo.childLeaving),childPulsate:he(i.childPulsate,Xo.childPulsate)},timeout:Qb,pulsate:$,rippleX:I,rippleY:k,rippleSize:M},p.current)]),p.current+=1,h.current=O},[i]),w=u.useCallback((P={},$={},I=()=>{})=>{const{pulsate:k=!1,center:M=o||$.pulsate,fakeElement:O=!1}=$;if((P==null?void 0:P.type)==="mousedown"&&m.current){m.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(m.current=!0);const A=O?null:v.current,L=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,j,R;if(M||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)D=Math.round(L.width/2),j=Math.round(L.height/2);else{const{clientX:N,clientY:H}=P.touches&&P.touches.length>0?P.touches[0]:P;D=Math.round(N-L.left),j=Math.round(H-L.top)}if(M)R=Math.sqrt((2*ks(L.width,2)+ks(L.height,2))/3),R%2===0&&(R+=1);else{const N=Math.max(Math.abs((A?A.clientWidth:0)-D),D)*2+2,H=Math.max(Math.abs((A?A.clientHeight:0)-j),j)*2+2;R=Math.sqrt(ks(N,2)+ks(H,2))}P!=null&&P.touches?b.current===null&&(b.current=()=>{E({pulsate:k,rippleX:D,rippleY:j,rippleSize:R,cb:I})},g.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},FG)):E({pulsate:k,rippleX:D,rippleY:j,rippleSize:R,cb:I})},[o,E]),C=u.useCallback(()=>{w({},{pulsate:!0})},[w]),x=u.useCallback((P,$)=>{if(clearTimeout(g.current),(P==null?void 0:P.type)==="touchend"&&b.current){b.current(),b.current=null,g.current=setTimeout(()=>{x(P,$)});return}b.current=null,d(I=>I.length>0?I.slice(1):I),h.current=$},[]);return u.useImperativeHandle(n,()=>({pulsate:C,start:w,stop:x}),[C,w,x]),_.jsx(zG,S({className:he(Xo.root,i.root,s),ref:v},a,{children:_.jsx(CG,{component:null,exit:!0,children:c})}))}),VG=jG;function UG(e){return Ze("MuiButtonBase",e)}const WG=Xe("MuiButtonBase",["root","disabled","focusVisible"]),GG=WG,KG=["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"],qG=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Me({root:["root",t&&"disabled",n&&"focusVisible"]},UG,o);return n&&r&&(s.root+=` ${r}`),s},YG=oe("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"},[`&.${GG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),QG=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:g="a",onBlur:b,onClick:v,onContextMenu:E,onDragLeave:w,onFocus:C,onFocusVisible:x,onKeyDown:P,onKeyUp:$,onMouseDown:I,onMouseLeave:k,onMouseUp:M,onTouchEnd:O,onTouchMove:A,onTouchStart:L,tabIndex:D=0,TouchRippleProps:j,touchRippleRef:R,type:N}=r,H=ne(r,KG),V=u.useRef(null),F=u.useRef(null),z=Ht(F,R),{isFocusVisibleRef:W,onFocus:K,onBlur:Y,ref:ae}=MC(),[re,de]=u.useState(!1);d&&re&&de(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{de(!0),V.current.focus()}}),[]);const[ie,se]=u.useState(!1);u.useEffect(()=>{se(!0)},[]);const Se=ie&&!p&&!d;u.useEffect(()=>{re&&m&&!p&&ie&&F.current.pulsate()},[p,m,re,ie]);function ye(Fe,ze,et=h){return In(Pe=>(ze&&ze(Pe),!et&&F.current&&F.current[Fe](Pe),!0))}const Ie=ye("start",I),ee=ye("stop",E),ke=ye("stop",w),_e=ye("stop",M),Ee=ye("stop",Fe=>{re&&Fe.preventDefault(),k&&k(Fe)}),pe=ye("start",L),be=ye("stop",O),te=ye("stop",A),Le=ye("stop",Fe=>{Y(Fe),W.current===!1&&de(!1),b&&b(Fe)},!1),Ye=In(Fe=>{V.current||(V.current=Fe.currentTarget),K(Fe),W.current===!0&&(de(!0),x&&x(Fe)),C&&C(Fe)}),Ke=()=>{const Fe=V.current;return c&&c!=="button"&&!(Fe.tagName==="A"&&Fe.href)},Ue=u.useRef(!1),Be=In(Fe=>{m&&!Ue.current&&re&&F.current&&Fe.key===" "&&(Ue.current=!0,F.current.stop(Fe,()=>{F.current.start(Fe)})),Fe.target===Fe.currentTarget&&Ke()&&Fe.key===" "&&Fe.preventDefault(),P&&P(Fe),Fe.target===Fe.currentTarget&&Ke()&&Fe.key==="Enter"&&!d&&(Fe.preventDefault(),v&&v(Fe))}),ut=In(Fe=>{m&&Fe.key===" "&&F.current&&re&&!Fe.defaultPrevented&&(Ue.current=!1,F.current.stop(Fe,()=>{F.current.pulsate(Fe)})),$&&$(Fe),v&&Fe.target===Fe.currentTarget&&Ke()&&Fe.key===" "&&!Fe.defaultPrevented&&v(Fe)});let gt=c;gt==="button"&&(H.href||H.to)&&(gt=g);const at={};gt==="button"?(at.type=N===void 0?"button":N,at.disabled=d):(!H.href&&!H.to&&(at.role="button"),d&&(at["aria-disabled"]=d));const St=Ht(n,ae,V),vt=S({},r,{centerRipple:i,component:c,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:D,focusVisible:re}),Ne=qG(vt);return _.jsxs(YG,S({as:gt,className:he(Ne.root,a),ownerState:vt,onBlur:Le,onClick:v,onContextMenu:ee,onFocus:Ye,onKeyDown:Be,onKeyUp:ut,onMouseDown:Ie,onMouseLeave:Ee,onMouseUp:_e,onDragLeave:ke,onTouchEnd:be,onTouchMove:te,onTouchStart:pe,ref:St,tabIndex:d?-1:D,type:N},at,H,{children:[s,Se?_.jsx(VG,S({ref:z,center:i},j)):null]}))}),cs=QG;function XG(e){return Ze("MuiAlert",e)}const JG=Xe("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),d2=JG;function ZG(e){return Ze("MuiIconButton",e)}const eK=Xe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),tK=eK,nK=["edge","children","className","color","disabled","disableFocusRipple","size"],rK=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${ue(r)}`,o&&`edge${ue(o)}`,`size${ue(i)}`]};return Me(s,ZG,t)},oK=oe(cs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(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})`:ct(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(r.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)},{[`&.${tK.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),iK=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:d=!1,size:p="medium"}=r,h=ne(r,nK),m=S({},r,{edge:o,color:a,disabled:c,disableFocusRipple:d,size:p}),g=rK(m);return _.jsx(oK,S({className:he(g.root,s),centerRipple:!0,focusRipple:!d,disabled:c,ref:n,ownerState:m},h,{children:i}))}),Zr=iK,sK=Re(_.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=Re(_.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),aK=Re(_.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"),cK=Re(_.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"),lO=Re(_.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"),uK=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],dK=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${ue(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Me(i,XG,o)},fK=oe(gi,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Ba:za,r=e.palette.mode==="light"?za:Ba,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),[`& .${d2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${d2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},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[o].main)}))}),pK=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hK=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),f2=oe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),p2={success:_.jsx(sK,{fontSize:"inherit"}),warning:_.jsx(lK,{fontSize:"inherit"}),error:_.jsx(aK,{fontSize:"inherit"}),info:_.jsx(cK,{fontSize:"inherit"})},mK=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=nt({props:t,name:"MuiAlert"}),{action:p,children:h,className:m,closeText:g="Close",color:b,components:v={},componentsProps:E={},icon:w,iconMapping:C=p2,onClose:x,role:P="alert",severity:$="success",slotProps:I={},slots:k={},variant:M="standard"}=d,O=ne(d,uK),A=S({},d,{color:b,severity:$,variant:M}),L=dK(A),D=(r=(o=k.closeButton)!=null?o:v.CloseButton)!=null?r:Zr,j=(i=(s=k.closeIcon)!=null?s:v.CloseIcon)!=null?i:lO,R=(a=I.closeButton)!=null?a:E.closeButton,N=(c=I.closeIcon)!=null?c:E.closeIcon;return _.jsxs(fK,S({role:P,elevation:0,ownerState:A,className:he(L.root,m),ref:n},O,{children:[w!==!1?_.jsx(pK,{ownerState:A,className:L.icon,children:w||C[$]||p2[$]}):null,_.jsx(hK,{ownerState:A,className:L.message,children:h}),p!=null?_.jsx(f2,{ownerState:A,className:L.action,children:p}):null,p==null&&x?_.jsx(f2,{ownerState:A,className:L.action,children:_.jsx(D,S({size:"small","aria-label":g,title:g,color:"inherit",onClick:x},R,{children:_.jsx(j,S({fontSize:"small"},N))}))}):null]}))}),Do=mK;function gK(e){return Ze("MuiTypography",e)}Xe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vK=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yK=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${ue(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Me(a,gK,s)},bK=oe("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${ue(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})),h2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wK={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},CK=e=>wK[e]||e,xK=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTypography"}),o=CK(r.color),i=GC(S({},r,{color:o})),{align:s="inherit",className:a,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:g=h2}=i,b=ne(i,vK),v=S({},i,{align:s,color:o,className:a,component:c,gutterBottom:d,noWrap:p,paragraph:h,variant:m,variantMapping:g}),E=c||(h?"p":g[m]||h2[m])||"span",w=yK(v);return _.jsx(bK,S({as:E,ref:n,ownerState:v,className:he(w.root,a)},b))}),Tr=xK;function SK(e){return Ze("MuiAppBar",e)}Xe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const EK=["className","color","enableColorOnDark","position"],PK=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ue(t)}`,`position${ue(n)}`]};return Me(o,SK,r)},Nh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,kK=oe(gi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],t[`color${ue(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:Nh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Nh(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:Nh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Nh(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"}))}),IK=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=ne(r,EK),d=S({},r,{color:i,position:a,enableColorOnDark:s}),p=PK(d);return _.jsx(kK,S({square:!0,component:"header",ownerState:d,elevation:4,className:he(p.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))}),$K=IK,TK=["components","componentsProps","slots","slotProps"],_K=oe(UW,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),MK=u.forwardRef(function(t,n){var r;const o=Pv(),i=nt({props:t,name:"MuiPopper"}),{components:s,componentsProps:a,slots:c,slotProps:d}=i,p=ne(i,TK),h=(r=c==null?void 0:c.root)!=null?r:s==null?void 0:s.Root;return _.jsx(_K,S({direction:o==null?void 0:o.direction,slots:{root:h},slotProps:d!=null?d:a},p,{ref:n}))}),Ja=MK;function RK(e){return Ze("MuiListSubheader",e)}Xe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const OK=["className","color","component","disableGutters","disableSticky","inset"],LK=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${ue(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Me(s,RK,t)},AK=oe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(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})),aO=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:d=!1}=r,p=ne(r,OK),h=S({},r,{color:i,component:s,disableGutters:a,disableSticky:c,inset:d}),m=LK(h);return _.jsx(AK,S({as:s,className:he(m.root,o),ref:n,ownerState:h},p))});aO.muiSkipListHighlight=!0;const FK=aO,NK=Re(_.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 DK(e){return Ze("MuiChip",e)}const BK=Xe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","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"]),Ut=BK,zK=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],HK=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:c}=e,d={root:["root",c,n&&"disabled",`size${ue(r)}`,`color${ue(o)}`,a&&"clickable",a&&`clickableColor${ue(o)}`,s&&"deletable",s&&`deletableColor${ue(o)}`,`${c}${ue(o)}`],label:["label",`label${ue(r)}`],avatar:["avatar",`avatar${ue(r)}`,`avatarColor${ue(o)}`],icon:["icon",`icon${ue(r)}`,`iconColor${ue(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(r)}`,`deleteIconColor${ue(o)}`,`deleteIcon${ue(c)}Color${ue(o)}`]};return Me(d,DK,t)},jK=oe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:c}=n;return[{[`& .${Ut.avatar}`]:t.avatar},{[`& .${Ut.avatar}`]:t[`avatar${ue(a)}`]},{[`& .${Ut.avatar}`]:t[`avatarColor${ue(r)}`]},{[`& .${Ut.icon}`]:t.icon},{[`& .${Ut.icon}`]:t[`icon${ue(a)}`]},{[`& .${Ut.icon}`]:t[`iconColor${ue(o)}`]},{[`& .${Ut.deleteIcon}`]:t.deleteIcon},{[`& .${Ut.deleteIcon}`]:t[`deleteIcon${ue(a)}`]},{[`& .${Ut.deleteIcon}`]:t[`deleteIconColor${ue(r)}`]},{[`& .${Ut.deleteIcon}`]:t[`deleteIcon${ue(c)}Color${ue(r)}`]},t.root,t[`size${ue(a)}`],t[`color${ue(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ue(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ue(r)}`],t[c],t[`${c}${ue(r)}`]]}})(({theme:e,ownerState:t})=>{const n=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",[`&.${Ut.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ut.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Ut.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ut.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ut.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ut.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Ut.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ct(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ct(e.palette.text.primary,.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)`:ct(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&&{[`&.${Ut.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Ut.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}))`:ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ut.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(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, &.${Ut.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]}`,[`&.${Ut.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ut.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ut.avatar}`]:{marginLeft:4},[`& .${Ut.avatarSmall}`]:{marginLeft:2},[`& .${Ut.icon}`]:{marginLeft:4},[`& .${Ut.iconSmall}`]:{marginLeft:2},[`& .${Ut.deleteIcon}`]:{marginRight:5},[`& .${Ut.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)`:ct(e.palette[t.color].main,.7)}`,[`&.${Ut.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Ut.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ct(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Ut.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ct(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),VK=oe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ue(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function m2(e){return e.key==="Backspace"||e.key==="Delete"}const UK=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:c,deleteIcon:d,disabled:p=!1,icon:h,label:m,onClick:g,onDelete:b,onKeyDown:v,onKeyUp:E,size:w="medium",variant:C="filled",tabIndex:x,skipFocusWhenDisabled:P=!1}=r,$=ne(r,zK),I=u.useRef(null),k=Ht(I,n),M=z=>{z.stopPropagation(),b&&b(z)},O=z=>{z.currentTarget===z.target&&m2(z)&&z.preventDefault(),v&&v(z)},A=z=>{z.currentTarget===z.target&&(b&&m2(z)?b(z):z.key==="Escape"&&I.current&&I.current.blur()),E&&E(z)},L=s!==!1&&g?!0:s,D=L||b?cs:c||"div",j=S({},r,{component:D,disabled:p,size:w,color:a,iconColor:u.isValidElement(h)&&h.props.color||a,onDelete:!!b,clickable:L,variant:C}),R=HK(j),N=D===cs?S({component:c||"div",focusVisibleClassName:R.focusVisible},b&&{disableRipple:!0}):{};let H=null;b&&(H=d&&u.isValidElement(d)?u.cloneElement(d,{className:he(d.props.className,R.deleteIcon),onClick:M}):_.jsx(NK,{className:he(R.deleteIcon),onClick:M}));let V=null;o&&u.isValidElement(o)&&(V=u.cloneElement(o,{className:he(R.avatar,o.props.className)}));let F=null;return h&&u.isValidElement(h)&&(F=u.cloneElement(h,{className:he(R.icon,h.props.className)})),_.jsxs(jK,S({as:D,className:he(R.root,i),disabled:L&&p?!0:void 0,onClick:g,onKeyDown:O,onKeyUp:A,ref:k,tabIndex:P&&p?-1:x,ownerState:j},N,$,{children:[V||F,_.jsx(VK,{className:he(R.label),ownerState:j,children:m}),H]}))}),sx=UK;function Za({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 WK=u.createContext(void 0),Mv=WK;function Ks(){return u.useContext(Mv)}function GK(e){return _.jsx(f7,S({},e,{defaultTheme:Iv,themeId:Na}))}function g2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function lx(e,t=!1){return e&&(g2(e.value)&&e.value!==""||t&&g2(e.defaultValue)&&e.defaultValue!=="")}function KK(e){return e.startAdornment}function qK(e){return Ze("MuiInputBase",e)}const YK=Xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),wo=YK,QK=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Rv=(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${ue(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ov=(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]},XK=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:c,hiddenLabel:d,multiline:p,readOnly:h,size:m,startAdornment:g,type:b}=e,v={root:["root",`color${ue(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",m==="small"&&"sizeSmall",p&&"multiline",g&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return Me(v,qK,t)},Lv=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rv})(({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",[`&.${wo.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%"})),Av=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ov})(({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] + .${wo.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},[`&.${wo.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"})}),JK=_.jsx(GK,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ZK=u.forwardRef(function(t,n){var r;const o=nt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:c,components:d={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:g,endAdornment:b,fullWidth:v=!1,id:E,inputComponent:w="input",inputProps:C={},inputRef:x,maxRows:P,minRows:$,multiline:I=!1,name:k,onBlur:M,onChange:O,onClick:A,onFocus:L,onKeyDown:D,onKeyUp:j,placeholder:R,readOnly:N,renderSuffix:H,rows:V,slotProps:F={},slots:z={},startAdornment:W,type:K="text",value:Y}=o,ae=ne(o,QK),re=C.value!=null?C.value:Y,{current:de}=u.useRef(re!=null),ie=u.useRef(),se=u.useCallback(Ne=>{},[]),Se=Ht(ie,x,C.ref,se),[ye,Ie]=u.useState(!1),ee=Ks(),ke=Za({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ke.focused=ee?ee.focused:ye,u.useEffect(()=>{!ee&&m&&ye&&(Ie(!1),M&&M())},[ee,m,ye,M]);const _e=ee&&ee.onFilled,Ee=ee&&ee.onEmpty,pe=u.useCallback(Ne=>{lx(Ne)?_e&&_e():Ee&&Ee()},[_e,Ee]);sn(()=>{de&&pe({value:re})},[re,pe,de]);const be=Ne=>{if(ke.disabled){Ne.stopPropagation();return}L&&L(Ne),C.onFocus&&C.onFocus(Ne),ee&&ee.onFocus?ee.onFocus(Ne):Ie(!0)},te=Ne=>{M&&M(Ne),C.onBlur&&C.onBlur(Ne),ee&&ee.onBlur?ee.onBlur(Ne):Ie(!1)},Le=(Ne,...Fe)=>{if(!de){const ze=Ne.target||ie.current;if(ze==null)throw new Error(Bl(1));pe({value:ze.value})}C.onChange&&C.onChange(Ne,...Fe),O&&O(Ne,...Fe)};u.useEffect(()=>{pe(ie.current)},[]);const Ye=Ne=>{ie.current&&Ne.currentTarget===Ne.target&&ie.current.focus(),A&&A(Ne)};let Ke=w,Ue=C;I&&Ke==="input"&&(V?Ue=S({type:void 0,minRows:V,maxRows:V},Ue):Ue=S({type:void 0,maxRows:P,minRows:$},Ue),Ke=lG);const Be=Ne=>{pe(Ne.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};u.useEffect(()=>{ee&&ee.setAdornedStart(!!W)},[ee,W]);const ut=S({},o,{color:ke.color||"primary",disabled:ke.disabled,endAdornment:b,error:ke.error,focused:ke.focused,formControl:ee,fullWidth:v,hiddenLabel:ke.hiddenLabel,multiline:I,size:ke.size,startAdornment:W,type:K}),gt=XK(ut),at=z.root||d.Root||Lv,St=F.root||p.root||{},vt=z.input||d.Input||Av;return Ue=S({},Ue,(r=F.input)!=null?r:p.input),_.jsxs(u.Fragment,{children:[!g&&JK,_.jsxs(at,S({},St,!Ha(at)&&{ownerState:S({},ut,St.ownerState)},{ref:n,onClick:Ye},ae,{className:he(gt.root,St.className,c,N&&"MuiInputBase-readOnly"),children:[W,_.jsx(Mv.Provider,{value:null,children:_.jsx(vt,S({ownerState:ut,"aria-invalid":ke.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:ke.disabled,id:E,onAnimationStart:Be,name:k,placeholder:R,readOnly:N,required:ke.required,rows:V,value:re,onKeyDown:D,onKeyUp:j,type:K},Ue,!Ha(vt)&&{as:Ke,ownerState:S({},ut,Ue.ownerState)},{ref:Se,className:he(gt.input,Ue.className,N&&"MuiInputBase-readOnly"),onBlur:te,onChange:Le,onFocus:be}))}),b,H?H(S({},ke,{startAdornment:W})):null]}))]})}),Wu=ZK;function eq(e){return Ze("MuiInput",e)}const tq=S({},wo,Xe("MuiInput",["root","underline","input"])),yl=tq;function nq(e){return Ze("MuiOutlinedInput",e)}const rq=S({},wo,Xe("MuiOutlinedInput",["root","notchedOutline","input"])),Ui=rq;function oq(e){return Ze("MuiFilledInput",e)}const iq=S({},wo,Xe("MuiFilledInput",["root","underline","input"])),Co=iq,cO=Re(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function sq(e){return Ze("MuiAutocomplete",e)}const lq=Xe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Lt=lq;var v2,y2;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","slotProps","value"],cq=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:c,popupOpen:d,size:p}=e,h={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ue(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Me(h,sq,t)},uq=oe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${Lt.tag}`]:t.tag},{[`& .${Lt.tag}`]:t[`tagSize${ue(a)}`]},{[`& .${Lt.inputRoot}`]:t.inputRoot},{[`& .${Lt.input}`]:t.input},{[`& .${Lt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>S({[`&.${Lt.focused} .${Lt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Lt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Lt.tag}`]:S({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Lt.inputRoot}`]:{flexWrap:"wrap",[`.${Lt.hasPopupIcon}&, .${Lt.hasClearIcon}&`]:{paddingRight:26+4},[`.${Lt.hasPopupIcon}.${Lt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Lt.input}`]:{width:0,minWidth:30}},[`& .${yl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${yl.root}.${wo.sizeSmall}`]:{[`& .${yl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ui.root}`]:{padding:9,[`.${Lt.hasPopupIcon}&, .${Lt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Lt.hasPopupIcon}.${Lt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Lt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Lt.endAdornment}`]:{right:9}},[`& .${Ui.root}.${wo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Lt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Co.root}`]:{paddingTop:19,paddingLeft:8,[`.${Lt.hasPopupIcon}&, .${Lt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Lt.hasPopupIcon}.${Lt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Co.input}`]:{padding:"7px 4px"},[`& .${Lt.endAdornment}`]:{right:9}},[`& .${Co.root}.${wo.sizeSmall}`]:{paddingBottom:1,[`& .${Co.input}`]:{padding:"2.5px 4px"}},[`& .${wo.hiddenLabel}`]:{paddingTop:8},[`& .${Co.root}.${wo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Lt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Co.root}.${wo.hiddenLabel}.${wo.sizeSmall}`]:{[`& .${Lt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Lt.input}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),dq=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),fq=oe(Zr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),pq=oe(Zr,{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)"})),hq=oe(Ja,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Lt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>S({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),mq=oe(gi,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),gq=oe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),vq=oe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),yq=oe("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Lt.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"},[`&.${Lt.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"},[`&.${Lt.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})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Lt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Lt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),bq=oe(FK,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),wq=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Lt.option}`]:{paddingLeft:24}}),Cq=u.forwardRef(function(t,n){var r,o,i,s;const a=nt({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:d=!1,autoSelect:p=!1,blurOnSelect:h=!1,ChipProps:m,className:g,clearIcon:b=v2||(v2=_.jsx(lO,{fontSize:"small"})),clearOnBlur:v=!a.freeSolo,clearOnEscape:E=!1,clearText:w="Clear",closeText:C="Close",componentsProps:x={},defaultValue:P=a.multiple?[]:null,disableClearable:$=!1,disableCloseOnSelect:I=!1,disabled:k=!1,disabledItemsFocusable:M=!1,disableListWrap:O=!1,disablePortal:A=!1,filterSelectedOptions:L=!1,forcePopupIcon:D="auto",freeSolo:j=!1,fullWidth:R=!1,getLimitTagsText:N=je=>`+${je}`,getOptionLabel:H=je=>{var wt;return(wt=je.label)!=null?wt:je},groupBy:V,handleHomeEndKeys:F=!a.freeSolo,includeInputInList:z=!1,limitTags:W=-1,ListboxComponent:K="ul",ListboxProps:Y,loading:ae=!1,loadingText:re="Loading…",multiple:de=!1,noOptionsText:ie="No options",openOnFocus:se=!1,openText:Se="Open",PaperComponent:ye=gi,PopperComponent:Ie=Ja,popupIcon:ee=y2||(y2=_.jsx(cO,{})),readOnly:ke=!1,renderGroup:_e,renderInput:Ee,renderOption:pe,renderTags:be,selectOnFocus:te=!a.freeSolo,size:Le="medium",slotProps:Ye={}}=a,Ke=ne(a,aq),{getRootProps:Ue,getInputProps:Be,getInputLabelProps:ut,getPopupIndicatorProps:gt,getClearProps:at,getTagProps:St,getListboxProps:vt,getOptionProps:Ne,value:Fe,dirty:ze,expanded:et,id:Pe,popupOpen:Ae,focused:Ve,focusedTag:ot,anchorEl:ht,setAnchorEl:Qt,inputValue:xn,groupedOptions:Tn}=uG(S({},a,{componentName:"Autocomplete"})),Kn=!$&&!k&&ze&&!ke,rr=(!j||D===!0)&&D!==!1,{onMouseDown:or}=Be(),mn=S({},a,{disablePortal:A,expanded:et,focused:Ve,fullWidth:R,hasClearIcon:Kn,hasPopupIcon:rr,inputFocused:ot===-1,popupOpen:Ae,size:Le}),Xt=cq(mn);let Dn;if(de&&Fe.length>0){const je=wt=>S({className:Xt.tag,disabled:k},St(wt));be?Dn=be(Fe,je,mn):Dn=Fe.map((wt,zt)=>_.jsx(sx,S({label:H(wt),size:Le},je({index:zt}),m)))}if(W>-1&&Array.isArray(Dn)){const je=Dn.length-W;!Ve&&je>0&&(Dn=Dn.splice(0,W),Dn.push(_.jsx("span",{className:Xt.tag,children:N(je)},Dn.length)))}const Ni=_e||(je=>_.jsxs("li",{children:[_.jsx(bq,{className:Xt.groupLabel,ownerState:mn,component:"div",children:je.group}),_.jsx(wq,{className:Xt.groupUl,ownerState:mn,children:je.children})]},je.key)),gs=pe||((je,wt)=>_.jsx("li",S({},je,{children:H(wt)}))),le=(je,wt)=>{const zt=Ne({option:je,index:wt});return gs(S({},zt,{className:Xt.option}),je,{selected:zt["aria-selected"],index:wt,inputValue:xn})},ge=(r=Ye.clearIndicator)!=null?r:x.clearIndicator,De=(o=Ye.paper)!=null?o:x.paper,dt=(i=Ye.popper)!=null?i:x.popper,st=(s=Ye.popupIndicator)!=null?s:x.popupIndicator;return _.jsxs(u.Fragment,{children:[_.jsx(uq,S({ref:n,className:he(Xt.root,g),ownerState:mn},Ue(Ke),{children:Ee({id:Pe,disabled:k,fullWidth:!0,size:Le==="small"?"small":void 0,InputLabelProps:ut(),InputProps:S({ref:Qt,className:Xt.inputRoot,startAdornment:Dn,onClick:je=>{je.target===je.currentTarget&&or(je)}},(Kn||rr)&&{endAdornment:_.jsxs(dq,{className:Xt.endAdornment,ownerState:mn,children:[Kn?_.jsx(fq,S({},at(),{"aria-label":w,title:w,ownerState:mn},ge,{className:he(Xt.clearIndicator,ge==null?void 0:ge.className),children:b})):null,rr?_.jsx(pq,S({},gt(),{disabled:k,"aria-label":Ae?C:Se,title:Ae?C:Se,ownerState:mn},st,{className:he(Xt.popupIndicator,st==null?void 0:st.className),children:ee})):null]})}),inputProps:S({className:Xt.input,disabled:k,readOnly:ke},Be())})})),ht?_.jsx(hq,S({as:Ie,disablePortal:A,style:{width:ht?ht.clientWidth:null},ownerState:mn,role:"presentation",anchorEl:ht,open:Ae},dt,{className:he(Xt.popper,dt==null?void 0:dt.className),children:_.jsxs(mq,S({ownerState:mn,as:ye},De,{className:he(Xt.paper,De==null?void 0:De.className),children:[ae&&Tn.length===0?_.jsx(gq,{className:Xt.loading,ownerState:mn,children:re}):null,Tn.length===0&&!j&&!ae?_.jsx(vq,{className:Xt.noOptions,ownerState:mn,role:"presentation",onMouseDown:je=>{je.preventDefault()},children:ie}):null,Tn.length>0?_.jsx(yq,S({as:K,className:Xt.listbox,ownerState:mn},vt(),Y,{children:Tn.map((je,wt)=>V?Ni({key:je.key,group:je.group,children:je.options.map((zt,Sn)=>le(zt,je.index+Sn))}):le(je,wt))})):null]}))})):null]})}),ax=Cq,xq=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Sq={entering:{opacity:1},entered:{opacity:1}},Eq=u.forwardRef(function(t,n){const r=pr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:c,in:d,onEnter:p,onEntered:h,onEntering:m,onExit:g,onExited:b,onExiting:v,style:E,timeout:w=o,TransitionComponent:C=Tv}=t,x=ne(t,xq),P=u.useRef(null),$=Ht(P,a.ref,n),I=R=>N=>{if(R){const H=P.current;N===void 0?R(H):R(H,N)}},k=I(m),M=I((R,N)=>{ix(R);const H=jl({style:E,timeout:w,easing:c},{mode:"enter"});R.style.webkitTransition=r.transitions.create("opacity",H),R.style.transition=r.transitions.create("opacity",H),p&&p(R,N)}),O=I(h),A=I(v),L=I(R=>{const N=jl({style:E,timeout:w,easing:c},{mode:"exit"});R.style.webkitTransition=r.transitions.create("opacity",N),R.style.transition=r.transitions.create("opacity",N),g&&g(R)}),D=I(b),j=R=>{i&&i(P.current,R)};return _.jsx(C,S({appear:s,in:d,nodeRef:P,onEnter:M,onEntered:O,onEntering:k,onExit:L,onExited:D,onExiting:A,addEndListener:j,timeout:w},x,{children:(R,N)=>u.cloneElement(a,S({style:S({opacity:0,visibility:R==="exited"&&!d?"hidden":void 0},Sq[R],E,a.props.style),ref:$},N))}))}),uO=Eq;function Pq(e){return Ze("MuiBackdrop",e)}Xe("MuiBackdrop",["root","invisible"]);const kq=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Iq=e=>{const{classes:t,invisible:n}=e;return Me({root:["root",n&&"invisible"]},Pq,t)},$q=oe("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"})),Tq=u.forwardRef(function(t,n){var r,o,i;const s=nt({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:d="div",components:p={},componentsProps:h={},invisible:m=!1,open:g,slotProps:b={},slots:v={},TransitionComponent:E=uO,transitionDuration:w}=s,C=ne(s,kq),x=S({},s,{component:d,invisible:m}),P=Iq(x),$=(r=b.root)!=null?r:h.root;return _.jsx(E,S({in:g,timeout:w},C,{children:_.jsx($q,S({"aria-hidden":!0},$,{as:(o=(i=v.root)!=null?i:p.Root)!=null?o:d,className:he(P.root,c,$==null?void 0:$.className),ownerState:S({},x,$==null?void 0:$.ownerState),classes:P,ref:n,children:a}))}))}),dO=Tq;function _q(e){return Ze("MuiBadge",e)}const Mq=Xe("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"]),ol=Mq,Rq=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],c1=10,u1=4,Oq=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ue(n.vertical)}${ue(n.horizontal)}`,`anchorOrigin${ue(n.vertical)}${ue(n.horizontal)}${ue(o)}`,`overlap${ue(o)}`,t!=="default"&&`color${ue(t)}`]};return Me(a,_q,s)},Lq=oe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Aq=oe("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ue(n.anchorOrigin.vertical)}${ue(n.anchorOrigin.horizontal)}${ue(n.overlap)}`],n.color!=="default"&&t[`color${ue(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:c1*2,lineHeight:1,padding:"0 6px",height:c1*2,borderRadius:c1,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:u1,height:u1*2,minWidth:u1*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%",[`&.${ol.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%",[`&.${ol.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%",[`&.${ol.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%",[`&.${ol.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%",[`&.${ol.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%",[`&.${ol.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%",[`&.${ol.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%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),Fq=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=nt({props:t,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:h,component:m,components:g={},componentsProps:b={},children:v,overlap:E="rectangular",color:w="default",invisible:C=!1,max:x=99,badgeContent:P,slots:$,slotProps:I,showZero:k=!1,variant:M="standard"}=d,O=ne(d,Rq),{badgeContent:A,invisible:L,max:D,displayValue:j}=bU({max:x,invisible:C,badgeContent:P,showZero:k}),R=RC({anchorOrigin:p,color:w,overlap:E,variant:M,badgeContent:P}),N=L||A==null&&M!=="dot",{color:H=w,overlap:V=E,anchorOrigin:F=p,variant:z=M}=N?R:d,W=z!=="dot"?j:void 0,K=S({},d,{badgeContent:A,invisible:N,max:D,displayValue:W,showZero:k,anchorOrigin:F,color:H,overlap:V,variant:z}),Y=Oq(K),ae=(r=(o=$==null?void 0:$.root)!=null?o:g.Root)!=null?r:Lq,re=(i=(s=$==null?void 0:$.badge)!=null?s:g.Badge)!=null?i:Aq,de=(a=I==null?void 0:I.root)!=null?a:b.root,ie=(c=I==null?void 0:I.badge)!=null?c:b.badge,se=Hs({elementType:ae,externalSlotProps:de,externalForwardedProps:O,additionalProps:{ref:n,as:m},ownerState:K,className:he(de==null?void 0:de.className,Y.root,h)}),Se=Hs({elementType:re,externalSlotProps:ie,ownerState:K,className:he(Y.badge,ie==null?void 0:ie.className)});return _.jsxs(ae,S({},se,{children:[v,_.jsx(re,S({},Se,{children:W}))]}))}),fO=Fq,Nq=qC(),Dq=g7({themeId:Na,defaultTheme:Nq,defaultClassName:"MuiBox-root",generateClassName:fR.generate}),tt=Dq;function Bq(e){return Ze("MuiButton",e)}const zq=Xe("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"]),Dh=zq,Hq=u.createContext({}),jq=Hq,Vq=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Uq=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${ue(t)}`,`size${ue(o)}`,`${i}Size${ue(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ue(o)}`],endIcon:["endIcon",`iconSize${ue(o)}`]},c=Me(a,Bq,s);return S({},s,c)},pO=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}}),Wq=oe(cs,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color)}`],t[`size${ue(n.size)}`],t[`${n.variant}Size${ue(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return 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})`:ct(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})`:ct(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})`:ct(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Dh.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Dh.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ct(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.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Dh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Dh.disabled}`]:{boxShadow:"none"}}),Gq=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ue(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},pO(e))),Kq=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ue(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},pO(e))),qq=u.forwardRef(function(t,n){const r=u.useContext(jq),o=OC(r,t),i=nt({props:o,name:"MuiButton"}),{children:s,color:a="primary",component:c="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:b,fullWidth:v=!1,size:E="medium",startIcon:w,type:C,variant:x="text"}=i,P=ne(i,Vq),$=S({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:v,size:E,type:C,variant:x}),I=Uq($),k=w&&_.jsx(Gq,{className:I.startIcon,ownerState:$,children:w}),M=g&&_.jsx(Kq,{className:I.endIcon,ownerState:$,children:g});return _.jsxs(Wq,S({ownerState:$,className:he(r.className,I.root,d),component:c,disabled:p,focusRipple:!m,focusVisibleClassName:he(I.focusVisible,b),ref:n,type:C},P,{classes:I,children:[k,s,M]}))}),ur=qq;function Yq(e){return Ze("MuiCard",e)}Xe("MuiCard",["root"]);const Qq=["className","raised"],Xq=e=>{const{classes:t}=e;return Me({root:["root"]},Yq,t)},Jq=oe(gi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Zq=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=ne(r,Qq),a=S({},r,{raised:i}),c=Xq(a);return _.jsx(Jq,S({className:he(c.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),hO=Zq;function eY(e){return Ze("MuiCardContent",e)}Xe("MuiCardContent",["root"]);const tY=["className","component"],nY=e=>{const{classes:t}=e;return Me({root:["root"]},eY,t)},rY=oe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),oY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=ne(r,tY),a=S({},r,{component:i}),c=nY(a);return _.jsx(rY,S({as:i,className:he(c.root,o),ownerState:a,ref:n},s))}),mO=oY;function iY(e){return Ze("PrivateSwitchBase",e)}Xe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const sY=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],lY=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ue(o)}`],input:["input"]};return Me(i,iY,t)},aY=oe(cs)(({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})),cY=oe("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),uY=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:p=!1,icon:h,id:m,inputProps:g,inputRef:b,name:v,onBlur:E,onChange:w,onFocus:C,readOnly:x,required:P=!1,tabIndex:$,type:I,value:k}=t,M=ne(t,sY),[O,A]=Fs({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),L=Ks(),D=z=>{C&&C(z),L&&L.onFocus&&L.onFocus(z)},j=z=>{E&&E(z),L&&L.onBlur&&L.onBlur(z)},R=z=>{if(z.nativeEvent.defaultPrevented)return;const W=z.target.checked;A(W),w&&w(z,W)};let N=c;L&&typeof N=="undefined"&&(N=L.disabled);const H=I==="checkbox"||I==="radio",V=S({},t,{checked:O,disabled:N,disableFocusRipple:d,edge:p}),F=lY(V);return _.jsxs(aY,S({component:"span",className:he(F.root,s),centerRipple:!0,focusRipple:!d,disabled:N,tabIndex:null,role:void 0,onFocus:D,onBlur:j,ownerState:V,ref:n},M,{children:[_.jsx(cY,S({autoFocus:r,checked:o,defaultChecked:a,className:F.input,disabled:N,id:H?m:void 0,name:v,onChange:R,readOnly:x,ref:b,required:P,ownerState:V,tabIndex:$,type:I},I==="checkbox"&&k===void 0?{}:{value:k},g)),O?i:h]}))}),gO=uY,dY=Re(_.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"),fY=Re(_.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"),pY=Re(_.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 hY(e){return Ze("MuiCheckbox",e)}const mY=Xe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),d1=mY,gY=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],vY=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${ue(r)}`]},i=Me(o,hY,t);return S({},t,i)},yY=oe(gO,{shouldForwardProp:e=>No(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${ue(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})`:ct(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${d1.checked}, &.${d1.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${d1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),bY=_.jsx(fY,{}),wY=_.jsx(dY,{}),CY=_.jsx(pY,{}),xY=u.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=bY,color:a="primary",icon:c=wY,indeterminate:d=!1,indeterminateIcon:p=CY,inputProps:h,size:m="medium",className:g}=i,b=ne(i,gY),v=d?p:c,E=d?p:s,w=S({},i,{color:a,indeterminate:d,size:m}),C=vY(w);return _.jsx(yY,S({type:"checkbox",inputProps:S({"data-indeterminate":d},h),icon:u.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:m}),checkedIcon:u.cloneElement(E,{fontSize:(o=E.props.fontSize)!=null?o:m}),ownerState:w,ref:n,className:he(C.root,g)},b,{classes:C}))}),vO=xY;function SY(e){return Ze("MuiCircularProgress",e)}Xe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const EY=["className","color","disableShrink","size","style","thickness","value","variant"];let Fv=e=>e,b2,w2,C2,x2;const il=44,PY=fs(b2||(b2=Fv`
|
|
163
|
+
0% {
|
|
164
|
+
transform: rotate(0deg);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
100% {
|
|
168
|
+
transform: rotate(360deg);
|
|
169
|
+
}
|
|
170
|
+
`)),kY=fs(w2||(w2=Fv`
|
|
171
|
+
0% {
|
|
172
|
+
stroke-dasharray: 1px, 200px;
|
|
173
|
+
stroke-dashoffset: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
50% {
|
|
177
|
+
stroke-dasharray: 100px, 200px;
|
|
178
|
+
stroke-dashoffset: -15px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
100% {
|
|
182
|
+
stroke-dasharray: 100px, 200px;
|
|
183
|
+
stroke-dashoffset: -125px;
|
|
184
|
+
}
|
|
185
|
+
`)),IY=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ue(r)}`],svg:["svg"],circle:["circle",`circle${ue(n)}`,o&&"circleDisableShrink"]};return Me(i,SY,t)},$Y=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ue(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"&&Hl(C2||(C2=Fv`
|
|
186
|
+
animation: ${0} 1.4s linear infinite;
|
|
187
|
+
`),PY)),TY=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),_Y=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ue(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&&Hl(x2||(x2=Fv`
|
|
188
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
189
|
+
`),kY)),MY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:c,thickness:d=3.6,value:p=0,variant:h="indeterminate"}=r,m=ne(r,EY),g=S({},r,{color:i,disableShrink:s,size:a,thickness:d,value:p,variant:h}),b=IY(g),v={},E={},w={};if(h==="determinate"){const C=2*Math.PI*((il-d)/2);v.strokeDasharray=C.toFixed(3),w["aria-valuenow"]=Math.round(p),v.strokeDashoffset=`${((100-p)/100*C).toFixed(3)}px`,E.transform="rotate(-90deg)"}return _.jsx($Y,S({className:he(b.root,o),style:S({width:a,height:a},E,c),ownerState:g,ref:n,role:"progressbar"},w,m,{children:_.jsx(TY,{className:b.svg,ownerState:g,viewBox:`${il/2} ${il/2} ${il} ${il}`,children:_.jsx(_Y,{className:b.circle,style:v,ownerState:g,cx:il,cy:il,r:(il-d)/2,fill:"none",strokeWidth:d})})}))}),Va=MY,RY=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],OY=oe("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"})),LY=oe(dO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),AY=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=nt({name:"MuiModal",props:t}),{BackdropComponent:p=LY,BackdropProps:h,classes:m,className:g,closeAfterTransition:b=!1,children:v,component:E,components:w={},componentsProps:C={},disableAutoFocus:x=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:$=!1,disablePortal:I=!1,disableRestoreFocus:k=!1,disableScrollLock:M=!1,hideBackdrop:O=!1,keepMounted:A=!1,slotProps:L,slots:D,theme:j}=d,R=ne(d,RY),[N,H]=u.useState(!0),V={closeAfterTransition:b,disableAutoFocus:x,disableEnforceFocus:P,disableEscapeKeyDown:$,disablePortal:I,disableRestoreFocus:k,disableScrollLock:M,hideBackdrop:O,keepMounted:A},F=S({},d,V,{exited:N}),z=(r=(o=D==null?void 0:D.root)!=null?o:w.Root)!=null?r:OY,W=(i=(s=D==null?void 0:D.backdrop)!=null?s:w.Backdrop)!=null?i:p,K=(a=L==null?void 0:L.root)!=null?a:C.root,Y=(c=L==null?void 0:L.backdrop)!=null?c:C.backdrop;return _.jsx(rG,S({slots:{root:z,backdrop:W},slotProps:{root:()=>S({},Vb(K,F),!Ha(z)&&{as:E,theme:j},{className:he(g,K==null?void 0:K.className,m==null?void 0:m.root,!F.open&&F.exited&&(m==null?void 0:m.hidden))}),backdrop:()=>S({},h,Vb(Y,F),{className:he(Y==null?void 0:Y.className,m==null?void 0:m.backdrop)})},onTransitionEnter:()=>H(!1),onTransitionExited:()=>H(!0),ref:n},R,V,{children:v}))}),cx=AY;function FY(e){return Ze("MuiDialog",e)}const NY=Xe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),f1=NY,DY=u.createContext({}),yO=DY,BY=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],zY=oe(dO,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),HY=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${ue(n)}`],paper:["paper",`paperScroll${ue(n)}`,`paperWidth${ue(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Me(s,FY,t)},jY=oe(cx,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),VY=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ue(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"}})),UY=oe(gi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ue(n.scroll)}`],t[`paperWidth${ue(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}`,[`&.${f1.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}`,[`&.${f1.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,[`&.${f1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),WY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialog"}),o=pr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:d,children:p,className:h,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:E,onClose:w,open:C,PaperComponent:x=gi,PaperProps:P={},scroll:$="paper",TransitionComponent:I=uO,transitionDuration:k=i,TransitionProps:M}=r,O=ne(r,BY),A=S({},r,{disableEscapeKeyDown:m,fullScreen:g,fullWidth:b,maxWidth:v,scroll:$}),L=HY(A),D=u.useRef(),j=V=>{D.current=V.target===V.currentTarget},R=V=>{D.current&&(D.current=null,E&&E(V),w&&w(V,"backdropClick"))},N=on(a),H=u.useMemo(()=>({titleId:N}),[N]);return _.jsx(jY,S({className:he(L.root,h),closeAfterTransition:!0,components:{Backdrop:zY},componentsProps:{backdrop:S({transitionDuration:k,as:c},d)},disableEscapeKeyDown:m,onClose:w,open:C,ref:n,onClick:R,ownerState:A},O,{children:_.jsx(I,S({appear:!0,in:C,timeout:k,role:"presentation"},M,{children:_.jsx(VY,{className:he(L.container),onMouseDown:j,ownerState:A,children:_.jsx(UY,S({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":N},P,{className:he(L.paper,P.className),ownerState:A,children:_.jsx(yO.Provider,{value:H,children:p})}))})}))}))}),GY=WY;function KY(e){return Ze("MuiDialogContent",e)}Xe("MuiDialogContent",["root","dividers"]);function qY(e){return Ze("MuiDialogTitle",e)}const YY=Xe("MuiDialogTitle",["root"]),QY=YY,XY=["className","dividers"],JY=e=>{const{classes:t,dividers:n}=e;return Me({root:["root",n&&"dividers"]},KY,t)},ZY=oe("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}`}:{[`.${QY.root} + &`]:{paddingTop:0}})),eQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=ne(r,XY),a=S({},r,{dividers:i}),c=JY(a);return _.jsx(ZY,S({className:he(c.root,o),ownerState:a,ref:n},s))}),tQ=eQ,nQ=["className","id"],rQ=e=>{const{classes:t}=e;return Me({root:["root"]},qY,t)},oQ=oe(Tr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),iQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=ne(r,nQ),a=r,c=rQ(a),{titleId:d=i}=u.useContext(yO);return _.jsx(oQ,S({component:"h2",className:he(c.root,o),ownerState:a,ref:n,variant:"h6",id:i!=null?i:d},s))}),sQ=iQ;function lQ(e){return Ze("MuiDivider",e)}const aQ=Xe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),S2=aQ,cQ=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],uQ=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:c}=e;return Me({root:["root",t&&"absolute",c,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},lQ,r)},dQ=oe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ct(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({theme:e,ownerState:t})=>S({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),fQ=oe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),pQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:c=!1,light:d=!1,orientation:p="horizontal",role:h=a!=="hr"?"separator":void 0,textAlign:m="center",variant:g="fullWidth"}=r,b=ne(r,cQ),v=S({},r,{absolute:o,component:a,flexItem:c,light:d,orientation:p,role:h,textAlign:m,variant:g}),E=uQ(v);return _.jsx(dQ,S({as:a,className:he(E.root,s),role:h,ref:n,ownerState:v},b,{children:i?_.jsx(fQ,{className:E.wrapper,ownerState:v,children:i}):null}))}),hQ=pQ,mQ=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gQ(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=ui(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const d=i.getComputedStyle(t);s=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("transform")}let a=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const d=s.split("(")[1].split(")")[0].split(",");a=parseInt(d[4],10),c=parseInt(d[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 vQ(e){return typeof e=="function"?e():e}function Bh(e,t,n){const r=vQ(n),o=gQ(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const yQ=u.forwardRef(function(t,n){const r=pr(),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:d,direction:p="down",easing:h=o,in:m,onEnter:g,onEntered:b,onEntering:v,onExit:E,onExited:w,onExiting:C,style:x,timeout:P=i,TransitionComponent:$=Tv}=t,I=ne(t,mQ),k=u.useRef(null),M=Ht(c.ref,k,n),O=F=>z=>{F&&(z===void 0?F(k.current):F(k.current,z))},A=O((F,z)=>{Bh(p,F,d),ix(F),g&&g(F,z)}),L=O((F,z)=>{const W=jl({timeout:P,style:x,easing:h},{mode:"enter"});F.style.webkitTransition=r.transitions.create("-webkit-transform",S({},W)),F.style.transition=r.transitions.create("transform",S({},W)),F.style.webkitTransform="none",F.style.transform="none",v&&v(F,z)}),D=O(b),j=O(C),R=O(F=>{const z=jl({timeout:P,style:x,easing:h},{mode:"exit"});F.style.webkitTransition=r.transitions.create("-webkit-transform",z),F.style.transition=r.transitions.create("transform",z),Bh(p,F,d),E&&E(F)}),N=O(F=>{F.style.webkitTransition="",F.style.transition="",w&&w(F)}),H=F=>{s&&s(k.current,F)},V=u.useCallback(()=>{k.current&&Bh(p,k.current,d)},[p,d]);return u.useEffect(()=>{if(m||p==="down"||p==="right")return;const F=zl(()=>{k.current&&Bh(p,k.current,d)}),z=ui(k.current);return z.addEventListener("resize",F),()=>{F.clear(),z.removeEventListener("resize",F)}},[p,m,d]),u.useEffect(()=>{m||V()},[m,V]),_.jsx($,S({nodeRef:k,onEnter:A,onEntered:D,onEntering:L,onExit:R,onExited:N,onExiting:j,addEndListener:H,appear:a,in:m,timeout:P},I,{children:(F,z)=>u.cloneElement(c,S({ref:M,style:S({visibility:F==="exited"&&!m?"hidden":void 0},x,c.props.style)},z))}))}),bQ=yQ;function wQ(e){return Ze("MuiDrawer",e)}Xe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const CQ=["BackdropProps"],xQ=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],bO=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},SQ=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ue(n)}`,r!=="temporary"&&`paperAnchorDocked${ue(n)}`]};return Me(o,wQ,t)},EQ=oe(cx,{name:"MuiDrawer",slot:"Root",overridesResolver:bO})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),E2=oe("div",{shouldForwardProp:No,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:bO})({flex:"0 0 auto"}),PQ=oe(gi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ue(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ue(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}`})),wO={left:"right",right:"left",top:"down",bottom:"up"};function kQ(e){return["left","right"].indexOf(e)!==-1}function IQ(e,t){return e.direction==="rtl"&&kQ(t)?wO[t]:t}const $Q=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDrawer"}),o=pr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:c,className:d,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m}={},onClose:g,open:b=!1,PaperProps:v={},SlideProps:E,TransitionComponent:w=bQ,transitionDuration:C=i,variant:x="temporary"}=r,P=ne(r.ModalProps,CQ),$=ne(r,xQ),I=u.useRef(!1);u.useEffect(()=>{I.current=!0},[]);const k=IQ(o,s),O=S({},r,{anchor:s,elevation:p,open:b,variant:x},$),A=SQ(O),L=_.jsx(PQ,S({elevation:x==="temporary"?p:0,square:!0},v,{className:he(A.paper,v.className),ownerState:O,children:c}));if(x==="permanent")return _.jsx(E2,S({className:he(A.root,A.docked,d),ownerState:O,ref:n},$,{children:L}));const D=_.jsx(w,S({in:b,direction:wO[k],timeout:C,appear:I.current},E,{children:L}));return x==="persistent"?_.jsx(E2,S({className:he(A.root,A.docked,d),ownerState:O,ref:n},$,{children:D})):_.jsx(EQ,S({BackdropProps:S({},a,m,{transitionDuration:C}),className:he(A.root,A.modal,d),open:b,ownerState:O,onClose:g,hideBackdrop:h,ref:n},$,P,{children:D}))}),TQ=$Q,_Q=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],MQ=e=>{const{classes:t,disableUnderline:n}=e,o=Me({root:["root",!n&&"underline"],input:["input"]},oq,t);return S({},t,o)},RQ=oe(Lv,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rv(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}},[`&.${Co.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Co.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"},[`&.${Co.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Co.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Co.disabled}, .${Co.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Co.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=oe(Av,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ov})(({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){var r,o,i,s;const a=nt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:m=!1,slotProps:g,slots:b={},type:v="text"}=a,E=ne(a,_Q),w=S({},a,{fullWidth:p,inputComponent:h,multiline:m,type:v}),C=MQ(a),x={root:{ownerState:w},input:{ownerState:w}},P=(g!=null?g:d)?ii(g!=null?g:d,x):x,$=(r=(o=b.root)!=null?o:c.Root)!=null?r:RQ,I=(i=(s=b.input)!=null?s:c.Input)!=null?i:OQ;return _.jsx(Wu,S({slots:{root:$,input:I},componentsProps:P,fullWidth:p,inputComponent:h,multiline:m,ref:n,type:v},E,{classes:C}))});CO.muiName="Input";const xO=CO;function LQ(e){return Ze("MuiFormControl",e)}Xe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const AQ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],FQ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ue(n)}`,r&&"fullWidth"]};return Me(o,LQ,t)},NQ=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${ue(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%"})),DQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:c=!1,error:d=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:g="none",required:b=!1,size:v="medium",variant:E="outlined"}=r,w=ne(r,AQ),C=S({},r,{color:s,component:a,disabled:c,error:d,fullWidth:h,hiddenLabel:m,margin:g,required:b,size:v,variant:E}),x=FQ(C),[P,$]=u.useState(()=>{let j=!1;return o&&u.Children.forEach(o,R=>{if(!um(R,["Input","Select"]))return;const N=um(R,["Select"])?R.props.input:R;N&&KK(N.props)&&(j=!0)}),j}),[I,k]=u.useState(()=>{let j=!1;return o&&u.Children.forEach(o,R=>{um(R,["Input","Select"])&&lx(R.props,!0)&&(j=!0)}),j}),[M,O]=u.useState(!1);c&&M&&O(!1);const A=p!==void 0&&!c?p:M;let L;const D=u.useMemo(()=>({adornedStart:P,setAdornedStart:$,color:s,disabled:c,error:d,filled:I,focused:A,fullWidth:h,hiddenLabel:m,size:v,onBlur:()=>{O(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{O(!0)},registerEffect:L,required:b,variant:E}),[P,s,c,d,I,A,h,m,L,b,v,E]);return _.jsx(Mv.Provider,{value:D,children:_.jsx(NQ,S({as:a,ownerState:C,className:he(x.root,i),ref:n},w,{children:o}))})}),SO=DQ;function BQ(e){return Ze("MuiFormControlLabel",e)}const zQ=Xe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Qd=zQ,HQ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],jQ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${ue(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Me(s,BQ,t)},VQ=oe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qd.label}`]:t.label},t.root,t[`labelPlacement${ue(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Qd.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},{[`& .${Qd.label}`]:{[`&.${Qd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),UQ=oe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Qd.error}`]:{color:(e.vars||e).palette.error.main}})),WQ=u.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:c,disabled:d,disableTypography:p,label:h,labelPlacement:m="end",required:g,slotProps:b={}}=i,v=ne(i,HQ),E=Ks(),w=(r=d!=null?d:c.props.disabled)!=null?r:E==null?void 0:E.disabled,C=g!=null?g:c.props.required,x={disabled:w,required:C};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof c.props[O]=="undefined"&&typeof i[O]!="undefined"&&(x[O]=i[O])});const P=Za({props:i,muiFormControl:E,states:["error"]}),$=S({},i,{disabled:w,labelPlacement:m,required:C,error:P.error}),I=jQ($),k=(o=b.typography)!=null?o:a.typography;let M=h;return M!=null&&M.type!==Tr&&!p&&(M=_.jsx(Tr,S({component:"span"},k,{className:he(I.label,k==null?void 0:k.className),children:M}))),_.jsxs(VQ,S({className:he(I.root,s),ownerState:$,ref:n},v,{children:[u.cloneElement(c,x),M,C&&_.jsxs(UQ,{ownerState:$,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}))}),EO=WQ;function GQ(e){return Ze("MuiFormHelperText",e)}const KQ=Xe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),P2=KQ;var k2;const qQ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],YQ=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:c}=e,d={root:["root",o&&"disabled",i&&"error",r&&`size${ue(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return Me(d,GQ,t)},QQ=oe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ue(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,[`&.${P2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${P2.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),XQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=ne(r,qQ),c=Ks(),d=Za({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=S({},r,{component:s,contained:d.variant==="filled"||d.variant==="outlined",variant:d.variant,size:d.size,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=YQ(p);return _.jsx(QQ,S({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:o===" "?k2||(k2=_.jsx("span",{className:"notranslate",children:""})):o}))}),Nv=XQ;function JQ(e){return Ze("MuiFormLabel",e)}const ZQ=Xe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),mf=ZQ,eX=["children","className","color","component","disabled","error","filled","focused","required"],tX=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,c={root:["root",`color${ue(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Me(c,JQ,t)},nX=oe("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",[`&.${mf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mf.error}`]:{color:(e.vars||e).palette.error.main}})),rX=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${mf.error}`]:{color:(e.vars||e).palette.error.main}})),oX=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=ne(r,eX),c=Ks(),d=Za({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=S({},r,{color:d.color||"primary",component:s,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=tX(p);return _.jsxs(nX,S({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:[o,d.required&&_.jsxs(rX,{ownerState:p,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),PO=oX,iX=u.createContext(),I2=iX;function sX(e){return Ze("MuiGrid",e)}const lX=[0,1,2,3,4,5,6,7,8,9,10],aX=["column-reverse","column","row-reverse","row"],cX=["nowrap","wrap-reverse","wrap"],Ld=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Vf=Xe("MuiGrid",["root","container","item","zeroMinWidth",...lX.map(e=>`spacing-xs-${e}`),...aX.map(e=>`direction-xs-${e}`),...cX.map(e=>`wrap-xs-${e}`),...Ld.map(e=>`grid-xs-${e}`),...Ld.map(e=>`grid-sm-${e}`),...Ld.map(e=>`grid-md-${e}`),...Ld.map(e=>`grid-lg-${e}`),...Ld.map(e=>`grid-xl-${e}`)]),uX=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function au(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function dX({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=vv({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 d={};if(t.container&&t.item&&t.columnSpacing!==0){const p=e.spacing(t.columnSpacing);if(p!=="0px"){const h=`calc(${c} + ${au(p)})`;d={flexBasis:h,maxWidth:h}}}i=S({flexBasis:c,flexGrow:0,maxWidth:c},d)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function fX({theme:e,ownerState:t}){const n=vv({values:t.direction,breakpoints:e.breakpoints.values});return di({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Vf.item}`]={maxWidth:"none"}),o})}function kO({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 pX({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=vv({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=kO({breakpoints:e.breakpoints.values,values:i})),o=di({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{marginTop:`-${au(p)}`,[`& > .${Vf.item}`]:{paddingTop:au(p)}}:(d=s)!=null&&d.includes(c)?{}:{marginTop:0,[`& > .${Vf.item}`]:{paddingTop:0}}})}return o}function hX({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=vv({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=kO({breakpoints:e.breakpoints.values,values:i})),o=di({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{width:`calc(100% + ${au(p)})`,marginLeft:`-${au(p)}`,[`& > .${Vf.item}`]:{paddingLeft:au(p)}}:(d=s)!=null&&d.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Vf.item}`]:{paddingLeft:0}}})}return o}function mX(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 gX=oe("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:d}=n;let p=[];r&&(p=mX(s,d,t));const h=[];return d.forEach(m=>{const g=n[m];g&&h.push(t[`grid-${m}-${String(g)}`])}),[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}),fX,pX,hX,dX);function vX(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 yX=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:c}=e;let d=[];n&&(d=vX(i,c));const p=[];c.forEach(m=>{const g=e[m];g&&p.push(`grid-${m}-${String(g)}`)});const h={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...d,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...p]};return Me(h,sX,t)},bX=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiGrid"}),{breakpoints:o}=pr(),i=GC(r),{className:s,columns:a,columnSpacing:c,component:d="div",container:p=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:b=0,wrap:v="wrap",zeroMinWidth:E=!1}=i,w=ne(i,uX),C=g||b,x=c||b,P=u.useContext(I2),$=p?a||12:P,I={},k=S({},w);o.keys.forEach(A=>{w[A]!=null&&(I[A]=w[A],delete k[A])});const M=S({},i,{columns:$,container:p,direction:h,item:m,rowSpacing:C,columnSpacing:x,wrap:v,zeroMinWidth:E,spacing:b},I,{breakpoints:o.keys}),O=yX(M);return _.jsx(I2.Provider,{value:$,children:_.jsx(gX,S({ownerState:M,className:he(O.root,s),as:d,ref:n},k))})}),qn=bX,wX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xb(e){return`scale(${e}, ${ks(e,2)})`}const CX={entering:{opacity:1,transform:Xb(1)},entered:{opacity:1,transform:"none"}},p1=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),IO=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:g,style:b,timeout:v="auto",TransitionComponent:E=Tv}=t,w=ne(t,wX),C=u.useRef(),x=u.useRef(),P=pr(),$=u.useRef(null),I=Ht($,i.ref,n),k=N=>H=>{if(N){const V=$.current;H===void 0?N(V):N(V,H)}},M=k(p),O=k((N,H)=>{ix(N);const{duration:V,delay:F,easing:z}=jl({style:b,timeout:v,easing:s},{mode:"enter"});let W;v==="auto"?(W=P.transitions.getAutoHeightDuration(N.clientHeight),x.current=W):W=V,N.style.transition=[P.transitions.create("opacity",{duration:W,delay:F}),P.transitions.create("transform",{duration:p1?W:W*.666,delay:F,easing:z})].join(","),c&&c(N,H)}),A=k(d),L=k(g),D=k(N=>{const{duration:H,delay:V,easing:F}=jl({style:b,timeout:v,easing:s},{mode:"exit"});let z;v==="auto"?(z=P.transitions.getAutoHeightDuration(N.clientHeight),x.current=z):z=H,N.style.transition=[P.transitions.create("opacity",{duration:z,delay:V}),P.transitions.create("transform",{duration:p1?z:z*.666,delay:p1?V:V||z*.333,easing:F})].join(","),N.style.opacity=0,N.style.transform=Xb(.75),h&&h(N)}),j=k(m),R=N=>{v==="auto"&&(C.current=setTimeout(N,x.current||0)),r&&r($.current,N)};return u.useEffect(()=>()=>{clearTimeout(C.current)},[]),_.jsx(E,S({appear:o,in:a,nodeRef:$,onEnter:O,onEntered:A,onEntering:M,onExit:D,onExited:j,onExiting:L,addEndListener:R,timeout:v==="auto"?null:v},w,{children:(N,H)=>u.cloneElement(i,S({style:S({opacity:0,transform:Xb(.75),visibility:N==="exited"&&!a?"hidden":void 0},CX[N],b,i.props.style),ref:I},H))}))});IO.muiSupportAuto=!0;const og=IO;function xX(e,t,n,r,o){const[i,s]=u.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return sn(()=>{let a=!0;if(!n)return;const c=n(e),d=()=>{a&&s(c.matches)};return d(),c.addListener(d),()=>{a=!1,c.removeListener(d)}},[e,n]),i}const $O=Ma["useSyncExternalStore"];function SX(e,t,n,r,o){const i=u.useCallback(()=>t,[t]),s=u.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return i},[i,e,r,o,n]),[a,c]=u.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const p=n(e);return[()=>p.matches,h=>(p.addListener(h),()=>{p.removeListener(h)})]},[i,n,e]);return $O(c,a,s)}function TO(e,t={}){const n=Pv(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=zR({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),($O!==void 0?SX:xX)(c,o,i,s,a)}const EX=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],PX=e=>{const{classes:t,disableUnderline:n}=e,o=Me({root:["root",!n&&"underline"],input:["input"]},eq,t);return S({},t,o)},kX=oe(Lv,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rv(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"},[`&.${yl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yl.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&: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(.${yl.disabled}, .${yl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${yl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),IX=oe(Av,{name:"MuiInput",slot:"Input",overridesResolver:Ov})({}),_O=u.forwardRef(function(t,n){var r,o,i,s;const a=nt({props:t,name:"MuiInput"}),{disableUnderline:c,components:d={},componentsProps:p,fullWidth:h=!1,inputComponent:m="input",multiline:g=!1,slotProps:b,slots:v={},type:E="text"}=a,w=ne(a,EX),C=PX(a),P={root:{ownerState:{disableUnderline:c}}},$=(b!=null?b:p)?ii(b!=null?b:p,P):P,I=(r=(o=v.root)!=null?o:d.Root)!=null?r:kX,k=(i=(s=v.input)!=null?s:d.Input)!=null?i:IX;return _.jsx(Wu,S({slots:{root:I,input:k},slotProps:$,fullWidth:h,inputComponent:m,multiline:g,ref:n,type:E},w,{classes:C}))});_O.muiName="Input";const MO=_O;function $X(e){return Ze("MuiInputAdornment",e)}const TX=Xe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),$2=TX;var T2;const _X=["children","className","component","disablePointerEvents","disableTypography","position","variant"],MX=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},RX=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ue(o)}`,s,r&&"hiddenLabel",i&&`size${ue(i)}`]};return Me(a,$X,t)},OX=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:MX})(({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"&&{[`&.${$2.positionStart}&:not(.${$2.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),LX=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:d,variant:p}=r,h=ne(r,_X),m=Ks()||{};let g=p;p&&m.variant,m&&!g&&(g=m.variant);const b=S({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:d,variant:g}),v=RX(b);return _.jsx(Mv.Provider,{value:null,children:_.jsx(OX,S({as:s,ownerState:b,className:he(v.root,i),ref:n},h,{children:typeof o=="string"&&!c?_.jsx(Tr,{color:"text.secondary",children:o}):_.jsxs(u.Fragment,{children:[d==="start"?T2||(T2=_.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),Uf=LX;function AX(e){return Ze("MuiInputLabel",e)}Xe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const FX=["disableAnimation","margin","shrink","variant","className"],NX=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,d=Me({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[a&&"asterisk"]},AX,t);return S({},t,d)},DX=oe(PO,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mf.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% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),BX=u.forwardRef(function(t,n){const r=nt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=ne(r,FX),c=Ks();let d=i;typeof d=="undefined"&&c&&(d=c.filled||c.focused||c.adornedStart);const p=Za({props:r,muiFormControl:c,states:["size","variant","required"]}),h=S({},r,{disableAnimation:o,formControl:c,shrink:d,size:p.size,variant:p.variant,required:p.required}),m=NX(h);return _.jsx(DX,S({"data-shrink":d,ownerState:h,ref:n,className:he(m.root,s)},a,{classes:m}))}),RO=BX;function zX(e){return Ze("MuiLinearProgress",e)}Xe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const HX=["className","color","value","valueBuffer","variant"];let Gu=e=>e,_2,M2,R2,O2,L2,A2;const Jb=4,jX=fs(_2||(_2=Gu`
|
|
190
|
+
0% {
|
|
191
|
+
left: -35%;
|
|
192
|
+
right: 100%;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
60% {
|
|
196
|
+
left: 100%;
|
|
197
|
+
right: -90%;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
100% {
|
|
201
|
+
left: 100%;
|
|
202
|
+
right: -90%;
|
|
203
|
+
}
|
|
204
|
+
`)),VX=fs(M2||(M2=Gu`
|
|
205
|
+
0% {
|
|
206
|
+
left: -200%;
|
|
207
|
+
right: 100%;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
60% {
|
|
211
|
+
left: 107%;
|
|
212
|
+
right: -8%;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
100% {
|
|
216
|
+
left: 107%;
|
|
217
|
+
right: -8%;
|
|
218
|
+
}
|
|
219
|
+
`)),UX=fs(R2||(R2=Gu`
|
|
220
|
+
0% {
|
|
221
|
+
opacity: 1;
|
|
222
|
+
background-position: 0 -23px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
60% {
|
|
226
|
+
opacity: 0;
|
|
227
|
+
background-position: 0 -23px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
100% {
|
|
231
|
+
opacity: 1;
|
|
232
|
+
background-position: -200px -23px;
|
|
233
|
+
}
|
|
234
|
+
`)),WX=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ue(r)}`,n],dashed:["dashed",`dashedColor${ue(r)}`],bar1:["bar",`barColor${ue(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${ue(r)}`,n==="buffer"&&`color${ue(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Me(o,zX,t)},ux=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?za(e.palette[t].main,.62):Ba(e.palette[t].main,.5),GX=oe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ue(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:ux(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)"})),KX=oe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ue(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=ux(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"})},Hl(O2||(O2=Gu`
|
|
235
|
+
animation: ${0} 3s infinite linear;
|
|
236
|
+
`),UX)),qX=oe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ue(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 .${Jb}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Jb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Hl(L2||(L2=Gu`
|
|
237
|
+
width: auto;
|
|
238
|
+
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
239
|
+
`),jX)),YX=oe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ue(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:ux(t,e.color),transition:`transform .${Jb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Hl(A2||(A2=Gu`
|
|
240
|
+
width: auto;
|
|
241
|
+
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
242
|
+
`),VX)),QX=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,d=ne(r,HX),p=S({},r,{color:i,variant:c}),h=WX(p),m=pr(),g={},b={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let v=s-100;m.direction==="rtl"&&(v=-v),b.bar1.transform=`translateX(${v}%)`}if(c==="buffer"&&a!==void 0){let v=(a||0)-100;m.direction==="rtl"&&(v=-v),b.bar2.transform=`translateX(${v}%)`}return _.jsxs(GX,S({className:he(h.root,o),ownerState:p,role:"progressbar"},g,{ref:n},d,{children:[c==="buffer"?_.jsx(KX,{className:h.dashed,ownerState:p}):null,_.jsx(qX,{className:h.bar1,ownerState:p,style:b.bar1}),c==="determinate"?null:_.jsx(YX,{className:h.bar2,ownerState:p,style:b.bar2})]}))}),XX=QX;function JX(e){return Ze("MuiLink",e)}const ZX=Xe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),eJ=ZX,OO={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tJ=e=>OO[e]||e,nJ=({theme:e,ownerState:t})=>{const n=tJ(t.color),r=xu(e,`palette.${n}`,!1)||t.color,o=xu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ct(r,.4)},rJ=nJ,oJ=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],iJ=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ue(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Me(i,JX,t)},sJ=oe(Tr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ue(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:rJ({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"}})),lJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:c,TypographyClasses:d,underline:p="always",variant:h="inherit",sx:m}=r,g=ne(r,oJ),{isFocusVisibleRef:b,onBlur:v,onFocus:E,ref:w}=MC(),[C,x]=u.useState(!1),P=Ht(n,w),$=O=>{v(O),b.current===!1&&x(!1),a&&a(O)},I=O=>{E(O),b.current===!0&&x(!0),c&&c(O)},k=S({},r,{color:i,component:s,focusVisible:C,underline:p,variant:h}),M=iJ(k);return _.jsx(sJ,S({color:i,className:he(M.root,o),classes:d,component:s,onBlur:$,onFocus:I,ref:P,ownerState:k,variant:h,sx:[...Object.keys(OO).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},g))}),ts=lJ,aJ=u.createContext({}),Ri=aJ;function cJ(e){return Ze("MuiList",e)}Xe("MuiList",["root","padding","dense","subheader"]);const uJ=["children","className","component","dense","disablePadding","subheader"],dJ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},cJ,t)},fJ=oe("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})),pJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:d}=r,p=ne(r,uJ),h=u.useMemo(()=>({dense:a}),[a]),m=S({},r,{component:s,dense:a,disablePadding:c}),g=dJ(m);return _.jsx(Ri.Provider,{value:h,children:_.jsxs(fJ,S({as:s,className:he(g.root,i),ref:n,ownerState:m},p,{children:[d,o]}))})}),Dv=pJ;function hJ(e){return Ze("MuiListItem",e)}const mJ=Xe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Oc=mJ;function gJ(e){return Ze("MuiListItemButton",e)}const vJ=Xe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Lc=vJ,yJ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],bJ=(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]},wJ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,d=Me({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},gJ,n);return S({},n,d)},CJ=oe(cs,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:bJ})(({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"}},[`&.${Lc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Lc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Lc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ct(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})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Lc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Lc.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})),xJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:c=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1,className:g}=r,b=ne(r,yJ),v=u.useContext(Ri),E=u.useMemo(()=>({dense:c||v.dense||!1,alignItems:o,disableGutters:d}),[o,v.dense,c,d]),w=u.useRef(null);sn(()=>{i&&w.current&&w.current.focus()},[i]);const C=S({},r,{alignItems:o,dense:E.dense,disableGutters:d,divider:p,selected:m}),x=wJ(C),P=Ht(w,n);return _.jsx(Ri.Provider,{value:E,children:_.jsx(CJ,S({ref:P,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:he(x.focusVisible,h),ownerState:C,className:he(x.root,g)},b,{classes:x,children:a}))})}),SJ=xJ;function EJ(e){return Ze("MuiListItemSecondaryAction",e)}Xe("MuiListItemSecondaryAction",["root","disableGutters"]);const PJ=["className"],kJ=e=>{const{disableGutters:t,classes:n}=e;return Me({root:["root",t&&"disableGutters"]},EJ,n)},IJ=oe("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})),LO=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=ne(r,PJ),s=u.useContext(Ri),a=S({},r,{disableGutters:s.disableGutters}),c=kJ(a);return _.jsx(IJ,S({className:he(c.root,o),ownerState:a,ref:n},i))});LO.muiName="ListItemSecondaryAction";const $J=LO,TJ=["className"],_J=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],MJ=(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]},RJ=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:d,selected:p}=e;return Me({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",p&&"selected"],container:["container"]},hJ,r)},OJ=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:MJ})(({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&&{[`& > .${Lc.root}`]:{paddingRight:48}},{[`&.${Oc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Oc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Oc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Oc.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"}},[`&.${Oc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ct(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})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),LJ=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),AJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:c,component:d,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:g}={},dense:b=!1,disabled:v=!1,disableGutters:E=!1,disablePadding:w=!1,divider:C=!1,focusVisibleClassName:x,secondaryAction:P,selected:$=!1,slotProps:I={},slots:k={}}=r,M=ne(r.ContainerProps,TJ),O=ne(r,_J),A=u.useContext(Ri),L=u.useMemo(()=>({dense:b||A.dense||!1,alignItems:o,disableGutters:E}),[o,A.dense,b,E]),D=u.useRef(null);sn(()=>{i&&D.current&&D.current.focus()},[i]);const j=u.Children.toArray(a),R=j.length&&um(j[j.length-1],["ListItemSecondaryAction"]),N=S({},r,{alignItems:o,autoFocus:i,button:s,dense:L.dense,disabled:v,disableGutters:E,disablePadding:w,divider:C,hasSecondaryAction:R,selected:$}),H=RJ(N),V=Ht(D,n),F=k.root||p.Root||OJ,z=I.root||h.root||{},W=S({className:he(H.root,z.className,c),disabled:v},O);let K=d||"li";return s&&(W.component=d||"div",W.focusVisibleClassName=he(Oc.focusVisible,x),K=cs),R?(K=!W.component&&!d?"div":K,m==="li"&&(K==="li"?K="div":W.component==="li"&&(W.component="div")),_.jsx(Ri.Provider,{value:L,children:_.jsxs(LJ,S({as:m,className:he(H.container,g),ref:V,ownerState:N},M,{children:[_.jsx(F,S({},z,!Ha(F)&&{as:K,ownerState:S({},N,z.ownerState)},W,{children:j})),j.pop()]}))})):_.jsx(Ri.Provider,{value:L,children:_.jsxs(F,S({},z,{as:K,ref:V},!Ha(F)&&{ownerState:S({},N,z.ownerState)},W,{children:[j,P&&_.jsx($J,{children:P})]}))})}),AO=AJ;function FJ(e){return Ze("MuiListItemIcon",e)}const NJ=Xe("MuiListItemIcon",["root","alignItemsFlexStart"]),F2=NJ,DJ=["className"],BJ=e=>{const{alignItems:t,classes:n}=e;return Me({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},FJ,n)},zJ=oe("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})),HJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=ne(r,DJ),s=u.useContext(Ri),a=S({},r,{alignItems:s.alignItems}),c=BJ(a);return _.jsx(zJ,S({className:he(c.root,o),ownerState:a,ref:n},i))}),Ol=HJ;function jJ(e){return Ze("MuiListItemText",e)}const VJ=Xe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ig=VJ,UJ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],WJ=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Me({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},jJ,t)},GJ=oe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ig.primary}`]:t.primary},{[`& .${ig.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})),KJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h}=r,m=ne(r,UJ),{dense:g}=u.useContext(Ri);let b=c!=null?c:o,v=p;const E=S({},r,{disableTypography:s,inset:a,primary:!!b,secondary:!!v,dense:g}),w=WJ(E);return b!=null&&b.type!==Tr&&!s&&(b=_.jsx(Tr,S({variant:g?"body2":"body1",className:w.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:b}))),v!=null&&v.type!==Tr&&!s&&(v=_.jsx(Tr,S({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},h,{children:v}))),_.jsxs(GJ,S({className:he(w.root,i),ownerState:E,ref:n},m,{children:[b,v]}))}),ns=KJ,qJ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function h1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function N2(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function FO(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 Ad(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")||!FO(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const YJ=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu"}=t,m=ne(t,qJ),g=u.useRef(null),b=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});sn(()=>{o&&g.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,P)=>{const $=!g.current.style.width;if(x.clientHeight<g.current.clientHeight&&$){const I=`${uR(Cn(x))}px`;g.current.style[P.direction==="rtl"?"paddingLeft":"paddingRight"]=I,g.current.style.width=`calc(100% + ${I})`}return g.current}}),[]);const v=x=>{const P=g.current,$=x.key,I=Cn(P).activeElement;if($==="ArrowDown")x.preventDefault(),Ad(P,I,d,c,h1);else if($==="ArrowUp")x.preventDefault(),Ad(P,I,d,c,N2);else if($==="Home")x.preventDefault(),Ad(P,null,d,c,h1);else if($==="End")x.preventDefault(),Ad(P,null,d,c,N2);else if($.length===1){const k=b.current,M=$.toLowerCase(),O=performance.now();k.keys.length>0&&(O-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&M!==k.keys[0]&&(k.repeating=!1)),k.lastTime=O,k.keys.push(M);const A=I&&!k.repeating&&FO(I,k);k.previousKeyMatched&&(A||Ad(P,I,!1,c,h1,k))?x.preventDefault():k.previousKeyMatched=!1}p&&p(x)},E=Ht(g,n);let w=-1;u.Children.forEach(s,(x,P)=>{u.isValidElement(x)&&(x.props.disabled||(h==="selectedMenu"&&x.props.selected||w===-1)&&(w=P),w===P&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1)))});const C=u.Children.map(s,(x,P)=>{if(P===w){const $={};return i&&($.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&($.tabIndex=0),u.cloneElement(x,$)}return x});return _.jsx(Dv,S({role:"menu",ref:E,className:a,onKeyDown:v,tabIndex:o?0:-1},m,{children:C}))}),Bv=YJ;function QJ(e){return Ze("MuiPopover",e)}Xe("MuiPopover",["root","paper"]);const XJ=["onEntering"],JJ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function D2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function B2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function z2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function m1(e){return typeof e=="function"?e():e}const ZJ=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},QJ,t)},eZ=oe(cx,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tZ=oe(gi,{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}),nZ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:d,className:p,container:h,elevation:m=8,marginThreshold:g=16,open:b,PaperProps:v={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:w=og,transitionDuration:C="auto",TransitionProps:{onEntering:x}={}}=r,P=ne(r.TransitionProps,XJ),$=ne(r,JJ),I=u.useRef(),k=Ht(I,v.ref),M=S({},r,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:g,PaperProps:v,transformOrigin:E,TransitionComponent:w,transitionDuration:C,TransitionProps:P}),O=ZJ(M),A=u.useCallback(()=>{if(c==="anchorPosition")return a;const W=m1(i),Y=(W&&W.nodeType===1?W:Cn(I.current).body).getBoundingClientRect();return{top:Y.top+D2(Y,s.vertical),left:Y.left+B2(Y,s.horizontal)}},[i,s.horizontal,s.vertical,a,c]),L=u.useCallback(W=>({vertical:D2(W,E.vertical),horizontal:B2(W,E.horizontal)}),[E.horizontal,E.vertical]),D=u.useCallback(W=>{const K={width:W.offsetWidth,height:W.offsetHeight},Y=L(K);if(c==="none")return{top:null,left:null,transformOrigin:z2(Y)};const ae=A();let re=ae.top-Y.vertical,de=ae.left-Y.horizontal;const ie=re+K.height,se=de+K.width,Se=ui(m1(i)),ye=Se.innerHeight-g,Ie=Se.innerWidth-g;if(re<g){const ee=re-g;re-=ee,Y.vertical+=ee}else if(ie>ye){const ee=ie-ye;re-=ee,Y.vertical+=ee}if(de<g){const ee=de-g;de-=ee,Y.horizontal+=ee}else if(se>Ie){const ee=se-Ie;de-=ee,Y.horizontal+=ee}return{top:`${Math.round(re)}px`,left:`${Math.round(de)}px`,transformOrigin:z2(Y)}},[i,c,A,L,g]),[j,R]=u.useState(b),N=u.useCallback(()=>{const W=I.current;if(!W)return;const K=D(W);K.top!==null&&(W.style.top=K.top),K.left!==null&&(W.style.left=K.left),W.style.transformOrigin=K.transformOrigin,R(!0)},[D]),H=(W,K)=>{x&&x(W,K),N()},V=()=>{R(!1)};u.useEffect(()=>{b&&N()}),u.useImperativeHandle(o,()=>b?{updatePosition:()=>{N()}}:null,[b,N]),u.useEffect(()=>{if(!b)return;const W=zl(()=>{N()}),K=ui(i);return K.addEventListener("resize",W),()=>{W.clear(),K.removeEventListener("resize",W)}},[i,b,N]);let F=C;C==="auto"&&!w.muiSupportAuto&&(F=void 0);const z=h||(i?Cn(m1(i)).body:void 0);return _.jsx(eZ,S({BackdropProps:{invisible:!0},className:he(O.root,p),container:z,open:b,ref:n,ownerState:M},$,{children:_.jsx(w,S({appear:!0,in:b,onEntering:H,onExited:V,timeout:F},P,{children:_.jsx(tZ,S({elevation:m},v,{ref:k,className:he(O.paper,v.className)},j?void 0:{style:S({},v.style,{opacity:0})},{ownerState:M,children:d}))}))}))}),rZ=nZ;function oZ(e){return Ze("MuiMenu",e)}Xe("MuiMenu",["root","paper","list"]);const iZ=["onEntering"],sZ=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],lZ={vertical:"top",horizontal:"right"},aZ={vertical:"top",horizontal:"left"},cZ=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"],list:["list"]},oZ,t)},uZ=oe(rZ,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dZ=oe(gi,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fZ=oe(Bv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),pZ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu"}=r,v=ne(r.TransitionProps,iZ),E=ne(r,sZ),w=pr(),C=w.direction==="rtl",x=S({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:g,PaperProps:p,transitionDuration:m,TransitionProps:v,variant:b}),P=cZ(x),$=o&&!s&&d,I=u.useRef(null),k=(A,L)=>{I.current&&I.current.adjustStyleForScrollbar(A,w),g&&g(A,L)},M=A=>{A.key==="Tab"&&(A.preventDefault(),c&&c(A,"tabKeyDown"))};let O=-1;return u.Children.map(i,(A,L)=>{u.isValidElement(A)&&(A.props.disabled||(b==="selectedMenu"&&A.props.selected||O===-1)&&(O=L))}),_.jsx(uZ,S({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?lZ:aZ,PaperProps:S({as:dZ},p,{classes:S({},p.classes,{root:P.paper})}),className:P.root,open:d,ref:n,transitionDuration:m,TransitionProps:S({onEntering:k},v),ownerState:x},E,{classes:h,children:_.jsx(fZ,S({onKeyDown:M,actions:I,autoFocus:o&&(O===-1||s),autoFocusItem:$,variant:b},a,{className:he(P.list,a.className),children:i}))}))}),NO=pZ;function hZ(e){return Ze("MuiMenuItem",e)}const mZ=Xe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Fd=mZ,gZ=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],vZ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},yZ=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,c=Me({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},hZ,s);return S({},s,c)},bZ=oe(cs,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:vZ})(({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})`:ct(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}))`:ct(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}))`:ct(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})`:ct(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},[`& + .${S2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${S2.inset}`]:{marginLeft:52},[`& .${ig.root}`]:{marginTop:0,marginBottom:0},[`& .${ig.inset}`]:{paddingLeft:36},[`& .${F2.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${F2.root} svg`]:{fontSize:"1.25rem"}}))),wZ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:m}=r,g=ne(r,gZ),b=u.useContext(Ri),v=u.useMemo(()=>({dense:s||b.dense||!1,disableGutters:c}),[b.dense,s,c]),E=u.useRef(null);sn(()=>{o&&E.current&&E.current.focus()},[o]);const w=S({},r,{dense:v.dense,divider:a,disableGutters:c}),C=yZ(r),x=Ht(E,n);let P;return r.disabled||(P=h!==void 0?h:-1),_.jsx(Ri.Provider,{value:v,children:_.jsx(bZ,S({ref:x,role:p,tabIndex:P,component:i,focusVisibleClassName:he(C.focusVisible,d),className:he(C.root,m)},g,{ownerState:w,classes:C}))})}),so=wZ;function CZ(e){return Ze("MuiNativeSelect",e)}const xZ=Xe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),dx=xZ,SZ=["className","disabled","error","IconComponent","inputRef","variant"],EZ=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"]};return Me(a,CZ,t)},DO=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${dx.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),PZ=oe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:No,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${dx.multiple}`]:t.multiple}]}})(DO),BO=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${dx.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),kZ=oe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})(BO),IZ=u.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:c="standard"}=t,d=ne(t,SZ),p=S({},t,{disabled:o,variant:c,error:i}),h=EZ(p);return _.jsxs(u.Fragment,{children:[_.jsx(PZ,S({ownerState:p,className:he(h.select,r),disabled:o,ref:a||n},d)),t.multiple?null:_.jsx(kZ,{as:s,ownerState:p,className:h.icon})]})}),$Z=IZ;var H2;const TZ=["children","classes","className","label","notched"],_Z=oe("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%"}),MZ=oe("legend")(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function RZ(e){const{className:t,label:n,notched:r}=e,o=ne(e,TZ),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return _.jsx(_Z,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:_.jsx(MZ,{ownerState:s,children:i?_.jsx("span",{children:n}):H2||(H2=_.jsx("span",{className:"notranslate",children:""}))})}))}const OZ=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],LZ=e=>{const{classes:t}=e,r=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nq,t);return S({},t,r)},AZ=oe(Lv,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rv})(({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 .${Ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ui.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ui.focused} .${Ui.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ui.error} .${Ui.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ui.disabled} .${Ui.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"}))}),FZ=oe(RZ,{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}}),NZ=oe(Av,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ov})(({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})),zO=u.forwardRef(function(t,n){var r,o,i,s,a;const c=nt({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:g=!1,notched:b,slots:v={},type:E="text"}=c,w=ne(c,OZ),C=LZ(c),x=Ks(),P=Za({props:c,muiFormControl:x,states:["required"]}),$=S({},c,{color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:x,fullWidth:p,hiddenLabel:P.hiddenLabel,multiline:g,size:P.size,type:E}),I=(r=(o=v.root)!=null?o:d.Root)!=null?r:AZ,k=(i=(s=v.input)!=null?s:d.Input)!=null?i:NZ;return _.jsx(Wu,S({slots:{root:I,input:k},renderSuffix:M=>_.jsx(FZ,{ownerState:$,className:C.notchedOutline,label:m!=null&&m!==""&&P.required?a||(a=_.jsxs(u.Fragment,{children:[m," ","*"]})):m,notched:typeof b!="undefined"?b:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:p,inputComponent:h,multiline:g,ref:n,type:E},w,{classes:S({},C,{notchedOutline:null})}))});zO.muiName="Input";const HO=zO,j2=Re(_.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),V2=Re(_.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function DZ(e){return Ze("MuiSelect",e)}const BZ=Xe("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Nd=BZ;var U2;const zZ=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],HZ=oe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Nd.select}`]:t.select},{[`&.${Nd.select}`]:t[n.variant]},{[`&.${Nd.error}`]:t.error},{[`&.${Nd.multiple}`]:t.multiple}]}})(DO,{[`&.${Nd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jZ=oe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})(BO),VZ=oe("input",{shouldForwardProp:e=>cU(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 W2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function UZ(e){return e==null||typeof e=="string"&&!e.trim()}const WZ=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Me(a,DZ,t)},GZ=u.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:c,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:m,error:g=!1,IconComponent:b,inputRef:v,labelId:E,MenuProps:w={},multiple:C,name:x,onBlur:P,onChange:$,onClose:I,onFocus:k,onOpen:M,open:O,readOnly:A,renderValue:L,SelectDisplayProps:D={},tabIndex:j,value:R,variant:N="standard"}=t,H=ne(t,zZ),[V,F]=Fs({controlled:R,default:p,name:"Select"}),[z,W]=Fs({controlled:O,default:d,name:"Select"}),K=u.useRef(null),Y=u.useRef(null),[ae,re]=u.useState(null),{current:de}=u.useRef(O!=null),[ie,se]=u.useState(),Se=Ht(n,v),ye=u.useCallback(ze=>{Y.current=ze,ze&&re(ze)},[]),Ie=ae==null?void 0:ae.parentNode;u.useImperativeHandle(Se,()=>({focus:()=>{Y.current.focus()},node:K.current,value:V}),[V]),u.useEffect(()=>{d&&z&&ae&&!de&&(se(s?null:Ie.clientWidth),Y.current.focus())},[ae,s]),u.useEffect(()=>{i&&Y.current.focus()},[i]),u.useEffect(()=>{if(!E)return;const ze=Cn(Y.current).getElementById(E);if(ze){const et=()=>{getSelection().isCollapsed&&Y.current.focus()};return ze.addEventListener("click",et),()=>{ze.removeEventListener("click",et)}}},[E]);const ee=(ze,et)=>{ze?M&&M(et):I&&I(et),de||(se(s?null:Ie.clientWidth),W(ze))},ke=ze=>{ze.button===0&&(ze.preventDefault(),Y.current.focus(),ee(!0,ze))},_e=ze=>{ee(!1,ze)},Ee=u.Children.toArray(a),pe=ze=>{const et=Ee.map(Ae=>Ae.props.value).indexOf(ze.target.value);if(et===-1)return;const Pe=Ee[et];F(Pe.props.value),$&&$(ze,Pe)},be=ze=>et=>{let Pe;if(et.currentTarget.hasAttribute("tabindex")){if(C){Pe=Array.isArray(V)?V.slice():[];const Ae=V.indexOf(ze.props.value);Ae===-1?Pe.push(ze.props.value):Pe.splice(Ae,1)}else Pe=ze.props.value;if(ze.props.onClick&&ze.props.onClick(et),V!==Pe&&(F(Pe),$)){const Ae=et.nativeEvent||et,Ve=new Ae.constructor(Ae.type,Ae);Object.defineProperty(Ve,"target",{writable:!0,value:{value:Pe,name:x}}),$(Ve,ze)}C||ee(!1,et)}},te=ze=>{A||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ze.key)!==-1&&(ze.preventDefault(),ee(!0,ze))},Le=ae!==null&&z,Ye=ze=>{!Le&&P&&(Object.defineProperty(ze,"target",{writable:!0,value:{value:V,name:x}}),P(ze))};delete H["aria-invalid"];let Ke,Ue;const Be=[];let ut=!1;(lx({value:V})||m)&&(L?Ke=L(V):ut=!0);const gt=Ee.map(ze=>{if(!u.isValidElement(ze))return null;let et;if(C){if(!Array.isArray(V))throw new Error(Bl(2));et=V.some(Pe=>W2(Pe,ze.props.value)),et&&ut&&Be.push(ze.props.children)}else et=W2(V,ze.props.value),et&&ut&&(Ue=ze.props.children);return u.cloneElement(ze,{"aria-selected":et?"true":"false",onClick:be(ze),onKeyUp:Pe=>{Pe.key===" "&&Pe.preventDefault(),ze.props.onKeyUp&&ze.props.onKeyUp(Pe)},role:"option",selected:et,value:void 0,"data-value":ze.props.value})});ut&&(C?Be.length===0?Ke=null:Ke=Be.reduce((ze,et,Pe)=>(ze.push(et),Pe<Be.length-1&&ze.push(", "),ze),[]):Ke=Ue);let at=ie;!s&&de&&ae&&(at=Ie.clientWidth);let St;typeof j!="undefined"?St=j:St=h?null:0;const vt=D.id||(x?`mui-component-select-${x}`:void 0),Ne=S({},t,{variant:N,value:V,open:Le,error:g}),Fe=WZ(Ne);return _.jsxs(u.Fragment,{children:[_.jsx(HZ,S({ref:ye,tabIndex:St,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":Le?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[E,vt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:te,onMouseDown:h||A?null:ke,onBlur:Ye,onFocus:k},D,{ownerState:Ne,className:he(D.className,Fe.select,c),id:vt,children:UZ(Ke)?U2||(U2=_.jsx("span",{className:"notranslate",children:""})):Ke})),_.jsx(VZ,S({"aria-invalid":g,value:Array.isArray(V)?V.join(","):V,name:x,ref:K,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:h,className:Fe.nativeInput,autoFocus:i,ownerState:Ne},H)),_.jsx(jZ,{as:b,className:Fe.icon,ownerState:Ne}),_.jsx(NO,S({id:`menu-${x||""}`,anchorEl:Ie,open:Le,onClose:_e,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:S({"aria-labelledby":E,role:"listbox",disableListWrap:!0},w.MenuListProps),PaperProps:S({},w.PaperProps,{style:S({minWidth:at},w.PaperProps!=null?w.PaperProps.style:null)}),children:gt}))]})}),KZ=GZ,qZ=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],YZ=e=>{const{classes:t}=e;return t},fx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>No(e)&&e!=="variant",slot:"Root"},QZ=oe(MO,fx)(""),XZ=oe(HO,fx)(""),JZ=oe(xO,fx)(""),jO=u.forwardRef(function(t,n){const r=nt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:p=cO,id:h,input:m,inputProps:g,label:b,labelId:v,MenuProps:E,multiple:w=!1,native:C=!1,onClose:x,onOpen:P,open:$,renderValue:I,SelectDisplayProps:k,variant:M="outlined"}=r,O=ne(r,qZ),A=C?$Z:KZ,L=Ks(),D=Za({props:r,muiFormControl:L,states:["variant","error"]}),j=D.variant||M,R=S({},r,{variant:j,classes:s}),N=YZ(R),H=m||{standard:_.jsx(QZ,{ownerState:R}),outlined:_.jsx(XZ,{label:b,ownerState:R}),filled:_.jsx(JZ,{ownerState:R})}[j],V=Ht(n,H.ref);return _.jsx(u.Fragment,{children:u.cloneElement(H,S({inputComponent:A,inputProps:S({children:i,error:D.error,IconComponent:p,variant:j,type:void 0,multiple:w},C?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:v,MenuProps:E,onClose:x,onOpen:P,open:$,renderValue:I,SelectDisplayProps:S({id:h},k)},g,{classes:g?ii(N,g.classes):N},m?m.props.inputProps:{})},w&&C&&j==="outlined"?{notched:!0}:{},{ref:V,className:he(H.props.className,a)},!m&&{variant:j},O))})});jO.muiName="Select";const px=jO;function ZZ(e){return Ze("MuiSkeleton",e)}Xe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const eee=["animation","className","component","height","style","variant","width"];let sg=e=>e,G2,K2,q2,Y2;const tee=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return Me({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},ZZ,t)},nee=fs(G2||(G2=sg`
|
|
243
|
+
0% {
|
|
244
|
+
opacity: 1;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
50% {
|
|
248
|
+
opacity: 0.4;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
100% {
|
|
252
|
+
opacity: 1;
|
|
253
|
+
}
|
|
254
|
+
`)),ree=fs(K2||(K2=sg`
|
|
255
|
+
0% {
|
|
256
|
+
transform: translateX(-100%);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
50% {
|
|
260
|
+
/* +0.5s of delay between each loop */
|
|
261
|
+
transform: translateX(100%);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
100% {
|
|
265
|
+
transform: translateX(100%);
|
|
266
|
+
}
|
|
267
|
+
`)),oee=oe("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=sU(e.shape.borderRadius)||"px",r=lU(e.shape.borderRadius);return S({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:ct(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Hl(q2||(q2=sg`
|
|
268
|
+
animation: ${0} 1.5s ease-in-out 0.5s infinite;
|
|
269
|
+
`),nee),({ownerState:e,theme:t})=>e.animation==="wave"&&Hl(Y2||(Y2=sg`
|
|
270
|
+
position: relative;
|
|
271
|
+
overflow: hidden;
|
|
272
|
+
|
|
273
|
+
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
|
|
274
|
+
-webkit-mask-image: -webkit-radial-gradient(white, black);
|
|
275
|
+
|
|
276
|
+
&::after {
|
|
277
|
+
animation: ${0} 1.6s linear 0.5s infinite;
|
|
278
|
+
background: linear-gradient(
|
|
279
|
+
90deg,
|
|
280
|
+
transparent,
|
|
281
|
+
${0},
|
|
282
|
+
transparent
|
|
283
|
+
);
|
|
284
|
+
content: '';
|
|
285
|
+
position: absolute;
|
|
286
|
+
transform: translateX(-100%); /* Avoid flash during server-side hydration */
|
|
287
|
+
bottom: 0;
|
|
288
|
+
left: 0;
|
|
289
|
+
right: 0;
|
|
290
|
+
top: 0;
|
|
291
|
+
}
|
|
292
|
+
`),ree,(t.vars||t).palette.action.hover)),iee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:c,variant:d="text",width:p}=r,h=ne(r,eee),m=S({},r,{animation:o,component:s,variant:d,hasChildren:!!h.children}),g=tee(m);return _.jsx(oee,S({as:s,ref:n,className:he(g.root,i),ownerState:m},h,{style:S({width:p,height:a},c)}))}),see=iee;function lee(e){return Ze("MuiTooltip",e)}const aee=Xe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),xl=aee,cee=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function uee(e){return Math.round(e*1e5)/1e5}const dee=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${ue(i.split("-")[0])}`],arrow:["arrow"]};return Me(s,lee,t)},fee=oe(Ja,{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"] .${xl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${xl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${xl.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"] .${xl.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),pee=oe("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${ue(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ct(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:`${uee(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${xl.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"})),[`.${xl.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"})),[`.${xl.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${xl.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),hee=oe("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:ct(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let zh=!1,g1=null,Dd={x:0,y:0};function Hh(e,t){return n=>{t&&t(n),e(n)}}const mee=u.forwardRef(function(t,n){var r,o,i,s,a,c,d,p,h,m,g,b,v,E,w,C,x,P,$;const I=nt({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:M,components:O={},componentsProps:A={},describeChild:L=!1,disableFocusListener:D=!1,disableHoverListener:j=!1,disableInteractive:R=!1,disableTouchListener:N=!1,enterDelay:H=100,enterNextDelay:V=0,enterTouchDelay:F=700,followCursor:z=!1,id:W,leaveDelay:K=0,leaveTouchDelay:Y=1500,onClose:ae,onOpen:re,open:de,placement:ie="bottom",PopperComponent:se,PopperProps:Se={},slotProps:ye={},slots:Ie={},title:ee,TransitionComponent:ke=og,TransitionProps:_e}=I,Ee=ne(I,cee),pe=pr(),be=pe.direction==="rtl",[te,Le]=u.useState(),[Ye,Ke]=u.useState(null),Ue=u.useRef(!1),Be=R||z,ut=u.useRef(),gt=u.useRef(),at=u.useRef(),St=u.useRef(),[vt,Ne]=Fs({controlled:de,default:!1,name:"Tooltip",state:"open"});let Fe=vt;const ze=on(W),et=u.useRef(),Pe=u.useCallback(()=>{et.current!==void 0&&(document.body.style.WebkitUserSelect=et.current,et.current=void 0),clearTimeout(St.current)},[]);u.useEffect(()=>()=>{clearTimeout(ut.current),clearTimeout(gt.current),clearTimeout(at.current),Pe()},[Pe]);const Ae=Ct=>{clearTimeout(g1),zh=!0,Ne(!0),re&&!Fe&&re(Ct)},Ve=In(Ct=>{clearTimeout(g1),g1=setTimeout(()=>{zh=!1},800+K),Ne(!1),ae&&Fe&&ae(Ct),clearTimeout(ut.current),ut.current=setTimeout(()=>{Ue.current=!1},pe.transitions.duration.shortest)}),ot=Ct=>{Ue.current&&Ct.type!=="touchstart"||(te&&te.removeAttribute("title"),clearTimeout(gt.current),clearTimeout(at.current),H||zh&&V?gt.current=setTimeout(()=>{Ae(Ct)},zh?V:H):Ae(Ct))},ht=Ct=>{clearTimeout(gt.current),clearTimeout(at.current),at.current=setTimeout(()=>{Ve(Ct)},K)},{isFocusVisibleRef:Qt,onBlur:xn,onFocus:Tn,ref:Kn}=MC(),[,rr]=u.useState(!1),or=Ct=>{xn(Ct),Qt.current===!1&&(rr(!1),ht(Ct))},mn=Ct=>{te||Le(Ct.currentTarget),Tn(Ct),Qt.current===!0&&(rr(!0),ot(Ct))},Xt=Ct=>{Ue.current=!0;const ir=M.props;ir.onTouchStart&&ir.onTouchStart(Ct)},Dn=ot,Bo=ht,Ni=Ct=>{Xt(Ct),clearTimeout(at.current),clearTimeout(ut.current),Pe(),et.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",St.current=setTimeout(()=>{document.body.style.WebkitUserSelect=et.current,ot(Ct)},F)},ms=Ct=>{M.props.onTouchEnd&&M.props.onTouchEnd(Ct),Pe(),clearTimeout(at.current),at.current=setTimeout(()=>{Ve(Ct)},Y)};u.useEffect(()=>{if(!Fe)return;function Ct(ir){(ir.key==="Escape"||ir.key==="Esc")&&Ve(ir)}return document.addEventListener("keydown",Ct),()=>{document.removeEventListener("keydown",Ct)}},[Ve,Fe]);const gs=Ht(M.ref,Kn,Le,n);!ee&&ee!==0&&(Fe=!1);const le=u.useRef(),ge=Ct=>{const ir=M.props;ir.onMouseMove&&ir.onMouseMove(Ct),Dd={x:Ct.clientX,y:Ct.clientY},le.current&&le.current.update()},De={},dt=typeof ee=="string";L?(De.title=!Fe&&dt&&!j?ee:null,De["aria-describedby"]=Fe?ze:null):(De["aria-label"]=dt?ee:null,De["aria-labelledby"]=Fe&&!dt?ze:null);const st=S({},De,Ee,M.props,{className:he(Ee.className,M.props.className),onTouchStart:Xt,ref:gs},z?{onMouseMove:ge}:{}),je={};N||(st.onTouchStart=Ni,st.onTouchEnd=ms),j||(st.onMouseOver=Hh(Dn,st.onMouseOver),st.onMouseLeave=Hh(Bo,st.onMouseLeave),Be||(je.onMouseOver=Dn,je.onMouseLeave=Bo)),D||(st.onFocus=Hh(mn,st.onFocus),st.onBlur=Hh(or,st.onBlur),Be||(je.onFocus=mn,je.onBlur=or));const wt=u.useMemo(()=>{var Ct;let ir=[{name:"arrow",enabled:!!Ye,options:{element:Ye,padding:4}}];return(Ct=Se.popperOptions)!=null&&Ct.modifiers&&(ir=ir.concat(Se.popperOptions.modifiers)),S({},Se.popperOptions,{modifiers:ir})},[Ye,Se]),zt=S({},I,{isRtl:be,arrow:k,disableInteractive:Be,placement:ie,PopperComponentProp:se,touch:Ue.current}),Sn=dee(zt),ao=(r=(o=Ie.popper)!=null?o:O.Popper)!=null?r:fee,we=(i=(s=(a=Ie.transition)!=null?a:O.Transition)!=null?s:ke)!=null?i:og,me=(c=(d=Ie.tooltip)!=null?d:O.Tooltip)!=null?c:pee,We=(p=(h=Ie.arrow)!=null?h:O.Arrow)!=null?p:hee,ft=qd(ao,S({},Se,(m=ye.popper)!=null?m:A.popper,{className:he(Sn.popper,Se==null?void 0:Se.className,(g=(b=ye.popper)!=null?b:A.popper)==null?void 0:g.className)}),zt),jt=qd(we,S({},_e,(v=ye.transition)!=null?v:A.transition),zt),_n=qd(me,S({},(E=ye.tooltip)!=null?E:A.tooltip,{className:he(Sn.tooltip,(w=(C=ye.tooltip)!=null?C:A.tooltip)==null?void 0:w.className)}),zt),Mn=qd(We,S({},(x=ye.arrow)!=null?x:A.arrow,{className:he(Sn.arrow,(P=($=ye.arrow)!=null?$:A.arrow)==null?void 0:P.className)}),zt);return _.jsxs(u.Fragment,{children:[u.cloneElement(M,st),_.jsx(ao,S({as:se!=null?se:Ja,placement:ie,anchorEl:z?{getBoundingClientRect:()=>({top:Dd.y,left:Dd.x,right:Dd.x,bottom:Dd.y,width:0,height:0})}:te,popperRef:le,open:te?Fe:!1,id:ze,transition:!0},je,ft,{popperOptions:wt,children:({TransitionProps:Ct})=>_.jsx(we,S({timeout:pe.transitions.duration.shorter},Ct,jt,{children:_.jsxs(me,S({},_n,{children:[ee,k?_.jsx(We,S({},Mn,{ref:Ke})):null]}))}))}))]})}),Ku=mee;function gee(e){return Ze("MuiSwitch",e)}const vee=Xe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Pr=vee,yee=["className","color","edge","size","sx"],bee=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${ue(n)}`,`size${ue(r)}`],switchBase:["switchBase",`color${ue(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Me(a,gee,t);return S({},t,c)},wee=oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(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,[`& .${Pr.thumb}`]:{width:16,height:16},[`& .${Pr.switchBase}`]:{padding:4,[`&.${Pr.checked}`]:{transform:"translateX(16px)"}}})),Cee=oe(gO,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Pr.input}`]:t.input},n.color!=="default"&&t[`color${ue(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}),[`&.${Pr.checked}`]:{transform:"translateX(20px)"},[`&.${Pr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Pr.checked} + .${Pr.track}`]:{opacity:.5},[`&.${Pr.disabled} + .${Pr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Pr.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})`:ct(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Pr.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})`:ct(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?za(e.palette[t.color].main,.62):Ba(e.palette[t.color].main,.55)}`}},[`&.${Pr.checked} + .${Pr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),xee=oe("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}`})),See=oe("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%"})),Eee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:c}=r,d=ne(r,yee),p=S({},r,{color:i,edge:s,size:a}),h=bee(p),m=_.jsx(See,{className:h.thumb,ownerState:p});return _.jsxs(wee,{className:he(h.root,o),sx:c,ownerState:p,children:[_.jsx(Cee,S({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:p},d,{classes:S({},h,{root:h.switchBase})})),_.jsx(xee,{className:h.track,ownerState:p})]})}),VO=Eee;function Pee(e){return Ze("MuiTab",e)}const kee=Xe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ca=kee,Iee=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],$ee=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:c}=e,d={root:["root",i&&s&&"labelIcon",`textColor${ue(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Me(d,Pee,t)},Tee=oe(cs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ue(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,[`& > .${ca.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,[`&.${ca.selected}`]:{opacity:1},[`&.${ca.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ca.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ca.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ca.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ca.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)})),_ee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:d="top",indicator:p,label:h,onChange:m,onClick:g,onFocus:b,selected:v,selectionFollowsFocus:E,textColor:w="inherit",value:C,wrapped:x=!1}=r,P=ne(r,Iee),$=S({},r,{disabled:i,disableFocusRipple:s,selected:v,icon:!!c,iconPosition:d,label:!!h,fullWidth:a,textColor:w,wrapped:x}),I=$ee($),k=c&&h&&u.isValidElement(c)?u.cloneElement(c,{className:he(I.iconWrapper,c.props.className)}):c,M=A=>{!v&&m&&m(A,C),g&&g(A)},O=A=>{E&&!v&&m&&m(A,C),b&&b(A)};return _.jsxs(Tee,S({focusRipple:!s,className:he(I.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:M,onFocus:O,ownerState:$,tabIndex:v?0:-1},P,{children:[d==="top"||d==="start"?_.jsxs(u.Fragment,{children:[k,h]}):_.jsxs(u.Fragment,{children:[h,k]}),p]}))}),UO=_ee,Mee=u.createContext(),Ree=Mee,Oee=u.createContext(),Lee=Oee;function Aee(e){return Ze("MuiTableCell",e)}const Fee=Xe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Nee=Fee,Dee=["align","className","component","padding","scope","size","sortDirection","variant"],Bee=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ue(r)}`,o!=="normal"&&`padding${ue(o)}`,`size${ue(i)}`]};return Me(a,Aee,t)},zee=oe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ue(n.size)}`],n.padding!=="normal"&&t[`padding${ue(n.padding)}`],n.align!=="inherit"&&t[`align${ue(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
|
|
293
|
+
${e.palette.mode==="light"?za(ct(e.palette.divider,1),.88):Ba(ct(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",[`&.${Nee.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})),Hee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:c,size:d,sortDirection:p,variant:h}=r,m=ne(r,Dee),g=u.useContext(Ree),b=u.useContext(Lee),v=b&&b.variant==="head";let E;s?E=s:E=v?"th":"td";let w=c;E==="td"?w=void 0:!w&&v&&(w="col");const C=h||b&&b.variant,x=S({},r,{align:o,component:E,padding:a||(g&&g.padding?g.padding:"normal"),size:d||(g&&g.size?g.size:"medium"),sortDirection:p,stickyHeader:C==="head"&&g&&g.stickyHeader,variant:C}),P=Bee(x);let $=null;return p&&($=p==="asc"?"ascending":"descending"),_.jsx(zee,S({as:E,ref:n,className:he(P.root,i),"aria-sort":$,scope:w,ownerState:x},m))}),Zb=Hee;function jee(e){return Ze("MuiToolbar",e)}Xe("MuiToolbar",["root","gutters","regular","dense"]);const Vee=["className","component","disableGutters","variant"],Uee=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Me({root:["root",!n&&"gutters",r]},jee,t)},Wee=oe("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),Gee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,c=ne(r,Vee),d=S({},r,{component:i,disableGutters:s,variant:a}),p=Uee(d);return _.jsx(Wee,S({as:i,className:he(p.root,o),ref:n,ownerState:d},c))}),WO=Gee,ew=Re(_.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),tw=Re(_.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var Q2,X2,J2,Z2,e$,t$,n$,r$;const Kee=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],qee=u.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:c,rowsPerPage:d,showFirstButton:p,showLastButton:h}=t,m=ne(t,Kee),g=pr(),b=C=>{a(C,0)},v=C=>{a(C,c-1)},E=C=>{a(C,c+1)},w=C=>{a(C,Math.max(0,Math.ceil(o/d)-1))};return _.jsxs("div",S({ref:n},m,{children:[p&&_.jsx(Zr,{onClick:b,disabled:c===0,"aria-label":i("first",c),title:i("first",c),children:g.direction==="rtl"?Q2||(Q2=_.jsx(V2,{})):X2||(X2=_.jsx(j2,{}))}),_.jsx(Zr,S({onClick:v,disabled:c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c)},r,{children:g.direction==="rtl"?J2||(J2=_.jsx(tw,{})):Z2||(Z2=_.jsx(ew,{}))})),_.jsx(Zr,S({onClick:E,disabled:o!==-1?c>=Math.ceil(o/d)-1:!1,color:"inherit","aria-label":i("next",c),title:i("next",c)},s,{children:g.direction==="rtl"?e$||(e$=_.jsx(ew,{})):t$||(t$=_.jsx(tw,{}))})),h&&_.jsx(Zr,{onClick:w,disabled:c>=Math.ceil(o/d)-1,"aria-label":i("last",c),title:i("last",c),children:g.direction==="rtl"?n$||(n$=_.jsx(j2,{})):r$||(r$=_.jsx(V2,{}))})]}))}),Yee=qee;function Qee(e){return Ze("MuiTablePagination",e)}const Xee=Xe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),ka=Xee;var o$;const Jee=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Zee=oe(Zb,{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}})),ete=oe(WO,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>S({[`& .${ka.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},[`& .${ka.actions}`]:{flexShrink:0,marginLeft:20}})),tte=oe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),nte=oe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>S({},e.typography.body2,{flexShrink:0})),rte=oe(px,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>S({[`& .${ka.selectIcon}`]:t.selectIcon,[`& .${ka.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${ka.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),ote=oe(so,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),ite=oe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>S({},e.typography.body2,{flexShrink:0}));function ste({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function lte(e){return`Go to ${e} page`}const ate=e=>{const{classes:t}=e;return Me({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Qee,t)},cte=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Yee,backIconButtonProps:i,className:s,colSpan:a,component:c=Zb,count:d,getItemAriaLabel:p=lte,labelDisplayedRows:h=ste,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:g,onPageChange:b,onRowsPerPageChange:v,page:E,rowsPerPage:w,rowsPerPageOptions:C=[10,25,50,100],SelectProps:x={},showFirstButton:P=!1,showLastButton:$=!1}=r,I=ne(r,Jee),k=r,M=ate(k),O=x.native?"option":ote;let A;(c===Zb||c==="td")&&(A=a||1e3);const L=on(x.id),D=on(x.labelId),j=()=>d===-1?(E+1)*w:w===-1?d:Math.min(d,(E+1)*w);return _.jsx(Zee,S({colSpan:A,ref:n,as:c,ownerState:k,className:he(M.root,s)},I,{children:_.jsxs(ete,{className:M.toolbar,children:[_.jsx(tte,{className:M.spacer}),C.length>1&&_.jsx(nte,{className:M.selectLabel,id:D,children:m}),C.length>1&&_.jsx(rte,S({variant:"standard"},!x.variant&&{input:o$||(o$=_.jsx(Wu,{}))},{value:w,onChange:v,id:L,labelId:D},x,{classes:S({},x.classes,{root:he(M.input,M.selectRoot,(x.classes||{}).root),select:he(M.select,(x.classes||{}).select),icon:he(M.selectIcon,(x.classes||{}).icon)}),children:C.map(R=>u.createElement(O,S({},!Ha(O)&&{ownerState:k},{className:M.menuItem,key:R.label?R.label:R,value:R.value?R.value:R}),R.label?R.label:R))})),_.jsx(ite,{className:M.displayedRows,children:h({from:d===0?0:E*w+1,to:j(),count:d===-1?-1:d,page:E})}),_.jsx(o,{className:M.actions,backIconButtonProps:i,count:d,nextIconButtonProps:g,onPageChange:b,page:E,rowsPerPage:w,showFirstButton:P,showLastButton:$,getItemAriaLabel:p})]})}))}),ute=cte;function dte(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function fte(e,t,n,r={},o=()=>{}){const{ease:i=dte,duration:s=300}=r;let a=null;const c=t[e];let d=!1;const p=()=>{d=!0},h=m=>{if(d){o(new Error("Animation cancelled"));return}a===null&&(a=m);const g=Math.min(1,(m-a)/s);if(t[e]=i(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const pte=["onChange"],hte={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function mte(e){const{onChange:t}=e,n=ne(e,pte),r=u.useRef(),o=u.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return sn(()=>{const s=zl(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),a=ui(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),u.useEffect(()=>{i(),t(r.current)},[t]),_.jsx("div",S({style:hte,ref:o},n))}function gte(e){return Ze("MuiTabScrollButton",e)}const vte=Xe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),yte=vte,bte=["className","slots","slotProps","direction","orientation","disabled"],wte=e=>{const{classes:t,orientation:n,disabled:r}=e;return Me({root:["root",n,r&&"disabled"]},gte,t)},Cte=oe(cs,{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,[`&.${yte.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),xte=u.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:c={},direction:d}=i,p=ne(i,bte),m=pr().direction==="rtl",g=S({isRtl:m},i),b=wte(g),v=(r=a.StartScrollButtonIcon)!=null?r:ew,E=(o=a.EndScrollButtonIcon)!=null?o:tw,w=Hs({elementType:v,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),C=Hs({elementType:E,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return _.jsx(Cte,S({component:"div",className:he(b.root,s),ref:n,role:null,ownerState:g,tabIndex:null},p,{children:d==="left"?_.jsx(v,S({},w)):_.jsx(E,S({},C))}))}),Ste=xte;function Ete(e){return Ze("MuiTabs",e)}const Pte=Xe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),v1=Pte,kte=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],i$=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,s$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,jh=(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}}},Ite=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return Me({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"]},Ete,c)},$te=oe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${v1.scrollButtons}`]:t.scrollButtons},{[`& .${v1.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&&{[`& .${v1.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Tte=oe("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"})),_te=oe("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"})),Mte=oe("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})),Rte=oe(mte,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),l$={},Ote=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTabs"}),o=pr(),i=o.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:d=!1,children:p,className:h,component:m="div",allowScrollButtonsMobile:g=!1,indicatorColor:b="primary",onChange:v,orientation:E="horizontal",ScrollButtonComponent:w=Ste,scrollButtons:C="auto",selectionFollowsFocus:x,slots:P={},slotProps:$={},TabIndicatorProps:I={},TabScrollButtonProps:k={},textColor:M="primary",value:O,variant:A="standard",visibleScrollbar:L=!1}=r,D=ne(r,kte),j=A==="scrollable",R=E==="vertical",N=R?"scrollTop":"scrollLeft",H=R?"top":"left",V=R?"bottom":"right",F=R?"clientHeight":"clientWidth",z=R?"height":"width",W=S({},r,{component:m,allowScrollButtonsMobile:g,indicatorColor:b,orientation:E,vertical:R,scrollButtons:C,textColor:M,variant:A,visibleScrollbar:L,fixed:!j,hideScrollbar:j&&!L,scrollableX:j&&!R,scrollableY:j&&R,centered:d&&!j,scrollButtonsHideMobile:!g}),K=Ite(W),Y=Hs({elementType:P.StartScrollButtonIcon,externalSlotProps:$.startScrollButtonIcon,ownerState:W}),ae=Hs({elementType:P.EndScrollButtonIcon,externalSlotProps:$.endScrollButtonIcon,ownerState:W}),[re,de]=u.useState(!1),[ie,se]=u.useState(l$),[Se,ye]=u.useState({start:!1,end:!1}),[Ie,ee]=u.useState({overflow:"hidden",scrollbarWidth:0}),ke=new Map,_e=u.useRef(null),Ee=u.useRef(null),pe=()=>{const Pe=_e.current;let Ae;if(Pe){const ot=Pe.getBoundingClientRect();Ae={clientWidth:Pe.clientWidth,scrollLeft:Pe.scrollLeft,scrollTop:Pe.scrollTop,scrollLeftNormalized:wI(Pe,o.direction),scrollWidth:Pe.scrollWidth,top:ot.top,bottom:ot.bottom,left:ot.left,right:ot.right}}let Ve;if(Pe&&O!==!1){const ot=Ee.current.children;if(ot.length>0){const ht=ot[ke.get(O)];Ve=ht?ht.getBoundingClientRect():null}}return{tabsMeta:Ae,tabMeta:Ve}},be=In(()=>{const{tabsMeta:Pe,tabMeta:Ae}=pe();let Ve=0,ot;if(R)ot="top",Ae&&Pe&&(Ve=Ae.top-Pe.top+Pe.scrollTop);else if(ot=i?"right":"left",Ae&&Pe){const Qt=i?Pe.scrollLeftNormalized+Pe.clientWidth-Pe.scrollWidth:Pe.scrollLeft;Ve=(i?-1:1)*(Ae[ot]-Pe[ot]+Qt)}const ht={[ot]:Ve,[z]:Ae?Ae[z]:0};if(isNaN(ie[ot])||isNaN(ie[z]))se(ht);else{const Qt=Math.abs(ie[ot]-ht[ot]),xn=Math.abs(ie[z]-ht[z]);(Qt>=1||xn>=1)&&se(ht)}}),te=(Pe,{animation:Ae=!0}={})=>{Ae?fte(N,_e.current,Pe,{duration:o.transitions.duration.standard}):_e.current[N]=Pe},Le=Pe=>{let Ae=_e.current[N];R?Ae+=Pe:(Ae+=Pe*(i?-1:1),Ae*=i&&dR()==="reverse"?-1:1),te(Ae)},Ye=()=>{const Pe=_e.current[F];let Ae=0;const Ve=Array.from(Ee.current.children);for(let ot=0;ot<Ve.length;ot+=1){const ht=Ve[ot];if(Ae+ht[F]>Pe){ot===0&&(Ae=Pe);break}Ae+=ht[F]}return Ae},Ke=()=>{Le(-1*Ye())},Ue=()=>{Le(Ye())},Be=u.useCallback(Pe=>{ee({overflow:null,scrollbarWidth:Pe})},[]),ut=()=>{const Pe={};Pe.scrollbarSizeListener=j?_.jsx(Rte,{onChange:Be,className:he(K.scrollableX,K.hideScrollbar)}):null;const Ae=Se.start||Se.end,Ve=j&&(C==="auto"&&Ae||C===!0);return Pe.scrollButtonStart=Ve?_.jsx(w,S({slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:E,direction:i?"right":"left",onClick:Ke,disabled:!Se.start},k,{className:he(K.scrollButtons,k.className)})):null,Pe.scrollButtonEnd=Ve?_.jsx(w,S({slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ae},orientation:E,direction:i?"left":"right",onClick:Ue,disabled:!Se.end},k,{className:he(K.scrollButtons,k.className)})):null,Pe},gt=In(Pe=>{const{tabsMeta:Ae,tabMeta:Ve}=pe();if(!(!Ve||!Ae)){if(Ve[H]<Ae[H]){const ot=Ae[N]+(Ve[H]-Ae[H]);te(ot,{animation:Pe})}else if(Ve[V]>Ae[V]){const ot=Ae[N]+(Ve[V]-Ae[V]);te(ot,{animation:Pe})}}}),at=In(()=>{if(j&&C!==!1){const{scrollTop:Pe,scrollHeight:Ae,clientHeight:Ve,scrollWidth:ot,clientWidth:ht}=_e.current;let Qt,xn;if(R)Qt=Pe>1,xn=Pe<Ae-Ve-1;else{const Tn=wI(_e.current,o.direction);Qt=i?Tn<ot-ht-1:Tn>1,xn=i?Tn>1:Tn<ot-ht-1}(Qt!==Se.start||xn!==Se.end)&&ye({start:Qt,end:xn})}});u.useEffect(()=>{const Pe=zl(()=>{_e.current&&(be(),at())}),Ae=ui(_e.current);Ae.addEventListener("resize",Pe);let Ve;return typeof ResizeObserver!="undefined"&&(Ve=new ResizeObserver(Pe),Array.from(Ee.current.children).forEach(ot=>{Ve.observe(ot)})),()=>{Pe.clear(),Ae.removeEventListener("resize",Pe),Ve&&Ve.disconnect()}},[be,at]);const St=u.useMemo(()=>zl(()=>{at()}),[at]);u.useEffect(()=>()=>{St.clear()},[St]),u.useEffect(()=>{de(!0)},[]),u.useEffect(()=>{be(),at()}),u.useEffect(()=>{gt(l$!==ie)},[gt,ie]),u.useImperativeHandle(c,()=>({updateIndicator:be,updateScrollButtons:at}),[be,at]);const vt=_.jsx(Mte,S({},I,{className:he(K.indicator,I.className),ownerState:W,style:S({},ie,I.style)}));let Ne=0;const Fe=u.Children.map(p,Pe=>{if(!u.isValidElement(Pe))return null;const Ae=Pe.props.value===void 0?Ne:Pe.props.value;ke.set(Ae,Ne);const Ve=Ae===O;return Ne+=1,u.cloneElement(Pe,S({fullWidth:A==="fullWidth",indicator:Ve&&!re&&vt,selected:Ve,selectionFollowsFocus:x,onChange:v,textColor:M,value:Ae},Ne===1&&O===!1&&!Pe.props.tabIndex?{tabIndex:0}:{}))}),ze=Pe=>{const Ae=Ee.current,Ve=Cn(Ae).activeElement;if(Ve.getAttribute("role")!=="tab")return;let ht=E==="horizontal"?"ArrowLeft":"ArrowUp",Qt=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&i&&(ht="ArrowRight",Qt="ArrowLeft"),Pe.key){case ht:Pe.preventDefault(),jh(Ae,Ve,s$);break;case Qt:Pe.preventDefault(),jh(Ae,Ve,i$);break;case"Home":Pe.preventDefault(),jh(Ae,null,i$);break;case"End":Pe.preventDefault(),jh(Ae,null,s$);break}},et=ut();return _.jsxs($te,S({className:he(K.root,h),ownerState:W,ref:n,as:m},D,{children:[et.scrollButtonStart,et.scrollbarSizeListener,_.jsxs(Tte,{className:K.scroller,ownerState:W,style:{overflow:Ie.overflow,[R?`margin${i?"Left":"Right"}`:"marginBottom"]:L?void 0:-Ie.scrollbarWidth},ref:_e,onScroll:St,children:[_.jsx(_te,{"aria-label":s,"aria-labelledby":a,"aria-orientation":E==="vertical"?"vertical":null,className:K.flexContainer,ownerState:W,onKeyDown:ze,ref:Ee,role:"tablist",children:Fe}),re&&vt]}),et.scrollButtonEnd]}))}),GO=Ote;function Lte(e){return Ze("MuiTextField",e)}Xe("MuiTextField",["root"]);const Ate=["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"],Fte={standard:MO,filled:xO,outlined:HO},Nte=e=>{const{classes:t}=e;return Me({root:["root"]},Lte,t)},Dte=oe(SO,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bte=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:c="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:m,fullWidth:g=!1,helperText:b,id:v,InputLabelProps:E,inputProps:w,InputProps:C,inputRef:x,label:P,maxRows:$,minRows:I,multiline:k=!1,name:M,onBlur:O,onChange:A,onFocus:L,placeholder:D,required:j=!1,rows:R,select:N=!1,SelectProps:H,type:V,value:F,variant:z="outlined"}=r,W=ne(r,Ate),K=S({},r,{autoFocus:i,color:c,disabled:p,error:h,fullWidth:g,multiline:k,required:j,select:N,variant:z}),Y=Nte(K),ae={};z==="outlined"&&(E&&typeof E.shrink!="undefined"&&(ae.notched=E.shrink),ae.label=P),N&&((!H||!H.native)&&(ae.id=void 0),ae["aria-describedby"]=void 0);const re=on(v),de=b&&re?`${re}-helper-text`:void 0,ie=P&&re?`${re}-label`:void 0,se=Fte[z],Se=_.jsx(se,S({"aria-describedby":de,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:g,multiline:k,name:M,rows:R,maxRows:$,minRows:I,type:V,value:F,id:re,inputRef:x,onBlur:O,onChange:A,onFocus:L,placeholder:D,inputProps:w},ae,C));return _.jsxs(Dte,S({className:he(Y.root,a),disabled:p,error:h,fullWidth:g,ref:n,required:j,color:c,variant:z,ownerState:K},W,{children:[P!=null&&P!==""&&_.jsx(RO,S({htmlFor:re,id:ie},E,{children:P})),N?_.jsx(px,S({"aria-describedby":de,id:re,labelId:ie,value:F,input:Se},H,{children:s})):Se,b&&_.jsx(Nv,S({id:de},m,{children:b}))]}))}),yp=Bte,zte=Re(_.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree"),hx=Re(_.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Hte=Re(_.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),jte=Re(_.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"),y1=Re(_.jsx("path",{d:"M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3h2zm-7 2-5-5h4V3h2v7h4l-5 5z"}),"BrowserUpdated"),KO=Re(_.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Vte=Re(_.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"),Ute=Re(_.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),zv=Re(_.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"),Wte=Re(_.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"}),"Cloud"),Gte=Re(_.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code"),Kte=Re(_.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy"),ps=Re(_.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"),qO=Re(_.jsx("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download"),YO=Re(_.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"),qte=Re(_.jsx("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject"),mx=Re(_.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"),Yte=Re(_.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Qte=Re(_.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"),Xte=Re(_.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"),Jte=Re(_.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"),Zte=Re(_.jsx("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward"),QO=Re(_.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"),ene=Re(_.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff"),tne=Re(_.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"),nne=Re(_.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),lg=Re(_.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"),rne=Re(_.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"),one=Re(_.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"),XO=Re(_.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"),JO=Re(_.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"),ine=Re([_.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),_.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"),sne=Re(_.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),lne=Re(_.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"),ane=Re(_.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"),cne=Re(_.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"),une=Re(_.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"),dne=Re(_.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"),gx=Re(_.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"),fne=Re(_.jsx("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNew"),pne=Re(_.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"),vx=Re(_.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"),hne=Re(_.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"),yx=Re(_.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"),mne=Re(_.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"),ZO=Re(_.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"),a$=Re(_.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"),gne=Re([_.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"),_.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"),vne=Re(_.jsx("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z"}),"Translate"),yne=Re(_.jsx("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade"),Hv=Re(_.jsx("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload"),bne=Re(_.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop"),bx=Re(_.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),wne=Re(_.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");var ag={exports:{}};/**
|
|
294
|
+
* @license
|
|
295
|
+
* Lodash <https://lodash.com/>
|
|
296
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
297
|
+
* Released under MIT license <https://lodash.com/license>
|
|
298
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
299
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
300
|
+
*/ag.exports;(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__",d=500,p="__lodash_placeholder__",h=1,m=2,g=4,b=1,v=2,E=1,w=2,C=4,x=8,P=16,$=32,I=64,k=128,M=256,O=512,A=30,L="...",D=800,j=16,R=1,N=2,H=3,V=1/0,F=9007199254740991,z=17976931348623157e292,W=0/0,K=4294967295,Y=K-1,ae=K>>>1,re=[["ary",k],["bind",E],["bindKey",w],["curry",x],["curryRight",P],["flip",O],["partial",$],["partialRight",I],["rearg",M]],de="[object Arguments]",ie="[object Array]",se="[object AsyncFunction]",Se="[object Boolean]",ye="[object Date]",Ie="[object DOMException]",ee="[object Error]",ke="[object Function]",_e="[object GeneratorFunction]",Ee="[object Map]",pe="[object Number]",be="[object Null]",te="[object Object]",Le="[object Promise]",Ye="[object Proxy]",Ke="[object RegExp]",Ue="[object Set]",Be="[object String]",ut="[object Symbol]",gt="[object Undefined]",at="[object WeakMap]",St="[object WeakSet]",vt="[object ArrayBuffer]",Ne="[object DataView]",Fe="[object Float32Array]",ze="[object Float64Array]",et="[object Int8Array]",Pe="[object Int16Array]",Ae="[object Int32Array]",Ve="[object Uint8Array]",ot="[object Uint8ClampedArray]",ht="[object Uint16Array]",Qt="[object Uint32Array]",xn=/\b__p \+= '';/g,Tn=/\b(__p \+=) '' \+/g,Kn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rr=/&(?:amp|lt|gt|quot|#39);/g,or=/[&<>"']/g,mn=RegExp(rr.source),Xt=RegExp(or.source),Dn=/<%-([\s\S]+?)%>/g,Bo=/<%([\s\S]+?)%>/g,Ni=/<%=([\s\S]+?)%>/g,ms=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gs=/^\w*$/,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,De=RegExp(ge.source),dt=/^\s+/,st=/\s/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wt=/\{\n\/\* \[wrapped with (.+)\] \*/,zt=/,? & /,Sn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ao=/[()=,{}\[\]\/\s]/,we=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,jt=/^0b[01]+$/i,_n=/^\[object .+?Constructor\]$/,Mn=/^0o[0-7]+$/i,Ct=/^(?:0|[1-9]\d*)$/,ir=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ip=/($^)/,KF=/['\n\r\u2028\u2029\\]/g,$p="\\ud800-\\udfff",qF="\\u0300-\\u036f",YF="\\ufe20-\\ufe2f",QF="\\u20d0-\\u20ff",PS=qF+YF+QF,kS="\\u2700-\\u27bf",IS="a-z\\xdf-\\xf6\\xf8-\\xff",XF="\\xac\\xb1\\xd7\\xf7",JF="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ZF="\\u2000-\\u206f",e4=" \\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",$S="A-Z\\xc0-\\xd6\\xd8-\\xde",TS="\\ufe0e\\ufe0f",_S=XF+JF+ZF+e4,by="['’]",t4="["+$p+"]",MS="["+_S+"]",Tp="["+PS+"]",RS="\\d+",n4="["+kS+"]",OS="["+IS+"]",LS="[^"+$p+_S+RS+kS+IS+$S+"]",wy="\\ud83c[\\udffb-\\udfff]",r4="(?:"+Tp+"|"+wy+")",AS="[^"+$p+"]",Cy="(?:\\ud83c[\\udde6-\\uddff]){2}",xy="[\\ud800-\\udbff][\\udc00-\\udfff]",oc="["+$S+"]",FS="\\u200d",NS="(?:"+OS+"|"+LS+")",o4="(?:"+oc+"|"+LS+")",DS="(?:"+by+"(?:d|ll|m|re|s|t|ve))?",BS="(?:"+by+"(?:D|LL|M|RE|S|T|VE))?",zS=r4+"?",HS="["+TS+"]?",i4="(?:"+FS+"(?:"+[AS,Cy,xy].join("|")+")"+HS+zS+")*",s4="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l4="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jS=HS+zS+i4,a4="(?:"+[n4,Cy,xy].join("|")+")"+jS,c4="(?:"+[AS+Tp+"?",Tp,Cy,xy,t4].join("|")+")",u4=RegExp(by,"g"),d4=RegExp(Tp,"g"),Sy=RegExp(wy+"(?="+wy+")|"+c4+jS,"g"),f4=RegExp([oc+"?"+OS+"+"+DS+"(?="+[MS,oc,"$"].join("|")+")",o4+"+"+BS+"(?="+[MS,oc+NS,"$"].join("|")+")",oc+"?"+NS+"+"+DS,oc+"+"+BS,l4,s4,RS,a4].join("|"),"g"),p4=RegExp("["+FS+$p+PS+TS+"]"),h4=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,m4=["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"],g4=-1,gn={};gn[Fe]=gn[ze]=gn[et]=gn[Pe]=gn[Ae]=gn[Ve]=gn[ot]=gn[ht]=gn[Qt]=!0,gn[de]=gn[ie]=gn[vt]=gn[Se]=gn[Ne]=gn[ye]=gn[ee]=gn[ke]=gn[Ee]=gn[pe]=gn[te]=gn[Ke]=gn[Ue]=gn[Be]=gn[at]=!1;var dn={};dn[de]=dn[ie]=dn[vt]=dn[Ne]=dn[Se]=dn[ye]=dn[Fe]=dn[ze]=dn[et]=dn[Pe]=dn[Ae]=dn[Ee]=dn[pe]=dn[te]=dn[Ke]=dn[Ue]=dn[Be]=dn[ut]=dn[Ve]=dn[ot]=dn[ht]=dn[Qt]=!0,dn[ee]=dn[ke]=dn[at]=!1;var v4={À:"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"},y4={"&":"&","<":"<",">":">",'"':""","'":"'"},b4={"&":"&","<":"<",">":">",""":'"',"'":"'"},w4={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},C4=parseFloat,x4=parseInt,VS=typeof bn=="object"&&bn&&bn.Object===Object&&bn,S4=typeof self=="object"&&self&&self.Object===Object&&self,hr=VS||S4||Function("return this")(),Ey=t&&!t.nodeType&&t,ea=Ey&&!0&&e&&!e.nodeType&&e,US=ea&&ea.exports===Ey,Py=US&&VS.process,zo=function(){try{var J=ea&&ea.require&&ea.require("util").types;return J||Py&&Py.binding&&Py.binding("util")}catch(ve){}}(),WS=zo&&zo.isArrayBuffer,GS=zo&&zo.isDate,KS=zo&&zo.isMap,qS=zo&&zo.isRegExp,YS=zo&&zo.isSet,QS=zo&&zo.isTypedArray;function co(J,ve,fe){switch(fe.length){case 0:return J.call(ve);case 1:return J.call(ve,fe[0]);case 2:return J.call(ve,fe[0],fe[1]);case 3:return J.call(ve,fe[0],fe[1],fe[2])}return J.apply(ve,fe)}function E4(J,ve,fe,qe){for(var Et=-1,Wt=J==null?0:J.length;++Et<Wt;){var Xn=J[Et];ve(qe,Xn,fe(Xn),J)}return qe}function Ho(J,ve){for(var fe=-1,qe=J==null?0:J.length;++fe<qe&&ve(J[fe],fe,J)!==!1;);return J}function P4(J,ve){for(var fe=J==null?0:J.length;fe--&&ve(J[fe],fe,J)!==!1;);return J}function XS(J,ve){for(var fe=-1,qe=J==null?0:J.length;++fe<qe;)if(!ve(J[fe],fe,J))return!1;return!0}function qs(J,ve){for(var fe=-1,qe=J==null?0:J.length,Et=0,Wt=[];++fe<qe;){var Xn=J[fe];ve(Xn,fe,J)&&(Wt[Et++]=Xn)}return Wt}function _p(J,ve){var fe=J==null?0:J.length;return!!fe&&ic(J,ve,0)>-1}function ky(J,ve,fe){for(var qe=-1,Et=J==null?0:J.length;++qe<Et;)if(fe(ve,J[qe]))return!0;return!1}function En(J,ve){for(var fe=-1,qe=J==null?0:J.length,Et=Array(qe);++fe<qe;)Et[fe]=ve(J[fe],fe,J);return Et}function Ys(J,ve){for(var fe=-1,qe=ve.length,Et=J.length;++fe<qe;)J[Et+fe]=ve[fe];return J}function Iy(J,ve,fe,qe){var Et=-1,Wt=J==null?0:J.length;for(qe&&Wt&&(fe=J[++Et]);++Et<Wt;)fe=ve(fe,J[Et],Et,J);return fe}function k4(J,ve,fe,qe){var Et=J==null?0:J.length;for(qe&&Et&&(fe=J[--Et]);Et--;)fe=ve(fe,J[Et],Et,J);return fe}function $y(J,ve){for(var fe=-1,qe=J==null?0:J.length;++fe<qe;)if(ve(J[fe],fe,J))return!0;return!1}var I4=Ty("length");function $4(J){return J.split("")}function T4(J){return J.match(Sn)||[]}function JS(J,ve,fe){var qe;return fe(J,function(Et,Wt,Xn){if(ve(Et,Wt,Xn))return qe=Wt,!1}),qe}function Mp(J,ve,fe,qe){for(var Et=J.length,Wt=fe+(qe?1:-1);qe?Wt--:++Wt<Et;)if(ve(J[Wt],Wt,J))return Wt;return-1}function ic(J,ve,fe){return ve===ve?H4(J,ve,fe):Mp(J,ZS,fe)}function _4(J,ve,fe,qe){for(var Et=fe-1,Wt=J.length;++Et<Wt;)if(qe(J[Et],ve))return Et;return-1}function ZS(J){return J!==J}function eE(J,ve){var fe=J==null?0:J.length;return fe?My(J,ve)/fe:W}function Ty(J){return function(ve){return ve==null?n:ve[J]}}function _y(J){return function(ve){return J==null?n:J[ve]}}function tE(J,ve,fe,qe,Et){return Et(J,function(Wt,Xn,an){fe=qe?(qe=!1,Wt):ve(fe,Wt,Xn,an)}),fe}function M4(J,ve){var fe=J.length;for(J.sort(ve);fe--;)J[fe]=J[fe].value;return J}function My(J,ve){for(var fe,qe=-1,Et=J.length;++qe<Et;){var Wt=ve(J[qe]);Wt!==n&&(fe=fe===n?Wt:fe+Wt)}return fe}function Ry(J,ve){for(var fe=-1,qe=Array(J);++fe<J;)qe[fe]=ve(fe);return qe}function R4(J,ve){return En(ve,function(fe){return[fe,J[fe]]})}function nE(J){return J&&J.slice(0,sE(J)+1).replace(dt,"")}function uo(J){return function(ve){return J(ve)}}function Oy(J,ve){return En(ve,function(fe){return J[fe]})}function ld(J,ve){return J.has(ve)}function rE(J,ve){for(var fe=-1,qe=J.length;++fe<qe&&ic(ve,J[fe],0)>-1;);return fe}function oE(J,ve){for(var fe=J.length;fe--&&ic(ve,J[fe],0)>-1;);return fe}function O4(J,ve){for(var fe=J.length,qe=0;fe--;)J[fe]===ve&&++qe;return qe}var L4=_y(v4),A4=_y(y4);function F4(J){return"\\"+w4[J]}function N4(J,ve){return J==null?n:J[ve]}function sc(J){return p4.test(J)}function D4(J){return h4.test(J)}function B4(J){for(var ve,fe=[];!(ve=J.next()).done;)fe.push(ve.value);return fe}function Ly(J){var ve=-1,fe=Array(J.size);return J.forEach(function(qe,Et){fe[++ve]=[Et,qe]}),fe}function iE(J,ve){return function(fe){return J(ve(fe))}}function Qs(J,ve){for(var fe=-1,qe=J.length,Et=0,Wt=[];++fe<qe;){var Xn=J[fe];(Xn===ve||Xn===p)&&(J[fe]=p,Wt[Et++]=fe)}return Wt}function Rp(J){var ve=-1,fe=Array(J.size);return J.forEach(function(qe){fe[++ve]=qe}),fe}function z4(J){var ve=-1,fe=Array(J.size);return J.forEach(function(qe){fe[++ve]=[qe,qe]}),fe}function H4(J,ve,fe){for(var qe=fe-1,Et=J.length;++qe<Et;)if(J[qe]===ve)return qe;return-1}function j4(J,ve,fe){for(var qe=fe+1;qe--;)if(J[qe]===ve)return qe;return qe}function lc(J){return sc(J)?U4(J):I4(J)}function yi(J){return sc(J)?W4(J):$4(J)}function sE(J){for(var ve=J.length;ve--&&st.test(J.charAt(ve)););return ve}var V4=_y(b4);function U4(J){for(var ve=Sy.lastIndex=0;Sy.test(J);)++ve;return ve}function W4(J){return J.match(Sy)||[]}function G4(J){return J.match(f4)||[]}var K4=function J(ve){ve=ve==null?hr:ac.defaults(hr.Object(),ve,ac.pick(hr,m4));var fe=ve.Array,qe=ve.Date,Et=ve.Error,Wt=ve.Function,Xn=ve.Math,an=ve.Object,Ay=ve.RegExp,q4=ve.String,jo=ve.TypeError,Op=fe.prototype,Y4=Wt.prototype,cc=an.prototype,Lp=ve["__core-js_shared__"],Ap=Y4.toString,Jt=cc.hasOwnProperty,Q4=0,lE=function(){var l=/[^.]+$/.exec(Lp&&Lp.keys&&Lp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Fp=cc.toString,X4=Ap.call(an),J4=hr._,Z4=Ay("^"+Ap.call(Jt).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Np=US?ve.Buffer:n,Xs=ve.Symbol,Dp=ve.Uint8Array,aE=Np?Np.allocUnsafe:n,Bp=iE(an.getPrototypeOf,an),cE=an.create,uE=cc.propertyIsEnumerable,zp=Op.splice,dE=Xs?Xs.isConcatSpreadable:n,ad=Xs?Xs.iterator:n,ta=Xs?Xs.toStringTag:n,Hp=function(){try{var l=sa(an,"defineProperty");return l({},"",{}),l}catch(f){}}(),eN=ve.clearTimeout!==hr.clearTimeout&&ve.clearTimeout,tN=qe&&qe.now!==hr.Date.now&&qe.now,nN=ve.setTimeout!==hr.setTimeout&&ve.setTimeout,jp=Xn.ceil,Vp=Xn.floor,Fy=an.getOwnPropertySymbols,rN=Np?Np.isBuffer:n,fE=ve.isFinite,oN=Op.join,iN=iE(an.keys,an),Jn=Xn.max,wr=Xn.min,sN=qe.now,lN=ve.parseInt,pE=Xn.random,aN=Op.reverse,Ny=sa(ve,"DataView"),cd=sa(ve,"Map"),Dy=sa(ve,"Promise"),uc=sa(ve,"Set"),ud=sa(ve,"WeakMap"),dd=sa(an,"create"),Up=ud&&new ud,dc={},cN=la(Ny),uN=la(cd),dN=la(Dy),fN=la(uc),pN=la(ud),Wp=Xs?Xs.prototype:n,fd=Wp?Wp.valueOf:n,hE=Wp?Wp.toString:n;function U(l){if(Bn(l)&&!Pt(l)&&!(l instanceof Nt)){if(l instanceof Vo)return l;if(Jt.call(l,"__wrapped__"))return mP(l)}return new Vo(l)}var fc=function(){function l(){}return function(f){if(!Rn(f))return{};if(cE)return cE(f);l.prototype=f;var y=new l;return l.prototype=n,y}}();function Gp(){}function Vo(l,f){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}U.templateSettings={escape:Dn,evaluate:Bo,interpolate:Ni,variable:"",imports:{_:U}},U.prototype=Gp.prototype,U.prototype.constructor=U,Vo.prototype=fc(Gp.prototype),Vo.prototype.constructor=Vo;function Nt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function hN(){var l=new Nt(this.__wrapped__);return l.__actions__=Ur(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Ur(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Ur(this.__views__),l}function mN(){if(this.__filtered__){var l=new Nt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function gN(){var l=this.__wrapped__.value(),f=this.__dir__,y=Pt(l),T=f<0,B=y?l.length:0,G=$D(0,B,this.__views__),q=G.start,Q=G.end,Z=Q-q,Ce=T?Q:q-1,xe=this.__iteratees__,Te=xe.length,He=0,it=wr(Z,this.__takeCount__);if(!y||!T&&B==Z&&it==Z)return DE(l,this.__actions__);var yt=[];e:for(;Z--&&He<it;){Ce+=f;for(var _t=-1,bt=l[Ce];++_t<Te;){var Ot=xe[_t],Bt=Ot.iteratee,ho=Ot.type,Fr=Bt(bt);if(ho==N)bt=Fr;else if(!Fr){if(ho==R)continue e;break e}}yt[He++]=bt}return yt}Nt.prototype=fc(Gp.prototype),Nt.prototype.constructor=Nt;function na(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var T=l[f];this.set(T[0],T[1])}}function vN(){this.__data__=dd?dd(null):{},this.size=0}function yN(l){var f=this.has(l)&&delete this.__data__[l];return this.size-=f?1:0,f}function bN(l){var f=this.__data__;if(dd){var y=f[l];return y===c?n:y}return Jt.call(f,l)?f[l]:n}function wN(l){var f=this.__data__;return dd?f[l]!==n:Jt.call(f,l)}function CN(l,f){var y=this.__data__;return this.size+=this.has(l)?0:1,y[l]=dd&&f===n?c:f,this}na.prototype.clear=vN,na.prototype.delete=yN,na.prototype.get=bN,na.prototype.has=wN,na.prototype.set=CN;function vs(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var T=l[f];this.set(T[0],T[1])}}function xN(){this.__data__=[],this.size=0}function SN(l){var f=this.__data__,y=Kp(f,l);if(y<0)return!1;var T=f.length-1;return y==T?f.pop():zp.call(f,y,1),--this.size,!0}function EN(l){var f=this.__data__,y=Kp(f,l);return y<0?n:f[y][1]}function PN(l){return Kp(this.__data__,l)>-1}function kN(l,f){var y=this.__data__,T=Kp(y,l);return T<0?(++this.size,y.push([l,f])):y[T][1]=f,this}vs.prototype.clear=xN,vs.prototype.delete=SN,vs.prototype.get=EN,vs.prototype.has=PN,vs.prototype.set=kN;function ys(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var T=l[f];this.set(T[0],T[1])}}function IN(){this.size=0,this.__data__={hash:new na,map:new(cd||vs),string:new na}}function $N(l){var f=ih(this,l).delete(l);return this.size-=f?1:0,f}function TN(l){return ih(this,l).get(l)}function _N(l){return ih(this,l).has(l)}function MN(l,f){var y=ih(this,l),T=y.size;return y.set(l,f),this.size+=y.size==T?0:1,this}ys.prototype.clear=IN,ys.prototype.delete=$N,ys.prototype.get=TN,ys.prototype.has=_N,ys.prototype.set=MN;function ra(l){var f=-1,y=l==null?0:l.length;for(this.__data__=new ys;++f<y;)this.add(l[f])}function RN(l){return this.__data__.set(l,c),this}function ON(l){return this.__data__.has(l)}ra.prototype.add=ra.prototype.push=RN,ra.prototype.has=ON;function bi(l){var f=this.__data__=new vs(l);this.size=f.size}function LN(){this.__data__=new vs,this.size=0}function AN(l){var f=this.__data__,y=f.delete(l);return this.size=f.size,y}function FN(l){return this.__data__.get(l)}function NN(l){return this.__data__.has(l)}function DN(l,f){var y=this.__data__;if(y instanceof vs){var T=y.__data__;if(!cd||T.length<o-1)return T.push([l,f]),this.size=++y.size,this;y=this.__data__=new ys(T)}return y.set(l,f),this.size=y.size,this}bi.prototype.clear=LN,bi.prototype.delete=AN,bi.prototype.get=FN,bi.prototype.has=NN,bi.prototype.set=DN;function mE(l,f){var y=Pt(l),T=!y&&aa(l),B=!y&&!T&&nl(l),G=!y&&!T&&!B&&gc(l),q=y||T||B||G,Q=q?Ry(l.length,q4):[],Z=Q.length;for(var Ce in l)(f||Jt.call(l,Ce))&&!(q&&(Ce=="length"||B&&(Ce=="offset"||Ce=="parent")||G&&(Ce=="buffer"||Ce=="byteLength"||Ce=="byteOffset")||xs(Ce,Z)))&&Q.push(Ce);return Q}function gE(l){var f=l.length;return f?l[Yy(0,f-1)]:n}function BN(l,f){return sh(Ur(l),oa(f,0,l.length))}function zN(l){return sh(Ur(l))}function By(l,f,y){(y!==n&&!wi(l[f],y)||y===n&&!(f in l))&&bs(l,f,y)}function pd(l,f,y){var T=l[f];(!(Jt.call(l,f)&&wi(T,y))||y===n&&!(f in l))&&bs(l,f,y)}function Kp(l,f){for(var y=l.length;y--;)if(wi(l[y][0],f))return y;return-1}function HN(l,f,y,T){return Js(l,function(B,G,q){f(T,B,y(B),q)}),T}function vE(l,f){return l&&Bi(f,sr(f),l)}function jN(l,f){return l&&Bi(f,Gr(f),l)}function bs(l,f,y){f=="__proto__"&&Hp?Hp(l,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):l[f]=y}function zy(l,f){for(var y=-1,T=f.length,B=fe(T),G=l==null;++y<T;)B[y]=G?n:w0(l,f[y]);return B}function oa(l,f,y){return l===l&&(y!==n&&(l=l<=y?l:y),f!==n&&(l=l>=f?l:f)),l}function Uo(l,f,y,T,B,G){var q,Q=f&h,Z=f&m,Ce=f&g;if(y&&(q=B?y(l,T,B,G):y(l)),q!==n)return q;if(!Rn(l))return l;var xe=Pt(l);if(xe){if(q=_D(l),!Q)return Ur(l,q)}else{var Te=Cr(l),He=Te==ke||Te==_e;if(nl(l))return HE(l,Q);if(Te==te||Te==de||He&&!B){if(q=Z||He?{}:sP(l),!Q)return Z?bD(l,jN(q,l)):yD(l,vE(q,l))}else{if(!dn[Te])return B?l:{};q=MD(l,Te,Q)}}G||(G=new bi);var it=G.get(l);if(it)return it;G.set(l,q),AP(l)?l.forEach(function(bt){q.add(Uo(bt,f,y,bt,l,G))}):OP(l)&&l.forEach(function(bt,Ot){q.set(Ot,Uo(bt,f,y,Ot,l,G))});var yt=Ce?Z?s0:i0:Z?Gr:sr,_t=xe?n:yt(l);return Ho(_t||l,function(bt,Ot){_t&&(Ot=bt,bt=l[Ot]),pd(q,Ot,Uo(bt,f,y,Ot,l,G))}),q}function VN(l){var f=sr(l);return function(y){return yE(y,l,f)}}function yE(l,f,y){var T=y.length;if(l==null)return!T;for(l=an(l);T--;){var B=y[T],G=f[B],q=l[B];if(q===n&&!(B in l)||!G(q))return!1}return!0}function bE(l,f,y){if(typeof l!="function")throw new jo(s);return wd(function(){l.apply(n,y)},f)}function hd(l,f,y,T){var B=-1,G=_p,q=!0,Q=l.length,Z=[],Ce=f.length;if(!Q)return Z;y&&(f=En(f,uo(y))),T?(G=ky,q=!1):f.length>=o&&(G=ld,q=!1,f=new ra(f));e:for(;++B<Q;){var xe=l[B],Te=y==null?xe:y(xe);if(xe=T||xe!==0?xe:0,q&&Te===Te){for(var He=Ce;He--;)if(f[He]===Te)continue e;Z.push(xe)}else G(f,Te,T)||Z.push(xe)}return Z}var Js=GE(Di),wE=GE(jy,!0);function UN(l,f){var y=!0;return Js(l,function(T,B,G){return y=!!f(T,B,G),y}),y}function qp(l,f,y){for(var T=-1,B=l.length;++T<B;){var G=l[T],q=f(G);if(q!=null&&(Q===n?q===q&&!po(q):y(q,Q)))var Q=q,Z=G}return Z}function WN(l,f,y,T){var B=l.length;for(y=Tt(y),y<0&&(y=-y>B?0:B+y),T=T===n||T>B?B:Tt(T),T<0&&(T+=B),T=y>T?0:NP(T);y<T;)l[y++]=f;return l}function CE(l,f){var y=[];return Js(l,function(T,B,G){f(T,B,G)&&y.push(T)}),y}function mr(l,f,y,T,B){var G=-1,q=l.length;for(y||(y=OD),B||(B=[]);++G<q;){var Q=l[G];f>0&&y(Q)?f>1?mr(Q,f-1,y,T,B):Ys(B,Q):T||(B[B.length]=Q)}return B}var Hy=KE(),xE=KE(!0);function Di(l,f){return l&&Hy(l,f,sr)}function jy(l,f){return l&&xE(l,f,sr)}function Yp(l,f){return qs(f,function(y){return Ss(l[y])})}function ia(l,f){f=el(f,l);for(var y=0,T=f.length;l!=null&&y<T;)l=l[zi(f[y++])];return y&&y==T?l:n}function SE(l,f,y){var T=f(l);return Pt(l)?T:Ys(T,y(l))}function Lr(l){return l==null?l===n?gt:be:ta&&ta in an(l)?ID(l):zD(l)}function Vy(l,f){return l>f}function GN(l,f){return l!=null&&Jt.call(l,f)}function KN(l,f){return l!=null&&f in an(l)}function qN(l,f,y){return l>=wr(f,y)&&l<Jn(f,y)}function Uy(l,f,y){for(var T=y?ky:_p,B=l[0].length,G=l.length,q=G,Q=fe(G),Z=1/0,Ce=[];q--;){var xe=l[q];q&&f&&(xe=En(xe,uo(f))),Z=wr(xe.length,Z),Q[q]=!y&&(f||B>=120&&xe.length>=120)?new ra(q&&xe):n}xe=l[0];var Te=-1,He=Q[0];e:for(;++Te<B&&Ce.length<Z;){var it=xe[Te],yt=f?f(it):it;if(it=y||it!==0?it:0,!(He?ld(He,yt):T(Ce,yt,y))){for(q=G;--q;){var _t=Q[q];if(!(_t?ld(_t,yt):T(l[q],yt,y)))continue e}He&&He.push(yt),Ce.push(it)}}return Ce}function YN(l,f,y,T){return Di(l,function(B,G,q){f(T,y(B),G,q)}),T}function md(l,f,y){f=el(f,l),l=uP(l,f);var T=l==null?l:l[zi(Go(f))];return T==null?n:co(T,l,y)}function EE(l){return Bn(l)&&Lr(l)==de}function QN(l){return Bn(l)&&Lr(l)==vt}function XN(l){return Bn(l)&&Lr(l)==ye}function gd(l,f,y,T,B){return l===f?!0:l==null||f==null||!Bn(l)&&!Bn(f)?l!==l&&f!==f:JN(l,f,y,T,gd,B)}function JN(l,f,y,T,B,G){var q=Pt(l),Q=Pt(f),Z=q?ie:Cr(l),Ce=Q?ie:Cr(f);Z=Z==de?te:Z,Ce=Ce==de?te:Ce;var xe=Z==te,Te=Ce==te,He=Z==Ce;if(He&&nl(l)){if(!nl(f))return!1;q=!0,xe=!1}if(He&&!xe)return G||(G=new bi),q||gc(l)?rP(l,f,y,T,B,G):PD(l,f,Z,y,T,B,G);if(!(y&b)){var it=xe&&Jt.call(l,"__wrapped__"),yt=Te&&Jt.call(f,"__wrapped__");if(it||yt){var _t=it?l.value():l,bt=yt?f.value():f;return G||(G=new bi),B(_t,bt,y,T,G)}}return He?(G||(G=new bi),kD(l,f,y,T,B,G)):!1}function ZN(l){return Bn(l)&&Cr(l)==Ee}function Wy(l,f,y,T){var B=y.length,G=B,q=!T;if(l==null)return!G;for(l=an(l);B--;){var Q=y[B];if(q&&Q[2]?Q[1]!==l[Q[0]]:!(Q[0]in l))return!1}for(;++B<G;){Q=y[B];var Z=Q[0],Ce=l[Z],xe=Q[1];if(q&&Q[2]){if(Ce===n&&!(Z in l))return!1}else{var Te=new bi;if(T)var He=T(Ce,xe,Z,l,f,Te);if(!(He===n?gd(xe,Ce,b|v,T,Te):He))return!1}}return!0}function PE(l){if(!Rn(l)||AD(l))return!1;var f=Ss(l)?Z4:_n;return f.test(la(l))}function eD(l){return Bn(l)&&Lr(l)==Ke}function tD(l){return Bn(l)&&Cr(l)==Ue}function nD(l){return Bn(l)&&fh(l.length)&&!!gn[Lr(l)]}function kE(l){return typeof l=="function"?l:l==null?Kr:typeof l=="object"?Pt(l)?TE(l[0],l[1]):$E(l):qP(l)}function Gy(l){if(!bd(l))return iN(l);var f=[];for(var y in an(l))Jt.call(l,y)&&y!="constructor"&&f.push(y);return f}function rD(l){if(!Rn(l))return BD(l);var f=bd(l),y=[];for(var T in l)T=="constructor"&&(f||!Jt.call(l,T))||y.push(T);return y}function Ky(l,f){return l<f}function IE(l,f){var y=-1,T=Wr(l)?fe(l.length):[];return Js(l,function(B,G,q){T[++y]=f(B,G,q)}),T}function $E(l){var f=a0(l);return f.length==1&&f[0][2]?aP(f[0][0],f[0][1]):function(y){return y===l||Wy(y,l,f)}}function TE(l,f){return u0(l)&&lP(f)?aP(zi(l),f):function(y){var T=w0(y,l);return T===n&&T===f?C0(y,l):gd(f,T,b|v)}}function Qp(l,f,y,T,B){l!==f&&Hy(f,function(G,q){if(B||(B=new bi),Rn(G))oD(l,f,q,y,Qp,T,B);else{var Q=T?T(f0(l,q),G,q+"",l,f,B):n;Q===n&&(Q=G),By(l,q,Q)}},Gr)}function oD(l,f,y,T,B,G,q){var Q=f0(l,y),Z=f0(f,y),Ce=q.get(Z);if(Ce){By(l,y,Ce);return}var xe=G?G(Q,Z,y+"",l,f,q):n,Te=xe===n;if(Te){var He=Pt(Z),it=!He&&nl(Z),yt=!He&&!it&&gc(Z);xe=Z,He||it||yt?Pt(Q)?xe=Q:Vn(Q)?xe=Ur(Q):it?(Te=!1,xe=HE(Z,!0)):yt?(Te=!1,xe=jE(Z,!0)):xe=[]:Cd(Z)||aa(Z)?(xe=Q,aa(Q)?xe=DP(Q):(!Rn(Q)||Ss(Q))&&(xe=sP(Z))):Te=!1}Te&&(q.set(Z,xe),B(xe,Z,T,G,q),q.delete(Z)),By(l,y,xe)}function _E(l,f){var y=l.length;if(y)return f+=f<0?y:0,xs(f,y)?l[f]:n}function ME(l,f,y){f.length?f=En(f,function(G){return Pt(G)?function(q){return ia(q,G.length===1?G[0]:G)}:G}):f=[Kr];var T=-1;f=En(f,uo(mt()));var B=IE(l,function(G,q,Q){var Z=En(f,function(Ce){return Ce(G)});return{criteria:Z,index:++T,value:G}});return M4(B,function(G,q){return vD(G,q,y)})}function iD(l,f){return RE(l,f,function(y,T){return C0(l,T)})}function RE(l,f,y){for(var T=-1,B=f.length,G={};++T<B;){var q=f[T],Q=ia(l,q);y(Q,q)&&vd(G,el(q,l),Q)}return G}function sD(l){return function(f){return ia(f,l)}}function qy(l,f,y,T){var B=T?_4:ic,G=-1,q=f.length,Q=l;for(l===f&&(f=Ur(f)),y&&(Q=En(l,uo(y)));++G<q;)for(var Z=0,Ce=f[G],xe=y?y(Ce):Ce;(Z=B(Q,xe,Z,T))>-1;)Q!==l&&zp.call(Q,Z,1),zp.call(l,Z,1);return l}function OE(l,f){for(var y=l?f.length:0,T=y-1;y--;){var B=f[y];if(y==T||B!==G){var G=B;xs(B)?zp.call(l,B,1):Jy(l,B)}}return l}function Yy(l,f){return l+Vp(pE()*(f-l+1))}function lD(l,f,y,T){for(var B=-1,G=Jn(jp((f-l)/(y||1)),0),q=fe(G);G--;)q[T?G:++B]=l,l+=y;return q}function Qy(l,f){var y="";if(!l||f<1||f>F)return y;do f%2&&(y+=l),f=Vp(f/2),f&&(l+=l);while(f);return y}function Mt(l,f){return p0(cP(l,f,Kr),l+"")}function aD(l){return gE(vc(l))}function cD(l,f){var y=vc(l);return sh(y,oa(f,0,y.length))}function vd(l,f,y,T){if(!Rn(l))return l;f=el(f,l);for(var B=-1,G=f.length,q=G-1,Q=l;Q!=null&&++B<G;){var Z=zi(f[B]),Ce=y;if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return l;if(B!=q){var xe=Q[Z];Ce=T?T(xe,Z,Q):n,Ce===n&&(Ce=Rn(xe)?xe:xs(f[B+1])?[]:{})}pd(Q,Z,Ce),Q=Q[Z]}return l}var LE=Up?function(l,f){return Up.set(l,f),l}:Kr,uD=Hp?function(l,f){return Hp(l,"toString",{configurable:!0,enumerable:!1,value:S0(f),writable:!0})}:Kr;function dD(l){return sh(vc(l))}function Wo(l,f,y){var T=-1,B=l.length;f<0&&(f=-f>B?0:B+f),y=y>B?B:y,y<0&&(y+=B),B=f>y?0:y-f>>>0,f>>>=0;for(var G=fe(B);++T<B;)G[T]=l[T+f];return G}function fD(l,f){var y;return Js(l,function(T,B,G){return y=f(T,B,G),!y}),!!y}function Xp(l,f,y){var T=0,B=l==null?T:l.length;if(typeof f=="number"&&f===f&&B<=ae){for(;T<B;){var G=T+B>>>1,q=l[G];q!==null&&!po(q)&&(y?q<=f:q<f)?T=G+1:B=G}return B}return Xy(l,f,Kr,y)}function Xy(l,f,y,T){var B=0,G=l==null?0:l.length;if(G===0)return 0;f=y(f);for(var q=f!==f,Q=f===null,Z=po(f),Ce=f===n;B<G;){var xe=Vp((B+G)/2),Te=y(l[xe]),He=Te!==n,it=Te===null,yt=Te===Te,_t=po(Te);if(q)var bt=T||yt;else Ce?bt=yt&&(T||He):Q?bt=yt&&He&&(T||!it):Z?bt=yt&&He&&!it&&(T||!_t):it||_t?bt=!1:bt=T?Te<=f:Te<f;bt?B=xe+1:G=xe}return wr(G,Y)}function AE(l,f){for(var y=-1,T=l.length,B=0,G=[];++y<T;){var q=l[y],Q=f?f(q):q;if(!y||!wi(Q,Z)){var Z=Q;G[B++]=q===0?0:q}}return G}function FE(l){return typeof l=="number"?l:po(l)?W:+l}function fo(l){if(typeof l=="string")return l;if(Pt(l))return En(l,fo)+"";if(po(l))return hE?hE.call(l):"";var f=l+"";return f=="0"&&1/l==-V?"-0":f}function Zs(l,f,y){var T=-1,B=_p,G=l.length,q=!0,Q=[],Z=Q;if(y)q=!1,B=ky;else if(G>=o){var Ce=f?null:SD(l);if(Ce)return Rp(Ce);q=!1,B=ld,Z=new ra}else Z=f?[]:Q;e:for(;++T<G;){var xe=l[T],Te=f?f(xe):xe;if(xe=y||xe!==0?xe:0,q&&Te===Te){for(var He=Z.length;He--;)if(Z[He]===Te)continue e;f&&Z.push(Te),Q.push(xe)}else B(Z,Te,y)||(Z!==Q&&Z.push(Te),Q.push(xe))}return Q}function Jy(l,f){return f=el(f,l),l=uP(l,f),l==null||delete l[zi(Go(f))]}function NE(l,f,y,T){return vd(l,f,y(ia(l,f)),T)}function Jp(l,f,y,T){for(var B=l.length,G=T?B:-1;(T?G--:++G<B)&&f(l[G],G,l););return y?Wo(l,T?0:G,T?G+1:B):Wo(l,T?G+1:0,T?B:G)}function DE(l,f){var y=l;return y instanceof Nt&&(y=y.value()),Iy(f,function(T,B){return B.func.apply(B.thisArg,Ys([T],B.args))},y)}function Zy(l,f,y){var T=l.length;if(T<2)return T?Zs(l[0]):[];for(var B=-1,G=fe(T);++B<T;)for(var q=l[B],Q=-1;++Q<T;)Q!=B&&(G[B]=hd(G[B]||q,l[Q],f,y));return Zs(mr(G,1),f,y)}function BE(l,f,y){for(var T=-1,B=l.length,G=f.length,q={};++T<B;){var Q=T<G?f[T]:n;y(q,l[T],Q)}return q}function e0(l){return Vn(l)?l:[]}function t0(l){return typeof l=="function"?l:Kr}function el(l,f){return Pt(l)?l:u0(l,f)?[l]:hP(Kt(l))}var pD=Mt;function tl(l,f,y){var T=l.length;return y=y===n?T:y,!f&&y>=T?l:Wo(l,f,y)}var zE=eN||function(l){return hr.clearTimeout(l)};function HE(l,f){if(f)return l.slice();var y=l.length,T=aE?aE(y):new l.constructor(y);return l.copy(T),T}function n0(l){var f=new l.constructor(l.byteLength);return new Dp(f).set(new Dp(l)),f}function hD(l,f){var y=f?n0(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.byteLength)}function mD(l){var f=new l.constructor(l.source,We.exec(l));return f.lastIndex=l.lastIndex,f}function gD(l){return fd?an(fd.call(l)):{}}function jE(l,f){var y=f?n0(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.length)}function VE(l,f){if(l!==f){var y=l!==n,T=l===null,B=l===l,G=po(l),q=f!==n,Q=f===null,Z=f===f,Ce=po(f);if(!Q&&!Ce&&!G&&l>f||G&&q&&Z&&!Q&&!Ce||T&&q&&Z||!y&&Z||!B)return 1;if(!T&&!G&&!Ce&&l<f||Ce&&y&&B&&!T&&!G||Q&&y&&B||!q&&B||!Z)return-1}return 0}function vD(l,f,y){for(var T=-1,B=l.criteria,G=f.criteria,q=B.length,Q=y.length;++T<q;){var Z=VE(B[T],G[T]);if(Z){if(T>=Q)return Z;var Ce=y[T];return Z*(Ce=="desc"?-1:1)}}return l.index-f.index}function UE(l,f,y,T){for(var B=-1,G=l.length,q=y.length,Q=-1,Z=f.length,Ce=Jn(G-q,0),xe=fe(Z+Ce),Te=!T;++Q<Z;)xe[Q]=f[Q];for(;++B<q;)(Te||B<G)&&(xe[y[B]]=l[B]);for(;Ce--;)xe[Q++]=l[B++];return xe}function WE(l,f,y,T){for(var B=-1,G=l.length,q=-1,Q=y.length,Z=-1,Ce=f.length,xe=Jn(G-Q,0),Te=fe(xe+Ce),He=!T;++B<xe;)Te[B]=l[B];for(var it=B;++Z<Ce;)Te[it+Z]=f[Z];for(;++q<Q;)(He||B<G)&&(Te[it+y[q]]=l[B++]);return Te}function Ur(l,f){var y=-1,T=l.length;for(f||(f=fe(T));++y<T;)f[y]=l[y];return f}function Bi(l,f,y,T){var B=!y;y||(y={});for(var G=-1,q=f.length;++G<q;){var Q=f[G],Z=T?T(y[Q],l[Q],Q,y,l):n;Z===n&&(Z=l[Q]),B?bs(y,Q,Z):pd(y,Q,Z)}return y}function yD(l,f){return Bi(l,c0(l),f)}function bD(l,f){return Bi(l,oP(l),f)}function Zp(l,f){return function(y,T){var B=Pt(y)?E4:HN,G=f?f():{};return B(y,l,mt(T,2),G)}}function pc(l){return Mt(function(f,y){var T=-1,B=y.length,G=B>1?y[B-1]:n,q=B>2?y[2]:n;for(G=l.length>3&&typeof G=="function"?(B--,G):n,q&&Ar(y[0],y[1],q)&&(G=B<3?n:G,B=1),f=an(f);++T<B;){var Q=y[T];Q&&l(f,Q,T,G)}return f})}function GE(l,f){return function(y,T){if(y==null)return y;if(!Wr(y))return l(y,T);for(var B=y.length,G=f?B:-1,q=an(y);(f?G--:++G<B)&&T(q[G],G,q)!==!1;);return y}}function KE(l){return function(f,y,T){for(var B=-1,G=an(f),q=T(f),Q=q.length;Q--;){var Z=q[l?Q:++B];if(y(G[Z],Z,G)===!1)break}return f}}function wD(l,f,y){var T=f&E,B=yd(l);function G(){var q=this&&this!==hr&&this instanceof G?B:l;return q.apply(T?y:this,arguments)}return G}function qE(l){return function(f){f=Kt(f);var y=sc(f)?yi(f):n,T=y?y[0]:f.charAt(0),B=y?tl(y,1).join(""):f.slice(1);return T[l]()+B}}function hc(l){return function(f){return Iy(GP(WP(f).replace(u4,"")),l,"")}}function yd(l){return function(){var f=arguments;switch(f.length){case 0:return new l;case 1:return new l(f[0]);case 2:return new l(f[0],f[1]);case 3:return new l(f[0],f[1],f[2]);case 4:return new l(f[0],f[1],f[2],f[3]);case 5:return new l(f[0],f[1],f[2],f[3],f[4]);case 6:return new l(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new l(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=fc(l.prototype),T=l.apply(y,f);return Rn(T)?T:y}}function CD(l,f,y){var T=yd(l);function B(){for(var G=arguments.length,q=fe(G),Q=G,Z=mc(B);Q--;)q[Q]=arguments[Q];var Ce=G<3&&q[0]!==Z&&q[G-1]!==Z?[]:Qs(q,Z);if(G-=Ce.length,G<y)return ZE(l,f,eh,B.placeholder,n,q,Ce,n,n,y-G);var xe=this&&this!==hr&&this instanceof B?T:l;return co(xe,this,q)}return B}function YE(l){return function(f,y,T){var B=an(f);if(!Wr(f)){var G=mt(y,3);f=sr(f),y=function(Q){return G(B[Q],Q,B)}}var q=l(f,y,T);return q>-1?B[G?f[q]:q]:n}}function QE(l){return Cs(function(f){var y=f.length,T=y,B=Vo.prototype.thru;for(l&&f.reverse();T--;){var G=f[T];if(typeof G!="function")throw new jo(s);if(B&&!q&&oh(G)=="wrapper")var q=new Vo([],!0)}for(T=q?T:y;++T<y;){G=f[T];var Q=oh(G),Z=Q=="wrapper"?l0(G):n;Z&&d0(Z[0])&&Z[1]==(k|x|$|M)&&!Z[4].length&&Z[9]==1?q=q[oh(Z[0])].apply(q,Z[3]):q=G.length==1&&d0(G)?q[Q]():q.thru(G)}return function(){var Ce=arguments,xe=Ce[0];if(q&&Ce.length==1&&Pt(xe))return q.plant(xe).value();for(var Te=0,He=y?f[Te].apply(this,Ce):xe;++Te<y;)He=f[Te].call(this,He);return He}})}function eh(l,f,y,T,B,G,q,Q,Z,Ce){var xe=f&k,Te=f&E,He=f&w,it=f&(x|P),yt=f&O,_t=He?n:yd(l);function bt(){for(var Ot=arguments.length,Bt=fe(Ot),ho=Ot;ho--;)Bt[ho]=arguments[ho];if(it)var Fr=mc(bt),mo=O4(Bt,Fr);if(T&&(Bt=UE(Bt,T,B,it)),G&&(Bt=WE(Bt,G,q,it)),Ot-=mo,it&&Ot<Ce){var Un=Qs(Bt,Fr);return ZE(l,f,eh,bt.placeholder,y,Bt,Un,Q,Z,Ce-Ot)}var Ci=Te?y:this,Ps=He?Ci[l]:l;return Ot=Bt.length,Q?Bt=HD(Bt,Q):yt&&Ot>1&&Bt.reverse(),xe&&Z<Ot&&(Bt.length=Z),this&&this!==hr&&this instanceof bt&&(Ps=_t||yd(Ps)),Ps.apply(Ci,Bt)}return bt}function XE(l,f){return function(y,T){return YN(y,l,f(T),{})}}function th(l,f){return function(y,T){var B;if(y===n&&T===n)return f;if(y!==n&&(B=y),T!==n){if(B===n)return T;typeof y=="string"||typeof T=="string"?(y=fo(y),T=fo(T)):(y=FE(y),T=FE(T)),B=l(y,T)}return B}}function r0(l){return Cs(function(f){return f=En(f,uo(mt())),Mt(function(y){var T=this;return l(f,function(B){return co(B,T,y)})})})}function nh(l,f){f=f===n?" ":fo(f);var y=f.length;if(y<2)return y?Qy(f,l):f;var T=Qy(f,jp(l/lc(f)));return sc(f)?tl(yi(T),0,l).join(""):T.slice(0,l)}function xD(l,f,y,T){var B=f&E,G=yd(l);function q(){for(var Q=-1,Z=arguments.length,Ce=-1,xe=T.length,Te=fe(xe+Z),He=this&&this!==hr&&this instanceof q?G:l;++Ce<xe;)Te[Ce]=T[Ce];for(;Z--;)Te[Ce++]=arguments[++Q];return co(He,B?y:this,Te)}return q}function JE(l){return function(f,y,T){return T&&typeof T!="number"&&Ar(f,y,T)&&(y=T=n),f=Es(f),y===n?(y=f,f=0):y=Es(y),T=T===n?f<y?1:-1:Es(T),lD(f,y,T,l)}}function rh(l){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Ko(f),y=Ko(y)),l(f,y)}}function ZE(l,f,y,T,B,G,q,Q,Z,Ce){var xe=f&x,Te=xe?q:n,He=xe?n:q,it=xe?G:n,yt=xe?n:G;f|=xe?$:I,f&=~(xe?I:$),f&C||(f&=~(E|w));var _t=[l,f,B,it,Te,yt,He,Q,Z,Ce],bt=y.apply(n,_t);return d0(l)&&dP(bt,_t),bt.placeholder=T,fP(bt,l,f)}function o0(l){var f=Xn[l];return function(y,T){if(y=Ko(y),T=T==null?0:wr(Tt(T),292),T&&fE(y)){var B=(Kt(y)+"e").split("e"),G=f(B[0]+"e"+(+B[1]+T));return B=(Kt(G)+"e").split("e"),+(B[0]+"e"+(+B[1]-T))}return f(y)}}var SD=uc&&1/Rp(new uc([,-0]))[1]==V?function(l){return new uc(l)}:k0;function eP(l){return function(f){var y=Cr(f);return y==Ee?Ly(f):y==Ue?z4(f):R4(f,l(f))}}function ws(l,f,y,T,B,G,q,Q){var Z=f&w;if(!Z&&typeof l!="function")throw new jo(s);var Ce=T?T.length:0;if(Ce||(f&=~($|I),T=B=n),q=q===n?q:Jn(Tt(q),0),Q=Q===n?Q:Tt(Q),Ce-=B?B.length:0,f&I){var xe=T,Te=B;T=B=n}var He=Z?n:l0(l),it=[l,f,y,T,B,xe,Te,G,q,Q];if(He&&DD(it,He),l=it[0],f=it[1],y=it[2],T=it[3],B=it[4],Q=it[9]=it[9]===n?Z?0:l.length:Jn(it[9]-Ce,0),!Q&&f&(x|P)&&(f&=~(x|P)),!f||f==E)var yt=wD(l,f,y);else f==x||f==P?yt=CD(l,f,Q):(f==$||f==(E|$))&&!B.length?yt=xD(l,f,y,T):yt=eh.apply(n,it);var _t=He?LE:dP;return fP(_t(yt,it),l,f)}function tP(l,f,y,T){return l===n||wi(l,cc[y])&&!Jt.call(T,y)?f:l}function nP(l,f,y,T,B,G){return Rn(l)&&Rn(f)&&(G.set(f,l),Qp(l,f,n,nP,G),G.delete(f)),l}function ED(l){return Cd(l)?n:l}function rP(l,f,y,T,B,G){var q=y&b,Q=l.length,Z=f.length;if(Q!=Z&&!(q&&Z>Q))return!1;var Ce=G.get(l),xe=G.get(f);if(Ce&&xe)return Ce==f&&xe==l;var Te=-1,He=!0,it=y&v?new ra:n;for(G.set(l,f),G.set(f,l);++Te<Q;){var yt=l[Te],_t=f[Te];if(T)var bt=q?T(_t,yt,Te,f,l,G):T(yt,_t,Te,l,f,G);if(bt!==n){if(bt)continue;He=!1;break}if(it){if(!$y(f,function(Ot,Bt){if(!ld(it,Bt)&&(yt===Ot||B(yt,Ot,y,T,G)))return it.push(Bt)})){He=!1;break}}else if(!(yt===_t||B(yt,_t,y,T,G))){He=!1;break}}return G.delete(l),G.delete(f),He}function PD(l,f,y,T,B,G,q){switch(y){case Ne:if(l.byteLength!=f.byteLength||l.byteOffset!=f.byteOffset)return!1;l=l.buffer,f=f.buffer;case vt:return!(l.byteLength!=f.byteLength||!G(new Dp(l),new Dp(f)));case Se:case ye:case pe:return wi(+l,+f);case ee:return l.name==f.name&&l.message==f.message;case Ke:case Be:return l==f+"";case Ee:var Q=Ly;case Ue:var Z=T&b;if(Q||(Q=Rp),l.size!=f.size&&!Z)return!1;var Ce=q.get(l);if(Ce)return Ce==f;T|=v,q.set(l,f);var xe=rP(Q(l),Q(f),T,B,G,q);return q.delete(l),xe;case ut:if(fd)return fd.call(l)==fd.call(f)}return!1}function kD(l,f,y,T,B,G){var q=y&b,Q=i0(l),Z=Q.length,Ce=i0(f),xe=Ce.length;if(Z!=xe&&!q)return!1;for(var Te=Z;Te--;){var He=Q[Te];if(!(q?He in f:Jt.call(f,He)))return!1}var it=G.get(l),yt=G.get(f);if(it&&yt)return it==f&&yt==l;var _t=!0;G.set(l,f),G.set(f,l);for(var bt=q;++Te<Z;){He=Q[Te];var Ot=l[He],Bt=f[He];if(T)var ho=q?T(Bt,Ot,He,f,l,G):T(Ot,Bt,He,l,f,G);if(!(ho===n?Ot===Bt||B(Ot,Bt,y,T,G):ho)){_t=!1;break}bt||(bt=He=="constructor")}if(_t&&!bt){var Fr=l.constructor,mo=f.constructor;Fr!=mo&&"constructor"in l&&"constructor"in f&&!(typeof Fr=="function"&&Fr instanceof Fr&&typeof mo=="function"&&mo instanceof mo)&&(_t=!1)}return G.delete(l),G.delete(f),_t}function Cs(l){return p0(cP(l,n,yP),l+"")}function i0(l){return SE(l,sr,c0)}function s0(l){return SE(l,Gr,oP)}var l0=Up?function(l){return Up.get(l)}:k0;function oh(l){for(var f=l.name+"",y=dc[f],T=Jt.call(dc,f)?y.length:0;T--;){var B=y[T],G=B.func;if(G==null||G==l)return B.name}return f}function mc(l){var f=Jt.call(U,"placeholder")?U:l;return f.placeholder}function mt(){var l=U.iteratee||E0;return l=l===E0?kE:l,arguments.length?l(arguments[0],arguments[1]):l}function ih(l,f){var y=l.__data__;return LD(f)?y[typeof f=="string"?"string":"hash"]:y.map}function a0(l){for(var f=sr(l),y=f.length;y--;){var T=f[y],B=l[T];f[y]=[T,B,lP(B)]}return f}function sa(l,f){var y=N4(l,f);return PE(y)?y:n}function ID(l){var f=Jt.call(l,ta),y=l[ta];try{l[ta]=n;var T=!0}catch(G){}var B=Fp.call(l);return T&&(f?l[ta]=y:delete l[ta]),B}var c0=Fy?function(l){return l==null?[]:(l=an(l),qs(Fy(l),function(f){return uE.call(l,f)}))}:I0,oP=Fy?function(l){for(var f=[];l;)Ys(f,c0(l)),l=Bp(l);return f}:I0,Cr=Lr;(Ny&&Cr(new Ny(new ArrayBuffer(1)))!=Ne||cd&&Cr(new cd)!=Ee||Dy&&Cr(Dy.resolve())!=Le||uc&&Cr(new uc)!=Ue||ud&&Cr(new ud)!=at)&&(Cr=function(l){var f=Lr(l),y=f==te?l.constructor:n,T=y?la(y):"";if(T)switch(T){case cN:return Ne;case uN:return Ee;case dN:return Le;case fN:return Ue;case pN:return at}return f});function $D(l,f,y){for(var T=-1,B=y.length;++T<B;){var G=y[T],q=G.size;switch(G.type){case"drop":l+=q;break;case"dropRight":f-=q;break;case"take":f=wr(f,l+q);break;case"takeRight":l=Jn(l,f-q);break}}return{start:l,end:f}}function TD(l){var f=l.match(wt);return f?f[1].split(zt):[]}function iP(l,f,y){f=el(f,l);for(var T=-1,B=f.length,G=!1;++T<B;){var q=zi(f[T]);if(!(G=l!=null&&y(l,q)))break;l=l[q]}return G||++T!=B?G:(B=l==null?0:l.length,!!B&&fh(B)&&xs(q,B)&&(Pt(l)||aa(l)))}function _D(l){var f=l.length,y=new l.constructor(f);return f&&typeof l[0]=="string"&&Jt.call(l,"index")&&(y.index=l.index,y.input=l.input),y}function sP(l){return typeof l.constructor=="function"&&!bd(l)?fc(Bp(l)):{}}function MD(l,f,y){var T=l.constructor;switch(f){case vt:return n0(l);case Se:case ye:return new T(+l);case Ne:return hD(l,y);case Fe:case ze:case et:case Pe:case Ae:case Ve:case ot:case ht:case Qt:return jE(l,y);case Ee:return new T;case pe:case Be:return new T(l);case Ke:return mD(l);case Ue:return new T;case ut:return gD(l)}}function RD(l,f){var y=f.length;if(!y)return l;var T=y-1;return f[T]=(y>1?"& ":"")+f[T],f=f.join(y>2?", ":" "),l.replace(je,`{
|
|
301
|
+
/* [wrapped with `+f+`] */
|
|
302
|
+
`)}function OD(l){return Pt(l)||aa(l)||!!(dE&&l&&l[dE])}function xs(l,f){var y=typeof l;return f=f==null?F:f,!!f&&(y=="number"||y!="symbol"&&Ct.test(l))&&l>-1&&l%1==0&&l<f}function Ar(l,f,y){if(!Rn(y))return!1;var T=typeof f;return(T=="number"?Wr(y)&&xs(f,y.length):T=="string"&&f in y)?wi(y[f],l):!1}function u0(l,f){if(Pt(l))return!1;var y=typeof l;return y=="number"||y=="symbol"||y=="boolean"||l==null||po(l)?!0:gs.test(l)||!ms.test(l)||f!=null&&l in an(f)}function LD(l){var f=typeof l;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?l!=="__proto__":l===null}function d0(l){var f=oh(l),y=U[f];if(typeof y!="function"||!(f in Nt.prototype))return!1;if(l===y)return!0;var T=l0(y);return!!T&&l===T[0]}function AD(l){return!!lE&&lE in l}var FD=Lp?Ss:$0;function bd(l){var f=l&&l.constructor,y=typeof f=="function"&&f.prototype||cc;return l===y}function lP(l){return l===l&&!Rn(l)}function aP(l,f){return function(y){return y==null?!1:y[l]===f&&(f!==n||l in an(y))}}function ND(l){var f=uh(l,function(T){return y.size===d&&y.clear(),T}),y=f.cache;return f}function DD(l,f){var y=l[1],T=f[1],B=y|T,G=B<(E|w|k),q=T==k&&y==x||T==k&&y==M&&l[7].length<=f[8]||T==(k|M)&&f[7].length<=f[8]&&y==x;if(!(G||q))return l;T&E&&(l[2]=f[2],B|=y&E?0:C);var Q=f[3];if(Q){var Z=l[3];l[3]=Z?UE(Z,Q,f[4]):Q,l[4]=Z?Qs(l[3],p):f[4]}return Q=f[5],Q&&(Z=l[5],l[5]=Z?WE(Z,Q,f[6]):Q,l[6]=Z?Qs(l[5],p):f[6]),Q=f[7],Q&&(l[7]=Q),T&k&&(l[8]=l[8]==null?f[8]:wr(l[8],f[8])),l[9]==null&&(l[9]=f[9]),l[0]=f[0],l[1]=B,l}function BD(l){var f=[];if(l!=null)for(var y in an(l))f.push(y);return f}function zD(l){return Fp.call(l)}function cP(l,f,y){return f=Jn(f===n?l.length-1:f,0),function(){for(var T=arguments,B=-1,G=Jn(T.length-f,0),q=fe(G);++B<G;)q[B]=T[f+B];B=-1;for(var Q=fe(f+1);++B<f;)Q[B]=T[B];return Q[f]=y(q),co(l,this,Q)}}function uP(l,f){return f.length<2?l:ia(l,Wo(f,0,-1))}function HD(l,f){for(var y=l.length,T=wr(f.length,y),B=Ur(l);T--;){var G=f[T];l[T]=xs(G,y)?B[G]:n}return l}function f0(l,f){if(!(f==="constructor"&&typeof l[f]=="function")&&f!="__proto__")return l[f]}var dP=pP(LE),wd=nN||function(l,f){return hr.setTimeout(l,f)},p0=pP(uD);function fP(l,f,y){var T=f+"";return p0(l,RD(T,jD(TD(T),y)))}function pP(l){var f=0,y=0;return function(){var T=sN(),B=j-(T-y);if(y=T,B>0){if(++f>=D)return arguments[0]}else f=0;return l.apply(n,arguments)}}function sh(l,f){var y=-1,T=l.length,B=T-1;for(f=f===n?T:f;++y<f;){var G=Yy(y,B),q=l[G];l[G]=l[y],l[y]=q}return l.length=f,l}var hP=ND(function(l){var f=[];return l.charCodeAt(0)===46&&f.push(""),l.replace(le,function(y,T,B,G){f.push(B?G.replace(we,"$1"):T||y)}),f});function zi(l){if(typeof l=="string"||po(l))return l;var f=l+"";return f=="0"&&1/l==-V?"-0":f}function la(l){if(l!=null){try{return Ap.call(l)}catch(f){}try{return l+""}catch(f){}}return""}function jD(l,f){return Ho(re,function(y){var T="_."+y[0];f&y[1]&&!_p(l,T)&&l.push(T)}),l.sort()}function mP(l){if(l instanceof Nt)return l.clone();var f=new Vo(l.__wrapped__,l.__chain__);return f.__actions__=Ur(l.__actions__),f.__index__=l.__index__,f.__values__=l.__values__,f}function VD(l,f,y){(y?Ar(l,f,y):f===n)?f=1:f=Jn(Tt(f),0);var T=l==null?0:l.length;if(!T||f<1)return[];for(var B=0,G=0,q=fe(jp(T/f));B<T;)q[G++]=Wo(l,B,B+=f);return q}function UD(l){for(var f=-1,y=l==null?0:l.length,T=0,B=[];++f<y;){var G=l[f];G&&(B[T++]=G)}return B}function WD(){var l=arguments.length;if(!l)return[];for(var f=fe(l-1),y=arguments[0],T=l;T--;)f[T-1]=arguments[T];return Ys(Pt(y)?Ur(y):[y],mr(f,1))}var GD=Mt(function(l,f){return Vn(l)?hd(l,mr(f,1,Vn,!0)):[]}),KD=Mt(function(l,f){var y=Go(f);return Vn(y)&&(y=n),Vn(l)?hd(l,mr(f,1,Vn,!0),mt(y,2)):[]}),qD=Mt(function(l,f){var y=Go(f);return Vn(y)&&(y=n),Vn(l)?hd(l,mr(f,1,Vn,!0),n,y):[]});function YD(l,f,y){var T=l==null?0:l.length;return T?(f=y||f===n?1:Tt(f),Wo(l,f<0?0:f,T)):[]}function QD(l,f,y){var T=l==null?0:l.length;return T?(f=y||f===n?1:Tt(f),f=T-f,Wo(l,0,f<0?0:f)):[]}function XD(l,f){return l&&l.length?Jp(l,mt(f,3),!0,!0):[]}function JD(l,f){return l&&l.length?Jp(l,mt(f,3),!0):[]}function ZD(l,f,y,T){var B=l==null?0:l.length;return B?(y&&typeof y!="number"&&Ar(l,f,y)&&(y=0,T=B),WN(l,f,y,T)):[]}function gP(l,f,y){var T=l==null?0:l.length;if(!T)return-1;var B=y==null?0:Tt(y);return B<0&&(B=Jn(T+B,0)),Mp(l,mt(f,3),B)}function vP(l,f,y){var T=l==null?0:l.length;if(!T)return-1;var B=T-1;return y!==n&&(B=Tt(y),B=y<0?Jn(T+B,0):wr(B,T-1)),Mp(l,mt(f,3),B,!0)}function yP(l){var f=l==null?0:l.length;return f?mr(l,1):[]}function e5(l){var f=l==null?0:l.length;return f?mr(l,V):[]}function t5(l,f){var y=l==null?0:l.length;return y?(f=f===n?1:Tt(f),mr(l,f)):[]}function n5(l){for(var f=-1,y=l==null?0:l.length,T={};++f<y;){var B=l[f];T[B[0]]=B[1]}return T}function bP(l){return l&&l.length?l[0]:n}function r5(l,f,y){var T=l==null?0:l.length;if(!T)return-1;var B=y==null?0:Tt(y);return B<0&&(B=Jn(T+B,0)),ic(l,f,B)}function o5(l){var f=l==null?0:l.length;return f?Wo(l,0,-1):[]}var i5=Mt(function(l){var f=En(l,e0);return f.length&&f[0]===l[0]?Uy(f):[]}),s5=Mt(function(l){var f=Go(l),y=En(l,e0);return f===Go(y)?f=n:y.pop(),y.length&&y[0]===l[0]?Uy(y,mt(f,2)):[]}),l5=Mt(function(l){var f=Go(l),y=En(l,e0);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===l[0]?Uy(y,n,f):[]});function a5(l,f){return l==null?"":oN.call(l,f)}function Go(l){var f=l==null?0:l.length;return f?l[f-1]:n}function c5(l,f,y){var T=l==null?0:l.length;if(!T)return-1;var B=T;return y!==n&&(B=Tt(y),B=B<0?Jn(T+B,0):wr(B,T-1)),f===f?j4(l,f,B):Mp(l,ZS,B,!0)}function u5(l,f){return l&&l.length?_E(l,Tt(f)):n}var d5=Mt(wP);function wP(l,f){return l&&l.length&&f&&f.length?qy(l,f):l}function f5(l,f,y){return l&&l.length&&f&&f.length?qy(l,f,mt(y,2)):l}function p5(l,f,y){return l&&l.length&&f&&f.length?qy(l,f,n,y):l}var h5=Cs(function(l,f){var y=l==null?0:l.length,T=zy(l,f);return OE(l,En(f,function(B){return xs(B,y)?+B:B}).sort(VE)),T});function m5(l,f){var y=[];if(!(l&&l.length))return y;var T=-1,B=[],G=l.length;for(f=mt(f,3);++T<G;){var q=l[T];f(q,T,l)&&(y.push(q),B.push(T))}return OE(l,B),y}function h0(l){return l==null?l:aN.call(l)}function g5(l,f,y){var T=l==null?0:l.length;return T?(y&&typeof y!="number"&&Ar(l,f,y)?(f=0,y=T):(f=f==null?0:Tt(f),y=y===n?T:Tt(y)),Wo(l,f,y)):[]}function v5(l,f){return Xp(l,f)}function y5(l,f,y){return Xy(l,f,mt(y,2))}function b5(l,f){var y=l==null?0:l.length;if(y){var T=Xp(l,f);if(T<y&&wi(l[T],f))return T}return-1}function w5(l,f){return Xp(l,f,!0)}function C5(l,f,y){return Xy(l,f,mt(y,2),!0)}function x5(l,f){var y=l==null?0:l.length;if(y){var T=Xp(l,f,!0)-1;if(wi(l[T],f))return T}return-1}function S5(l){return l&&l.length?AE(l):[]}function E5(l,f){return l&&l.length?AE(l,mt(f,2)):[]}function P5(l){var f=l==null?0:l.length;return f?Wo(l,1,f):[]}function k5(l,f,y){return l&&l.length?(f=y||f===n?1:Tt(f),Wo(l,0,f<0?0:f)):[]}function I5(l,f,y){var T=l==null?0:l.length;return T?(f=y||f===n?1:Tt(f),f=T-f,Wo(l,f<0?0:f,T)):[]}function $5(l,f){return l&&l.length?Jp(l,mt(f,3),!1,!0):[]}function T5(l,f){return l&&l.length?Jp(l,mt(f,3)):[]}var _5=Mt(function(l){return Zs(mr(l,1,Vn,!0))}),M5=Mt(function(l){var f=Go(l);return Vn(f)&&(f=n),Zs(mr(l,1,Vn,!0),mt(f,2))}),R5=Mt(function(l){var f=Go(l);return f=typeof f=="function"?f:n,Zs(mr(l,1,Vn,!0),n,f)});function O5(l){return l&&l.length?Zs(l):[]}function L5(l,f){return l&&l.length?Zs(l,mt(f,2)):[]}function A5(l,f){return f=typeof f=="function"?f:n,l&&l.length?Zs(l,n,f):[]}function m0(l){if(!(l&&l.length))return[];var f=0;return l=qs(l,function(y){if(Vn(y))return f=Jn(y.length,f),!0}),Ry(f,function(y){return En(l,Ty(y))})}function CP(l,f){if(!(l&&l.length))return[];var y=m0(l);return f==null?y:En(y,function(T){return co(f,n,T)})}var F5=Mt(function(l,f){return Vn(l)?hd(l,f):[]}),N5=Mt(function(l){return Zy(qs(l,Vn))}),D5=Mt(function(l){var f=Go(l);return Vn(f)&&(f=n),Zy(qs(l,Vn),mt(f,2))}),B5=Mt(function(l){var f=Go(l);return f=typeof f=="function"?f:n,Zy(qs(l,Vn),n,f)}),z5=Mt(m0);function H5(l,f){return BE(l||[],f||[],pd)}function j5(l,f){return BE(l||[],f||[],vd)}var V5=Mt(function(l){var f=l.length,y=f>1?l[f-1]:n;return y=typeof y=="function"?(l.pop(),y):n,CP(l,y)});function xP(l){var f=U(l);return f.__chain__=!0,f}function U5(l,f){return f(l),l}function lh(l,f){return f(l)}var W5=Cs(function(l){var f=l.length,y=f?l[0]:0,T=this.__wrapped__,B=function(G){return zy(G,l)};return f>1||this.__actions__.length||!(T instanceof Nt)||!xs(y)?this.thru(B):(T=T.slice(y,+y+(f?1:0)),T.__actions__.push({func:lh,args:[B],thisArg:n}),new Vo(T,this.__chain__).thru(function(G){return f&&!G.length&&G.push(n),G}))});function G5(){return xP(this)}function K5(){return new Vo(this.value(),this.__chain__)}function q5(){this.__values__===n&&(this.__values__=FP(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function Y5(){return this}function Q5(l){for(var f,y=this;y instanceof Gp;){var T=mP(y);T.__index__=0,T.__values__=n,f?B.__wrapped__=T:f=T;var B=T;y=y.__wrapped__}return B.__wrapped__=l,f}function X5(){var l=this.__wrapped__;if(l instanceof Nt){var f=l;return this.__actions__.length&&(f=new Nt(this)),f=f.reverse(),f.__actions__.push({func:lh,args:[h0],thisArg:n}),new Vo(f,this.__chain__)}return this.thru(h0)}function J5(){return DE(this.__wrapped__,this.__actions__)}var Z5=Zp(function(l,f,y){Jt.call(l,y)?++l[y]:bs(l,y,1)});function e3(l,f,y){var T=Pt(l)?XS:UN;return y&&Ar(l,f,y)&&(f=n),T(l,mt(f,3))}function t3(l,f){var y=Pt(l)?qs:CE;return y(l,mt(f,3))}var n3=YE(gP),r3=YE(vP);function o3(l,f){return mr(ah(l,f),1)}function i3(l,f){return mr(ah(l,f),V)}function s3(l,f,y){return y=y===n?1:Tt(y),mr(ah(l,f),y)}function SP(l,f){var y=Pt(l)?Ho:Js;return y(l,mt(f,3))}function EP(l,f){var y=Pt(l)?P4:wE;return y(l,mt(f,3))}var l3=Zp(function(l,f,y){Jt.call(l,y)?l[y].push(f):bs(l,y,[f])});function a3(l,f,y,T){l=Wr(l)?l:vc(l),y=y&&!T?Tt(y):0;var B=l.length;return y<0&&(y=Jn(B+y,0)),ph(l)?y<=B&&l.indexOf(f,y)>-1:!!B&&ic(l,f,y)>-1}var c3=Mt(function(l,f,y){var T=-1,B=typeof f=="function",G=Wr(l)?fe(l.length):[];return Js(l,function(q){G[++T]=B?co(f,q,y):md(q,f,y)}),G}),u3=Zp(function(l,f,y){bs(l,y,f)});function ah(l,f){var y=Pt(l)?En:IE;return y(l,mt(f,3))}function d3(l,f,y,T){return l==null?[]:(Pt(f)||(f=f==null?[]:[f]),y=T?n:y,Pt(y)||(y=y==null?[]:[y]),ME(l,f,y))}var f3=Zp(function(l,f,y){l[y?0:1].push(f)},function(){return[[],[]]});function p3(l,f,y){var T=Pt(l)?Iy:tE,B=arguments.length<3;return T(l,mt(f,4),y,B,Js)}function h3(l,f,y){var T=Pt(l)?k4:tE,B=arguments.length<3;return T(l,mt(f,4),y,B,wE)}function m3(l,f){var y=Pt(l)?qs:CE;return y(l,dh(mt(f,3)))}function g3(l){var f=Pt(l)?gE:aD;return f(l)}function v3(l,f,y){(y?Ar(l,f,y):f===n)?f=1:f=Tt(f);var T=Pt(l)?BN:cD;return T(l,f)}function y3(l){var f=Pt(l)?zN:dD;return f(l)}function b3(l){if(l==null)return 0;if(Wr(l))return ph(l)?lc(l):l.length;var f=Cr(l);return f==Ee||f==Ue?l.size:Gy(l).length}function w3(l,f,y){var T=Pt(l)?$y:fD;return y&&Ar(l,f,y)&&(f=n),T(l,mt(f,3))}var C3=Mt(function(l,f){if(l==null)return[];var y=f.length;return y>1&&Ar(l,f[0],f[1])?f=[]:y>2&&Ar(f[0],f[1],f[2])&&(f=[f[0]]),ME(l,mr(f,1),[])}),ch=tN||function(){return hr.Date.now()};function x3(l,f){if(typeof f!="function")throw new jo(s);return l=Tt(l),function(){if(--l<1)return f.apply(this,arguments)}}function PP(l,f,y){return f=y?n:f,f=l&&f==null?l.length:f,ws(l,k,n,n,n,n,f)}function kP(l,f){var y;if(typeof f!="function")throw new jo(s);return l=Tt(l),function(){return--l>0&&(y=f.apply(this,arguments)),l<=1&&(f=n),y}}var g0=Mt(function(l,f,y){var T=E;if(y.length){var B=Qs(y,mc(g0));T|=$}return ws(l,T,f,y,B)}),IP=Mt(function(l,f,y){var T=E|w;if(y.length){var B=Qs(y,mc(IP));T|=$}return ws(f,T,l,y,B)});function $P(l,f,y){f=y?n:f;var T=ws(l,x,n,n,n,n,n,f);return T.placeholder=$P.placeholder,T}function TP(l,f,y){f=y?n:f;var T=ws(l,P,n,n,n,n,n,f);return T.placeholder=TP.placeholder,T}function _P(l,f,y){var T,B,G,q,Q,Z,Ce=0,xe=!1,Te=!1,He=!0;if(typeof l!="function")throw new jo(s);f=Ko(f)||0,Rn(y)&&(xe=!!y.leading,Te="maxWait"in y,G=Te?Jn(Ko(y.maxWait)||0,f):G,He="trailing"in y?!!y.trailing:He);function it(Un){var Ci=T,Ps=B;return T=B=n,Ce=Un,q=l.apply(Ps,Ci),q}function yt(Un){return Ce=Un,Q=wd(Ot,f),xe?it(Un):q}function _t(Un){var Ci=Un-Z,Ps=Un-Ce,YP=f-Ci;return Te?wr(YP,G-Ps):YP}function bt(Un){var Ci=Un-Z,Ps=Un-Ce;return Z===n||Ci>=f||Ci<0||Te&&Ps>=G}function Ot(){var Un=ch();if(bt(Un))return Bt(Un);Q=wd(Ot,_t(Un))}function Bt(Un){return Q=n,He&&T?it(Un):(T=B=n,q)}function ho(){Q!==n&&zE(Q),Ce=0,T=Z=B=Q=n}function Fr(){return Q===n?q:Bt(ch())}function mo(){var Un=ch(),Ci=bt(Un);if(T=arguments,B=this,Z=Un,Ci){if(Q===n)return yt(Z);if(Te)return zE(Q),Q=wd(Ot,f),it(Z)}return Q===n&&(Q=wd(Ot,f)),q}return mo.cancel=ho,mo.flush=Fr,mo}var S3=Mt(function(l,f){return bE(l,1,f)}),E3=Mt(function(l,f,y){return bE(l,Ko(f)||0,y)});function P3(l){return ws(l,O)}function uh(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new jo(s);var y=function(){var T=arguments,B=f?f.apply(this,T):T[0],G=y.cache;if(G.has(B))return G.get(B);var q=l.apply(this,T);return y.cache=G.set(B,q)||G,q};return y.cache=new(uh.Cache||ys),y}uh.Cache=ys;function dh(l){if(typeof l!="function")throw new jo(s);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function k3(l){return kP(2,l)}var I3=pD(function(l,f){f=f.length==1&&Pt(f[0])?En(f[0],uo(mt())):En(mr(f,1),uo(mt()));var y=f.length;return Mt(function(T){for(var B=-1,G=wr(T.length,y);++B<G;)T[B]=f[B].call(this,T[B]);return co(l,this,T)})}),v0=Mt(function(l,f){var y=Qs(f,mc(v0));return ws(l,$,n,f,y)}),MP=Mt(function(l,f){var y=Qs(f,mc(MP));return ws(l,I,n,f,y)}),$3=Cs(function(l,f){return ws(l,M,n,n,n,f)});function T3(l,f){if(typeof l!="function")throw new jo(s);return f=f===n?f:Tt(f),Mt(l,f)}function _3(l,f){if(typeof l!="function")throw new jo(s);return f=f==null?0:Jn(Tt(f),0),Mt(function(y){var T=y[f],B=tl(y,0,f);return T&&Ys(B,T),co(l,this,B)})}function M3(l,f,y){var T=!0,B=!0;if(typeof l!="function")throw new jo(s);return Rn(y)&&(T="leading"in y?!!y.leading:T,B="trailing"in y?!!y.trailing:B),_P(l,f,{leading:T,maxWait:f,trailing:B})}function R3(l){return PP(l,1)}function O3(l,f){return v0(t0(f),l)}function L3(){if(!arguments.length)return[];var l=arguments[0];return Pt(l)?l:[l]}function A3(l){return Uo(l,g)}function F3(l,f){return f=typeof f=="function"?f:n,Uo(l,g,f)}function N3(l){return Uo(l,h|g)}function D3(l,f){return f=typeof f=="function"?f:n,Uo(l,h|g,f)}function B3(l,f){return f==null||yE(l,f,sr(f))}function wi(l,f){return l===f||l!==l&&f!==f}var z3=rh(Vy),H3=rh(function(l,f){return l>=f}),aa=EE(function(){return arguments}())?EE:function(l){return Bn(l)&&Jt.call(l,"callee")&&!uE.call(l,"callee")},Pt=fe.isArray,j3=WS?uo(WS):QN;function Wr(l){return l!=null&&fh(l.length)&&!Ss(l)}function Vn(l){return Bn(l)&&Wr(l)}function V3(l){return l===!0||l===!1||Bn(l)&&Lr(l)==Se}var nl=rN||$0,U3=GS?uo(GS):XN;function W3(l){return Bn(l)&&l.nodeType===1&&!Cd(l)}function G3(l){if(l==null)return!0;if(Wr(l)&&(Pt(l)||typeof l=="string"||typeof l.splice=="function"||nl(l)||gc(l)||aa(l)))return!l.length;var f=Cr(l);if(f==Ee||f==Ue)return!l.size;if(bd(l))return!Gy(l).length;for(var y in l)if(Jt.call(l,y))return!1;return!0}function K3(l,f){return gd(l,f)}function q3(l,f,y){y=typeof y=="function"?y:n;var T=y?y(l,f):n;return T===n?gd(l,f,n,y):!!T}function y0(l){if(!Bn(l))return!1;var f=Lr(l);return f==ee||f==Ie||typeof l.message=="string"&&typeof l.name=="string"&&!Cd(l)}function Y3(l){return typeof l=="number"&&fE(l)}function Ss(l){if(!Rn(l))return!1;var f=Lr(l);return f==ke||f==_e||f==se||f==Ye}function RP(l){return typeof l=="number"&&l==Tt(l)}function fh(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=F}function Rn(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function Bn(l){return l!=null&&typeof l=="object"}var OP=KS?uo(KS):ZN;function Q3(l,f){return l===f||Wy(l,f,a0(f))}function X3(l,f,y){return y=typeof y=="function"?y:n,Wy(l,f,a0(f),y)}function J3(l){return LP(l)&&l!=+l}function Z3(l){if(FD(l))throw new Et(i);return PE(l)}function eB(l){return l===null}function tB(l){return l==null}function LP(l){return typeof l=="number"||Bn(l)&&Lr(l)==pe}function Cd(l){if(!Bn(l)||Lr(l)!=te)return!1;var f=Bp(l);if(f===null)return!0;var y=Jt.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&Ap.call(y)==X4}var b0=qS?uo(qS):eD;function nB(l){return RP(l)&&l>=-F&&l<=F}var AP=YS?uo(YS):tD;function ph(l){return typeof l=="string"||!Pt(l)&&Bn(l)&&Lr(l)==Be}function po(l){return typeof l=="symbol"||Bn(l)&&Lr(l)==ut}var gc=QS?uo(QS):nD;function rB(l){return l===n}function oB(l){return Bn(l)&&Cr(l)==at}function iB(l){return Bn(l)&&Lr(l)==St}var sB=rh(Ky),lB=rh(function(l,f){return l<=f});function FP(l){if(!l)return[];if(Wr(l))return ph(l)?yi(l):Ur(l);if(ad&&l[ad])return B4(l[ad]());var f=Cr(l),y=f==Ee?Ly:f==Ue?Rp:vc;return y(l)}function Es(l){if(!l)return l===0?l:0;if(l=Ko(l),l===V||l===-V){var f=l<0?-1:1;return f*z}return l===l?l:0}function Tt(l){var f=Es(l),y=f%1;return f===f?y?f-y:f:0}function NP(l){return l?oa(Tt(l),0,K):0}function Ko(l){if(typeof l=="number")return l;if(po(l))return W;if(Rn(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=nE(l);var y=jt.test(l);return y||Mn.test(l)?x4(l.slice(2),y?2:8):ft.test(l)?W:+l}function DP(l){return Bi(l,Gr(l))}function aB(l){return l?oa(Tt(l),-F,F):l===0?l:0}function Kt(l){return l==null?"":fo(l)}var cB=pc(function(l,f){if(bd(f)||Wr(f)){Bi(f,sr(f),l);return}for(var y in f)Jt.call(f,y)&&pd(l,y,f[y])}),BP=pc(function(l,f){Bi(f,Gr(f),l)}),hh=pc(function(l,f,y,T){Bi(f,Gr(f),l,T)}),uB=pc(function(l,f,y,T){Bi(f,sr(f),l,T)}),dB=Cs(zy);function fB(l,f){var y=fc(l);return f==null?y:vE(y,f)}var pB=Mt(function(l,f){l=an(l);var y=-1,T=f.length,B=T>2?f[2]:n;for(B&&Ar(f[0],f[1],B)&&(T=1);++y<T;)for(var G=f[y],q=Gr(G),Q=-1,Z=q.length;++Q<Z;){var Ce=q[Q],xe=l[Ce];(xe===n||wi(xe,cc[Ce])&&!Jt.call(l,Ce))&&(l[Ce]=G[Ce])}return l}),hB=Mt(function(l){return l.push(n,nP),co(zP,n,l)});function mB(l,f){return JS(l,mt(f,3),Di)}function gB(l,f){return JS(l,mt(f,3),jy)}function vB(l,f){return l==null?l:Hy(l,mt(f,3),Gr)}function yB(l,f){return l==null?l:xE(l,mt(f,3),Gr)}function bB(l,f){return l&&Di(l,mt(f,3))}function wB(l,f){return l&&jy(l,mt(f,3))}function CB(l){return l==null?[]:Yp(l,sr(l))}function xB(l){return l==null?[]:Yp(l,Gr(l))}function w0(l,f,y){var T=l==null?n:ia(l,f);return T===n?y:T}function SB(l,f){return l!=null&&iP(l,f,GN)}function C0(l,f){return l!=null&&iP(l,f,KN)}var EB=XE(function(l,f,y){f!=null&&typeof f.toString!="function"&&(f=Fp.call(f)),l[f]=y},S0(Kr)),PB=XE(function(l,f,y){f!=null&&typeof f.toString!="function"&&(f=Fp.call(f)),Jt.call(l,f)?l[f].push(y):l[f]=[y]},mt),kB=Mt(md);function sr(l){return Wr(l)?mE(l):Gy(l)}function Gr(l){return Wr(l)?mE(l,!0):rD(l)}function IB(l,f){var y={};return f=mt(f,3),Di(l,function(T,B,G){bs(y,f(T,B,G),T)}),y}function $B(l,f){var y={};return f=mt(f,3),Di(l,function(T,B,G){bs(y,B,f(T,B,G))}),y}var TB=pc(function(l,f,y){Qp(l,f,y)}),zP=pc(function(l,f,y,T){Qp(l,f,y,T)}),_B=Cs(function(l,f){var y={};if(l==null)return y;var T=!1;f=En(f,function(G){return G=el(G,l),T||(T=G.length>1),G}),Bi(l,s0(l),y),T&&(y=Uo(y,h|m|g,ED));for(var B=f.length;B--;)Jy(y,f[B]);return y});function MB(l,f){return HP(l,dh(mt(f)))}var RB=Cs(function(l,f){return l==null?{}:iD(l,f)});function HP(l,f){if(l==null)return{};var y=En(s0(l),function(T){return[T]});return f=mt(f),RE(l,y,function(T,B){return f(T,B[0])})}function OB(l,f,y){f=el(f,l);var T=-1,B=f.length;for(B||(B=1,l=n);++T<B;){var G=l==null?n:l[zi(f[T])];G===n&&(T=B,G=y),l=Ss(G)?G.call(l):G}return l}function LB(l,f,y){return l==null?l:vd(l,f,y)}function AB(l,f,y,T){return T=typeof T=="function"?T:n,l==null?l:vd(l,f,y,T)}var jP=eP(sr),VP=eP(Gr);function FB(l,f,y){var T=Pt(l),B=T||nl(l)||gc(l);if(f=mt(f,4),y==null){var G=l&&l.constructor;B?y=T?new G:[]:Rn(l)?y=Ss(G)?fc(Bp(l)):{}:y={}}return(B?Ho:Di)(l,function(q,Q,Z){return f(y,q,Q,Z)}),y}function NB(l,f){return l==null?!0:Jy(l,f)}function DB(l,f,y){return l==null?l:NE(l,f,t0(y))}function BB(l,f,y,T){return T=typeof T=="function"?T:n,l==null?l:NE(l,f,t0(y),T)}function vc(l){return l==null?[]:Oy(l,sr(l))}function zB(l){return l==null?[]:Oy(l,Gr(l))}function HB(l,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Ko(y),y=y===y?y:0),f!==n&&(f=Ko(f),f=f===f?f:0),oa(Ko(l),f,y)}function jB(l,f,y){return f=Es(f),y===n?(y=f,f=0):y=Es(y),l=Ko(l),qN(l,f,y)}function VB(l,f,y){if(y&&typeof y!="boolean"&&Ar(l,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof l=="boolean"&&(y=l,l=n)),l===n&&f===n?(l=0,f=1):(l=Es(l),f===n?(f=l,l=0):f=Es(f)),l>f){var T=l;l=f,f=T}if(y||l%1||f%1){var B=pE();return wr(l+B*(f-l+C4("1e-"+((B+"").length-1))),f)}return Yy(l,f)}var UB=hc(function(l,f,y){return f=f.toLowerCase(),l+(y?UP(f):f)});function UP(l){return x0(Kt(l).toLowerCase())}function WP(l){return l=Kt(l),l&&l.replace(ir,L4).replace(d4,"")}function WB(l,f,y){l=Kt(l),f=fo(f);var T=l.length;y=y===n?T:oa(Tt(y),0,T);var B=y;return y-=f.length,y>=0&&l.slice(y,B)==f}function GB(l){return l=Kt(l),l&&Xt.test(l)?l.replace(or,A4):l}function KB(l){return l=Kt(l),l&&De.test(l)?l.replace(ge,"\\$&"):l}var qB=hc(function(l,f,y){return l+(y?"-":"")+f.toLowerCase()}),YB=hc(function(l,f,y){return l+(y?" ":"")+f.toLowerCase()}),QB=qE("toLowerCase");function XB(l,f,y){l=Kt(l),f=Tt(f);var T=f?lc(l):0;if(!f||T>=f)return l;var B=(f-T)/2;return nh(Vp(B),y)+l+nh(jp(B),y)}function JB(l,f,y){l=Kt(l),f=Tt(f);var T=f?lc(l):0;return f&&T<f?l+nh(f-T,y):l}function ZB(l,f,y){l=Kt(l),f=Tt(f);var T=f?lc(l):0;return f&&T<f?nh(f-T,y)+l:l}function ez(l,f,y){return y||f==null?f=0:f&&(f=+f),lN(Kt(l).replace(dt,""),f||0)}function tz(l,f,y){return(y?Ar(l,f,y):f===n)?f=1:f=Tt(f),Qy(Kt(l),f)}function nz(){var l=arguments,f=Kt(l[0]);return l.length<3?f:f.replace(l[1],l[2])}var rz=hc(function(l,f,y){return l+(y?"_":"")+f.toLowerCase()});function oz(l,f,y){return y&&typeof y!="number"&&Ar(l,f,y)&&(f=y=n),y=y===n?K:y>>>0,y?(l=Kt(l),l&&(typeof f=="string"||f!=null&&!b0(f))&&(f=fo(f),!f&&sc(l))?tl(yi(l),0,y):l.split(f,y)):[]}var iz=hc(function(l,f,y){return l+(y?" ":"")+x0(f)});function sz(l,f,y){return l=Kt(l),y=y==null?0:oa(Tt(y),0,l.length),f=fo(f),l.slice(y,y+f.length)==f}function lz(l,f,y){var T=U.templateSettings;y&&Ar(l,f,y)&&(f=n),l=Kt(l),f=hh({},f,T,tP);var B=hh({},f.imports,T.imports,tP),G=sr(B),q=Oy(B,G),Q,Z,Ce=0,xe=f.interpolate||Ip,Te="__p += '",He=Ay((f.escape||Ip).source+"|"+xe.source+"|"+(xe===Ni?me:Ip).source+"|"+(f.evaluate||Ip).source+"|$","g"),it="//# sourceURL="+(Jt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++g4+"]")+`
|
|
303
|
+
`;l.replace(He,function(bt,Ot,Bt,ho,Fr,mo){return Bt||(Bt=ho),Te+=l.slice(Ce,mo).replace(KF,F4),Ot&&(Q=!0,Te+=`' +
|
|
304
|
+
__e(`+Ot+`) +
|
|
305
|
+
'`),Fr&&(Z=!0,Te+=`';
|
|
306
|
+
`+Fr+`;
|
|
307
|
+
__p += '`),Bt&&(Te+=`' +
|
|
308
|
+
((__t = (`+Bt+`)) == null ? '' : __t) +
|
|
309
|
+
'`),Ce=mo+bt.length,bt}),Te+=`';
|
|
310
|
+
`;var yt=Jt.call(f,"variable")&&f.variable;if(!yt)Te=`with (obj) {
|
|
311
|
+
`+Te+`
|
|
312
|
+
}
|
|
313
|
+
`;else if(ao.test(yt))throw new Et(a);Te=(Z?Te.replace(xn,""):Te).replace(Tn,"$1").replace(Kn,"$1;"),Te="function("+(yt||"obj")+`) {
|
|
314
|
+
`+(yt?"":`obj || (obj = {});
|
|
315
|
+
`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(Z?`, __j = Array.prototype.join;
|
|
316
|
+
function print() { __p += __j.call(arguments, '') }
|
|
317
|
+
`:`;
|
|
318
|
+
`)+Te+`return __p
|
|
319
|
+
}`;var _t=KP(function(){return Wt(G,it+"return "+Te).apply(n,q)});if(_t.source=Te,y0(_t))throw _t;return _t}function az(l){return Kt(l).toLowerCase()}function cz(l){return Kt(l).toUpperCase()}function uz(l,f,y){if(l=Kt(l),l&&(y||f===n))return nE(l);if(!l||!(f=fo(f)))return l;var T=yi(l),B=yi(f),G=rE(T,B),q=oE(T,B)+1;return tl(T,G,q).join("")}function dz(l,f,y){if(l=Kt(l),l&&(y||f===n))return l.slice(0,sE(l)+1);if(!l||!(f=fo(f)))return l;var T=yi(l),B=oE(T,yi(f))+1;return tl(T,0,B).join("")}function fz(l,f,y){if(l=Kt(l),l&&(y||f===n))return l.replace(dt,"");if(!l||!(f=fo(f)))return l;var T=yi(l),B=rE(T,yi(f));return tl(T,B).join("")}function pz(l,f){var y=A,T=L;if(Rn(f)){var B="separator"in f?f.separator:B;y="length"in f?Tt(f.length):y,T="omission"in f?fo(f.omission):T}l=Kt(l);var G=l.length;if(sc(l)){var q=yi(l);G=q.length}if(y>=G)return l;var Q=y-lc(T);if(Q<1)return T;var Z=q?tl(q,0,Q).join(""):l.slice(0,Q);if(B===n)return Z+T;if(q&&(Q+=Z.length-Q),b0(B)){if(l.slice(Q).search(B)){var Ce,xe=Z;for(B.global||(B=Ay(B.source,Kt(We.exec(B))+"g")),B.lastIndex=0;Ce=B.exec(xe);)var Te=Ce.index;Z=Z.slice(0,Te===n?Q:Te)}}else if(l.indexOf(fo(B),Q)!=Q){var He=Z.lastIndexOf(B);He>-1&&(Z=Z.slice(0,He))}return Z+T}function hz(l){return l=Kt(l),l&&mn.test(l)?l.replace(rr,V4):l}var mz=hc(function(l,f,y){return l+(y?" ":"")+f.toUpperCase()}),x0=qE("toUpperCase");function GP(l,f,y){return l=Kt(l),f=y?n:f,f===n?D4(l)?G4(l):T4(l):l.match(f)||[]}var KP=Mt(function(l,f){try{return co(l,n,f)}catch(y){return y0(y)?y:new Et(y)}}),gz=Cs(function(l,f){return Ho(f,function(y){y=zi(y),bs(l,y,g0(l[y],l))}),l});function vz(l){var f=l==null?0:l.length,y=mt();return l=f?En(l,function(T){if(typeof T[1]!="function")throw new jo(s);return[y(T[0]),T[1]]}):[],Mt(function(T){for(var B=-1;++B<f;){var G=l[B];if(co(G[0],this,T))return co(G[1],this,T)}})}function yz(l){return VN(Uo(l,h))}function S0(l){return function(){return l}}function bz(l,f){return l==null||l!==l?f:l}var wz=QE(),Cz=QE(!0);function Kr(l){return l}function E0(l){return kE(typeof l=="function"?l:Uo(l,h))}function xz(l){return $E(Uo(l,h))}function Sz(l,f){return TE(l,Uo(f,h))}var Ez=Mt(function(l,f){return function(y){return md(y,l,f)}}),Pz=Mt(function(l,f){return function(y){return md(l,y,f)}});function P0(l,f,y){var T=sr(f),B=Yp(f,T);y==null&&!(Rn(f)&&(B.length||!T.length))&&(y=f,f=l,l=this,B=Yp(f,sr(f)));var G=!(Rn(y)&&"chain"in y)||!!y.chain,q=Ss(l);return Ho(B,function(Q){var Z=f[Q];l[Q]=Z,q&&(l.prototype[Q]=function(){var Ce=this.__chain__;if(G||Ce){var xe=l(this.__wrapped__),Te=xe.__actions__=Ur(this.__actions__);return Te.push({func:Z,args:arguments,thisArg:l}),xe.__chain__=Ce,xe}return Z.apply(l,Ys([this.value()],arguments))})}),l}function kz(){return hr._===this&&(hr._=J4),this}function k0(){}function Iz(l){return l=Tt(l),Mt(function(f){return _E(f,l)})}var $z=r0(En),Tz=r0(XS),_z=r0($y);function qP(l){return u0(l)?Ty(zi(l)):sD(l)}function Mz(l){return function(f){return l==null?n:ia(l,f)}}var Rz=JE(),Oz=JE(!0);function I0(){return[]}function $0(){return!1}function Lz(){return{}}function Az(){return""}function Fz(){return!0}function Nz(l,f){if(l=Tt(l),l<1||l>F)return[];var y=K,T=wr(l,K);f=mt(f),l-=K;for(var B=Ry(T,f);++y<l;)f(y);return B}function Dz(l){return Pt(l)?En(l,zi):po(l)?[l]:Ur(hP(Kt(l)))}function Bz(l){var f=++Q4;return Kt(l)+f}var zz=th(function(l,f){return l+f},0),Hz=o0("ceil"),jz=th(function(l,f){return l/f},1),Vz=o0("floor");function Uz(l){return l&&l.length?qp(l,Kr,Vy):n}function Wz(l,f){return l&&l.length?qp(l,mt(f,2),Vy):n}function Gz(l){return eE(l,Kr)}function Kz(l,f){return eE(l,mt(f,2))}function qz(l){return l&&l.length?qp(l,Kr,Ky):n}function Yz(l,f){return l&&l.length?qp(l,mt(f,2),Ky):n}var Qz=th(function(l,f){return l*f},1),Xz=o0("round"),Jz=th(function(l,f){return l-f},0);function Zz(l){return l&&l.length?My(l,Kr):0}function e6(l,f){return l&&l.length?My(l,mt(f,2)):0}return U.after=x3,U.ary=PP,U.assign=cB,U.assignIn=BP,U.assignInWith=hh,U.assignWith=uB,U.at=dB,U.before=kP,U.bind=g0,U.bindAll=gz,U.bindKey=IP,U.castArray=L3,U.chain=xP,U.chunk=VD,U.compact=UD,U.concat=WD,U.cond=vz,U.conforms=yz,U.constant=S0,U.countBy=Z5,U.create=fB,U.curry=$P,U.curryRight=TP,U.debounce=_P,U.defaults=pB,U.defaultsDeep=hB,U.defer=S3,U.delay=E3,U.difference=GD,U.differenceBy=KD,U.differenceWith=qD,U.drop=YD,U.dropRight=QD,U.dropRightWhile=XD,U.dropWhile=JD,U.fill=ZD,U.filter=t3,U.flatMap=o3,U.flatMapDeep=i3,U.flatMapDepth=s3,U.flatten=yP,U.flattenDeep=e5,U.flattenDepth=t5,U.flip=P3,U.flow=wz,U.flowRight=Cz,U.fromPairs=n5,U.functions=CB,U.functionsIn=xB,U.groupBy=l3,U.initial=o5,U.intersection=i5,U.intersectionBy=s5,U.intersectionWith=l5,U.invert=EB,U.invertBy=PB,U.invokeMap=c3,U.iteratee=E0,U.keyBy=u3,U.keys=sr,U.keysIn=Gr,U.map=ah,U.mapKeys=IB,U.mapValues=$B,U.matches=xz,U.matchesProperty=Sz,U.memoize=uh,U.merge=TB,U.mergeWith=zP,U.method=Ez,U.methodOf=Pz,U.mixin=P0,U.negate=dh,U.nthArg=Iz,U.omit=_B,U.omitBy=MB,U.once=k3,U.orderBy=d3,U.over=$z,U.overArgs=I3,U.overEvery=Tz,U.overSome=_z,U.partial=v0,U.partialRight=MP,U.partition=f3,U.pick=RB,U.pickBy=HP,U.property=qP,U.propertyOf=Mz,U.pull=d5,U.pullAll=wP,U.pullAllBy=f5,U.pullAllWith=p5,U.pullAt=h5,U.range=Rz,U.rangeRight=Oz,U.rearg=$3,U.reject=m3,U.remove=m5,U.rest=T3,U.reverse=h0,U.sampleSize=v3,U.set=LB,U.setWith=AB,U.shuffle=y3,U.slice=g5,U.sortBy=C3,U.sortedUniq=S5,U.sortedUniqBy=E5,U.split=oz,U.spread=_3,U.tail=P5,U.take=k5,U.takeRight=I5,U.takeRightWhile=$5,U.takeWhile=T5,U.tap=U5,U.throttle=M3,U.thru=lh,U.toArray=FP,U.toPairs=jP,U.toPairsIn=VP,U.toPath=Dz,U.toPlainObject=DP,U.transform=FB,U.unary=R3,U.union=_5,U.unionBy=M5,U.unionWith=R5,U.uniq=O5,U.uniqBy=L5,U.uniqWith=A5,U.unset=NB,U.unzip=m0,U.unzipWith=CP,U.update=DB,U.updateWith=BB,U.values=vc,U.valuesIn=zB,U.without=F5,U.words=GP,U.wrap=O3,U.xor=N5,U.xorBy=D5,U.xorWith=B5,U.zip=z5,U.zipObject=H5,U.zipObjectDeep=j5,U.zipWith=V5,U.entries=jP,U.entriesIn=VP,U.extend=BP,U.extendWith=hh,P0(U,U),U.add=zz,U.attempt=KP,U.camelCase=UB,U.capitalize=UP,U.ceil=Hz,U.clamp=HB,U.clone=A3,U.cloneDeep=N3,U.cloneDeepWith=D3,U.cloneWith=F3,U.conformsTo=B3,U.deburr=WP,U.defaultTo=bz,U.divide=jz,U.endsWith=WB,U.eq=wi,U.escape=GB,U.escapeRegExp=KB,U.every=e3,U.find=n3,U.findIndex=gP,U.findKey=mB,U.findLast=r3,U.findLastIndex=vP,U.findLastKey=gB,U.floor=Vz,U.forEach=SP,U.forEachRight=EP,U.forIn=vB,U.forInRight=yB,U.forOwn=bB,U.forOwnRight=wB,U.get=w0,U.gt=z3,U.gte=H3,U.has=SB,U.hasIn=C0,U.head=bP,U.identity=Kr,U.includes=a3,U.indexOf=r5,U.inRange=jB,U.invoke=kB,U.isArguments=aa,U.isArray=Pt,U.isArrayBuffer=j3,U.isArrayLike=Wr,U.isArrayLikeObject=Vn,U.isBoolean=V3,U.isBuffer=nl,U.isDate=U3,U.isElement=W3,U.isEmpty=G3,U.isEqual=K3,U.isEqualWith=q3,U.isError=y0,U.isFinite=Y3,U.isFunction=Ss,U.isInteger=RP,U.isLength=fh,U.isMap=OP,U.isMatch=Q3,U.isMatchWith=X3,U.isNaN=J3,U.isNative=Z3,U.isNil=tB,U.isNull=eB,U.isNumber=LP,U.isObject=Rn,U.isObjectLike=Bn,U.isPlainObject=Cd,U.isRegExp=b0,U.isSafeInteger=nB,U.isSet=AP,U.isString=ph,U.isSymbol=po,U.isTypedArray=gc,U.isUndefined=rB,U.isWeakMap=oB,U.isWeakSet=iB,U.join=a5,U.kebabCase=qB,U.last=Go,U.lastIndexOf=c5,U.lowerCase=YB,U.lowerFirst=QB,U.lt=sB,U.lte=lB,U.max=Uz,U.maxBy=Wz,U.mean=Gz,U.meanBy=Kz,U.min=qz,U.minBy=Yz,U.stubArray=I0,U.stubFalse=$0,U.stubObject=Lz,U.stubString=Az,U.stubTrue=Fz,U.multiply=Qz,U.nth=u5,U.noConflict=kz,U.noop=k0,U.now=ch,U.pad=XB,U.padEnd=JB,U.padStart=ZB,U.parseInt=ez,U.random=VB,U.reduce=p3,U.reduceRight=h3,U.repeat=tz,U.replace=nz,U.result=OB,U.round=Xz,U.runInContext=J,U.sample=g3,U.size=b3,U.snakeCase=rz,U.some=w3,U.sortedIndex=v5,U.sortedIndexBy=y5,U.sortedIndexOf=b5,U.sortedLastIndex=w5,U.sortedLastIndexBy=C5,U.sortedLastIndexOf=x5,U.startCase=iz,U.startsWith=sz,U.subtract=Jz,U.sum=Zz,U.sumBy=e6,U.template=lz,U.times=Nz,U.toFinite=Es,U.toInteger=Tt,U.toLength=NP,U.toLower=az,U.toNumber=Ko,U.toSafeInteger=aB,U.toString=Kt,U.toUpper=cz,U.trim=uz,U.trimEnd=dz,U.trimStart=fz,U.truncate=pz,U.unescape=hz,U.uniqueId=Bz,U.upperCase=mz,U.upperFirst=x0,U.each=SP,U.eachRight=EP,U.first=bP,P0(U,function(){var l={};return Di(U,function(f,y){Jt.call(U.prototype,y)||(l[y]=f)}),l}(),{chain:!1}),U.VERSION=r,Ho(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){U[l].placeholder=U}),Ho(["drop","take"],function(l,f){Nt.prototype[l]=function(y){y=y===n?1:Jn(Tt(y),0);var T=this.__filtered__&&!f?new Nt(this):this.clone();return T.__filtered__?T.__takeCount__=wr(y,T.__takeCount__):T.__views__.push({size:wr(y,K),type:l+(T.__dir__<0?"Right":"")}),T},Nt.prototype[l+"Right"]=function(y){return this.reverse()[l](y).reverse()}}),Ho(["filter","map","takeWhile"],function(l,f){var y=f+1,T=y==R||y==H;Nt.prototype[l]=function(B){var G=this.clone();return G.__iteratees__.push({iteratee:mt(B,3),type:y}),G.__filtered__=G.__filtered__||T,G}}),Ho(["head","last"],function(l,f){var y="take"+(f?"Right":"");Nt.prototype[l]=function(){return this[y](1).value()[0]}}),Ho(["initial","tail"],function(l,f){var y="drop"+(f?"":"Right");Nt.prototype[l]=function(){return this.__filtered__?new Nt(this):this[y](1)}}),Nt.prototype.compact=function(){return this.filter(Kr)},Nt.prototype.find=function(l){return this.filter(l).head()},Nt.prototype.findLast=function(l){return this.reverse().find(l)},Nt.prototype.invokeMap=Mt(function(l,f){return typeof l=="function"?new Nt(this):this.map(function(y){return md(y,l,f)})}),Nt.prototype.reject=function(l){return this.filter(dh(mt(l)))},Nt.prototype.slice=function(l,f){l=Tt(l);var y=this;return y.__filtered__&&(l>0||f<0)?new Nt(y):(l<0?y=y.takeRight(-l):l&&(y=y.drop(l)),f!==n&&(f=Tt(f),y=f<0?y.dropRight(-f):y.take(f-l)),y)},Nt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Nt.prototype.toArray=function(){return this.take(K)},Di(Nt.prototype,function(l,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),B=U[T?"take"+(f=="last"?"Right":""):f],G=T||/^find/.test(f);B&&(U.prototype[f]=function(){var q=this.__wrapped__,Q=T?[1]:arguments,Z=q instanceof Nt,Ce=Q[0],xe=Z||Pt(q),Te=function(Ot){var Bt=B.apply(U,Ys([Ot],Q));return T&&He?Bt[0]:Bt};xe&&y&&typeof Ce=="function"&&Ce.length!=1&&(Z=xe=!1);var He=this.__chain__,it=!!this.__actions__.length,yt=G&&!He,_t=Z&&!it;if(!G&&xe){q=_t?q:new Nt(this);var bt=l.apply(q,Q);return bt.__actions__.push({func:lh,args:[Te],thisArg:n}),new Vo(bt,He)}return yt&&_t?l.apply(this,Q):(bt=this.thru(Te),yt?T?bt.value()[0]:bt.value():bt)})}),Ho(["pop","push","shift","sort","splice","unshift"],function(l){var f=Op[l],y=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",T=/^(?:pop|shift)$/.test(l);U.prototype[l]=function(){var B=arguments;if(T&&!this.__chain__){var G=this.value();return f.apply(Pt(G)?G:[],B)}return this[y](function(q){return f.apply(Pt(q)?q:[],B)})}}),Di(Nt.prototype,function(l,f){var y=U[f];if(y){var T=y.name+"";Jt.call(dc,T)||(dc[T]=[]),dc[T].push({name:f,func:y})}}),dc[eh(n,w).name]=[{name:"wrapper",func:n}],Nt.prototype.clone=hN,Nt.prototype.reverse=mN,Nt.prototype.value=gN,U.prototype.at=W5,U.prototype.chain=G5,U.prototype.commit=K5,U.prototype.next=q5,U.prototype.plant=Q5,U.prototype.reverse=X5,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=J5,U.prototype.first=U.prototype.head,ad&&(U.prototype[ad]=Y5),U},ac=K4();ea?((ea.exports=ac)._=ac,Ey._=ac):hr._=ac}).call(bn)})(ag,ag.exports);var qc=ag.exports;const It=ip(qc),cg=mre()+"/~/api/",Cne={loginSrp1:90,get_status:20},eL={};function xne(e){Object.assign(eL,e)}function xt(e,t,n={}){var s,a,c;It.defaults(n,eL);const r=(s=n.modal)==null?void 0:s.call(n,e,t),o=rL();o&&(t=$e({csrf:o},t));const i=new AbortController;return n.timeout!==!1&&setTimeout(()=>i.abort("timeout"),1e3*((c=(a=Cne[e])!=null?a:n.timeout)!=null?c:10)),Object.assign(fetch(cg+e,{method:"POST",headers:{"content-type":"application/json"},signal:i.signal,body:t&&JSON.stringify(t)}).then(d=>pt(this,null,function*(){var g;r==null||r();let p=yield d.text(),h;try{h=JSON.parse(p)}catch(b){}const m=h!=null?h:p;if(console.debug(d.ok?"API":"API FAILED",e,t,">>",m),yield(g=n.onResponse)==null?void 0:g.call(n,d,m),!d.ok)throw new tL(d.status,h===void 0?p:`Failed API ${e}: ${d.statusText}`,h);return m}),d=>{var p;throw r==null||r(),(p=d==null?void 0:d.message)!=null&&p.includes("fetch")?Error("Network error"):d}),{abort(){i.abort("cancel")}})}class tL extends Error{constructor(t,n,r){super(n,{cause:r}),this.code=t}get data(){return this.cause}}function jv(e,t){const[n,r]=Yr(void 0),[o,i]=Yr(void 0),[s,a]=Yr(0),c=u.useRef(),d=u.useRef();u.useEffect(()=>{var b,v;if((b=c.current)==null||b.abort(),r(void 0),i(void 0),!e)return;let h=!1;const m=xt(e,t),g=m.then(E=>h||r(E),E=>h||i(E)).finally(()=>c.current=void 0);c.current=Object.assign(g,{abort(){h=!0,m.abort()}}),(v=d.current)==null||v.resolve(g)},[e,JSON.stringify(t),s]);const p=u.useCallback(()=>c.current||a(h=>h+1)||(d.current=pre()),[a]);return[n,o,p]}function nL(e,t,n){console.debug("API EVENTS",e,t);const r={};for(const s in t){const a=t[s];a!==void 0&&(r[s]=JSON.stringify(a))}const o=rL();o&&(r.csrf=JSON.stringify(o));const i=new EventSource(cg+e+"?"+new URLSearchParams(r));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 rL(){return lre("csrf")}function Sne(e,t={}){const[n,r]=Yr(void 0),[o,i]=Yr(void 0),[s,a]=Yr(!1);return u.useEffect(()=>{const c=nL(e,t,(p,h)=>{switch(p){case"error":return i("Connection error"),d();case"closed":return d();case"msg":return(c==null?void 0:c.readyState)===(c==null?void 0:c.CLOSED)?d():r(h)}});return()=>{c.close(),d()};function d(){a(!1)}},[e,JSON.stringify(t)]),{data:n,loading:s,error:o}}globalThis&&globalThis.__awaiter;function wx(e,t){const[n,r]=u.useState(e);return u.useEffect(()=>{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function Ene(e,t,n,r){const o=u.useRef(t);oL(()=>{o.current=t},[t]),u.useEffect(()=>{var i;const s=(i=n==null?void 0:n.current)!==null&&i!==void 0?i:window;if(!(s&&s.addEventListener))return;const a=c=>o.current(c);return s.addEventListener(e,a,r),()=>{s.removeEventListener(e,a,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;function Pne(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}const oL=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;function kne(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Ene("resize",n),oL(()=>{n()},[]),e}function Yr(e){const t=Pne(),[n,r]=u.useState(e),o=u.useCallback(i=>{t()&&r(i)},[t,r]);return[n,o,t]}function Ine(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function $ne(e,t){const n=[];for(const r of Ine(t))n.push(r,e);return n.splice(-1,1),Wf(n)}function Wf(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?Wf(t):u.createElement(u.Fragment,{key:n,children:t}))}const Tne=Symbol(),Cx=Symbol(),Bd="a",mm="w";let _ne=(e,t)=>new Proxy(e,t);const nw=Object.getPrototypeOf,rw=new WeakMap,iL=e=>e&&(rw.has(e)?rw.get(e):nw(e)===Object.prototype||nw(e)===Array.prototype),c$=e=>typeof e=="object"&&e!==null,Mne=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(nw(e),t)},sL=e=>e[Cx]||e,lL=(e,t,n,r)=>{if(!iL(e))return e;let o=r&&r.get(e);if(!o){const c=sL(e);o=(d=>Object.values(Object.getOwnPropertyDescriptors(d)).some(p=>!p.configurable&&!p.writable))(c)?[c,Mne(c)]:[c],r==null||r.set(e,o)}const[i,s]=o;let a=n&&n.get(i);return a&&a[1].f===!!s||(a=((c,d)=>{const p={f:d};let h=!1;const m=(b,v)=>{if(!h){let E=p[Bd].get(c);if(E||(E={},p[Bd].set(c,E)),b===mm)E[mm]=!0;else{let w=E[b];w||(w=new Set,E[b]=w),w.add(v)}}},g={get:(b,v)=>v===Cx?c:(m("k",v),lL(Reflect.get(b,v),p[Bd],p.c,p.t)),has:(b,v)=>v===Tne?(h=!0,p[Bd].delete(c),!0):(m("h",v),Reflect.has(b,v)),getOwnPropertyDescriptor:(b,v)=>(m("o",v),Reflect.getOwnPropertyDescriptor(b,v)),ownKeys:b=>(m(mm),Reflect.ownKeys(b))};return d&&(g.set=g.deleteProperty=()=>!1),[g,p]})(i,!!s),a[1].p=_ne(s||i,a[0]),n&&n.set(i,a)),a[1][Bd]=t,a[1].c=n,a[1].t=r,a[1].p},aL=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!c$(e)||!c$(t))return!0;const o=n.get(sL(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;try{for(const s of o.h||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(o[mm]===!0){if(i=((s,a)=>{const c=Reflect.ownKeys(s),d=Reflect.ownKeys(a);return c.length!==d.length||c.some((p,h)=>p!==d[h])})(e,t),i)return i}else for(const s of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),i)return i;for(const s of o.k||[])if(i=aL(e[s],t[s],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}},Rne=e=>iL(e)&&e[Cx]||null,u$=(e,t=!0)=>{rw.set(e,t)};const b1=e=>typeof e=="object"&&e!==null,pl=new WeakMap,Vh=new WeakSet,One=(e=Object.is,t=(d,p)=>new Proxy(d,p),n=d=>b1(d)&&!Vh.has(d)&&(Array.isArray(d)||!(Symbol.iterator in d))&&!(d instanceof WeakMap)&&!(d instanceof WeakSet)&&!(d instanceof Error)&&!(d instanceof Number)&&!(d instanceof Date)&&!(d instanceof String)&&!(d instanceof RegExp)&&!(d instanceof ArrayBuffer),r=d=>{switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:throw d}},o=new WeakMap,i=(d,p,h=r)=>{const m=o.get(d);if((m==null?void 0:m[0])===p)return m[1];const g=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return u$(g,!0),o.set(d,[p,g]),Reflect.ownKeys(d).forEach(b=>{if(Object.getOwnPropertyDescriptor(g,b))return;const v=Reflect.get(d,b),E={value:v,enumerable:!0,configurable:!0};if(Vh.has(v))u$(v,!1);else if(v instanceof Promise)delete E.value,E.get=()=>h(v);else if(pl.has(v)){const[w,C]=pl.get(v);E.value=i(w,C(),h)}Object.defineProperty(g,b,E)}),g},s=new WeakMap,a=[1,1],c=d=>{if(!b1(d))throw new Error("object required");const p=s.get(d);if(p)return p;let h=a[0];const m=new Set,g=(O,A=++a[0])=>{h!==A&&(h=A,m.forEach(L=>L(O,A)))};let b=a[1];const v=(O=++a[1])=>(b!==O&&!m.size&&(b=O,w.forEach(([A])=>{const L=A[1](O);L>h&&(h=L)})),h),E=O=>(A,L)=>{const D=[...A];D[1]=[O,...D[1]],g(D,L)},w=new Map,C=(O,A)=>{if(m.size){const L=A[3](E(O));w.set(O,[A,L])}else w.set(O,[A])},x=O=>{var A;const L=w.get(O);L&&(w.delete(O),(A=L[1])==null||A.call(L))},P=O=>(m.add(O),m.size===1&&w.forEach(([L,D],j)=>{const R=L[3](E(j));w.set(j,[L,R])}),()=>{m.delete(O),m.size===0&&w.forEach(([L,D],j)=>{D&&(D(),w.set(j,[L]))})}),$=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),k=t($,{deleteProperty(O,A){const L=Reflect.get(O,A);x(A);const D=Reflect.deleteProperty(O,A);return D&&g(["delete",[A],L]),D},set(O,A,L,D){const j=Reflect.has(O,A),R=Reflect.get(O,A,D);if(j&&(e(R,L)||s.has(L)&&e(R,s.get(L))))return!0;x(A),b1(L)&&(L=Rne(L)||L);let N=L;if(L instanceof Promise)L.then(H=>{L.status="fulfilled",L.value=H,g(["resolve",[A],H])}).catch(H=>{L.status="rejected",L.reason=H,g(["reject",[A],H])});else{!pl.has(L)&&n(L)&&(N=c(L));const H=!Vh.has(N)&&pl.get(N);H&&C(A,H)}return Reflect.set(O,A,N,D),g(["set",[A],L,R]),!0}});s.set(d,k);const M=[$,v,i,P];return pl.set(k,M),Reflect.ownKeys(d).forEach(O=>{const A=Object.getOwnPropertyDescriptor(d,O);"value"in A&&(k[O]=d[O],delete A.value,delete A.writable),Object.defineProperty($,O,A)}),k})=>[c,pl,Vh,e,t,n,r,o,i,s,a],[Lne]=One();function xx(e={}){return Lne(e)}function Sx(e,t,n){const r=pl.get(e);let o;const i=[],s=r[3];let a=!1;const d=s(p=>{if(i.push(p),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,a&&t(i.splice(0))}))});return a=!0,()=>{a=!1,d()}}function d$(e,t){const n=pl.get(e),[r,o,i]=n;return i(r,o(),t)}var cL={exports:{}},uL={};/**
|
|
320
|
+
* @license React
|
|
321
|
+
* use-sync-external-store-shim.production.min.js
|
|
322
|
+
*
|
|
323
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
324
|
+
*
|
|
325
|
+
* This source code is licensed under the MIT license found in the
|
|
326
|
+
* LICENSE file in the root directory of this source tree.
|
|
327
|
+
*/var Iu=u;function Ane(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fne=typeof Object.is=="function"?Object.is:Ane,Nne=Iu.useState,Dne=Iu.useEffect,Bne=Iu.useLayoutEffect,zne=Iu.useDebugValue;function Hne(e,t){var n=t(),r=Nne({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Bne(function(){o.value=n,o.getSnapshot=t,w1(o)&&i({inst:o})},[e,n,t]),Dne(function(){return w1(o)&&i({inst:o}),e(function(){w1(o)&&i({inst:o})})},[e]),zne(n),n}function w1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fne(e,n)}catch(r){return!0}}function jne(e,t){return t()}var Vne=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?jne:Hne;uL.useSyncExternalStore=Iu.useSyncExternalStore!==void 0?Iu.useSyncExternalStore:Vne;cL.exports=uL;var Une=cL.exports;const Wne=ip(Une),{use:f$}=Po,{useSyncExternalStore:Gne}=Wne;const Kne=new WeakMap;function Ex(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const s=Gne(u.useCallback(d=>{const p=Sx(e,d,n);return d(),p},[e,n]),()=>{const d=d$(e,f$);try{if(!i&&r.current&&o.current&&!aL(r.current,d,o.current,new WeakMap))return r.current}catch(p){}return d},()=>d$(e,f$));i=!1;const a=new WeakMap;u.useEffect(()=>{r.current=s,o.current=a});const c=u.useMemo(()=>new WeakMap,[]);return lL(s,a,c,Kne)}const Ia=xx([]),gm={closableContent:"x",padding:!0};function qne(){const e=Ex(Ia);return u.createElement(u.Fragment,{},e.length>0&&e.map(t=>u.createElement(Yne,$e({key:t.$id},t))))}function Yne(e){var r;const t=u.useRef();if(u.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=$e($e({},gm),e),e.Container)return u.createElement(e.Container,e);return u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:Qne,onClick:o=>o.target===o.currentTarget&&Li()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",$e({className:"dialog",style:$e($e({},n()),(r=e.dialogProps)==null?void 0:r.style),onClick(o){o.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",{className:"dialog-icon dialog-closer",onClick(){Li()}},e.closableContent),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"},ow(e.icon)),u.createElement("div",{className:"dialog-title"},ow(e.title)),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))));function n(){const{innerWidth:o,innerHeight:i}=window,s=e.position;return s&&$e($e({margin:"1em",position:"absolute"},s[0]<o/2?{left:s[0]}:{right:o-s[0]}),s[1]<i/2?{top:s[1]}:{bottom:i-s[1]})}}function ow(e){return typeof e=="function"?u.createElement(e):e}function Qne(e){e.key==="Escape"&&Li()}function vi(e){const t=Math.random();return e.$id=t,Ia.push(e),n=>{var o;const r=Ia.findIndex(i=>i.$id===t);r<0||(Ia.splice(r,1),(o=e.onClose)==null||o.call(e,n))}}function Li(e){var n;let t=Ia.length;for(;t--;){const r=Ia[t];if(!r.reserveClosing)return Ia.splice(t,1),(n=r.onClose)==null?void 0:n.call(r,e)}}var $a={},Vv={},$u={};const Xne={},Jne=Object.freeze(Object.defineProperty({__proto__:null,default:Xne},Symbol.toStringTag,{value:"Module"})),p$=i6(Jne);Object.defineProperty($u,"__esModule",{value:!0});var h$=$u.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||p$.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);h$=$u.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=p$,n=r=>o=>t.createHash(r).update(o).digest().buffer;h$=$u.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(Vv,"__esModule",{value:!0});Vv.SRPParameters=void 0;const Uh=$u;class Tu{constructor(t=Tu.PrimeGroup[2048],n=Tu.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}Vv.SRPParameters=Tu;Tu.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)}};Tu.H={SHA1:Uh.crossEnvCrypto.hashFunctions.SHA1,SHA256:Uh.crossEnvCrypto.hashFunctions.SHA256,SHA384:Uh.crossEnvCrypto.hashFunctions.SHA384,SHA512:Uh.crossEnvCrypto.hashFunctions.SHA512};var Uv={},Wv={};(function(e){var t=bn&&bn.__awaiter||function(x,P,$,I){function k(M){return M instanceof $?M:new $(function(O){O(M)})}return new($||($=Promise))(function(M,O){function A(j){try{D(I.next(j))}catch(R){O(R)}}function L(j){try{D(I.throw(j))}catch(R){O(R)}}function D(j){j.done?M(j.value):k(j.value).then(A,L)}D((I=I.apply(x,P||[])).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=$u,r=BigInt(0),o=BigInt(1),i=BigInt(2),s=x=>{const P=x.toString(16),$=new ArrayBuffer(Math.ceil(P.length/2)),I=new Uint8Array($);let k=0;P.length%2!==0&&(I[0]=parseInt(P[0],16),k=1);for(let M=0;M<$.byteLength;M++)I[M+k]=parseInt(P.slice(2*M+k,2*M+2+k),16);return $};e.bigIntToArrayBuffer=s;const a=x=>{const P=[];return new Uint8Array(x).forEach($=>{P.push(("0"+$.toString(16)).slice(-2))}),BigInt(`0x${P.join("")}`)};e.arrayBufferToBigInt=a;function c(x){return new TextEncoder().encode(x).buffer}e.stringToArrayBuffer=c;const d=(x,P)=>{const $=new Uint8Array(x);if($.length<P){const I=new Uint8Array(P);return I.fill(0,0,P-$.length),I.set($,P-$.length),I}return $};e.padStartArrayBuffer=d;function p(x,...P){const $=P.reduce((k,M)=>k+M.byteLength,0),I=new Uint8Array($);for(let k=0,M=0;M<P.length;M++)I.set(new Uint8Array(P[M]),k),k+=P[M].byteLength;return x.H(I)}e.hash=p;function h(x,P,...$){const I=$.map(k=>e.padStartArrayBuffer(k,P));return p(x,...I)}e.hashPadded=h;function m(x=10){const P=new Uint8Array(Math.ceil(Math.ceil(x/2)));return n.crossEnvCrypto.randomBytes(P),P.reduce(($,I)=>{const k=I.toString(16).toString();return k.length===1?$+"0"+k:$+k},"").slice(0,x)}e.generateRandomString=m;function g(x=16){return e.arrayBufferToBigInt(C(x))}e.generateRandomBigInt=g;function b(x,P,$,I){return t(this,void 0,void 0,function*(){if(!P||!P.trim())throw new Error("Identity (I) must not be null or empty.");if(!$)throw new Error("Salt (s) must not be null.");if(!I)throw new Error("Password (P) must not be null");const k=yield x.computeX(P,$,I);return x.computeVerifier(k)})}e.createVerifier=b;function v(x,P,$,I){return t(this,void 0,void 0,function*(){const k=yield x.generateRandomSalt(I);return{s:k,v:yield b(x,P,k,$)}})}e.createVerifierAndSalt=v;const E=x=>t(void 0,void 0,void 0,function*(){return(yield p(x,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=E;function w(x,P,$){let I=o;for(;P>r;)P%i==o?(I=x*I%$,P-=o):(x=x*x%$,P/=i);return I}e.modPow=w;const C=x=>{const P=new Uint8Array(x);return n.crossEnvCrypto.randomBytes(P),P.buffer}})(Wv);var sl=bn&&bn.__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{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(Uv,"__esModule",{value:!0});Uv.SRPRoutines=void 0;const rn=Wv;class Zne{constructor(t){this.parameters=t}hash(...t){return rn.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return rn.hashPadded(this.parameters,n,...t)}computeK(){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hashPadded(rn.bigIntToArrayBuffer(this.parameters.primeGroup.N),rn.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return sl(this,void 0,void 0,function*(){const n=yield rn.hashBitCount(this.parameters),r=t||2*n/8;return rn.generateRandomBigInt(r)})}computeX(t,n,r){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return sl(this,void 0,void 0,function*(){return yield this.hash(rn.stringToArrayBuffer(n))})}computeVerifier(t){return rn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=rn.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return rn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hashPadded(rn.bigIntToArrayBuffer(t),rn.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,i){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(r),rn.bigIntToArrayBuffer(o),rn.bigIntToArrayBuffer(i)))})}computeServerEvidence(t,n,r){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(t),rn.bigIntToArrayBuffer(n),rn.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,i){const s=this.parameters.primeGroup.N,a=r*n+o,c=rn.modPow(this.parameters.primeGroup.g,n,s)*t%s;return rn.modPow(i+s-c,a,s)}}Uv.SRPRoutines=Zne;var Ll={},Px=bn&&bn.__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{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(Ll,"__esModule",{value:!0});Ll.SRPClientSessionStep2=Ll.SRPClientSessionStep1=Ll.SRPClientSession=void 0;class ere{constructor(t){this.routines=t}step1(t,n){return Px(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 Gv(this.routines,t,r)})}}Ll.SRPClientSession=ere;class Gv{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return Px(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),d=yield this.routines.computeClientEvidence(this.I,t,i,n,c);return new Kv(this.routines,i,d,c)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new Gv(t,n.I,new Uint8Array(n.IH).buffer)}}Ll.SRPClientSessionStep1=Gv;class Kv{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return Px(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 Kv(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}Ll.SRPClientSessionStep2=Kv;var _u={},iw=bn&&bn.__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{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(_u,"__esModule",{value:!0});_u.SRPServerSessionStep1=_u.SRPServerSession=void 0;const sw=Wv;class tre{constructor(t){this.routines=t}step1(t,n,r){return iw(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),i=yield this.routines.computeK(),s=nre(this.routines.parameters,i,r,o);return new qv(this.routines,t,n,r,o,s)})}}_u.SRPServerSession=tre;class qv{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 iw(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 rre(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return iw(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 qv(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}_u.SRPServerSessionStep1=qv;const nre=(e,t,n,r)=>(sw.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,rre=(e,t,n,r,o)=>sw.modPow(sw.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=Vv;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=Uv;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=Ll;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=_u;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var i=Wv;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}})})($a);function ore(e,t,n){return pt(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const i=new $a.SRPRoutines(new $a.SRPParameters),c=yield(yield new $a.SRPClientSession(i).step1(e,t)).step2(BigInt(o),BigInt(r)),d=yield n("loginSrp2",{pubKey:String(c.A),proof:String(c.M1)});return yield c.step3(BigInt(d.proof)).catch(()=>Promise.reject("trust")),d})}const dL="https://github.com/rejetto/hfs/",ire=dL+"wiki/";window._=It;const C1=Ix();Object.assign(C1,{getPluginKey:()=>m$("plugin"),getPluginPublic:()=>{var e,t;return(t=(e=m$("src"))==null?void 0:e.match(/^.*\//))==null?void 0:t[0]},getPluginConfig:()=>C1.plugins[C1.getPluginKey()]||{}});function m$(e){var t;return((t=document.currentScript)==null?void 0:t.getAttribute(e))||console.error("this function must be called at the very top of your file")}Object.fromEntries(new URLSearchParams(window.location.search).entries());const g$=["","K","M","G","T"];function Vl(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";let o=1,i=n,s=0;for(;s<g$.length&&e>i;)o=i,i*=n,++s;return e/=o,(s&&!isNaN(r)?e.toFixed(r):It.round(e,isNaN(r)?e>=100?0:1:r))+" "+(g$[s]||"")+t}function cu(e,t,n=""){return t?e+t+n:""}function sre(e,t){return new Promise(n=>setTimeout(n,e,t))}function lre(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 kx(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function are(e,t){return!t||t.endsWith(e)?t:t+e}function cre(e){return!!e}function bp(e){return e.filter(cre)}function ure(e,t){return Object.defineProperties(e,kx(t,n=>({enumerable:!1,writable:!0,value:n})))}function v$(e,t){return t(e)}function fL(e,{accept:t="",multiple:n=!0,folder:r=!1}={}){const o=Object.assign(document.createElement("input"),{type:"file",name:"file",accept:t,multiple:n,webkitdirectory:r});o.addEventListener("change",()=>e(o.files)),o.click()}function pL(e){return new Promise((t,n)=>{const r=new FileReader;r.addEventListener("load",o=>{if(!o.target||e.size&&!o.target.result)return n("cannot read");const{result:i}=o.target;t(i==null?void 0:i.toString())}),r.addEventListener("error",()=>{n(r.error)}),r.readAsText(e)})}function dre(e){return(e*100).toFixed(1)+"%"}function fre(e){return e==null?[]:Array.isArray(e)?e:[e]}function pre(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function hre(){return window.innerWidth<800}function Ix(){return window.HFS}function mre(){return Ix().prefixUrl||""}function gre(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}function vre(e){return function t(n){if(!n)return;const{exp:r,username:o,adminUrl:i}=n;if(e.username=o,e.adminUrl=i,!o||!r)return;const s=new Date(r).getTime()-Date.now(),a=It.clamp(s-3e4,4e3,6e5);console.debug("session refresh in",Math.round(a/1e3)),setTimeout(()=>xt("refresh_session").then(t),a)}}function yre(e){try{return e&&JSON.parse(e)}catch(t){}}function bre(e){return Ze("MuiLoadingButton",e)}const wre=Xe("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Is=wre,Cre=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],xre=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${ue(n)}`],endIcon:[t&&`endIconLoading${ue(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${ue(n)}`]},i=Me(o,bre,r);return S({},r,i)},Sre=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Ere=oe(ur,{shouldForwardProp:e=>Sre(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Is.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Is.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>S({[`& .${Is.startIconLoadingStart}, & .${Is.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}),[`&.${Is.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${Is.startIconLoadingStart}, & .${Is.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${Is.startIconLoadingStart}, & .${Is.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),Pre=oe("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${ue(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})),kre=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:s,loading:a=!1,loadingIndicator:c,loadingPosition:d="center",variant:p="text"}=r,h=ne(r,Cre),m=on(s),g=c!=null?c:_.jsx(Va,{"aria-labelledby":m,color:"inherit",size:16}),b=S({},r,{disabled:i,loading:a,loadingIndicator:g,loadingPosition:d,variant:p}),v=xre(b),E=a?_.jsx(Pre,{className:v.loadingIndicator,ownerState:b,children:g}):null;return _.jsxs(Ere,S({disabled:i||a,id:m,ref:n},h,{variant:p,classes:v,ownerState:b,children:[b.loadingPosition==="end"?o:E,b.loadingPosition==="end"?E:o]}))}),hL=kre,Ire=u.createContext({}),$x=Ire,$re=["element"];function Tre(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function _re(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 mL=u.createContext({});function Mre(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const y$=()=>{};function Rre(e){const[,t]=u.useState(),{registerDescendant:n=y$,unregisterDescendant:r=y$,descendants:o=[],parentId:i=null}=u.useContext(mL),s=Tre(o,d=>d.element===e.element),a=Mre(o),c=o.some((d,p)=>a&&a[p]&&a[p].element!==d.element);return sn(()=>{if(e.element)return n(S({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,c,e]),{parentId:i,index:s}}function gL(e){const{children:t,id:n}=e,[r,o]=u.useState([]),i=u.useCallback(c=>{let{element:d}=c,p=ne(c,$re);o(h=>{let m;if(h.length===0)return[S({},p,{element:d,index:0})];const g=_re(h,d);if(h[g]&&h[g].element===d)m=h;else{const b=S({},p,{element:d,index:g});m=h.slice(),m.splice(g,0,b)}return m.forEach((b,v)=>{b.index=v}),m})},[]),s=u.useCallback(c=>{o(d=>d.filter(p=>c!==p.element))},[]),a=u.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:s,parentId:n}),[r,i,s,n]);return _.jsx(mL.Provider,{value:a,children:t})}function Ore(e){const{focus:t,isExpanded:n,isExpandable:r,isFocused:o,isDisabled:i,isSelected:s,multiSelect:a,selectNode:c,selectRange:d,toggleExpansion:p}=u.useContext($x),h=r?r(e):!1,m=n?n(e):!1,g=o?o(e):!1,b=i?i(e):!1,v=s?s(e):!1;return{disabled:b,expanded:m,selected:v,focused:g,handleExpansion:x=>{if(!b){g||t(x,e);const P=a&&(x.shiftKey||x.ctrlKey||x.metaKey);h&&!(P&&n(e))&&p(x,e)}},handleSelection:x=>{b||(g||t(x,e),a&&(x.shiftKey||x.ctrlKey||x.metaKey)?x.shiftKey?d(x,{end:e}):c(x,e,!0):c(x,e))},preventSelection:x=>{(x.shiftKey||x.ctrlKey||x.metaKey||b)&&x.preventDefault()}}}const Lre=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],Are=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:s,icon:a,label:c,nodeId:d,onClick:p,onMouseDown:h}=t,m=ne(t,Lre),{disabled:g,expanded:b,selected:v,focused:E,handleExpansion:w,handleSelection:C,preventSelection:x}=Ore(d),P=a||s||i,$=k=>{x(k),h&&h(k)},I=k=>{w(k),C(k),p&&p(k)};return _.jsxs("div",S({className:he(o,r.root,b&&r.expanded,v&&r.selected,E&&r.focused,g&&r.disabled),onClick:I,onMouseDown:$,ref:n},m,{children:[_.jsx("div",{className:r.iconContainer,children:P}),_.jsx("div",{className:r.label,children:c})]}))}),vL=Are;function Fre(e){return Ze("MuiTreeItem",e)}const Nre=Xe("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),ll=Nre,Dre=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],Bre=e=>{const{classes:t}=e;return Me({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},Fre,t)},zre=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Hre=oe(vL,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${ll.iconContainer}`]:t.iconContainer},t.label&&{[`& .${ll.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"}},[`&.${ll.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${ll.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ll.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(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}))`:ct(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})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ll.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${ll.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${ll.label}`]:S({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),jre=oe(sO,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),Vre=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:s,ContentComponent:a=vL,ContentProps:c,endIcon:d,expandIcon:p,disabled:h,icon:m,id:g,label:b,nodeId:v,onClick:E,onMouseDown:w,TransitionComponent:C=sO,TransitionProps:x}=r,P=ne(r,Dre),{icons:$={},focus:I,isExpanded:k,isFocused:M,isSelected:O,isDisabled:A,multiSelect:L,disabledItemsFocusable:D,mapFirstChar:j,unMapFirstChar:R,registerNode:N,unregisterNode:H,treeId:V}=u.useContext($x);let F=null;g!=null?F=g:V&&v&&(F=`${V}-${v}`);const[z,W]=u.useState(null),K=u.useRef(null),Y=Ht(W,n),ae=u.useMemo(()=>({element:z,id:v}),[v,z]),{index:re,parentId:de}=Rre(ae),ie=!!(Array.isArray(o)?o.length:o),se=k?k(v):!1,Se=M?M(v):!1,ye=O?O(v):!1,Ie=A?A(v):!1,ee=S({},r,{expanded:se,focused:Se,selected:ye,disabled:Ie}),ke=Bre(ee);let _e,Ee;ie&&(se?Ee=s||$.defaultCollapseIcon:Ee=p||$.defaultExpandIcon),ie?_e=$.defaultParentIcon:_e=d||$.defaultEndIcon,u.useEffect(()=>{if(N&&H&&re!==-1)return N({id:v,idAttribute:F,index:re,parentId:de,expandable:ie,disabled:h}),()=>{H(v)}},[N,H,de,re,v,ie,h,F]),u.useEffect(()=>{if(j&&R&&b)return j(v,K.current.textContent.substring(0,1).toLowerCase()),()=>{R(v)}},[j,R,v,b]);let pe;L?pe=ye:ye&&(pe=!0);function be(te){if(te.target===te.currentTarget){let Ye;typeof te.target.getRootNode=="function"?Ye=te.target.getRootNode():Ye=Cn(te.target),Ye.getElementById(V).focus({preventScroll:!0})}const Le=!D&&Ie;!Se&&te.currentTarget===te.target&&!Le&&I(te,v)}return _.jsxs(zre,S({className:he(ke.root,i),role:"treeitem","aria-expanded":ie?se:null,"aria-selected":pe,"aria-disabled":Ie||null,ref:Y,id:F,tabIndex:-1},P,{ownerState:ee,onFocus:be,children:[_.jsx(Hre,S({as:a,ref:K,classes:{root:ke.content,expanded:ke.expanded,selected:ke.selected,focused:ke.focused,disabled:ke.disabled,iconContainer:ke.iconContainer,label:ke.label},label:b,nodeId:v,onClick:E,onMouseDown:w,icon:m,expansionIcon:Ee,displayIcon:_e,ownerState:ee},c)),o&&_.jsx(gL,{id:v,children:_.jsx(jre,S({as:C,unmountOnExit:!0,className:ke.group,in:se,component:"ul",role:"group"},x,{children:o}))})]}))}),lw=Vre;function Ure(e){return Ze("MuiTreeView",e)}Xe("MuiTreeView",["root"]);const Wre=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],Gre=e=>{const{classes:t}=e;return Me({root:["root"]},Ure,t)},Kre=oe("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0});function qre(e){return e&&e.length===1&&e.match(/\S/)}function b$(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}function w$(){return!1}const Yre=[],Qre=[],Xre=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTreeView"}),{children:o,className:i,defaultCollapseIcon:s,defaultEndIcon:a,defaultExpanded:c=Yre,defaultExpandIcon:d,defaultParentIcon:p,defaultSelected:h=Qre,disabledItemsFocusable:m=!1,disableSelection:g=!1,expanded:b,id:v,multiSelect:E=!1,onBlur:w,onFocus:C,onKeyDown:x,onNodeFocus:P,onNodeSelect:$,onNodeToggle:I,selected:k}=r,M=ne(r,Wre),A=pr().direction==="rtl",L=S({},r,{defaultExpanded:c,defaultSelected:h,disabledItemsFocusable:m,disableSelection:g,multiSelect:E}),D=Gre(L),j=on(v),R=u.useRef(null),N=Ht(R,n),[H,V]=u.useState(null),F=u.useRef({}),z=u.useRef({}),[W,K]=Fs({controlled:b,default:c,name:"TreeView",state:"expanded"}),[Y,ae]=Fs({controlled:k,default:h,name:"TreeView",state:"selected"}),re=u.useCallback(le=>Array.isArray(W)?W.indexOf(le)!==-1:!1,[W]),de=u.useCallback(le=>F.current[le]&&F.current[le].expandable,[]),ie=u.useCallback(le=>Array.isArray(Y)?Y.indexOf(le)!==-1:Y===le,[Y]),se=u.useCallback(le=>{let ge=F.current[le];if(!ge)return!1;if(ge.disabled)return!0;for(;ge.parentId!=null;)if(ge=F.current[ge.parentId],ge.disabled)return!0;return!1},[]),Se=le=>H===le,ye=le=>Object.keys(F.current).map(ge=>F.current[ge]).filter(ge=>ge.parentId===le).sort((ge,De)=>ge.index-De.index).map(ge=>ge.id),Ie=le=>{let ge=ye(le);return m||(ge=ge.filter(De=>!se(De))),ge},ee=le=>{if(re(le)&&Ie(le).length>0)return Ie(le)[0];let ge=F.current[le];for(;ge!=null;){const De=Ie(ge.parentId),dt=De[De.indexOf(ge.id)+1];if(dt)return dt;ge=F.current[ge.parentId]}return null},ke=le=>{const ge=F.current[le],De=Ie(ge.parentId),dt=De.indexOf(le);if(dt===0)return ge.parentId;let st=De[dt-1];for(;re(st)&&Ie(st).length>0;)st=Ie(st).pop();return st},_e=()=>{let le=Ie(null).pop();for(;re(le);)le=Ie(le).pop();return le},Ee=()=>Ie(null)[0],pe=le=>F.current[le].parentId,be=(le,ge)=>{if(le===ge)return[le,ge];const De=F.current[le],dt=F.current[ge];if(De.parentId===dt.id||dt.parentId===De.id)return dt.parentId===De.id?[De.id,dt.id]:[dt.id,De.id];const st=[De.id],je=[dt.id];let wt=De.parentId,zt=dt.parentId,Sn=je.indexOf(wt)!==-1,ao=st.indexOf(zt)!==-1,we=!0,me=!0;for(;!ao&&!Sn;)we&&(st.push(wt),Sn=je.indexOf(wt)!==-1,we=wt!==null,!Sn&&we&&(wt=F.current[wt].parentId)),me&&!Sn&&(je.push(zt),ao=st.indexOf(zt)!==-1,me=zt!==null,!ao&&me&&(zt=F.current[zt].parentId));const We=Sn?wt:zt,ft=ye(We),jt=st[st.indexOf(We)-1],_n=je[je.indexOf(We)-1];return ft.indexOf(jt)<ft.indexOf(_n)?[le,ge]:[ge,le]},te=(le,ge)=>{const[De,dt]=be(le,ge),st=[De];let je=De;for(;je!==dt;)je=ee(je),st.push(je);return st},Le=(le,ge)=>{ge&&(V(ge),P&&P(le,ge))},Ye=(le,ge)=>Le(le,ee(ge)),Ke=(le,ge)=>Le(le,ke(ge)),Ue=le=>Le(le,Ee()),Be=le=>Le(le,_e()),ut=(le,ge,De)=>{let dt,st;const je=De.toLowerCase(),wt=[],zt=[];Object.keys(z.current).forEach(Sn=>{const ao=z.current[Sn],we=F.current[Sn],me=we.parentId?re(we.parentId):!0,We=m?!1:se(Sn);me&&!We&&(wt.push(Sn),zt.push(ao))}),dt=wt.indexOf(ge)+1,dt>=wt.length&&(dt=0),st=b$(zt,dt,je),st===-1&&(st=b$(zt,0,je)),st>-1&&Le(le,wt[st])},gt=(le,ge=H)=>{let De;W.indexOf(ge)!==-1?De=W.filter(dt=>dt!==ge):De=[ge].concat(W),I&&I(le,De),K(De)},at=(le,ge)=>{const De=F.current[ge],st=ye(De.parentId).filter(wt=>de(wt)&&!re(wt)),je=W.concat(st);st.length>0&&(K(je),I&&I(le,je))},St=u.useRef(null),vt=u.useRef(!1),Ne=u.useRef([]),Fe=(le,ge)=>{let De=Y.slice();const{start:dt,next:st,current:je}=ge;!st||!je||(Ne.current.indexOf(je)===-1&&(Ne.current=[]),vt.current?Ne.current.indexOf(st)!==-1?(De=De.filter(wt=>wt===dt||wt!==je),Ne.current=Ne.current.filter(wt=>wt===dt||wt!==je)):(De.push(st),Ne.current.push(st)):(De.push(st),Ne.current.push(je,st)),$&&$(le,De),ae(De))},ze=(le,ge)=>{let De=Y.slice();const{start:dt,end:st}=ge;vt.current&&(De=De.filter(zt=>Ne.current.indexOf(zt)===-1));let je=te(dt,st);je=je.filter(zt=>!se(zt)),Ne.current=je;let wt=De.concat(je);wt=wt.filter((zt,Sn)=>wt.indexOf(zt)===Sn),$&&$(le,wt),ae(wt)},et=(le,ge)=>{let De;Y.indexOf(ge)!==-1?De=Y.filter(dt=>dt!==ge):De=[ge].concat(Y),$&&$(le,De),ae(De)},Pe=(le,ge)=>{const De=E?[ge]:ge;$&&$(le,De),ae(De)},Ae=(le,ge,De=!1)=>ge?(De?et(le,ge):Pe(le,ge),St.current=ge,vt.current=!1,Ne.current=[],!0):!1,Ve=(le,ge,De=!1)=>{const{start:dt=St.current,end:st,current:je}=ge;De?Fe(le,{start:dt,next:st,current:je}):dt!=null&&st!=null&&ze(le,{start:dt,end:st}),vt.current=!0},ot=(le,ge)=>{St.current||(St.current=ge);const De=vt.current?St.current:ge;Ve(le,{start:De,end:Ee()})},ht=(le,ge)=>{St.current||(St.current=ge);const De=vt.current?St.current:ge;Ve(le,{start:De,end:_e()})},Qt=(le,ge)=>{se(ee(ge))||Ve(le,{end:ee(ge),current:ge},!0)},xn=(le,ge)=>{se(ke(ge))||Ve(le,{end:ke(ge),current:ge},!0)},Tn=le=>{Ve(le,{start:Ee(),end:_e()})},Kn=u.useCallback(le=>{const{id:ge,index:De,parentId:dt,expandable:st,idAttribute:je,disabled:wt}=le;F.current[ge]={id:ge,index:De,parentId:dt,expandable:st,idAttribute:je,disabled:wt}},[]),rr=u.useCallback(le=>{const ge=S({},F.current);delete ge[le],F.current=ge,V(De=>De===le&&R.current===Cn(R.current).activeElement?ye(null)[0]:De)},[]),or=u.useCallback((le,ge)=>{z.current[le]=ge},[]),mn=u.useCallback(le=>{const ge=S({},z.current);delete ge[le],z.current=ge},[]),Xt=le=>(de(H)&&(re(H)?Ye(le,H):se(H)||gt(le)),!0),Dn=le=>{if(re(H)&&!se(H))return gt(le,H),!0;const ge=pe(H);return ge?(Le(le,ge),!0):!1},Bo=le=>{let ge=!1;const De=le.key;if(le.altKey||le.currentTarget!==le.target||!H)return;const dt=le.ctrlKey||le.metaKey;switch(De){case" ":!g&&!se(H)&&(E&&le.shiftKey?(Ve(le,{end:H}),ge=!0):E?ge=Ae(le,H,!0):ge=Ae(le,H)),le.stopPropagation();break;case"Enter":se(H)||(de(H)?(gt(le),ge=!0):E?ge=Ae(le,H,!0):ge=Ae(le,H)),le.stopPropagation();break;case"ArrowDown":E&&le.shiftKey&&!g&&Qt(le,H),Ye(le,H),ge=!0;break;case"ArrowUp":E&&le.shiftKey&&!g&&xn(le,H),Ke(le,H),ge=!0;break;case"ArrowRight":A?ge=Dn(le):ge=Xt(le);break;case"ArrowLeft":A?ge=Xt(le):ge=Dn(le);break;case"Home":E&&dt&&le.shiftKey&&!g&&!se(H)&&ot(le,H),Ue(le),ge=!0;break;case"End":E&&dt&&le.shiftKey&&!g&&!se(H)&&ht(le,H),Be(le),ge=!0;break;default:De==="*"?(at(le,H),ge=!0):E&&dt&&De.toLowerCase()==="a"&&!g?(Tn(le),ge=!0):!dt&&!le.shiftKey&&qre(De)&&(ut(le,H,De),ge=!0)}ge&&(le.preventDefault(),le.stopPropagation()),x&&x(le)},Ni=le=>{if(le.target===le.currentTarget){const ge=Array.isArray(Y)?Y[0]:Y;Le(le,ge||Ie(null)[0])}C&&C(le)},ms=le=>{V(null),w&&w(le)},gs=F.current[H]?F.current[H].idAttribute:null;return _.jsx($x.Provider,{value:{icons:{defaultCollapseIcon:s,defaultExpandIcon:d,defaultParentIcon:p,defaultEndIcon:a},focus:Le,toggleExpansion:gt,isExpanded:re,isExpandable:de,isFocused:Se,isSelected:ie,isDisabled:se,selectNode:g?w$:Ae,selectRange:g?w$:Ve,multiSelect:E,disabledItemsFocusable:m,mapFirstChar:or,unMapFirstChar:mn,registerNode:Kn,unregisterNode:rr,treeId:j},children:_.jsx(gL,{children:_.jsx(Kre,S({role:"tree",id:j,"aria-activedescendant":gs,"aria-multiselectable":E,className:he(D.root,i),ref:N,tabIndex:0,onKeyDown:Bo,onFocus:Ni,onBlur:ms,ownerState:L},M,{children:o}))})})}),yL=Xre;function eo(m){var g=m,{value:e,onChange:t,min:n,max:r,required:o,getApi:i,typing:s,start:a,end:c,onTyping:d,suggestions:p}=g,h=Zt(g,["value","onChange","min","max","required","getApi","typing","start","end","onTyping","suggestions"]);const b=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,E]=u.useState(b),w=u.useRef(b);u.useEffect(()=>{E(b),w.current=b},[b]);const C=P=>u.createElement(yp,$e(kt($e({fullWidth:!0,InputLabelProps:v||h.placeholder?{shrink:!0}:void 0},h),{sx:h.label?h.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},h.sx),value:v,onChange($){const I=$.target.value;(d==null?void 0:d(I))!==!1&&(E(I),(s||document.activeElement!==$.target)&&x($,I))},onKeyDown($){var I;(I=h.onKeyDown)==null||I.call(h,$),$.key==="Enter"&&x($)},onBlur($){var I;(I=h.onBlur)==null||I.call(h,$),x($)},InputProps:$e({startAdornment:a&&u.createElement(Uf,{position:"start"},a),endAdornment:c&&u.createElement(Uf,{position:"end"},c)},h.InputProps)}),P));return p?u.createElement(ax,{freeSolo:!0,options:p,renderInput:C}):C(null);function x(P,$=v){const I=$.trim();I!==w.current&&(w.current=I,t(I,{was:e,event:P,cancel(){E(b)}}))}}function us(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=Zt(a,["value","onChange","getApi","options","sx"]);return u.createElement(yp,kt($e($e({},bL(e)),s),{onChange(c){try{let d=c.target.value;d=JSON.parse(d),n(d,{was:t,event:c})}catch(d){}}}))}function Tx(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=Zt(a,["value","onChange","getApi","options","sx"]);return u.createElement(yp,kt($e($e({},bL(kt($e({},e),{value:void 0}))),s),{SelectProps:{multiple:!0},value:Array.isArray(t)?t.map(c=>JSON.stringify(c)):[],onChange(c){try{let d=c.target.value;d=Array.isArray(d)?d.map(p=>JSON.parse(p)):[],n(d,{was:t,event:c})}catch(d){}}}))}function bL(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(so,{key:a,value:JSON.stringify(s==null?void 0:s.value),children:s==null?void 0:s.label}))}}function vm(r){var o=r,{value:e,empty:t="-"}=o,n=Zt(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(eo,kt($e({},n),{value:e,disabled:!0}))}function Ki(d){var p=d,{value:e,onChange:t,getApi:n,required:r,min:o,max:i,step:s,unit:a}=p,c=Zt(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(eo,$e({type:"number",value:e==null?"":String(e),onChange(h,b){var v=b,{was:m}=v,g=Zt(v,["was"]);t(h?Number(h):null,kt($e({},g),{was:m?Number(m):null}))},inputProps:{min:o,max:i,step:s},InputProps:It.merge({sx:{"& input":{appearance:"textfield"}}},a&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(Uf,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},a)})},c))}function xo(c){var d=c,{label:e="",value:t,onChange:n,getApi:r,helperText:o,error:i,type:s}=d,a=Zt(d,["label","value","onChange","getApi","helperText","error","type"]);const p=()=>t!=null?t:!1,[h,m]=u.useState(p);u.useEffect(()=>m(p),[t]);const g=u.createElement(VO,kt($e({checked:h},a),{onChange(b){n(b.target.checked,{event:b,was:t})}}));return u.createElement(tt,{ml:1,mt:1,sx:i?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(EO,$e({label:e,control:g,labelPlacement:"end"},a.size==="small"&&{sx:{"& .MuiFormControlLabel-label":{fontSize:".9rem"}}})),o&&u.createElement(Nv,{error:i},o))}function Jre({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(),d={padding:".5em 1em",fontWeight:"bold"};return u.createElement(qn,{container:!0},u.createElement(qn,{item:!0,xs:o,sx:d},n),u.createElement(qn,{item:!0,xs:i,sx:d},r),u.createElement(qn,{item:!0,xs:s},u.createElement(Zr,{onClick(){a.current.focus()}},u.createElement(hx))),Object.entries(e||{}).map(([p,h])=>[u.createElement(qn,{key:"k",item:!0,xs:o},u.createElement(eo,{value:p,onChange(m,v){var E=v,{was:g}=E,b=Zt(E,["was"]);const w=$e({},e);m&&(w[m]=g!==void 0?w[g]:""),g!==void 0&&delete w[g],t(w,$e({was:e},b))}})),u.createElement(qn,{key:"v",item:!0,xs:i},u.createElement(eo,{inputRef(m){c.current===p&&(m==null||m.focus(),c.current=null)},value:h,onChange(m,v){var E=v,{was:g}=E,b=Zt(E,["was"]);const w=$e({},e);m?w[p]=m:delete w[p],t(w,$e({was:e},b))}})),u.createElement(qn,{key:"actions",item:!0,xs:s,sx:{display:"flex"}},u.createElement(Zr,{onClick(m){const g=$e({},e);delete g[p],t(g,{was:e,event:m})}},u.createElement(ps)))]),u.createElement(qn,{item:!0,xs:o},u.createElement(eo,{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(kt($e({},e),{[p]:""}),kt($e({},h),{was:e}))}}})),u.createElement(qn,{item:!0,xs:i},u.createElement(eo,{value:"",onChange(){},disabled:!0})))}function wp(b){var v=b,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:i,addToBar:s=[],barSx:a,formRef:c,onError:d,saveOnEnter:p,gridProps:h,formProps:m}=v,g=Zt(v,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const E=u.useRef(!1);u.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);const[w,C]=u.useState({}),[x,P]=u.useState({}),$=typeof o=="function"?{onClick:o}:o,[I,k]=u.useState(0),M=u.useRef(!1),O=u.useRef("");u.useEffect(()=>void j(),[I]);const A={};return u.createElement("form",kt($e({ref:c&&(R=>c.current=R||void 0)},m),{onSubmit(R){R.preventDefault()},onKeyDown(R){$&&!$.disabled&&(R.ctrlKey||R.metaKey)&&R.key==="Enter"&&L()}}),u.createElement(tt,$e({display:"flex",flexDirection:"column",gap:3},g),u.createElement(qn,$e({container:!0,rowSpacing:3,columnSpacing:1},h),e.map((R,N)=>{if(!R)return null;if(u.isValidElement(R))return u.createElement(qn,{key:N,item:!0,xs:12},R);const ae=R,{k:H,fromField:V=qc.identity,toField:F=qc.identity,getError:z,error:W}=ae,K=Zt(ae,["k","fromField","toField","getError","error"]);let Y=w[H]||W||x[H];if(Y===!0&&(Y="Not valid"),H){const de=R.hasOwnProperty("value")?R.value:t==null?void 0:t[H],ie=$e($e({},R),K);Object.assign(K,{value:F(de),error:!!(Y||W)||void 0,getApi(se){A[H]=se},onBlur(){D(H)},onKeyDown(se){p&&se.key==="Enter"&&L()},onChange(se){try{if(se=V(se),P(Se=>kt($e({},Se),{[H]:!1})),qc.isEqual(se,de))return;n(se,H),D(H)}catch(Se){P(ye=>kt($e({},ye),{[H]:(Se==null?void 0:Se.message)||String(Se)||!0}))}}}),Array.isArray(K.helperText)&&(K.helperText=u.createElement(u.Fragment,{},...K.helperText)),Y&&(K.helperText=K.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},Y),u.createElement(tt,{color:"text.primary",component:"span",display:"block"},K.helperText)):Y),K.label===void 0&&(K.label=wL(H)),qc.defaults(K,r==null?void 0:r(ie))}{const re=K,{xs:de=12,sm:ie,md:se,lg:Se,xl:ye,comp:Ie=eo,before:ee,after:ke,fromField:_e,toField:Ee}=re,pe=Zt(re,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);return Object.assign(pe,{name:H}),u.createElement(qn,{key:H||N,item:!0,xs:de,sm:ie,md:se,lg:Se,xl:ye},ee,u.isValidElement(Ie)?Ie:u.createElement(Ie,pe),ke)}})),$&&u.createElement(tt,{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(hL,kt($e({variant:"contained",startIcon:u.createElement(yx),children:"Save",loading:wx(I!==0)},$),{onClick:L})),...s)));function L(){M.current=!0,D()}function D(R=""){I===0&&(O.current=R,setTimeout(()=>k(N=>N===0?1:N)))}function j(){return pt(this,null,function*(){var H,V;if(I===0)return;if(I===1)return k(2);const R="Please review errors",N={};for(const F of e){if(!F||u.isValidElement(F)||!F.k)continue;const{k:z}=F,W=t==null?void 0:t[z],K=(yield(H=A[z])==null?void 0:H.getError())||(yield(V=F.getError)==null?void 0:V.call(F,W,{values:t,fields:e}))||x[z];if(N[z]=K||!1,!M.current&&z===O.current)break;if(!E.current)return}C(N);try{if(!M.current)return;if(Object.values(N).some(Boolean))return yield d==null?void 0:d(R);const F=$&&$.onClick;F&&(yield F())}catch(F){yield d==null?void 0:d(F)}finally{M.current=!1,E.current&&k(0)}})}}function wL(e){return qc.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function CL(){return TO("(prefers-color-scheme: dark)")}const Zre={};function eoe(){const e=CL()?null:Zre;return u.useMemo(()=>qC({palette:e||{mode:"dark",text:{primary:"#bbb"},primary:{main:"#469",light:"#68c"},secondary:{main:"#969"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiLink:{defaultProps:e||{color:"primary.light"}},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])}gm.Container=function(t){const n=u.useRef(),{width:r,height:o}=kne(),i=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const h=setTimeout(()=>{const m=n.current;if(!m||(m.focus(),i))return;const g=m.querySelector("[autofocus]")||m.querySelector("input,textarea");g&&g instanceof HTMLElement&&g.focus()});return()=>clearTimeout(h)},[n.current]);const s=_x();t=$e($e({},gm),t);const p=t.dialogProps||{},{sx:a,root:c}=p,d=Zt(p,["sx","root"]);return gm.dialogProps={fullScreen:i,sx:{overflow:"initial"}},u.createElement(GY,kt($e($e({open:!0,maxWidth:"lg",fullScreen:i},d),c),{onClose:()=>Li()}),t.title&&u.createElement(sQ,{sx:$e({position:"sticky",top:0,py:1,pr:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},s)},u.createElement(tt,{flex:1,minWidth:40},ow(t.title)),u.createElement(Fn,{icon:zv,title:"close",onClick:()=>Li()})),u.createElement(tQ,{ref:n,sx:$e({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},a)},u.createElement(t.Content)))};function _x(){return CL()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const xL={error:mx,warning:bx,info:lg,success:KO};function cn(e,t){return pt(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=Zt(a,["type"]);e instanceof Error&&(e=e.message||String(e),o="error");const s=vi(kt($e({className:"dialog-alert-"+o,icon:"!",onClose:n},i),{Content(){var c;return u.createElement(tt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.createElement(Zr,{onClick(){s()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},u.createElement(zv)),(c=r.icon)!=null?c:u.createElement(xL[o],{color:o,fontSize:"large"}),u.isValidElement(e)?e:u.createElement(tt,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}))})})}function Vs(i){return pt(this,arguments,function*(e,r={}){var o=r,{href:t}=o,n=Zt(o,["href"]);return new Promise(a=>vi(kt($e({className:"dialog-confirm",icon:"?",onClose:a},n),{Content:s})));function s(){return u.createElement(u.Fragment,{},u.createElement(tt,{mb:2},e),u.createElement(Kf,{},u.createElement("a",{href:t,onClick:()=>Li(!0)},u.createElement(ur,{variant:"contained"},"Confirm")),u.createElement(ur,{onClick:()=>Li(!1)},"Don't")))}})}function Gf(r){return pt(this,null,function*(){var o=r,{form:e,values:t}=o,n=Zt(o,["form","values"]);return new Promise(s=>vi(kt($e({className:"dialog-confirm",icon:"?",onClose:s},n),{Content:i})));function i(){const[s,a]=u.useState(t||{}),h=typeof e=="function"?e(s):e,{onChange:c,before:d}=h,p=Zt(h,["onChange","before"]);return u.createElement(u.Fragment,{},d,u.createElement(wp,kt($e({},p),{values:s,set(m,g){const b=kt($e({},s),{[g]:m});a(b),c==null||c(b,{setValues:a})},save:kt($e({},p.save),{onClick(){Li(s)}})})))}})}function toe(n){return pt(this,arguments,function*(e,t={}){return Gf(kt($e({},t),{form:{fields:[$e({k:"text",label:null,autoFocus:!0,before:u.createElement(tt,{mb:2},e)},t.field)],save:$e({children:"Continue",startIcon:u.createElement(Zte)},t.save),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(ur,{onClick:Li},"Cancel"),...t.addToBar||[]]}})).then(r=>r==null?void 0:r.text)})}function Hr(e,t="info"){const r=vi({Content:o,dialogProps:{PaperProps:{sx:{transition:"opacity 3000ms ease-in"},ref(i){i&&(i.style.opacity="0")}}}});setTimeout(r,3e3);function o(){return u.createElement(tt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(xL[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}function SL(){return u.createElement(Va)}function noe(e){return e&&/^[a-zA-Z]:$/.test(e)}function Mx(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>Mx(r,t[n]))}function Yv(e){return e?{outline:"2px solid"}:void 0}function Fn(d){var p=d,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=Zt(p,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=Yr(!1);typeof r=="string"&&(e=r),i&&(n=()=>window.open(i));let g=u.createElement(Zr,kt($e({disabled:!!(h||o||r)},c),{onClick(...v){return pt(this,null,function*(){if(a&&!(yield Vs(a)))return;const E=n==null?void 0:n.apply(this,v);E&&E instanceof Promise&&(m(!0),E.catch(cn).finally(()=>m(!1)))})}}),u.createElement(t));return(o||h)&&o!==!1&&(g=u.createElement(tt,{position:"relative",display:"inline-block"},u.createElement(Va,kt($e({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:4,left:4,width:32,height:32}})),g)),e&&(g=u.createElement(Ku,kt($e({title:e},s),{children:u.createElement("span",{},g)}))),g}function uu(d){var p=d,{icon:e,title:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=Zt(p,["icon","title","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=Yr(!1);typeof r=="string"&&(t=r,r=!0),i&&(n=()=>window.open(i));let g=u.createElement(hL,kt($e({variant:"contained",startIcon:u.createElement(e),loading:!!(h||o),loadingPosition:"start",loadingIndicator:typeof o!="number"?void 0:u.createElement(Va,{size:"1rem",value:o*100,variant:"determinate"}),disabled:r},c),{onClick(...v){return pt(this,null,function*(){if(a&&!(yield Vs(a)))return;const E=n==null?void 0:n.apply(this,v);E&&E instanceof Promise&&(m(!0),E.catch(cn).finally(()=>m(!1)))})}}));return t&&(g=u.createElement(Ku,kt($e({title:t},s),{children:u.createElement("span",{},g)}))),g}function yo(e,t,n){return u.createElement(Ku,{title:t,children:u.createElement(e,{sx:n})})}function Rx(e){return u.createElement(ts,$e({component:oR},e))}function Ox(e){return u.createElement(tt,$e({display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e))}function roe(e,t){return pt(this,null,function*(){const r=(yield xt("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield xt("set_config",{values:{[e]:o}}))})}function ooe(e){return Object.keys(e)}function ioe(e,t){var n;return(n=t[e])!=null?n:e}function Ul(e){return TO(t=>t.breakpoints.up(e),{noSsr:!0})}function EL(e){return{ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function Lx(e,t){return u.createElement(Fn,$e({icon:vx,title:"Reload",onClick:e},t))}const soe=navigator.platform.match("Mac");function loe(e){return(e.ctrlKey||soe&&e.metaKey)&&e.key}function PL({icon:e,progress:t,offset:n,addTitle:r,sx:o}){return u.createElement(u.Fragment,{},u.createElement(e,{sx:{position:"absolute",ml:"4px"}}),u.createElement(Va,{value:t*100,variant:"determinate",size:32,sx:{position:"absolute"}}),u.createElement(Ku,{title:u.createElement(u.Fragment,{},dre(t),r),children:u.createElement(Va,{color:"success",value:(n||1e-7)*100,variant:"determinate",size:32,sx:o})}))}function Kf(i){var s=i,{gap:e=".8em",vert:t=!1,children:n=null,props:r={}}=s,o=Zt(s,["gap","vert","children","props"]);return u.createElement(tt,$e({sx:$e({display:"flex",gap:e,flexDirection:t?"column":void 0},o)},r),n)}function qu(e,t){return Array.isArray(t)&&(t=Wf(t)),u.createElement(ts,{href:ire+e,target:"help"},t)}function kL(e,t,n,r){let o=e[t];return Sx(e,()=>{const i=e[t];Object.is(o,i)||n(o=i)},r)}const IL="admin_state",un=xx(Object.assign({title:"",config:{},selectedFiles:[],vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[IL]||null))),$L=["onlinePluginsColumns"],aoe=It.debounce(()=>localStorage[IL]=JSON.stringify(It.pick(un,$L)),500,{maxWait:1e3});for(const e of $L)kL(un,e,aoe);function Jl(){return Ex(un)}function $i(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 Mu(e){return!!e&&!!e[Ro]}function Ua(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===goe}(e)||Array.isArray(e)||!!e[$$]||!!(!((t=e.constructor)===null||t===void 0)&&t[$$])||Ax(e)||Fx(e))}function qf(e,t,n){n===void 0&&(n=!1),Yu(e)===0?(n?Object.keys:Hx)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Yu(e){var t=e[Ro];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ax(e)?2:Fx(e)?3:0}function aw(e,t){return Yu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function coe(e,t){return Yu(e)===2?e.get(t):e[t]}function TL(e,t,n){var r=Yu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function uoe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ax(e){return hoe&&e instanceof Map}function Fx(e){return moe&&e instanceof Set}function ha(e){return e.o||e.t}function Nx(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=voe(e);delete t[Ro];for(var n=Hx(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 Dx(e,t){return t===void 0&&(t=!1),Bx(e)||Mu(e)||!Ua(e)||(Yu(e)>1&&(e.set=e.add=e.clear=e.delete=doe),Object.freeze(e),t&&qf(e,function(n,r){return Dx(r,!0)},!0)),e}function doe(){$i(2)}function Bx(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function rs(e){var t=yoe[e];return t||$i(18,e),t}function C$(){return Yf}function x1(e,t){t&&(rs("Patches"),e.u=[],e.s=[],e.v=t)}function ug(e){cw(e),e.p.forEach(foe),e.p=null}function cw(e){e===Yf&&(Yf=e.l)}function x$(e){return Yf={p:[],l:Yf,h:e,m:!0,_:0}}function foe(e){var t=e[Ro];t.i===0||t.i===1?t.j():t.g=!0}function S1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||rs("ES5").S(t,e,r),r?(n[Ro].P&&(ug(t),$i(4)),Ua(e)&&(e=dg(t,e),t.l||fg(t,e)),t.u&&rs("Patches").M(n[Ro].t,e,t.u,t.s)):e=dg(t,n,[]),ug(t),t.u&&t.v(t.u,t.s),e!==_L?e:void 0}function dg(e,t,n){if(Bx(t))return t;var r=t[Ro];if(!r)return qf(t,function(a,c){return S$(e,r,t,a,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return fg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Nx(r.k):r.o,i=o,s=!1;r.i===3&&(i=new Set(o),o.clear(),s=!0),qf(i,function(a,c){return S$(e,r,o,a,c,n,s)}),fg(e,o,!1),n&&e.u&&rs("Patches").N(r,n,e.u,e.s)}return r.o}function S$(e,t,n,r,o,i,s){if(Mu(o)){var a=dg(e,o,i&&t&&t.i!==3&&!aw(t.R,r)?i.concat(r):void 0);if(TL(n,r,a),!Mu(a))return;e.m=!1}else s&&n.add(o);if(Ua(o)&&!Bx(o)){if(!e.h.D&&e._<1)return;dg(e,o),t&&t.A.l||fg(e,o)}}function fg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Dx(t,n)}function E1(e,t){var n=e[Ro];return(n?ha(n):e)[t]}function E$(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 uw(e){e.P||(e.P=!0,e.l&&uw(e.l))}function P1(e){e.o||(e.o=Nx(e.t))}function dw(e,t,n){var r=Ax(t)?rs("MapSet").F(t,n):Fx(t)?rs("MapSet").T(t,n):e.O?function(o,i){var s=Array.isArray(o),a={i:s?1:0,A:i?i.A:C$(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=a,d=fw;s&&(c=[a],d=Xd);var p=Proxy.revocable(c,d),h=p.revoke,m=p.proxy;return a.k=m,a.j=h,m}(t,n):rs("ES5").J(t,n);return(n?n.A:C$()).p.push(r),r}function poe(e){return Mu(e)||$i(22,e),function t(n){if(!Ua(n))return n;var r,o=n[Ro],i=Yu(n);if(o){if(!o.P&&(o.i<4||!rs("ES5").K(o)))return o.t;o.I=!0,r=P$(n,i),o.I=!1}else r=P$(n,i);return qf(r,function(s,a){o&&coe(o.t,s)===a||TL(r,s,t(a))}),i===3?new Set(r):r}(e)}function P$(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nx(e)}var k$,Yf,zx=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",hoe=typeof Map!="undefined",moe=typeof Set!="undefined",I$=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",_L=zx?Symbol.for("immer-nothing"):((k$={})["immer-nothing"]=!0,k$),$$=zx?Symbol.for("immer-draftable"):"__$immer_draftable",Ro=zx?Symbol.for("immer-state"):"__$immer_state",goe=""+Object.prototype.constructor,Hx=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,voe=Object.getOwnPropertyDescriptors||function(e){var t={};return Hx(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},yoe={},fw={get:function(e,t){if(t===Ro)return e;var n=ha(e);if(!aw(n,t))return function(o,i,s){var a,c=E$(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||!Ua(r)?r:r===E1(e.t,t)?(P1(e),e.o[t]=dw(e.A.h,r,e)):r},has:function(e,t){return t in ha(e)},ownKeys:function(e){return Reflect.ownKeys(ha(e))},set:function(e,t,n){var r=E$(ha(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=E1(ha(e),t),i=o==null?void 0:o[Ro];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(uoe(n,o)&&(n!==void 0||aw(e.t,t)))return!0;P1(e),uw(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return E1(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,P1(e),uw(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ha(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){$i(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){$i(12)}},Xd={};qf(fw,function(e,t){Xd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Xd.deleteProperty=function(e,t){return Xd.set.call(this,e,t,void 0)},Xd.set=function(e,t,n){return fw.set.call(this,e[0],t,n,e[0])};var boe=function(){function e(n){var r=this;this.O=I$,this.D=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var a=i;i=o;var c=r;return function(v){var E=this;v===void 0&&(v=a);for(var w=arguments.length,C=Array(w>1?w-1:0),x=1;x<w;x++)C[x-1]=arguments[x];return c.produce(v,function(P){var $;return($=i).call.apply($,[E,P].concat(C))})}}var d;if(typeof i!="function"&&$i(6),s!==void 0&&typeof s!="function"&&$i(7),Ua(o)){var p=x$(r),h=dw(r,o,void 0),m=!0;try{d=i(h),m=!1}finally{m?ug(p):cw(p)}return typeof Promise!="undefined"&&d instanceof Promise?d.then(function(v){return x1(p,s),S1(v,p)},function(v){throw ug(p),v}):(x1(p,s),S1(d,p))}if(!o||typeof o!="object"){if((d=i(o))===void 0&&(d=o),d===_L&&(d=void 0),r.D&&Dx(d,!0),s){var g=[],b=[];rs("Patches").M(o,d,g,b),s(g,b)}return d}$i(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(d){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(d,function(g){return o.apply(void 0,[g].concat(h))})};var s,a,c=r.produce(o,i,function(d,p){s=d,a=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(d){return[d,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){Ua(n)||$i(8),Mu(n)&&(n=poe(n));var r=x$(this),o=dw(this,n,void 0);return o[Ro].C=!0,cw(r),o},t.finishDraft=function(n,r){var o=n&&n[Ro],i=o.A;return x1(i,r),S1(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!I$&&$i(20),this.O=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=rs("Patches").$;return Mu(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Oo=new boe,woe=Oo.produce;Oo.produceWithPatches.bind(Oo);Oo.setAutoFreeze.bind(Oo);Oo.setUseProxies.bind(Oo);Oo.applyPatches.bind(Oo);Oo.createDraft.bind(Oo);Oo.finishDraft.bind(Oo);const Coe=woe;xne({onResponse(e,t){return pt(this,null,function*(){if(e.status===401)throw un.loginRequired=(t==null?void 0:t.any)!==!1||403,new tL(e.status,"Unauthorized")})}});function To(...e){const[t,n,r]=jv(...e),o=e[0],i=t===void 0,s=u.useMemo(()=>o?n?u.createElement(Do,{severity:"error"},String(n),u.createElement(Fn,{icon:vx,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}}function ec(e,t={},{addId:n=!1,map:r=o=>o}={}){const[o,i]=Yr([]),[s,a]=Yr(void 0),[c,d]=Yr(void 0),[p,h]=Yr(!0),[m,g]=Yr(!1),[b,v]=Yr(!0),[E,w]=u.useState(0),C=u.useRef(0);return u.useEffect(()=>{if(!e)return;const I=[],k=It.debounce(()=>{const A=I.splice(0,1/0);A.length&&i(L=>[...L,...A])},1e3,{maxWait:1e3});d(void 0),g(!0),h(!0),v(!0),i([]);const M=nL(e,t,(A,L)=>{switch(A){case"connected":return h(!1),setTimeout(()=>k.flush());case"error":return d("Connection error"),O();case"closed":return O();case"msg":fre(L).forEach(D=>{if(D==="ready"){k.flush(),v(!1);return}if(D.error){D.error===401?un.loginRequired=D.any!==!1||403:d(EL(D.error));return}if(D.props)return a(D.props);if(D.add){const j=r(D.add);n&&(j.id=++C.current),I.push(j),k();return}if(D.remove){const j=[];for(const R of D.remove){const N=It.matches(R);It.isEmpty(It.remove(I,N))&&j.push(N)}if(It.isEmpty(j))return;i(R=>{const N=R.filter(H=>!j.some(V=>V(H)));return N.length<R.length?N:R});return}if(D.update){k.flush(),i(j=>{const R=[...j];for(const{search:N,change:H}of D.update){const V=R.findIndex(It.matches(N));V>=0&&(R[V]=$e($e({},R[V]),H))}return R});return}console.debug("unknown api event",A,D)}),(M==null?void 0:M.readyState)===(M==null?void 0:M.CLOSED)&&O()}});return()=>M.close();function O(){v(!1),g(!1),k.flush()}},[E,e,JSON.stringify(t)]),{list:o,props:s,loading:m,error:c,initializing:b,connecting:p,setList:i,updateList:P,updateEntry:$,reload:x};function x(){w(I=>I+1)}function P(I){i(Coe(o,k=>{I(k)}))}function $(I,k){P(M=>{const O=It.find(M,I);O&&Object.assign(O,k)})}}const ML=u.createContext(void 0);function At(){const e=u.useContext(ML);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(`
|
|
328
|
+
`));return e}const RL=u.createContext(void 0),rt=()=>{const e=u.useContext(RL);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},OL=u.createContext(void 0);function tc(){const e=u.useContext(OL);if(e===void 0)throw new Error(["MUI: Could not find the data grid private 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(`
|
|
329
|
+
`));return e}const T$={};function xoe(e,t){const n=u.useRef(T$);return n.current===T$&&(n.current=e(t)),n}const Soe=[];function Eoe(e){u.useEffect(e,Soe)}const hs=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
330
|
+
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Poe=Object.is;function LL(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Poe(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}hs(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function koe(e){return e.acceptsApiRef}function _$(e,t){return koe(t)?t(e):t(e.current.state)}const Ioe=Object.is,jx=LL,$oe=()=>({state:null,equals:null,selector:null}),Ge=(e,t,n=Ioe)=>{const r=xoe($oe),o=r.current.selector!==null,[i,s]=u.useState(o?null:_$(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,Eoe(()=>e.current.store.subscribe(()=>{const a=_$(e,r.current.selector);r.current.equals(r.current.state,a)||(r.current.state=a,s(a))})),i};function Ft(e){return Ze("MuiDataGrid",e)}const X=Xe("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell","cellContent","cellCheckbox","cellSkeleton","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","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","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","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Toe=e=>{const{classes:t}=e;return Me({root:["main"]},Ft,t)},_oe=fr("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),Moe=u.forwardRef((e,t)=>{const n=rt(),r=Toe(n);return _.jsx(_oe,{ref:t,className:r.root,ownerState:n,children:e.children})});var pg="NOT_FOUND";function Roe(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:pg},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Ooe(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return pg}function o(a,c){r(a)===pg&&(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 Loe=function(t,n){return t===n};function Aoe(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 Vx(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Loe:r,i=n.maxSize,s=i===void 0?1:i,a=n.resultEqualityCheck,c=Aoe(o),d=s===1?Roe(c):Ooe(s,c);function p(){var h=d.get(arguments);if(h===pg){if(h=e.apply(null,arguments),a){var m=d.getEntries(),g=m.find(function(b){return a(b.value,h)});g&&(h=g.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function Foe(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 Noe(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 d=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 g=h,b=g.memoizeOptions,v=b===void 0?n:b,E=Array.isArray(v)?v:[v],w=Foe(a),C=e.apply(void 0,[function(){return d++,m.apply(null,arguments)}].concat(E)),x=e(function(){for(var $=[],I=w.length,k=0;k<I;k++)$.push(w[k].apply(null,arguments));return p=C.apply(null,$),p});return Object.assign(x,{resultFunc:m,memoizedResultFunc:C,dependencies:w,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),x};return o}var Doe=Noe(Vx);const Boe={cache:new WeakMap};hs(["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 Je=(...e)=>{const t=(...n)=>{var r,o;const[i,s]=n,a=!!i.current,c=a?i.current.instanceId:s!=null?s:{id:"default"},d=a?i.current.state:i,{cache:p}=Boe;if(p.get(c)&&(r=p.get(c))!=null&&r.get(e)){var h;return(h=p.get(c))==null?void 0:h.get(e)(d,c)}const m=Doe(...e);return p.get(c)||p.set(c,new Map),(o=p.get(c))==null||o.set(e,m),m(d,c)};return t.acceptsApiRef=!0,t},Ru=e=>e.columns,os=Je(Ru,e=>e.orderedFields),Qu=Je(Ru,e=>e.lookup),is=Je(os,Qu,(e,t)=>e.map(n=>t[n])),Ti=Je(Ru,e=>e.columnVisibilityModel),_r=Je(is,Ti,(e,t)=>e.filter(n=>t[n.field]!==!1)),AL=Je(_r,e=>e.map(t=>t.field)),Ou=Je(_r,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),Ux=Je(_r,Ou,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),FL=Je(is,e=>e.filter(t=>t.filterable)),zoe=Je(is,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),Ai=e=>e.rows,Qv=Je(Ai,e=>e.totalRowCount),Hoe=Je(Ai,e=>e.loading),joe=Je(Ai,e=>e.totalTopLevelRowCount),wa=Je(Ai,e=>e.dataRowIdToModelLookup),hg=Je(Ai,e=>e.dataRowIdToIdLookup),ni=Je(Ai,e=>e.tree),Voe=Je(Ai,e=>e.groupingName),M$=Je(Ai,e=>e.treeDepths),Xv=Je(Ai,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),Wh=Je(Ai,e=>e.dataRowIds),Uoe=Je(Ai,e=>e==null?void 0:e.additionalRowGroups),Xu=Je(Uoe,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}})}}),Woe=Je(Xu,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)}),NL=e=>e.sorting,Wx=Je(NL,e=>e.sortedRows),Gx=Je(Wx,wa,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),Yo=Je(NL,e=>e.sortModel),Goe=Je(Yo,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),Kx=e=>e.filter,kr=Je(Kx,e=>e.filterModel);Je(kr,e=>e.quickFilterValues);const Koe=e=>e.visibleRowsLookup,DL=Je(Kx,e=>e.filteredRowsLookup);Je(Kx,e=>e.filteredDescendantCountLookup);const Zl=Je(Koe,Gx,(e,t)=>t.filter(n=>e[n.id]!==!1)),gf=Je(Zl,e=>e.map(t=>t.id)),qoe=Je(DL,Gx,(e,t)=>t.filter(n=>e[n.id]!==!1)),Yoe=Je(qoe,e=>e.map(t=>t.id)),BL=Je(Zl,ni,Xv,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),zL=Je(Zl,e=>e.length),Jv=Je(BL,e=>e.length),Qoe=Je(kr,Qu,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.field)return!1;const s=t[r.field];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.operator);return a?!a.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),Xoe=Je(Qoe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),Zv=e=>e.focus,Jo=Je(Zv,e=>e.cell),Joe=Je(Zv,e=>e.columnHeader);Je(Zv,e=>e.columnHeaderFilter);const mg=Je(Zv,e=>e.columnGroupHeader),ey=e=>e.tabIndex,gg=Je(ey,e=>e.cell),HL=Je(ey,e=>e.columnHeader);Je(ey,e=>e.columnHeaderFilter);const Zoe=Je(ey,e=>e.columnGroupHeader),qx=e=>e.density,eie=Je(qx,e=>e.value),Ju=Je(qx,e=>e.factor),ty=e=>e.columnGrouping,tie=Je(ty,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),jL=Je(ty,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),nie=Je(ty,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Cp=Je(ty,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),pw=e=>e.columnMenu;function rie(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=tc(),i=rt(),s=u.useRef(null),a=Ge(o,_r),c=Ge(o,Xoe),d=Ge(o,Goe),p=Ge(o,Ou),h=Ge(o,HL),m=Ge(o,gg),g=Ge(o,Zoe),b=Ge(o,Joe),v=Ge(o,mg),E=Ge(o,Ju),w=Ge(o,Cp),C=Ge(o,pw),x=Ge(o,Ti),P=Ge(o,nie),$=!(g===null&&h===null&&m===null),[I,k]=u.useState(i.disableVirtualization);sn(()=>{o.current.computeSizeAndPublishResizeEvent();const R=s.current;if(typeof ResizeObserver=="undefined")return()=>{};let N;const H=new ResizeObserver(()=>{N=window.requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return R&&H.observe(R),()=>{N&&window.cancelAnimationFrame(N),R&&H.unobserve(R)}},[o]);const M=u.useCallback(()=>{k(!0)},[]),O=u.useCallback(()=>{k(!1)},[]);u.useEffect(()=>{k(i.disableVirtualization)},[i.disableVirtualization]),o.current.unstable_disableVirtualization=M,o.current.unstable_enableVirtualization=O;const A=u.useRef(null),L=u.useRef(null),D=u.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:L,columnHeadersElementRef:A,virtualScrollerRef:D,mainElementRef:s});const j=!!o.current.getRootDimensions();return _.jsxs(Moe,{ref:s,children:[_.jsx(i.slots.columnHeaders,S({ref:L,innerRef:A,visibleColumns:a,filterColumnLookup:c,sortColumnLookup:d,columnPositions:p,columnHeaderTabIndexState:h,columnGroupHeaderTabIndexState:g,columnHeaderFocus:b,columnGroupHeaderFocus:v,densityFactor:E,headerGroupingMaxDepth:w,columnMenuState:C,columnVisibility:x,columnGroupsHeaderStructure:P,hasOtherElementInTabSequence:$},n)),j&&_.jsx(t,{ref:D,disableVirtualization:I}),r]})}function oie(){var e;const t=rt();return t.hideFooter?null:_.jsx(t.slots.footer,S({},(e=t.slotProps)==null?void 0:e.footer))}const $r="auto-generated-group-node-root",iie=()=>({type:"group",id:$r,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function sie(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(`
|
|
331
|
+
`))}const vg=(e,t,n)=>{const r=t?t(e):e.id;return sie(r,e,n),r},ym=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},s={};for(let a=0;a<e.length;a+=1){const c=e[a],d=vg(c,t);i[d]=c,s[d]=d,o.rows.push(d)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:s,dataRowIdToModelLookup:i}},VL=({tree:e,rowCountProp:t=0})=>{const n=e[$r];return Math.max(t,n.children.length+(n.footerId==null?0:1))},UL=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:s,treeDepths:a,dataRowIds:c,groupingName:d}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),p=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:a,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},S({},p,{totalRowCount:Math.max(t,p.dataRowIds.length),totalTopLevelRowCount:VL({tree:p.tree,rowCountProp:t}),groupingName:d,loading:n})},Qf=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,Yx=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const s=r.children[i];(!n||!Qf(e[s]))&&o.push(s),o.push(...Yx(e,s,n))}return!n&&r.footerId!=null&&o.push(r.footerId),o},lie=({previousCache:e,getRowId:t,updates:n})=>{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const s=new Map;n.forEach(m=>{const g=vg(m,t,"A row was provided without id when calling updateRows():");s.has(g)?s.set(g,S({},s.get(g),m)):s.set(g,m)});const a={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:S({},e.updates.idToActionLookup)},c=S({},e.dataRowIdToModelLookup),d=S({},e.dataRowIdToIdLookup),p={insert:{},modify:{},remove:{}};s.forEach((m,g)=>{const b=a.idToActionLookup[g];if(m._action==="delete"){if(b==="remove"||!c[g])return;b!=null&&(p[b][g]=!0),a.actions.remove.push(g),delete c[g],delete d[g];return}const v=c[g];if(v){b==="remove"?(p.remove[g]=!0,a.actions.modify.push(g)):b==null&&a.actions.modify.push(g),c[g]=S({},v,m);return}b==="remove"?(p.remove[g]=!0,a.actions.insert.push(g)):b==null&&a.actions.insert.push(g),c[g]=m,d[g]=g});const h=Object.keys(p);for(let m=0;m<h.length;m+=1){const g=h[m],b=p[g];Object.keys(b).length>0&&(a.actions[g]=a.actions[g].filter(v=>!b[v]))}return{dataRowIdToModelLookup:c,dataRowIdToIdLookup:d,updates:a,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function WL(e){var t,n;const r=Xu(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}}function GL(e,t){const n=Ju(e);return 2*Math.floor(t*n)}const aie=fr("div",{name:"MuiDataGrid",slot:"OverlayWrapper",overridesResolver:(e,t)=>t.overlayWrapper})({position:"sticky",top:0,left:0,width:0,height:0,zIndex:4}),cie=fr("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),uie=e=>{const{classes:t}=e;return Me({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Ft,t)};function die(e){var t,n;const r=At(),o=rt(),[i,s]=u.useState(()=>{var p,h;return(p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null}),a=u.useCallback(()=>{var p,h;s((p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null)},[r]);sn(()=>r.current.subscribeEvent("viewportInnerSizeChange",a),[r,a]);let c=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&c===0&&(c=GL(r,o.rowHeight));const d=uie(S({},e,{classes:o.classes}));return i?_.jsx(aie,{className:he(d.root),children:_.jsx(cie,S({className:he(d.inner),style:{height:c,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function fie(){const e=At(),t=rt(),n=Ge(e,Qv),r=Ge(e,zL),o=Ge(e,Hoe),i=!o&&n===0,s=!o&&n>0&&r===0;let a=null;if(i){var c;a=_.jsx(t.slots.noRowsOverlay,S({},(c=t.slotProps)==null?void 0:c.noRowsOverlay))}if(s){var d;a=_.jsx(t.slots.noResultsOverlay,S({},(d=t.slotProps)==null?void 0:d.noResultsOverlay))}if(o){var p;a=_.jsx(t.slots.loadingOverlay,S({},(p=t.slotProps)==null?void 0:p.loadingOverlay))}return a===null?null:_.jsx(die,{children:a})}function ny(e){return u.memo(e,LL)}let k1;function pie(){return k1===void 0&&document.createElement("div").focus({get preventScroll(){return k1=!0,!1}}),k1}var ds=function(e){return e.Cell="cell",e.Row="row",e}(ds||{}),en=function(e){return e.Edit="edit",e.View="view",e}(en||{}),fn=function(e){return e.Edit="edit",e.View="view",e}(fn||{}),Xr=function(e){return e.And="and",e.Or="or",e}(Xr||{}),al=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(al||{}),Pi=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Pi||{}),cl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(cl||{}),$s=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}($s||{});function KL(e){return e.field!==void 0}function hie(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function mie(e,t){return e.closest(`.${t}`)}function Qx(e){return e.replace(/["\\]/g,"\\$&")}function gie(e,t){return e.querySelector(`[role="columnheader"][data-field="${Qx(t)}"]`)}function qL(e){return`.${X.row}[data-id="${Qx(String(e))}"]`}function vie(e,t){return e.querySelector(qL(t))}function yie(e,{id:t,field:n}){const r=qL(t),o=`.${X.cell}[data-field="${Qx(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function Rt(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.register(n,{[s]:(...a)=>{const c=r.current[s];return c(...a)}})})},[o,e,n]);u.useEffect(()=>{r.current=t},[t]),u.useEffect(()=>{i()},[i]),i()}class Yc extends Error{}function bie(e){const t=u.useCallback(p=>({field:p,colDef:e.current.getColumn(p)}),[e]),n=u.useCallback(p=>{const h=e.current.getRow(p);if(!h)throw new Yc(`No row with id #${p} found`);return{id:p,columns:e.current.getAllColumns(),row:h}},[e]),r=u.useCallback((p,h)=>{const m=e.current.getRow(p),g=e.current.getRowNode(p);if(!m||!g)throw new Yc(`No row with id #${p} found`);const b=Jo(e),v=gg(e);return{id:p,field:h,row:m,rowNode:g,value:m[h],colDef:e.current.getColumn(h),cellMode:e.current.getCellMode(p,h),api:e.current,hasFocus:b!==null&&b.field===h&&b.id===p,tabIndex:v&&v.field===h&&v.id===p?0:-1}},[e]),o=u.useCallback((p,h)=>{const m=e.current.getColumn(h),g=e.current.getCellValue(p,h),b=e.current.getRow(p),v=e.current.getRowNode(p);if(!b||!v)throw new Yc(`No row with id #${p} found`);const E=Jo(e),w=gg(e),C={id:p,field:h,row:b,rowNode:v,colDef:m,cellMode:e.current.getCellMode(p,h),hasFocus:E!==null&&E.field===h&&E.id===p,tabIndex:w&&w.field===h&&w.id===p?0:-1,value:g,formattedValue:g,isEditable:!1};return m&&m.valueFormatter&&(C.formattedValue=m.valueFormatter({id:p,field:C.field,value:C.value,api:e.current})),C.isEditable=m&&e.current.isCellEditable(C),C},[e]),i=u.useCallback((p,h)=>{const m=e.current.getColumn(h);if(!m||!m.valueGetter){const g=e.current.getRow(p);if(!g)throw new Yc(`No row with id #${p} found`);return g[h]}return m.valueGetter(r(p,h))},[e,r]),s=u.useCallback(p=>e.current.rootElementRef.current?gie(e.current.rootElementRef.current,p):null,[e]),a=u.useCallback(p=>e.current.rootElementRef.current?vie(e.current.rootElementRef.current,p):null,[e]),c=u.useCallback((p,h)=>e.current.rootElementRef.current?yie(e.current.rootElementRef.current,{id:p,field:h}):null,[e]);Rt(e,{getCellValue:i,getCellParams:o,getCellElement:c,getRowParams:n,getRowElement:a,getColumnHeaderParams:t,getColumnHeaderElement:s},"public")}const wie=["changeReason","unstable_updateValueOnRender"],Cie=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],xie=["changeReason","unstable_updateValueOnRender"],yg={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:en.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Sie=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,classes:i}=e,s={root:["cell",`cell--text${ue(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder","withBorderColor"],content:["cellContent"]};return Me(s,Ft,i)},Eie=u.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,i=At(),s=rt(),a=n.field,c=Ge(i,()=>{try{const O=i.current.getCellParams(r,a);return O.api=i.current,O}catch(M){if(M instanceof Yc)return yg;throw M}},jx),d=Ge(i,()=>i.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:a}));if(c===yg)return null;const{cellMode:p,hasFocus:h,isEditable:m,value:g,formattedValue:b}=c,v=n.type==="actions",E=(p==="view"||!m)&&!v?c.tabIndex:-1,{classes:w,getCellClassName:C}=s,x=i.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:a});n.cellClassName&&x.push(typeof n.cellClassName=="function"?n.cellClassName(c):n.cellClassName),C&&x.push(C(c));let P;if(o==null&&n.renderCell&&(P=n.renderCell(c),x.push(X["cell--withRenderer"]),x.push(w==null?void 0:w["cell--withRenderer"])),o!=null&&n.renderEditCell){const M=i.current.getRowWithUpdatedValues(r,n.field),O=ne(o,wie),A=S({},c,{row:M},O);P=n.renderEditCell(A),x.push(X["cell--editing"]),x.push(w==null?void 0:w["cell--editing"])}const{slots:$}=s,I=$.cell,k=S({},e,{ref:t,field:a,formattedValue:b,hasFocus:h,isEditable:m,isSelected:d,value:g,cellMode:p,children:P,tabIndex:E,className:he(x)});return u.createElement(I,k)}),Pie=ny(Eie),kie=u.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o,align:i,colIndex:s,height:a,width:c,className:d,showRightBorder:p,colSpan:h,disableDragEvents:m,onClick:g,onDoubleClick:b,onMouseDown:v,onMouseUp:E,onMouseOver:w,onKeyDown:C,onKeyUp:x,onDragEnter:P,onDragOver:$}=e,I=ne(e,Cie),k=At(),M=rt(),O=n.field,A=Ge(k,()=>{try{const be=k.current.getCellParams(r,O);return be.api=k.current,be}catch(pe){if(pe instanceof Yc)return yg;throw pe}},jx),L=Ge(k,()=>k.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:O})),{cellMode:D,hasFocus:j,isEditable:R,value:N,formattedValue:H}=A,V=n.type==="actions",F=(D==="view"||!R)&&!V?A.tabIndex:-1,{classes:z,getCellClassName:W}=M,K=k.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:O});n.cellClassName&&K.push(typeof n.cellClassName=="function"?n.cellClassName(A):n.cellClassName),W&&K.push(W(A));const Y=H==null?N:H,ae=u.useRef(null),re=Ht(t,ae),de=u.useRef(null),ie={align:i,showRightBorder:p,isEditable:R,classes:M.classes,isSelected:L},se=Sie(ie),Se=u.useCallback(pe=>be=>{const te=k.current.getCellParams(r,O||"");k.current.publishEvent(pe,te,be),E&&E(be)},[k,O,E,r]),ye=u.useCallback(pe=>be=>{const te=k.current.getCellParams(r,O||"");k.current.publishEvent(pe,te,be),v&&v(be)},[k,O,v,r]),Ie=u.useCallback((pe,be)=>te=>{if(!k.current.getRow(r))return;const Le=k.current.getCellParams(r,O||"");k.current.publishEvent(pe,Le,te),be&&be(te)},[k,O,r]),ee={minWidth:c,maxWidth:c,minHeight:a,maxHeight:a==="auto"?"none":a};if(u.useEffect(()=>{if(!j||D===en.Edit)return;const pe=Cn(k.current.rootElementRef.current);if(ae.current&&!ae.current.contains(pe.activeElement)){const be=ae.current.querySelector('[tabindex="0"]'),te=de.current||be||ae.current;if(pie())te.focus({preventScroll:!0});else{const Le=k.current.getScrollPosition();te.focus(),k.current.scroll(Le)}}},[j,D,k]),A===yg)return null;let ke=I.onFocus,_e;if(o==null&&n.renderCell&&(_e=n.renderCell(A),K.push(X["cell--withRenderer"]),K.push(z==null?void 0:z["cell--withRenderer"])),o!=null&&n.renderEditCell){const pe=k.current.getRowWithUpdatedValues(r,n.field),be=ne(o,xie),te=S({},A,{row:pe},be);_e=n.renderEditCell(te),K.push(X["cell--editing"]),K.push(z==null?void 0:z["cell--editing"])}if(_e===void 0){const pe=Y==null?void 0:Y.toString();_e=_.jsx("div",{className:se.content,title:pe,children:pe})}u.isValidElement(_e)&&V&&(_e=u.cloneElement(_e,{focusElementRef:de}));const Ee=m?null:{onDragEnter:Ie("cellDragEnter",P),onDragOver:Ie("cellDragOver",$)};return _.jsx("div",S({ref:re,className:he(d,K,se.root),role:"cell","data-field":O,"data-colindex":s,"aria-colindex":s+1,"aria-colspan":h,style:ee,tabIndex:F,onClick:Ie("cellClick",g),onDoubleClick:Ie("cellDoubleClick",b),onMouseOver:Ie("cellMouseOver",w),onMouseDown:ye("cellMouseDown"),onMouseUp:Se("cellMouseUp"),onKeyDown:Ie("cellKeyDown",C),onKeyUp:Ie("cellKeyUp",x)},Ee,I,{onFocus:ke,children:_e}))}),hw=ny(kie),Iie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],$ie=e=>{const{classes:t}=e;return Me({root:["booleanCell"]},Ft,t)};function Tie(e){const{value:t}=e,n=ne(e,Iie),r=At(),o=rt(),i={classes:o.classes},s=$ie(i),a=u.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return _.jsx(a,S({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const _ie=u.memo(Tie),Mie=e=>Qf(e.rowNode)?"":_.jsx(_ie,S({},e)),Rie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Oie=e=>{const{classes:t}=e;return Me({root:["editBooleanCell"]},Ft,t)};function Lie(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:s,onValueChange:a}=e,c=ne(e,Rie),d=At(),p=u.useRef(null),h=on(),[m,g]=u.useState(r),b=rt(),v={classes:b.classes},E=Oie(v),w=u.useCallback(C=>pt(this,null,function*(){const x=C.target.checked;a&&(yield a(C,x)),g(x),yield d.current.setEditCellValue({id:n,field:o,value:x},C)}),[d,o,n,a]);return u.useEffect(()=>{g(r)},[r]),sn(()=>{s&&p.current.focus()},[s]),_.jsx("label",S({htmlFor:h,className:he(E.root,i)},c,{children:_.jsx(b.slots.baseCheckbox,S({id:h,inputRef:p,checked:!!m,onChange:w,size:"small"},(t=b.slotProps)==null?void 0:t.baseCheckbox))}))}const Aie=e=>_.jsx(Lie,S({},e)),Fie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Nie=oe(Wu)({fontSize:"inherit"}),Die=e=>{const{classes:t}=e;return Me({root:["editInputCell"]},Ft,t)};function Bie(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,c=ne(e,Fie),d=o.type==="dateTime",p=At(),h=u.useRef(),m=u.useMemo(()=>{let k;n==null?k=null:n instanceof Date?k=n:k=new Date((n!=null?n:"").toString());let M;return k==null||Number.isNaN(k.getTime())?M="":M=new Date(k.getTime()-k.getTimezoneOffset()*60*1e3).toISOString().substr(0,d?16:10),{parsed:k,formatted:M}},[n,d]),[g,b]=u.useState(m),E={classes:rt().classes},w=Die(E),C=u.useRef(!1),x=u.useCallback(k=>{if(k==="")return null;const[M,O]=k.split("T"),[A,L,D]=M.split("-"),j=new Date;if(j.setFullYear(Number(A),Number(L)-1,Number(D)),j.setHours(0,0,0,0),O){const[R,N]=O.split(":");j.setHours(Number(R),Number(N),0,0)}return j},[]),P=u.useCallback(k=>pt(this,null,function*(){const M=k.target.value,O=x(M);a&&(yield a(k,O)),b({parsed:O,formatted:M}),p.current.setEditCellValue({id:t,field:r,value:O},k)}),[p,r,t,a,x]);u.useEffect(()=>{b(k=>{var M,O;return m.parsed!==k.parsed&&((M=m.parsed)==null?void 0:M.getTime())!==((O=k.parsed)==null?void 0:O.getTime())?m:k})},[m]),sn(()=>{i&&h.current.focus()},[i]);const $=p.current.unstable_getEditCellMeta(t,r),I=k=>{if(h.current=k,$.unstable_updateValueOnRender&&!C.current){const M=h.current.value,O=x(M);b({parsed:O,formatted:M}),p.current.setEditCellValue({id:t,field:r,value:O}),C.current=!0}};return _.jsx(Nie,S({inputRef:I,fullWidth:!0,className:w.root,type:d?"datetime-local":"date",inputProps:S({max:d?"9999-12-31T23:59":"9999-12-31"},s),value:g.formatted,onChange:P},c))}const YL=e=>_.jsx(Bie,S({},e)),zie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Hie=e=>{const{classes:t}=e;return Me({root:["editInputCell"]},Ft,t)},jie=oe(Wu,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>S({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Vie=u.forwardRef((e,t)=>{const n=rt(),{id:r,value:o,field:i,colDef:s,hasFocus:a,debounceMs:c=200,isProcessingProps:d,onValueChange:p}=e,h=ne(e,zie),m=At(),g=u.useRef(),[b,v]=u.useState(o),E=Hie(n),w=u.useCallback(x=>pt(void 0,null,function*(){const P=x.target.value;p&&(yield p(x,P));const $=m.current.getColumn(i);let I=P;$.valueParser&&(I=$.valueParser(P,m.current.getCellParams(r,i))),v(I),m.current.setEditCellValue({id:r,field:i,value:I,debounceMs:c,unstable_skipValueParser:!0},x)}),[m,c,i,r,p]),C=m.current.unstable_getEditCellMeta?m.current.unstable_getEditCellMeta(r,i):{};return u.useEffect(()=>{C.changeReason!=="debouncedSetEditCellValue"&&v(o)},[C.changeReason,o]),sn(()=>{a&&g.current.focus()},[a]),_.jsx(jie,S({ref:t,inputRef:g,className:E.root,ownerState:n,fullWidth:!0,type:s.type==="number"?s.type:"text",value:b!=null?b:"",onChange:w,endAdornment:d?_.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},h))}),Uie=e=>_.jsx(Vie,S({},e)),bg=e=>e==="Escape",Wie=e=>e==="Enter",QL=e=>e==="Tab",XL=e=>e===" ",Gie=e=>e.indexOf("Arrow")===0,Kie=e=>e==="Home"||e==="End",qie=e=>e.indexOf("Page")===0;function JL(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const wg=e=>Kie(e)||Gie(e)||qie(e)||XL(e),Yie=e=>!!e.key,Qie=e=>QL(e)||bg(e);function Ta(e){return(e==null?void 0:e.type)==="singleSelect"}function mw(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const Xie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Jie=["MenuProps"];function Zie(e){return!!e.key}function ese(e){var t,n,r;const o=rt(),{id:i,value:s,field:a,row:c,colDef:d,hasFocus:p,error:h,onValueChange:m,initialOpen:g=o.editMode===ds.Cell,getOptionLabel:b,getOptionValue:v}=e,E=ne(e,Xie),w=At(),C=u.useRef(),x=u.useRef(),[P,$]=u.useState(g),k=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,M=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:O}=M,A=ne(M,Jie);if(sn(()=>{if(p){var V;(V=x.current)==null||V.focus()}},[p]),!Ta(d))return null;let L;if(typeof(d==null?void 0:d.valueOptions)=="function"?L=d==null?void 0:d.valueOptions({id:i,row:c,field:a}):L=d==null?void 0:d.valueOptions,!L)return null;const D=v||d.getOptionValue,j=b||d.getOptionLabel,R=V=>pt(this,null,function*(){if(!Ta(d)||!L)return;$(!1);const F=V.target,z=mw(F.value,L,D);m&&(yield m(V,z)),yield w.current.setEditCellValue({id:i,field:a,value:z},V)}),N=(V,F)=>{if(o.editMode===ds.Row){$(!1);return}if(F==="backdropClick"||bg(V.key)){const z=w.current.getCellParams(i,a);w.current.publishEvent("cellEditStop",S({},z,{reason:bg(V.key)?Pi.escapeKeyDown:Pi.cellFocusOut}))}},H=V=>{Zie(V)&&V.key==="Enter"||$(!0)};return!L||!d?null:_.jsx(o.slots.baseSelect,S({ref:C,inputRef:x,value:s,onChange:R,open:P,onOpen:H,MenuProps:S({onClose:N},O),error:h,native:k,fullWidth:!0},E,A,{children:L.map(V=>{var F;const z=D(V);return u.createElement(o.slots.baseSelectOption,S({},((F=o.slotProps)==null?void 0:F.baseSelectOption)||{},{native:k,key:z,value:z}),j(V))})}))}const tse=e=>_.jsx(ese,S({},e)),nse=["open","target","onClickAway","children","position","className","onExited"],rse=e=>{const{classes:t}=e;return Me({root:["menu"]},Ft,t)},ose=oe(Ja,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${X.menuList}`]:{outline:0}})),ise={"bottom-start":"top left","bottom-end":"top right"};function ZL(e){var t;const{open:n,target:r,onClickAway:o,children:i,position:s,className:a,onExited:c}=e,d=ne(e,nse),p=At(),h=rt(),m=rse(h);u.useEffect(()=>{const b=n?"menuOpen":"menuClose";p.current.publishEvent(b,{target:r})},[p,n,r]);const g=b=>v=>{b&&b(),c&&c(v)};return _.jsx(ose,S({as:h.slots.basePopper,className:he(a,m.root),ownerState:h,open:n,anchorEl:r,transition:!0,placement:s},d,(t=h.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:b,placement:v})=>_.jsx(WR,{onClickAway:o,mouseEvent:"onMouseDown",children:_.jsx(og,S({},b,{style:{transformOrigin:ise[v]},onExited:g(b==null?void 0:b.onExited),children:_.jsx(gi,{children:i})}))})}))}const sse=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],lse=e=>typeof e.getActions=="function";function ase(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:i,position:s="bottom-end",focusElementRef:a}=e,c=ne(e,sse),[d,p]=u.useState(-1),[h,m]=u.useState(!1),g=At(),b=u.useRef(null),v=u.useRef(null),E=u.useRef(!1),w=u.useRef({}),C=pr(),x=on(),P=on(),$=rt();if(!lse(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const I=n.getActions(g.current.getRowParams(r)),k=I.filter(H=>!H.props.showInMenu),M=I.filter(H=>H.props.showInMenu),O=k.length+(M.length?1:0);u.useLayoutEffect(()=>{o||Object.entries(w.current).forEach(([H,V])=>{V==null||V.stop({},()=>{delete w.current[H]})})},[o]),u.useEffect(()=>{if(d<0||!b.current||d>=b.current.children.length)return;b.current.children[d].focus({preventScroll:!0})},[d]),u.useEffect(()=>{o||(p(-1),E.current=!1)},[o]),u.useImperativeHandle(a,()=>({focus(){E.current||p(0)}}),[]),u.useEffect(()=>{d>=O&&p(O-1)},[d,O]);const A=()=>{m(!0),p(O-1),E.current=!0},L=()=>{m(!1)},D=H=>V=>{w.current[H]=V},j=(H,V)=>F=>{p(H),E.current=!0,V&&V(F)},R=H=>{if(O<=1)return;let V=d;H.key==="ArrowRight"?C.direction==="rtl"?V-=1:V+=1:H.key==="ArrowLeft"&&(C.direction==="rtl"?V+=1:V-=1),!(V<0||V>=O)&&V!==d&&(H.preventDefault(),H.stopPropagation(),p(V))},N=H=>{H.key==="Tab"&&H.preventDefault(),["Tab","Enter","Escape"].includes(H.key)&&L()};return _.jsxs("div",S({role:"menu",ref:b,tabIndex:-1,className:X.actionsCell,onKeyDown:R},c,{children:[k.map((H,V)=>u.cloneElement(H,{key:V,touchRippleRef:D(V),onClick:j(V,H.props.onClick),tabIndex:d===V?i:-1})),M.length>0&&P&&_.jsx($.slots.baseIconButton,S({ref:v,id:P,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?x:void 0,role:"menuitem",size:"small",onClick:A,touchRippleRef:D(P),tabIndex:d===k.length?i:-1},(t=$.slotProps)==null?void 0:t.baseIconButton,{children:_.jsx($.slots.moreActionsIcon,{fontSize:"small"})})),M.length>0&&_.jsx(ZL,{onClickAway:L,onClick:L,open:h,target:v.current,position:s,children:_.jsx(Bv,{id:x,className:X.menuList,onKeyDown:N,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:M.map((H,V)=>u.cloneElement(H,{key:V}))})})]}))}const cse=e=>_.jsx(ase,S({},e)),use=["field","align","width","contentWidth"],dse=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${ue(t)}`,"withBorderColor"]};return Me(r,Ft,n)};function fse(e){const{align:t,width:n,contentWidth:r}=e,o=ne(e,use),s={classes:rt().classes,align:t},a=dse(s);return _.jsx("div",S({className:a.root,style:{width:n}},o,{children:_.jsx(see,{width:`${r}%`})}))}function pse(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?za(ct(e.palette.divider,1),.88):Ba(ct(e.palette.divider,1),.68)}const R$={[`.${X.columnSeparator}, .${X["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},O$={[`& .${X.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${X.menuIcon}`]:{width:"auto",visibility:"visible"}},hse=oe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${X.autoHeight}`]:t.autoHeight},{[`&.${X.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${X["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${X["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${X["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${X.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${X["root--disableUserSelection"]} .${X.cell}`]:t["root--disableUserSelection"]},{[`& .${X.editBooleanCell}`]:t.editBooleanCell},{[`& .${X["cell--editing"]}`]:t["cell--editing"]},{[`& .${X["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${X["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${X["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${X["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${X.cell}`]:t.cell},{[`& .${X["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${X["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${X["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${X["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${X["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${X.cellContent}`]:t.cellContent},{[`& .${X.cellCheckbox}`]:t.cellCheckbox},{[`& .${X.cellSkeleton}`]:t.cellSkeleton},{[`& .${X.checkboxInput}`]:t.checkboxInput},{[`& .${X["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${X["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${X["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${X["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${X["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${X["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${X["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${X["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${X["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${X.columnHeader}`]:t.columnHeader},{[`& .${X.headerFilterRow}`]:t.headerFilterRow},{[`& .${X.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${X.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${X.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${X["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${X["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${X.columnSeparator}`]:t.columnSeparator},{[`& .${X.filterIcon}`]:t.filterIcon},{[`& .${X.iconSeparator}`]:t.iconSeparator},{[`& .${X.menuIcon}`]:t.menuIcon},{[`& .${X.menuIconButton}`]:t.menuIconButton},{[`& .${X.menuOpen}`]:t.menuOpen},{[`& .${X.menuList}`]:t.menuList},{[`& .${X["row--editable"]}`]:t["row--editable"]},{[`& .${X["row--editing"]}`]:t["row--editing"]},{[`& .${X["row--dragging"]}`]:t["row--dragging"]},{[`& .${X.row}`]:t.row},{[`& .${X.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${X.rowReorderCell}`]:t.rowReorderCell},{[`& .${X["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${X.sortIcon}`]:t.sortIcon},{[`& .${X.withBorderColor}`]:t.withBorderColor},{[`& .${X.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${X.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${X.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${X["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=pse(e),n=e.shape.borderRadius;return S({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:ct(e.palette.background.default,e.palette.action.disabledOpacity),flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${X.autoHeight}`]:{height:"auto",[`& .${X["row--lastVisible"]} .${X.cell}`]:{borderBottomColor:"transparent"}},[`& .${X["virtualScrollerContent--overflowed"]} .${X["row--lastVisible"]} .${X.cell}`]:{borderBottomColor:"transparent"},[`& .${X.columnHeader}, & .${X.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${X.columnHeader}:focus-within, & .${X.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:ct(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${X.columnHeader}:focus, & .${X.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${X.columnHeaderCheckbox}, & .${X.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${X.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${X["columnHeader--sorted"]} .${X.iconButtonContainer}, & .${X["columnHeader--filtered"]} .${X.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${X.columnHeader}:not(.${X["columnHeader--sorted"]}) .${X.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${X.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${X.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${X["columnHeader--filledGroup"]} .${X.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${X["columnHeader--filledGroup"]}.${X["columnHeader--showColumnBorder"]} .${X.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${X["columnHeader--filledGroup"]}.${X["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${X.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${X.sortIcon}, & .${X.filterIcon}`]:{fontSize:"inherit"},[`& .${X["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${X["columnHeader--alignCenter"]} .${X.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${X["columnHeader--alignRight"]} .${X.columnHeaderDraggableContainer}, & .${X["columnHeader--alignRight"]} .${X.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${X["columnHeader--alignCenter"]} .${X.menuIcon}, & .${X["columnHeader--alignRight"]} .${X.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${X["columnHeader--alignRight"]} .${X.menuIcon}, & .${X["columnHeader--alignRight"]} .${X.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${X["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${X.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${X.columnHeaders}:hover`]:R$,[`& .${X.columnHeader}:hover`]:O$,[`& .${X.columnHeader}:not(.${X["columnHeader--sorted"]}):hover .${X.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${X.columnHeaders}`]:R$,[`& .${X.columnHeader}`]:O$},[`& .${X["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${X["columnSeparator--sideRight"]}`]:{right:-12},[`& .${X["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${X["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${X.iconSeparator}`]:{color:"inherit"},[`& .${X.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${X.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${X.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:ct(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})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${X.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:ct(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})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${X["root--disableUserSelection"]} .${X.cell}`]:{userSelect:"none"},[`& .${X.row}:not(.${X["row--dynamicHeight"]}) > .${X.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${X.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${X.cell}.${X["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${X["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${X["row--editing"]} .${X.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${X.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${X.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${X.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${X.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${X.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${X["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${X.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${X.withBorderColor}`]:{borderColor:t},[`& .${X["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${X["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${X["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${X["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${X["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${X.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${X.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${X["columnHeader--dragging"]}, & .${X["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${X["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${X.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${X.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${X.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${X.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${X.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),mse=["children","className"],gse=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${ue(n)}`,"withBorderColor"]};return Me(o,Ft,r)},vse=u.forwardRef(function(t,n){const r=rt(),{children:o,className:i}=t,s=ne(t,mse),a=tc(),c=Ge(a,_r),d=Ge(a,Qv),p=Ge(a,eie),h=Ge(a,Cp),m=u.useRef(null),g=Ht(m,n),b=Ge(a,Woe),v=S({},r,{density:p}),E=gse(v);a.current.register("public",{rootElementRef:m});const[w,C]=u.useState(!1);return sn(()=>{C(!0)},[]),w?_.jsx(hse,S({ref:g,className:he(i,E.root),ownerState:v,role:"grid","aria-colcount":c.length,"aria-rowcount":h+1+b+d,"aria-multiselectable":!r.disableMultipleRowSelection},s,{children:o})):null}),yse=["className"],bse=e=>{const{classes:t}=e;return Me({root:["footerContainer","withBorderColor"]},Ft,t)},wse=fr("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),Cse=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,yse),i=rt(),s=bse(i);return _.jsx(wse,S({ref:n,className:he(s.root,r),ownerState:i},o))}),xse=["className"],Sse=e=>{const{classes:t}=e;return Me({root:["overlay"]},Ft,t)},Ese=fr("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),Xx=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,xse),i=rt(),s=Sse(i);return _.jsx(Ese,S({ref:n,className:he(s.root,r),ownerState:i},o))}),Pse=["className"],kse=e=>{const{classes:t}=e;return Me({root:["iconButtonContainer"]},Ft,t)},Ise=fr("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),eA=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,Pse),i=rt(),s=kse(i);return _.jsx(Ise,S({ref:n,className:he(s.root,r),ownerState:i},o))}),$se=e=>{const{classes:t}=e;return Me({icon:["sortIcon"]},Ft,t)};function Tse(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?_.jsx(o,S({fontSize:"small",className:n},i)):null}function _se(e){var t;const{direction:n,index:r,sortingOrder:o}=e,i=At(),s=rt(),a=S({},e,{classes:s.classes}),c=$se(a),d=Tse(s.slots,n,c.icon,o);if(!d)return null;const p=_.jsx(s.slots.baseIconButton,S({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:d}));return _.jsxs(eA,{children:[r!=null&&_.jsx(fO,{badgeContent:r,color:"default",children:p}),r==null&&p]})}const Mse=u.memo(_se),Rse=e=>{const{classes:t,open:n}=e;return Me({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Ft,t)},Ose=u.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:i,columnMenuButtonId:s,iconButtonRef:a}=e,c=At(),d=rt(),p=S({},e,{classes:d.classes}),h=Rse(p),m=u.useCallback(g=>{g.preventDefault(),g.stopPropagation(),c.current.toggleColumnMenu(r.field)},[c,r.field]);return _.jsx("div",{className:h.root,children:_.jsx(d.slots.baseTooltip,S({title:c.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=d.slotProps)==null?void 0:t.baseTooltip,{children:_.jsx(d.slots.baseIconButton,S({ref:a,tabIndex:-1,className:h.button,"aria-label":c.current.getLocaleText("columnMenuLabel"),size:"small",onClick:m,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?i:void 0,id:s},(n=d.slotProps)==null?void 0:n.baseIconButton,{children:_.jsx(d.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function Lse({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const c=At(),d=c.current.getColumn(o),p=u.useCallback(h=>{h.stopPropagation(),s!=null&&s.contains(h.target)||c.current.hideColumnMenu()},[c,s]);return!s||!d?null:_.jsx(ZL,{placement:`bottom-${d.align==="right"?"start":"end"}`,open:i,target:s,onClickAway:p,onExited:a,children:_.jsx(n,S({colDef:d,hideMenu:p,open:i,id:e,labelledby:t},r))})}const Ase=["className"],Fse=e=>{const{classes:t}=e;return Me({root:["columnHeaderTitle"]},Ft,t)},Nse=fr("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),Dse=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,Ase),i=rt(),s=Fse(i);return _.jsx(Nse,S({ref:n,className:he(s.root,r),ownerState:i},o))});function Bse(e){var t;const{label:n,description:r}=e,o=rt(),i=u.useRef(null),[s,a]=u.useState(""),c=u.useCallback(()=>{if(!r&&i!=null&&i.current){const d=hie(i.current);a(d?n:"")}},[r,n]);return _.jsx(o.slots.baseTooltip,S({title:r||s},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:_.jsx(Dse,{onMouseOver:c,ref:i,children:n})}))}const zse=["resizable","resizing","height","side"];var tA=function(e){return e.Left="left",e.Right="right",e}(tA||{});const Hse=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ue(o)}`],icon:["iconSeparator"]};return Me(i,Ft,r)};function jse(e){const{height:t,side:n=tA.Right}=e,r=ne(e,zse),o=rt(),i=S({},e,{side:n,classes:o.classes}),s=Hse(i),a=u.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return _.jsx("div",S({className:s.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:a,children:_.jsx(o.slots.columnResizeIcon,{className:s.icon})}))}const Vse=u.memo(jse),Use=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],nA=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:s,isResizing:a,sortDirection:c,hasFocus:d,tabIndex:p,separatorSide:h,isDraggable:m,headerComponent:g,description:b,width:v,columnMenuIconButton:E=null,columnMenu:w=null,columnTitleIconButtons:C=null,headerClassName:x,label:P,resizable:$,draggableContainerProps:I,columnHeaderSeparatorProps:k}=t,M=ne(t,Use),O=tc(),A=rt(),L=u.useRef(null),[D,j]=u.useState(o),R=Ht(L,n);let N="none";return c!=null&&(N=c==="asc"?"ascending":"descending"),u.useEffect(()=>{D||j(o)},[D,o]),u.useLayoutEffect(()=>{const H=O.current.state.columnMenu;if(d&&!H.open){const F=L.current.querySelector('[tabindex="0"]')||L.current;F==null||F.focus(),O.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[O,d]),_.jsxs("div",S({ref:R,className:he(r.root,x),style:{height:s,width:v,minWidth:v,maxWidth:v},role:"columnheader",tabIndex:p,"aria-colindex":i+1,"aria-sort":N,"aria-label":g==null?P:void 0},M,{children:[_.jsxs("div",S({className:r.draggableContainer,draggable:m},I,{children:[_.jsxs("div",{className:r.titleContainer,children:[_.jsx("div",{className:r.titleContainerContent,children:g!==void 0?g:_.jsx(Bse,{label:P,description:b,columnWidth:v})}),C]}),E]})),_.jsx(Vse,S({resizable:!A.disableColumnResize&&!!$,resizing:a,height:s,side:h},k)),w]}))}),Wse=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:s}=e,a=o!=null,c=s!=null&&s>0,d=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",d&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Me(p,Ft,n)};function Gse(e){var t,n,r,o;const{colDef:i,columnMenuOpen:s,colIndex:a,headerHeight:c,isResizing:d,sortDirection:p,sortIndex:h,filterItemsCounter:m,hasFocus:g,tabIndex:b,disableReorder:v,separatorSide:E}=e,w=tc(),C=rt(),x=u.useRef(null),P=on(),$=on(),I=u.useRef(null),[k,M]=u.useState(s),O=u.useMemo(()=>!C.disableColumnReorder&&!v&&!i.disableReorder,[C.disableColumnReorder,v,i.disableReorder]);let A;i.renderHeader&&(A=i.renderHeader(w.current.getColumnHeaderParams(i.field)));const L=S({},e,{classes:C.classes,showRightBorder:C.showColumnVerticalBorder}),D=Wse(L),j=u.useCallback(re=>de=>{de.currentTarget.contains(de.target)&&w.current.publishEvent(re,w.current.getColumnHeaderParams(i.field),de)},[w,i.field]),R=u.useMemo(()=>({onClick:j("columnHeaderClick"),onDoubleClick:j("columnHeaderDoubleClick"),onMouseOver:j("columnHeaderOver"),onMouseOut:j("columnHeaderOut"),onMouseEnter:j("columnHeaderEnter"),onMouseLeave:j("columnHeaderLeave"),onKeyDown:j("columnHeaderKeyDown"),onFocus:j("columnHeaderFocus"),onBlur:j("columnHeaderBlur")}),[j]),N=u.useMemo(()=>O?{onDragStart:j("columnHeaderDragStart"),onDragEnter:j("columnHeaderDragEnter"),onDragOver:j("columnHeaderDragOver"),onDragEnd:j("columnHeaderDragEnd")}:{},[O,j]),H=u.useMemo(()=>({onMouseDown:j("columnSeparatorMouseDown")}),[j]);u.useEffect(()=>{k||M(s)},[k,s]);const V=u.useCallback(()=>{M(!1)},[]),F=!C.disableColumnMenu&&!i.disableColumnMenu&&_.jsx(Ose,{colDef:i,columnMenuId:P,columnMenuButtonId:$,open:k,iconButtonRef:I}),z=_.jsx(Lse,{columnMenuId:P,columnMenuButtonId:$,field:i.field,open:s,target:I.current,ContentComponent:C.slots.columnMenu,contentComponentProps:(t=C.slotProps)==null?void 0:t.columnMenu,onExited:V}),W=(n=i.sortingOrder)!=null?n:C.sortingOrder,K=_.jsxs(u.Fragment,{children:[!C.disableColumnFilter&&_.jsx(C.slots.columnHeaderFilterIconButton,S({field:i.field,counter:m},(r=C.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),i.sortable&&!i.hideSortIcons&&_.jsx(Mse,{direction:p,index:h,sortingOrder:W})]});u.useLayoutEffect(()=>{const re=w.current.state.columnMenu;if(g&&!re.open){const ie=x.current.querySelector('[tabindex="0"]')||x.current;ie==null||ie.focus(),w.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[w,g]);const Y=typeof i.headerClassName=="function"?i.headerClassName({field:i.field,colDef:i}):i.headerClassName,ae=(o=i.headerName)!=null?o:i.field;return _.jsx(nA,S({ref:x,classes:D,columnMenuOpen:s,colIndex:a,height:c,isResizing:d,sortDirection:p,hasFocus:g,tabIndex:b,separatorSide:E,isDraggable:O,headerComponent:A,description:i.description,elementId:i.field,width:i.computedWidth,columnMenuIconButton:F,columnTitleIconButtons:K,headerClassName:Y,label:ae,resizable:!C.disableColumnResize&&!!i.resizable,"data-field":i.field,columnMenu:z,draggableContainerProps:N,columnHeaderSeparatorProps:H},R))}const Xf=()=>({items:[],logicOperator:Xr.And,quickFilterValues:[],quickFilterLogicOperator:Xr.And}),L$=1e3;class Kse{constructor(t=L$){this.timeouts=new Map,this.cleanupTimeout=L$,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 qse{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 ss=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(ss||{});class Yse{}function Qse(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new qse:new Kse);const[a]=u.useState(new Yse),c=u.useRef(null),d=u.useRef();d.current=i;const p=u.useRef(null);if(!c.current&&d.current){const h=(m,g,b)=>{if(!g.defaultMuiPrevented){var v;(v=d.current)==null||v.call(d,m,g,b)}};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!d.current&&c.current&&(c.current(),c.current=null,p.current&&(e.registry.unregister(p.current),p.current=null));u.useEffect(()=>{if(!c.current&&d.current){const h=(m,g,b)=>{if(!g.defaultMuiPrevented){var v;(v=d.current)==null||v.call(d,m,g,b)}};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 Xse={registry:null},lt=Qse(Xse),Jse={isFirst:!0};function yn(e,t,n){lt(e,t,n,Jse)}function Or(e,t){const n=u.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function Zse(e){return typeof e=="number"}function rA(e){return typeof e=="function"}function Jx(e){return typeof e=="object"&&e!==null}function ele(){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 bm(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Lu=(e,t,n)=>Math.max(t,Math.min(n,e));function _a(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(!_a(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(!_a(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(!_a(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function tle(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function nle(e,t,n){const r=tle(e);return()=>t+(n-t)*r()}function oA(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const rle=(e,t,n,r,o)=>{const i=Or(e,"useNativeEventListener"),[s,a]=u.useState(!1),c=u.useRef(r),d=u.useCallback(p=>c.current&&c.current(p),[]);u.useEffect(()=>{c.current=r},[r]),u.useEffect(()=>{let p;if(rA(t)?p=t():p=t&&t.current?t.current:null,p&&n&&!s){i.debug(`Binding native ${n} event`),p.addEventListener(n,d,o);const h=p;a(!0);const m=()=>{i.debug(`Clearing native ${n} event`),h.removeEventListener(n,d,o)};e.current.subscribeEvent("unmount",m)}},[t,d,n,s,i,o,e])},xp=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},ole=100,ile=e=>e?0:100,iA=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;hs(["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 sA=e=>({page:0,pageSize:e?0:100}),sle=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),lA=(e,t)=>{if(t===ss.DataGrid&&e>ole)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
332
|
+
`))},aA=e=>e.pagination,Zo=Je(aA,e=>e.paginationModel),lle=Je(Zo,e=>e.page),ale=Je(Zo,e=>e.pageSize);Je(Zo,Jv,(e,t)=>iA(t,e.pageSize));const Zx=Je(Zo,ni,Xv,Zl,BL,(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],d=a-s+1,p=r.findIndex(g=>g.id===c.id);let h=p,m=0;for(;h<r.length&&m<=d;){const g=r[h],b=t[g.id].depth;(m<d||b>0)&&(h+=1),b===0&&(m+=1)}return{firstRowIndex:p,lastRowIndex:h-1}}),cle=Je(Zl,Zx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),cA=Je(gf,Zx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Jf=e=>e.preferencePanel;var Wa=function(e){return e.filters="filters",e.columns="columns",e}(Wa||{});const Zf=e=>e.rowsMeta,Qo=e=>e.rowSelection,ule=Je(Qo,e=>e.length),dle=Je(Qo,wa,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Cg=Je(Qo,e=>e.reduce((t,n)=>(t[n]=n,t),{})),fle=hs(["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"),uA=(e,t)=>t&&e.length>1?(fle(),[e[0]]):e,A$=(e,t)=>n=>S({},n,{sorting:S({},n.sorting,{sortModel:uA(e,t)})}),ple=e=>e==="desc",hle=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=ple(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}},mle=(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),gle=(e,t)=>{const n=e.map(r=>hle(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)=>mle(n,o,i)).map(o=>o.node.id)},F$=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},eS=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,vle=new Intl.Collator,yle=(e,t)=>{const n=eS(e,t);return n!==null?n:typeof e=="string"?vle.compare(e.toString(),t.toString()):e-t},dA=(e,t)=>{const n=eS(e,t);return n!==null?n:Number(e)-Number(t)},fA=(e,t)=>{const n=eS(e,t);return n!==null?n:e>t?1:e<t?-1:0},pA=e=>e.headerFiltering,ble=Je(pA,e=>e.editing),wle=Je(pA,e=>e.menuOpen),Cle=e=>{const{classes:t}=e;return Me({icon:["filterIcon"]},Ft,t)};function xle(e){var t,n;const{counter:r,field:o,onClick:i}=e,s=At(),a=rt(),c=S({},e,{classes:a.classes}),d=Cle(c),p=Ge(s,Jf),h=on(),m=on(),g=u.useCallback(E=>{E.preventDefault(),E.stopPropagation();const{open:w,openedPanelValue:C}=Jf(s.current.state);w&&C===Wa.filters?s.current.hideFilterPanel():s.current.showFilterPanel(void 0,m,h),i&&i(s.current.getColumnHeaderParams(o),E)},[s,o,i,m,h]);if(!r)return null;const b=p.open&&p.labelId===h,v=_.jsx(a.slots.baseIconButton,S({id:h,onClick:g,color:"default","aria-label":s.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":b,"aria-controls":b?m:void 0},(t=a.slotProps)==null?void 0:t.baseIconButton,{children:_.jsx(a.slots.columnFilteredIcon,{className:d.icon,fontSize:"small"})}));return _.jsx(a.slots.baseTooltip,S({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=a.slotProps)==null?void 0:n.baseTooltip,{children:_.jsxs(eA,{children:[r>1&&_.jsx(fO,{badgeContent:r,color:"default",children:v}),r===1&&v]})}))}const Sle=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Ele=e=>{const{classes:t}=e;return Me({root:["checkboxInput"]},Ft,t)},Ple=u.forwardRef(function(t,n){var r;const{field:o,id:i,value:s,rowNode:a,hasFocus:c,tabIndex:d}=t,p=ne(t,Sle),h=At(),m=rt(),g={classes:m.classes},b=Ele(g),v=u.useRef(null),E=u.useRef(null),w=Ht(v,n),C=h.current.getCellElement(i,o),x=k=>{const M={value:k.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",M,k)};u.useLayoutEffect(()=>{d===0&&C&&(C.tabIndex=-1)},[C,d]),u.useEffect(()=>{if(c){var k;const M=(k=v.current)==null?void 0:k.querySelector("input");M==null||M.focus({preventScroll:!0})}else E.current&&E.current.stop({})},[c]);const P=u.useCallback(k=>{XL(k.key)&&k.stopPropagation()},[]);if(a.type==="footer"||a.type==="pinnedRow")return null;const $=h.current.isRowSelectable(i),I=h.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return _.jsx(m.slots.baseCheckbox,S({ref:w,tabIndex:d,checked:s,onChange:x,className:b.root,inputProps:{"aria-label":I},onKeyDown:P,disabled:!$,touchRippleRef:E},(r=m.slotProps)==null?void 0:r.baseCheckbox,p))}),kle=Ple,Ile=["field","colDef"],$le=e=>{const{classes:t}=e;return Me({root:["checkboxInput"]},Ft,t)},Tle=u.forwardRef(function(t,n){var r;const o=ne(t,Ile),[,i]=u.useState(!1),s=At(),a=rt(),c={classes:a.classes},d=$le(c),p=Ge(s,HL),h=Ge(s,Qo),m=Ge(s,gf),g=Ge(s,cA),b=u.useMemo(()=>typeof a.isRowSelectable!="function"?h:h.filter(M=>s.current.getRow(M)?a.isRowSelectable(s.current.getRowParams(M)):!1),[s,a.isRowSelectable,h]),v=u.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?m:g).reduce((O,A)=>(O[A]=!0,O),{}),[a.pagination,a.checkboxSelectionVisibleOnly,g,m]),E=u.useMemo(()=>b.filter(M=>v[M]).length,[b,v]),w=E>0&&E<Object.keys(v).length,C=E>0,x=M=>{const O={value:M.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",O)},P=p!==null&&p.field===t.field?0:-1;u.useLayoutEffect(()=>{const M=s.current.getColumnHeaderElement(t.field);P===0&&M&&(M.tabIndex=-1)},[P,s,t.field]);const $=u.useCallback(M=>{M.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!C})},[s,C]),I=u.useCallback(()=>{i(M=>!M)},[]);u.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",I),[s,I]);const k=s.current.getLocaleText(C?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return _.jsx(a.slots.baseCheckbox,S({ref:n,indeterminate:w,checked:C,onChange:x,className:d.root,inputProps:{"aria-label":k},tabIndex:P,onKeyDown:$},(r=a.slotProps)==null?void 0:r.baseCheckbox,o))}),N$=Re(_.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),D$=Re(_.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),B$=Re(_.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),z$=Re(_.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),_le=Re(_.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),H$=Re(_.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"),Mle=Re(_.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");Re(_.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Re(_.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 Rle=Re(_.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"),Ole=Re(_.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Lle=Re(_.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Ale=Re(_.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Fle=Re(_.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Nle=Re(_.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"),I1=Re(_.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"),j$=Re(_.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Dle=Re(_.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Ble=Re(_.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"),V$=Re(_.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"),zle=Re(_.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"),Hle=Re(_.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),jle=Re(_.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"),Vle=Re(_.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),Ule=Re(_.jsx("g",{children:_.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Wle=Re(_.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"}),"Clear");Re(_.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");const Gle=Re(_.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),Kle=["hideMenu","colDef","id","labelledby","className","children","open"],qle=oe(Bv)(()=>({minWidth:248})),Yle=u.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:s,children:a,open:c}=t,d=ne(t,Kle),p=u.useCallback(h=>{QL(h.key)&&h.preventDefault(),Qie(h.key)&&r(h)},[r]);return _.jsx(qle,S({id:o,ref:n,className:he(X.menuList,s),"aria-labelledby":i,onKeyDown:p,autoFocus:c},d,{children:a}))}),Qle=["displayOrder"],Xle=e=>{const t=tc(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:s,colDef:a,addDividers:c=!0}=e,d=u.useMemo(()=>S({},n,o),[n,o]),p=u.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const g=S({},i);return Object.entries(r).forEach(([b,v])=>{g[b]=S({},v,i[b]||{})}),g},[r,i]),h=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),m=u.useMemo(()=>{const g=Object.keys(n);return Object.keys(o).filter(b=>!g.includes(b))},[o,n]);return u.useMemo(()=>{const v=Array.from(new Set([...h,...m])).filter(E=>d[E]!=null).sort((E,w)=>{const C=p[E],x=p[w],P=Number.isFinite(C==null?void 0:C.displayOrder)?C.displayOrder:100,$=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return P-$});return v.reduce((E,w,C)=>{let x={colDef:a,onClick:s};const P=p[w];if(P){const $=ne(P,Qle);x=S({},x,$)}return c&&C!==v.length-1?[...E,[d[w],x],[hQ,{}]]:[...E,[d[w],x]]},[])},[c,a,h,s,d,p,m])};function Jle(e){const{colDef:t,onClick:n}=e,r=At(),o=rt(),a=_r(r).filter(d=>d.disableColumnMenu!==!0).length===1,c=u.useCallback(d=>{a||(r.current.setColumnVisibility(t.field,!1),n(d))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:_.jsxs(so,{onClick:c,disabled:a,children:[_.jsx(Ol,{children:_.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),_.jsx(ns,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function Zle(e){const{onClick:t}=e,n=At(),r=rt(),o=u.useCallback(i=>{t(i),n.current.showPreferences(Wa.columns)},[n,t]);return r.disableColumnSelector?null:_.jsxs(so,{onClick:o,children:[_.jsx(Ol,{children:_.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),_.jsx(ns,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function eae(e){return _.jsxs(u.Fragment,{children:[_.jsx(Jle,S({},e)),_.jsx(Zle,S({},e))]})}function tae(e){const{colDef:t,onClick:n}=e,r=At(),o=rt(),i=u.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:_.jsxs(so,{onClick:i,children:[_.jsx(Ol,{children:_.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),_.jsx(ns,{children:r.current.getLocaleText("columnMenuFilter")})]})}function nae(e){var t;const{colDef:n,onClick:r}=e,o=At(),i=Ge(o,Yo),s=rt(),a=u.useMemo(()=>{if(!n)return null;const p=i.find(h=>h.field===n.field);return p==null?void 0:p.sort},[n,i]),c=(t=n.sortingOrder)!=null?t:s.sortingOrder,d=u.useCallback(p=>{r(p);const h=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,h===a?null:h)},[o,n,r,a]);return!n||!n.sortable||!c.some(p=>!!p)?null:_.jsxs(u.Fragment,{children:[c.includes("asc")&&a!=="asc"?_.jsxs(so,{onClick:d,"data-value":"asc",children:[_.jsx(Ol,{children:_.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),_.jsx(ns,{children:o.current.getLocaleText("columnMenuSortAsc")})]}):null,c.includes("desc")&&a!=="desc"?_.jsxs(so,{onClick:d,"data-value":"desc",children:[_.jsx(Ol,{children:_.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),_.jsx(ns,{children:o.current.getLocaleText("columnMenuSortDesc")})]}):null,c.includes(null)&&a!=null?_.jsxs(so,{onClick:d,children:[_.jsx(Ol,{}),_.jsx(ns,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const rae=["defaultSlots","defaultSlotProps","slots","slotProps"],oae={columnMenuSortItem:nae,columnMenuFilterItem:tae,columnMenuColumnsItem:eae},iae={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},sae=u.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:s}=t,a=ne(t,rae),c=Xle(S({},a,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:s}));return _.jsx(Yle,S({ref:n},a,{children:c.map(([d,p],h)=>_.jsx(d,S({},p),h))}))}),lae=u.forwardRef(function(t,n){return _.jsx(sae,S({},t,{ref:n,defaultSlots:oae,defaultSlotProps:iae}))}),aae=["className"],cae=e=>{const{classes:t}=e;return Me({root:["panelContent"]},Ft,t)},uae=fr("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function hA(e){const{className:t}=e,n=ne(e,aae),r=rt(),o=cae(r);return _.jsx(uae,S({className:he(t,o.root),ownerState:r},n))}const dae=["className"],fae=e=>{const{classes:t}=e;return Me({root:["panelFooter"]},Ft,t)},pae=fr("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function mA(e){const{className:t}=e,n=ne(e,dae),r=rt(),o=fae(r);return _.jsx(pae,S({className:he(t,o.root),ownerState:r},n))}const hae=["className"],mae=e=>{const{classes:t}=e;return Me({root:["panelHeader"]},Ft,t)},gae=fr("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function vae(e){const{className:t}=e,n=ne(e,hae),r=rt(),o=mae(r);return _.jsx(gae,S({className:he(t,o.root),ownerState:r},n))}const yae=["className","slotProps"],bae=e=>{const{classes:t}=e;return Me({root:["panelWrapper"]},Ft,t)},wae=oe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Cae=()=>!0,gA=u.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=ne(t,yae),s=rt(),a=bae(s);return _.jsx(GR,S({open:!0,disableEnforceFocus:!0,isEnabled:Cae},o.TrapFocus,{children:_.jsx(wae,S({ref:n,tabIndex:-1,className:he(r,a.root),ownerState:s},i))}))}),xae=!1,Sae=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],Eae=e=>{const{classes:t}=e;return Me({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Ft,t)},Pae=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),kae=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${Pr.root}`]:{marginRight:e.spacing(.5)}})),Iae=oe(Zr)({justifyContent:"flex-end"}),U$=new Intl.Collator,$ae=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function Tae(e){var t,n,r;const o=At(),i=u.useRef(null),s=Ge(o,is),a=Ge(o,Ti),c=rt(),[d,p]=u.useState(""),h=Eae(c),{sort:m,searchPredicate:g=$ae,autoFocusSearchField:b=!0,disableHideAllButton:v=!1,disableShowAllButton:E=!1,getTogglableColumns:w}=e,C=ne(e,Sae),x=u.useMemo(()=>{switch(m){case"asc":return[...s].sort((L,D)=>U$.compare(L.headerName||L.field,D.headerName||D.field));case"desc":return[...s].sort((L,D)=>-U$.compare(L.headerName||L.field,D.headerName||D.field));default:return s}},[s,m]),P=L=>{const{name:D}=L.target;o.current.setColumnVisibility(D,a[D]===!1)},$=u.useCallback(L=>{const D=Ti(o),j=S({},D),R=w?w(s):null;return s.forEach(N=>{N.hideable&&(R==null||R.includes(N.field))&&(L?delete j[N.field]:j[N.field]=!1)}),o.current.setColumnVisibilityModel(j)},[o,s,w]),I=u.useCallback(L=>{p(L.target.value)},[]),k=u.useMemo(()=>{const L=w?w(x):null,D=L?x.filter(({field:j})=>L.includes(j)):x;return d?D.filter(j=>g(j,d.toLowerCase())):D},[x,d,g,w]),M=u.useRef(null);u.useEffect(()=>{b?i.current.focus():M.current&&typeof M.current.focus=="function"&&M.current.focus()},[b]);let O=!1;const A=L=>O===!1&&L.hideable!==!1?(O=!0,!0):!1;return _.jsxs(gA,S({},C,{children:[_.jsx(vae,{children:_.jsx(c.slots.baseTextField,S({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:d,onChange:I,variant:"standard",fullWidth:!0},(t=c.slotProps)==null?void 0:t.baseTextField))}),_.jsx(hA,{children:_.jsx(Pae,{className:h.root,ownerState:c,children:k.map(L=>{var D;return _.jsxs(kae,{className:h.columnsPanelRow,ownerState:c,children:[_.jsx(EO,{control:_.jsx(c.slots.baseSwitch,S({disabled:L.hideable===!1,checked:a[L.field]!==!1,onClick:P,name:L.field,size:"small",inputRef:A(L)?M:void 0},(D=c.slotProps)==null?void 0:D.baseSwitch)),label:L.headerName||L.field}),!c.disableColumnReorder&&xae&&_.jsx(Iae,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:_.jsx(c.slots.columnReorderIcon,{})})]},L.field)})})}),E&&v?null:_.jsxs(mA,{children:[v?_.jsx("span",{}):_.jsx(c.slots.baseButton,S({onClick:()=>$(!1)},(n=c.slotProps)==null?void 0:n.baseButton,{disabled:v,children:o.current.getLocaleText("columnsPanelHideAllButton")})),E?null:_.jsx(c.slots.baseButton,S({onClick:()=>$(!0)},(r=c.slotProps)==null?void 0:r.baseButton,{disabled:E,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const _ae=["children","className","classes"],Mae=Xe("MuiDataGrid",["panel","paper"]),Rae=oe(Ja,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Oae=oe(gi,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),Lae=u.forwardRef((e,t)=>{const{children:n,className:r}=e,o=ne(e,_ae),i=At(),s=rt(),a=Mae,[c,d]=u.useState(!1),p=u.useCallback(()=>{i.current.hidePreferences()},[i]),h=u.useCallback(v=>{bg(v.key)&&i.current.hidePreferences()},[i]),m=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{d(!0)},effect:()=>()=>{d(!1)}}],[]),[g,b]=u.useState(null);return u.useEffect(()=>{var v,E;const w=(v=i.current.rootElementRef)==null||(E=v.current)==null?void 0:E.querySelector(`.${X.columnHeaders}`);w&&b(w)},[i]),g?_.jsx(Rae,S({ref:t,placement:"bottom-start",className:he(r,a.panel),ownerState:s,anchorEl:g,modifiers:m},o,{children:_.jsx(WR,{mouseEvent:"onMouseUp",onClickAway:p,children:_.jsx(Oae,{className:a.paper,ownerState:s,elevation:8,onKeyDown:h,children:c&&n})})})):null}),Aae=u.forwardRef(function(t,n){var r,o,i;const s=At(),a=Ge(s,is),c=rt(),d=Ge(s,Jf),p=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=d.openedPanelValue)!=null?r:Wa.filters);return _.jsx(c.slots.panel,S({ref:n,as:c.slots.basePopper,open:a.length>0&&d.open,id:d.panelId,"aria-labelledby":d.labelId},(o=c.slotProps)==null?void 0:o.panel,t,(i=c.slotProps)==null?void 0:i.basePopper,{children:p}))}),Fae=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Nae=["InputComponentProps"],Dae=e=>{const{classes:t}=e;return Me({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Ft,t)},Bae=oe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),zae=oe("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),Hae=oe("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),jae=oe("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Vae=oe("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Uae=oe("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Wae=e=>{switch(e){case Xr.And:return"filterPanelOperatorAnd";case Xr.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},zd=e=>e.headerName||e.field,W$=new Intl.Collator,Gae=u.forwardRef(function(t,n){var r,o,i,s,a,c,d,p,h,m;const{item:g,hasMultipleFilters:b,deleteFilter:v,applyFilterChanges:E,multiFilterOperator:w,showMultiFilterOperators:C,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:P,focusElementRef:$,logicOperators:I=[Xr.And,Xr.Or],columnsSort:k,filterColumns:M,deleteIconProps:O={},logicOperatorInputProps:A={},operatorInputProps:L={},columnInputProps:D={},valueInputProps:j={}}=t,R=ne(t,Fae),N=At(),H=Ge(N,FL),V=Ge(N,kr),F=on(),z=on(),W=on(),K=on(),Y=rt(),ae=Dae(Y),re=u.useRef(null),de=u.useRef(null),ie=b&&I.length>0,se=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},ye=(i=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,Ie=((s=Y.slotProps)==null?void 0:s.baseInputLabel)||{},ee=((a=Y.slotProps)==null?void 0:a.baseSelectOption)||{},{InputComponentProps:ke}=j,_e=ne(j,Nae),Ee=u.useMemo(()=>{if(M===void 0||typeof M!="function")return H;const Be=M({field:g.field,columns:H,currentFilters:(V==null?void 0:V.items)||[]});return H.filter(ut=>Be.includes(ut.field))},[M,V==null?void 0:V.items,H,g.field]),pe=u.useMemo(()=>{switch(k){case"asc":return Ee.sort((Be,ut)=>W$.compare(zd(Be),zd(ut)));case"desc":return Ee.sort((Be,ut)=>-W$.compare(zd(Be),zd(ut)));default:return Ee}},[Ee,k]),be=g.field?N.current.getColumn(g.field):null,te=u.useMemo(()=>{var Be;return!g.operator||!be?null:(Be=be.filterOperators)==null?void 0:Be.find(ut=>ut.value===g.operator)},[g,be]),Le=u.useCallback(Be=>{const ut=Be.target.value,gt=N.current.getColumn(ut);if(gt.field===be.field)return;const at=gt.filterOperators.find(vt=>vt.value===g.operator)||gt.filterOperators[0],St=!at.InputComponent||at.InputComponent!==(te==null?void 0:te.InputComponent);E(S({},g,{field:ut,operator:at.value,value:St?void 0:g.value}))},[N,E,g,be,te]),Ye=u.useCallback(Be=>{const ut=Be.target.value,gt=be==null?void 0:be.filterOperators.find(St=>St.value===ut),at=!(gt!=null&>.InputComponent)||(gt==null?void 0:gt.InputComponent)!==(te==null?void 0:te.InputComponent);E(S({},g,{operator:ut,value:at?void 0:g.value}))},[E,g,be,te]),Ke=u.useCallback(Be=>{const ut=Be.target.value===Xr.And.toString()?Xr.And:Xr.Or;P(ut)},[P]),Ue=()=>{Y.disableMultipleColumnsFiltering?g.value===void 0?v(g):E(S({},g,{value:void 0})):v(g)};return u.useImperativeHandle($,()=>({focus:()=>{if(te!=null&&te.InputComponent){var Be;re==null||(Be=re.current)==null||Be.focus()}else de.current.focus()}}),[te]),_.jsxs(Bae,S({ref:n,className:ae.root,"data-id":g.id,ownerState:Y},R,{children:[_.jsx(zae,S({variant:"standard",as:Y.slots.baseFormControl},se,O,{className:he(ae.deleteIcon,se.className,O.className),ownerState:Y,children:_.jsx(Y.slots.baseIconButton,S({"aria-label":N.current.getLocaleText("filterPanelDeleteIconLabel"),title:N.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Ue,size:"small"},(c=Y.slotProps)==null?void 0:c.baseIconButton,{children:_.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),_.jsx(Hae,S({variant:"standard",as:Y.slots.baseFormControl},se,A,{sx:S({display:ie?"flex":"none",visibility:C?"visible":"hidden"},se.sx||{},A.sx||{}),className:he(ae.logicOperatorInput,se.className,A.className),ownerState:Y,children:_.jsx(Y.slots.baseSelect,S({inputProps:{"aria-label":N.current.getLocaleText("filterPanelLogicOperator")},value:w,onChange:Ke,disabled:!!x||I.length===1,native:ye},(d=Y.slotProps)==null?void 0:d.baseSelect,{children:I.map(Be=>u.createElement(Y.slots.baseSelectOption,S({},ee,{native:ye,key:Be.toString(),value:Be.toString()}),N.current.getLocaleText(Wae(Be))))}))})),_.jsxs(jae,S({variant:"standard",as:Y.slots.baseFormControl},se,D,{className:he(ae.columnInput,se.className,D.className),ownerState:Y,children:[_.jsx(Y.slots.baseInputLabel,S({},Ie,{htmlFor:F,id:z,children:N.current.getLocaleText("filterPanelColumns")})),_.jsx(Y.slots.baseSelect,S({labelId:z,id:F,label:N.current.getLocaleText("filterPanelColumns"),value:g.field||"",onChange:Le,native:ye},(p=Y.slotProps)==null?void 0:p.baseSelect,{children:pe.map(Be=>u.createElement(Y.slots.baseSelectOption,S({},ee,{native:ye,key:Be.field,value:Be.field}),zd(Be)))}))]})),_.jsxs(Vae,S({variant:"standard",as:Y.slots.baseFormControl},se,L,{className:he(ae.operatorInput,se.className,L.className),ownerState:Y,children:[_.jsx(Y.slots.baseInputLabel,S({},Ie,{htmlFor:W,id:K,children:N.current.getLocaleText("filterPanelOperator")})),_.jsx(Y.slots.baseSelect,S({labelId:K,label:N.current.getLocaleText("filterPanelOperator"),id:W,value:g.operator,onChange:Ye,native:ye,inputRef:de},(h=Y.slotProps)==null?void 0:h.baseSelect,{children:be==null||(m=be.filterOperators)==null?void 0:m.map(Be=>u.createElement(Y.slots.baseSelectOption,S({},ee,{native:ye,key:Be.value,value:Be.value}),Be.label||N.current.getLocaleText(`filterOperator${ue(Be.value)}`)))}))]})),_.jsx(Uae,S({variant:"standard",as:Y.slots.baseFormControl},se,_e,{className:he(ae.valueInput,se.className,_e.className),ownerState:Y,children:te!=null&&te.InputComponent?_.jsx(te.InputComponent,S({apiRef:N,item:g,applyValue:E,focusElementRef:re},te.InputComponentProps,ke)):null}))]}))}),Kae=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"],qae=500;function qi(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,tabIndex:c,disabled:d,clearButton:p,InputProps:h}=e,m=ne(e,Kae),g=u.useRef(),[b,v]=u.useState((t=r.value)!=null?t:""),[E,w]=u.useState(!1),C=on(),x=rt(),P=u.useCallback($=>{const{value:I}=$.target;clearTimeout(g.current),v(String(I)),w(!0),g.current=setTimeout(()=>{o(S({},r,{value:I})),w(!1)},qae)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(g.current)},[]),u.useEffect(()=>{var $;const I=($=r.value)!=null?$:"";v(String(I))},[r.value]),_.jsx(x.slots.baseTextField,S({id:C,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:b,onChange:P,variant:"standard",type:i||"text",InputProps:S({},E||p?{endAdornment:E?_.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):p}:{},{disabled:d},h,{inputProps:S({tabIndex:c},h==null?void 0:h.inputProps)}),InputLabelProps:{shrink:!0},inputRef:a},m,(n=x.slotProps)==null?void 0:n.baseTextField))}const Yae=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"],Qae=500;function kc(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,InputProps:c,clearButton:d,tabIndex:p,disabled:h}=e,m=ne(e,Yae),g=u.useRef(),[b,v]=u.useState((t=r.value)!=null?t:""),[E,w]=u.useState(!1),C=on(),x=rt(),P=u.useCallback($=>{const I=$.target.value;clearTimeout(g.current),v(String(I)),w(!0),g.current=setTimeout(()=>{o(S({},r,{value:I})),w(!1)},Qae)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(g.current)},[]),u.useEffect(()=>{var $;const I=($=r.value)!=null?$:"";v(String(I))},[r.value]),_.jsx(x.slots.baseTextField,S({fullWidth:!0,id:C,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:b,onChange:P,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:a,InputProps:S({},E||d?{endAdornment:E?_.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):d}:{},{disabled:h},c,{inputProps:S({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:p},c==null?void 0:c.inputProps)})},m,(n=x.slotProps)==null?void 0:n.baseTextField))}const Xae=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton"],Jae=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:i,baseSelectOptionProps:s})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(c=>{const d=o(c),p=r(c);return u.createElement(n,S({},s,{native:i,key:d,value:d}),p)}),Zae=oe("div")({display:"flex",alignItems:"flex-end",width:"100%",["& button"]:{margin:"auto 0px 5px 5px"}});function G$(e){var t,n,r,o,i,s,a,c,d;const{item:p,applyValue:h,type:m,apiRef:g,focusElementRef:b,getOptionLabel:v,getOptionValue:E,placeholder:w,tabIndex:C,label:x,clearButton:P}=e,$=ne(e,Xae),[I,k]=u.useState((t=p.value)!=null?t:""),M=on(),O=on(),A=rt(),L=(n=(r=A.slotProps)==null||(o=r.baseSelect)==null?void 0:o.native)!=null?n:!0;let D=null;if(p.field){const F=g.current.getColumn(p.field);Ta(F)&&(D=F)}const j=E||((i=D)==null?void 0:i.getOptionValue),R=v||((s=D)==null?void 0:s.getOptionLabel),N=u.useMemo(()=>{if(D)return typeof D.valueOptions=="function"?D.valueOptions({field:D.field}):D.valueOptions},[D]),H=u.useCallback(F=>{let z=F.target.value;z=mw(z,N,j),k(String(z)),h(S({},p,{value:z}))},[N,j,h,p]);if(u.useEffect(()=>{var F;let z;if(N!==void 0){if(z=mw(p.value,N,j),z!==p.value){h(S({},p,{value:z}));return}}else z=p.value;z=(F=z)!=null?F:"",k(String(z))},[p,N,h,j]),!Ta(D)||!Ta(D))return null;const V=x!=null?x:g.current.getLocaleText("filterPanelInputLabel");return _.jsxs(Zae,{children:[_.jsxs(A.slots.baseFormControl,{children:[_.jsx(A.slots.baseInputLabel,S({},(a=A.slotProps)==null?void 0:a.baseInputLabel,{id:O,htmlFor:M,shrink:!0,variant:"standard",children:V})),_.jsx(A.slots.baseSelect,S({id:M,label:V,labelId:O,value:I,onChange:H,variant:"standard",type:m||"text",inputProps:{tabIndex:C,ref:b,placeholder:w!=null?w:g.current.getLocaleText("filterPanelInputPlaceholder")},native:L},$,(c=A.slotProps)==null?void 0:c.baseSelect,{children:Jae({column:D,OptionComponent:A.slots.baseSelectOption,getOptionLabel:R,getOptionValue:j,isSelectNative:L,baseSelectOptionProps:(d=A.slotProps)==null?void 0:d.baseSelectOption})}))]}),P]})}const ece=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label"],tce=oe("div")({display:"flex",alignItems:"center",width:"100%",["& button"]:{margin:"auto 0px 5px 5px"}});function nce(e){var t,n,r,o;const{item:i,applyValue:s,apiRef:a,focusElementRef:c,clearButton:d,tabIndex:p,label:h}=e,m=ne(e,ece),[g,b]=u.useState(i.value||""),v=rt(),E=on(),w=on(),C=((t=v.slotProps)==null?void 0:t.baseSelect)||{},x=(n=C.native)!=null?n:!0,P=((r=v.slotProps)==null?void 0:r.baseSelectOption)||{},$=u.useCallback(k=>{const M=k.target.value;b(M),s(S({},i,{value:M}))},[s,i]);u.useEffect(()=>{b(i.value||"")},[i.value]);const I=h!=null?h:a.current.getLocaleText("filterPanelInputLabel");return _.jsxs(tce,{children:[_.jsxs(v.slots.baseFormControl,{fullWidth:!0,children:[_.jsx(v.slots.baseInputLabel,S({},(o=v.slotProps)==null?void 0:o.baseInputLabel,{id:E,shrink:!0,variant:"standard",children:I})),_.jsxs(v.slots.baseSelect,S({labelId:E,id:w,label:I,value:g,onChange:$,variant:"standard",native:x,displayEmpty:!0,inputProps:{ref:c,tabIndex:p}},m,C,{children:[_.jsx(v.slots.baseSelectOption,S({},P,{native:x,value:"",children:a.current.getLocaleText("filterValueAny")})),_.jsx(v.slots.baseSelectOption,S({},P,{native:x,value:"true",children:a.current.getLocaleText("filterValueTrue")})),_.jsx(v.slots.baseSelectOption,S({},P,{native:x,value:"false",children:a.current.getLocaleText("filterValueFalse")}))]}))]}),d]})}const rce=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],K$=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),oce=u.forwardRef(function(t,n){var r,o;const i=At(),s=rt(),a=Ge(i,kr),c=Ge(i,FL),d=u.useRef(null),p=u.useRef(null),{logicOperators:h=[Xr.And,Xr.Or],columnsSort:m,filterFormProps:g,getColumnForNewFilter:b,disableAddFilterButton:v=!1,disableRemoveAllButton:E=!1}=t,w=ne(t,rce),C=u.useCallback(L=>{i.current.upsertFilterItem(L)},[i]),x=u.useCallback(L=>{i.current.setFilterLogicOperator(L)},[i]),P=u.useCallback(()=>{let L;if(b&&typeof b=="function"){const D=b({currentFilters:(a==null?void 0:a.items)||[],columns:c});if(D===null)return null;L=c.find(({field:j})=>j===D)}else L=c.find(D=>{var j;return(j=D.filterOperators)==null?void 0:j.length});return L?K$(L):null},[a==null?void 0:a.items,c,b]),$=u.useCallback(()=>{if(b===void 0||typeof b!="function")return P();const L=a.items.length?a.items:[P()].filter(Boolean),D=b({currentFilters:L,columns:c});if(D===null)return null;const j=c.find(({field:R})=>R===D);return j?K$(j):null},[a.items,c,b,P]),I=u.useMemo(()=>a.items.length?a.items:(p.current||(p.current=P()),p.current?[p.current]:[]),[a.items,P]),k=I.length>1,M=()=>{const L=$();L&&i.current.upsertFilterItems([...I,L])},O=u.useCallback(L=>{const D=I.length===1;i.current.deleteFilterItem(L),D&&i.current.hideFilterPanel()},[i,I.length]),A=()=>{I.length===1&&I[0].value===void 0&&(i.current.deleteFilterItem(I[0]),i.current.hideFilterPanel()),i.current.setFilterModel(S({},a,{items:[]}))};return u.useEffect(()=>{h.length>0&&a.logicOperator&&!h.includes(a.logicOperator)&&x(h[0])},[h,x,a.logicOperator]),u.useEffect(()=>{I.length>0&&d.current.focus()},[I.length]),_.jsxs(gA,S({ref:n},w,{children:[_.jsx(hA,{children:I.map((L,D)=>_.jsx(Gae,S({item:L,applyFilterChanges:C,deleteFilter:O,hasMultipleFilters:k,showMultiFilterOperators:D>0,multiFilterOperator:a.logicOperator,disableMultiFilterOperator:D!==1,applyMultiFilterOperatorChanges:x,focusElementRef:D===I.length-1?d:null,logicOperators:h,columnsSort:m},g),L.id==null?D:L.id))}),!s.disableMultipleColumnsFiltering&&!(v&&E)?_.jsxs(mA,{children:[v?_.jsx("span",{}):_.jsx(s.slots.baseButton,S({onClick:M,startIcon:_.jsx(s.slots.filterPanelAddIcon,{})},(r=s.slotProps)==null?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")})),E?null:_.jsx(s.slots.baseButton,S({onClick:A,startIcon:_.jsx(s.slots.filterPanelRemoveAllIcon,{})},(o=s.slotProps)==null?void 0:o.baseButton,{children:i.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),ice=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function vA(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:c,size:d,variant:p}=e,h=ne(e,ice),m={color:s,error:a,helperText:c,size:d,variant:p},[g,b]=u.useState(t.value||[]),v=on(),E=rt();u.useEffect(()=>{var C;const x=(C=t.value)!=null?C:[];b(x.map(String))},[t.value]);const w=u.useCallback((C,x)=>{b(x.map(String)),n(S({},t,{value:[...x]}))},[n,t]);return _.jsx(ax,S({multiple:!0,freeSolo:!0,options:[],filterOptions:(C,x)=>{const{inputValue:P}=x;return P==null||P===""?[]:[P]},id:v,value:g,onChange:w,renderTags:(C,x)=>C.map((P,$)=>_.jsx(E.slots.baseChip,S({variant:"outlined",size:"small",label:P},x({index:$})))),renderInput:C=>{var x;return _.jsx(E.slots.baseTextField,S({},C,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},C.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(x=E.slotProps)==null?void 0:x.baseTextField))}},h))}const sce=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],lce=rO();function ace(e){var t,n;const{item:r,applyValue:o,apiRef:i,focusElementRef:s,color:a,error:c,helperText:d,size:p,variant:h="standard",getOptionLabel:m,getOptionValue:g}=e,b=ne(e,sce),v={color:a,error:c,helperText:d,size:p,variant:h},E=on(),w=rt();let C=null;if(r.field){const A=i.current.getColumn(r.field);Ta(A)&&(C=A)}const x=g||((t=C)==null?void 0:t.getOptionValue),P=m||((n=C)==null?void 0:n.getOptionLabel),$=u.useCallback((A,L)=>x(A)===x(L),[x]),I=u.useMemo(()=>{var A;return(A=C)!=null&&A.valueOptions?typeof C.valueOptions=="function"?C.valueOptions({field:C.field}):C.valueOptions:[]},[C]),k=u.useMemo(()=>I==null?void 0:I.map(x),[I,x]),M=u.useMemo(()=>Array.isArray(r.value)?I!==void 0?r.value.map(L=>k==null?void 0:k.findIndex(D=>D===L)).filter(L=>L>=0).map(L=>I[L]):r.value:[],[r.value,I,k]);u.useEffect(()=>{(!Array.isArray(r.value)||M.length!==r.value.length)&&o(S({},r,{value:M.map(x)}))},[r,M,o,x]);const O=u.useCallback((A,L)=>{o(S({},r,{value:L.map(x)}))},[o,r,x]);return _.jsx(ax,S({multiple:!0,options:I,isOptionEqualToValue:$,filterOptions:lce,id:E,value:M,onChange:O,getOptionLabel:P,renderTags:(A,L)=>A.map((D,j)=>_.jsx(w.slots.baseChip,S({variant:"outlined",size:"small",label:P(D)},L({index:j})))),renderInput:A=>{var L;return _.jsx(w.slots.baseTextField,S({},A,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},A.InputLabelProps,{shrink:!0}),inputRef:s,type:"singleSelect"},v,(L=w.slotProps)==null?void 0:L.baseTextField))}},b))}const cce=["hideMenu","options"],uce=["hideMenu","options"];function dce(e){const t=At(),{hideMenu:n,options:r}=e,o=ne(e,cce);return _.jsx(so,S({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function fce(e){const t=At(),{hideMenu:n,options:r}=e,o=ne(e,uce);return _.jsx(so,S({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const pce=["className","rowCount","visibleRowCount"],hce=e=>{const{classes:t}=e;return Me({root:["rowCount"]},Ft,t)},mce=fr("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),gce=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=ne(t,pce),a=At(),c=rt(),d=hce(c);if(o===0)return null;const p=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return _.jsxs(mce,S({ref:n,className:he(d.root,r),ownerState:c},s,{children:[a.current.getLocaleText("footerTotalRows")," ",p]}))}),vce=["className","selectedRowCount"],yce=e=>{const{classes:t}=e;return Me({root:["selectedRowCount"]},Ft,t)},bce=fr("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"}})),wce=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=ne(t,vce),s=At(),a=rt(),c=yce(a),d=s.current.getLocaleText("footerRowSelected")(o);return _.jsx(bce,S({ref:n,className:he(c.root,r),ownerState:a},i,{children:d}))}),Cce=u.forwardRef(function(t,n){var r;const o=At(),i=rt(),s=Ge(o,joe),a=Ge(o,ule),c=Ge(o,Jv),d=!i.hideFooterSelectedRowCount&&a>0?_.jsx(wce,{selectedRowCount:a}):_.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?_.jsx(gce,{rowCount:s,visibleRowCount:c}):null,h=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&_.jsx(i.slots.pagination,S({},(r=i.slotProps)==null?void 0:r.pagination));return _.jsxs(Cse,S({ref:n},t,{children:[d,p,h]}))});function xce(){var e,t;const n=rt();return _.jsxs(u.Fragment,{children:[_.jsx(n.slots.preferencesPanel,S({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&_.jsx(n.slots.toolbar,S({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const Sce=u.forwardRef(function(t,n){return _.jsx(Xx,S({ref:n},t,{children:_.jsx(Va,{})}))}),Ece=u.forwardRef(function(t,n){const o=At().current.getLocaleText("noRowsLabel");return _.jsx(Xx,S({ref:n},t,{children:o}))}),Pce=oe(ute)(({theme:e})=>({[`& .${ka.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${ka.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),kce=u.forwardRef(function(t,n){var r;const o=At(),i=rt(),s=Ge(o,Zo),a=Ge(o,Jv),c=u.useMemo(()=>{var m,g;return(m=(g=i.rowCount)!=null?g:a)!=null?m:0},[i.rowCount,a]),d=u.useMemo(()=>Math.floor(c/(s.pageSize||1)),[c,s.pageSize]),p=u.useCallback(m=>{const g=Number(m.target.value);o.current.setPageSize(g)},[o]),h=u.useCallback((m,g)=>{o.current.setPage(g)},[o]);return _.jsx(Pce,S({ref:n,component:"div",count:c,page:s.page<=d?s.page:d,rowsPerPageOptions:(r=i.pageSizeOptions)!=null&&r.includes(s.pageSize)?i.pageSizeOptions:[],rowsPerPage:s.pageSize,onPageChange:h,onRowsPerPageChange:p},o.current.getLocaleText("MuiTablePagination"),t))}),tS=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=Zx(e),n=cle(e)):(n=Zl(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},nc=(e,t)=>{const n=tS(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Ice=e=>{if(!e)return null;const t=new RegExp(bm(e),"i");return({formattedValue:n})=>n!=null?t.test(n.toString()):!1},$ce=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(bm(n),"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:qi},{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:qi},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${bm(n)}.*$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:qi},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${bm(n)}$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:qi},{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:vA}],Wl={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:yle,type:"string",align:"left",filterOperators:$ce(),renderEditCell:Uie,getApplyQuickFilterFn:Ice},Tce=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=e.value==="true";return({value:n})=>!!n===t},InputComponent:nce}];function _ce({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const Mce=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},yA=S({},Wl,{type:"boolean",align:"center",headerAlign:"center",renderCell:Mie,renderEditCell:Aie,sortComparator:dA,valueFormatter:_ce,filterOperators:Tce(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>Mce(e)}),ul="__check__",Sp=S({},yA,{field:ul,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>Cg(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>_.jsx(Tle,S({},e)),renderCell:e=>_.jsx(kle,S({},e))}),ry="actions",Rce=S({},Wl,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:cse,getApplyQuickFilterFn:void 0}),nS="__detail_panel_toggle__",Br=e=>e.editRows,Oce=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],Lce=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:s}=e;return Me({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Ft,s)};function Ace({width:e}){if(!e)return null;const t={width:e};return _.jsx("div",{className:`${X.cell} ${X.withBorderColor}`,style:t})}const Fce=u.forwardRef(function(t,n){const{selected:r,rowId:o,row:i,index:s,style:a,position:c,rowHeight:d,className:p,renderedColumns:h,containerWidth:m,firstColumnToRender:g,isLastVisible:b=!1,onClick:v,onDoubleClick:E,onMouseEnter:w,onMouseLeave:C}=t,x=ne(t,Oce),P=At(),$=u.useRef(null),I=rt(),k=nc(P,I),M=Ge(P,Ux),O=Ge(P,Yo),A=Ge(P,Xv),L=Ge(P,Cp),D=Ge(P,Br),j=Ht($,n),R=s+L+2,N={selected:r,isLastVisible:b,classes:I.classes,editing:P.current.getRowMode(o)===fn.Edit,editable:I.editMode===ds.Row,rowHeight:d},H=Lce(N);u.useLayoutEffect(()=>{d==="auto"&&$.current&&typeof ResizeObserver=="undefined"&&P.current.unstable_storeRowHeightMeasurement(o,$.current.clientHeight,c)},[P,d,o,c]),u.useLayoutEffect(()=>{if(k.range){const Ye=P.current.getRowIndexRelativeToVisibleRows(o);Ye!=null&&P.current.unstable_setLastMeasuredRowIndex(Ye)}const be=$.current;if(!be||d!=="auto"||typeof ResizeObserver=="undefined")return;const Le=new ResizeObserver(Ye=>{const[Ke]=Ye,Ue=Ke.borderBoxSize&&Ke.borderBoxSize.length>0?Ke.borderBoxSize[0].blockSize:Ke.contentRect.height;P.current.unstable_storeRowHeightMeasurement(o,Ue,c)});return Le.observe(be),()=>Le.disconnect()},[P,k.range,s,d,o,c]);const V=u.useCallback((be,te)=>Le=>{Le.target.nodeType===1&&!Le.currentTarget.contains(Le.target)||P.current.getRow(o)&&(P.current.publishEvent(be,P.current.getRowParams(o),Le),te&&te(Le))},[P,o]),F=u.useCallback(be=>{const te=mie(be.target,X.cell),Le=te==null?void 0:te.getAttribute("data-field");Le&&(Le===Sp.field||Le===nS||Le==="__reorder__"||P.current.getCellMode(o,Le)===en.Edit||P.current.getColumn(Le).type===ry)||V("rowClick",v)(be)},[P,v,V,o]),{slots:z,slotProps:W,disableColumnReorder:K}=I,Y=z.cell===hw?hw:Pie,ae=I.rowReordering,re=(be,te)=>{var Le,Ye;const Ke=K&&be.disableReorder||!ae&&!!O.length&&A>1&&Object.keys(D).length>0,Ue=(Le=(Ye=D[o])==null?void 0:Ye[be.field])!=null?Le:null;return _.jsx(Y,S({column:be,width:te.width,rowId:o,height:d,showRightBorder:te.showRightBorder,align:be.align||"left",colIndex:te.indexRelativeToAllColumns,colSpan:te.colSpan,disableDragEvents:Ke,editCellState:Ue},W==null?void 0:W.cell),be.field)},de=Ge(P,()=>S({},P.current.unstable_getRowInternalSizes(o)),jx);let ie=d;if(ie==="auto"&&de){let be=0;const te=Object.entries(de).reduce((Le,[Ye,Ke])=>/^base[A-Z]/.test(Ye)?(be+=1,Ke>Le?Ke:Le):Le,0);te>0&&be>1&&(ie=te)}const se=S({},a,{maxHeight:d==="auto"?"none":d,minHeight:ie});if(de!=null&&de.spacingTop){const be=I.rowSpacingType==="border"?"borderTopWidth":"marginTop";se[be]=de.spacingTop}if(de!=null&&de.spacingBottom){const be=I.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let te=se[be];typeof te!="number"&&(te=parseInt(te||"0",10)),te+=de.spacingBottom,se[be]=te}const Se=P.current.unstable_applyPipeProcessors("rowClassName",[],o);if(typeof I.getRowClassName=="function"){var ye;const be=s-(((ye=k.range)==null?void 0:ye.firstRowIndex)||0),te=S({},P.current.getRowParams(o),{isFirstVisible:be===0,isLastVisible:be===k.rows.length-1,indexRelativeToCurrentPage:be});Se.push(I.getRowClassName(te))}const Ie=nle(1e4,20,80),ee=P.current.getRowNode(o);if(!ee)return null;const ke=ee.type,_e=[];for(let be=0;be<h.length;be+=1){const te=h[be],Le=g+be,Ye=P.current.unstable_getCellColSpanInfo(o,Le);if(Ye&&!Ye.spannedByColSpan)if(ke!=="skeletonRow"){const{colSpan:Ke,width:Ue}=Ye.cellProps,Be={width:Ue,colSpan:Ke,showRightBorder:I.showCellVerticalBorder,indexRelativeToAllColumns:Le};_e.push(re(te,Be))}else{const{width:Ke}=Ye.cellProps,Ue=Math.round(Ie());_e.push(_.jsx(z.skeletonCell,{width:Ke,contentWidth:Ue,field:te.field,align:te.align},te.field))}}const Ee=m-M,pe=i?{onClick:F,onDoubleClick:V("rowDoubleClick",E),onMouseEnter:V("rowMouseEnter",w),onMouseLeave:V("rowMouseLeave",C)}:null;return _.jsxs("div",S({ref:j,"data-id":o,"data-rowindex":s,role:"row",className:he(...Se,H.root,p),"aria-rowindex":R,"aria-selected":r,style:se},pe,x,{children:[_e,Ee>0&&_.jsx(Ace,{width:Ee})]}))}),Nce=ny(Fce);function Dce({privateApiRef:e,props:t,children:n}){const r=u.useRef(e.current.getPublicApi());return _.jsx(RL.Provider,{value:t,children:_.jsx(OL.Provider,{value:e,children:_.jsx(ML.Provider,{value:r,children:n})})})}const Bce=ele()&&window.localStorage.getItem("DEBUG")!=null,Jd=()=>{},zce={debug:Jd,info:Jd,warn:Jd,error:Jd},q$=["debug","info","warn","error"];function Y$(e,t,n=console){const r=q$.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return q$.reduce((i,s,a)=>(a>=r?i[s]=(...c)=>{const[d,...p]=c;n[s](`MUI: ${e} - ${d}`,...p)}:i[s]=Jd,i),{})}const Hce=(e,t)=>{const n=u.useCallback(r=>Bce?Y$(r,"debug",t.logger):t.logLevel?Y$(r,t.logLevel.toString(),t.logger):zce,[t.logLevel,t.logger]);Rt(e,{getLogger:n},"private")};class rS{static create(t){return new rS(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class jce{constructor(){this.maxListeners=20,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 Vce=e=>e.isPropagationStopped!==void 0;let Q$=0;const Uce=e=>{const t={};t.getPublicApi=()=>e,t.register=(r,o)=>{Object.keys(o).forEach(i=>{r==="public"?e[i]=o[i]:t[i]=o[i]})};const n={get:(r,o)=>o in r?r[o]:t[o],set:(r,o,i)=>(r[o]=i,!0)};return new Proxy(e,n)};function Wce(e,t){const n=u.useRef();if(!n.current){const s={};n.current={state:s,store:rS.create(s),instanceId:{id:Q$}},Q$+=1}const r=u.useRef();r.current||(r.current=Uce(n.current),r.current.register("private",{caches:{},eventManager:new jce})),u.useImperativeHandle(e,()=>n.current,[n]);const o=u.useCallback((...s)=>{const[a,c,d={}]=s;if(d.defaultMuiPrevented=!1,Vce(d)&&d.isPropagationStopped())return;const p=t.signature===ss.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(a,c,d,p)},[r,t.signature]),i=u.useCallback((s,a,c)=>{r.current.eventManager.on(s,a,c);const d=r.current;return()=>{d.eventManager.removeListener(s,a)}},[r]);return Rt(r,{subscribeEvent:i,publishEvent:o},"public"),u.useEffect(()=>{const s=r.current;return()=>{s.publishEvent("unmount")}},[r]),r}const Gce=(e,t)=>{const n=u.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function ep(e){return ep=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},ep(e)}function Kce(e,t){if(ep(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ep(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tp(e){var t=Kce(e,"string");return ep(t)==="symbol"?t:String(t)}const qce=e=>{const t=u.useRef({}),n=u.useCallback(d=>{d&&Object.values(d.appliers).forEach(p=>{p()})},[]),r=u.useCallback((d,p,h)=>{t.current[d]||(t.current[d]={processors:new Map,appliers:{}});const m=t.current[d];return m.processors.get(p)!==h&&(m.processors.set(p,h),n(m)),()=>{t.current[d].processors.set(p,null)}},[n]),o=u.useCallback((d,p,h)=>(t.current[d]||(t.current[d]={processors:new Map,appliers:{}}),t.current[d].appliers[p]=h,()=>{const m=t.current[d].appliers,g=ne(m,[p].map(tp));t.current[d].appliers=g}),[]),i=u.useCallback(d=>{const p=t.current[d];n(p)},[n]),s=u.useCallback((...d)=>{const[p,h,m]=d;return t.current[p]?Array.from(t.current[p].processors.values()).reduce((b,v)=>v?v(b,m):b,h):h},[]),a={registerPipeProcessor:r,registerPipeApplier:o,requestPipeProcessorsApplication:i},c={unstable_applyPipeProcessors:s};Rt(e,a,"private"),Rt(e,c,"public")},tr=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);xp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},oS=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);xp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},xg=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);xp(()=>{o()});const i=u.useRef(!0);u.useEffect(()=>{i.current?i.current=!1:o()},[o])},Ga="none",X$={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Yce=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((c,d,p)=>{const h=()=>{const b=n.current[d],v=ne(b,[c].map(tp));n.current[d]=v};n.current[d]||(n.current[d]={});const m=n.current[d],g=m[c];return m[c]=p,!g||g===p||c===e.current.getActiveStrategy(X$[d])&&e.current.publishEvent("activeStrategyProcessorChange",d),h},[e]),o=u.useCallback((c,d)=>{const p=e.current.getActiveStrategy(X$[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(d)},[e]),i=u.useCallback(c=>{var d;const h=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(d=h==null?void 0:h[0])!=null?d:Ga},[]),s=u.useCallback((c,d,p)=>{t.current.set(d,{group:c,isAvailable:p}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Rt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:s},"private")},Qce=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(p=>{n.current[p.stateId]=p},[]),i=u.useCallback((p,h)=>{let m;if(rA(p)?m=p(e.current.state):m=p,e.current.state===m)return!1;let g=!1;const b=[];if(Object.keys(n.current).forEach(v=>{const E=n.current[v],w=E.stateSelector(e.current.state,e.current.instanceId),C=E.stateSelector(m,e.current.instanceId);C!==w&&(b.push({stateId:E.stateId,hasPropChanged:C!==E.propModel}),E.propModel!==void 0&&C!==E.propModel&&(g=!0))}),b.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${b[0].stateId}, therefore, you're not allowed to update ${b.map(v=>v.stateId).join(", ")} in the same transaction.`);if(g||(e.current.state=m,e.current.publishEvent&&e.current.publishEvent("stateChange",m),e.current.store.update(m)),b.length===1){const{stateId:v,hasPropChanged:E}=b[0],w=n.current[v],C=w.stateSelector(m,e.current.instanceId);if(w.propOnChange&&E){const x=t.signature===ss.DataGridPro?{api:e.current,reason:h}:{reason:h};w.propOnChange(C,x)}g||e.current.publishEvent(w.changeEvent,C,{reason:h})}return!g},[e,t.signature]),s=u.useCallback((p,h,m)=>e.current.setState(g=>S({},g,{[p]:h(g[p])}),m),[e]),a=u.useCallback(()=>r(()=>e.current.state),[e]),c={setState:i,forceUpdate:a},d={updateControlState:s,registerControlState:o};Rt(e,c,"public"),Rt(e,d,"private")},Xce=(e,t)=>{const n=Wce(e,t);return Hce(n,t),Qce(n,t),qce(n),Yce(n),Gce(n,t),n},go=(e,t,n)=>{const r=u.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},Jce=/(\d+)-(\d+)-(\d+)/,Zce=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Ic(e,t,n,r){if(!e.value)return null;const[o,i,s,a,c]=e.value.match(n?Zce:Jce).slice(1).map(Number),d=new Date(o,i-1,s,a||0,c||0).getTime();return({value:p})=>{if(!p)return!1;if(r)return t(p.getTime(),d);const m=new Date(p).setHours(n?p.getHours():0,n?p.getMinutes():0,0,0);return t(m,d)}}const bA=e=>[{value:"is",getApplyFilterFn:t=>Ic(t,(n,r)=>n===r,e),InputComponent:kc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Ic(t,(n,r)=>n!==r,e),InputComponent:kc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Ic(t,(n,r)=>n>r,e),InputComponent:kc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Ic(t,(n,r)=>n>=r,e),InputComponent:kc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Ic(t,(n,r)=>n<r,e,!e),InputComponent:kc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>Ic(t,(n,r)=>n<=r,e),InputComponent:kc,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 wA({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
|
|
333
|
+
`))}function eue({value:e,field:t,id:n}){return e?(wA({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function tue({value:e,field:t,id:n}){return e?(wA({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const nue=S({},Wl,{type:"date",sortComparator:fA,valueFormatter:eue,filterOperators:bA(),renderEditCell:YL,getApplyQuickFilterFn:void 0,pastedValueParser:e=>new Date(e)}),rue=S({},Wl,{type:"dateTime",sortComparator:fA,valueFormatter:tue,filterOperators:bA(!0),renderEditCell:YL,getApplyQuickFilterFn:void 0,pastedValueParser:e=>new Date(e)}),hl=e=>e==null?null:Number(e),oue=e=>e==null||Number.isNaN(e)||e===""?null:({value:t})=>hl(t)===hl(e),iue=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>hl(t)===e.value,InputComponent:qi,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>hl(t)!==e.value,InputComponent:qi,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:hl(t)>e.value,InputComponent:qi,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:hl(t)>=e.value,InputComponent:qi,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:hl(t)<e.value,InputComponent:qi,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:hl(t)<=e.value,InputComponent:qi,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:vA,InputComponentProps:{type:"number"}}],sue=S({},Wl,{type:"number",align:"right",headerAlign:"right",sortComparator:dA,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Zse(e)?e.toLocaleString():e||"",filterOperators:iue(),getApplyQuickFilterFn:oue}),$c=e=>e==null||!Jx(e)?e:e.value,lue=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>$c(t)===$c(e.value),InputComponent:G$},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>$c(t)!==$c(e.value),InputComponent:G$},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map($c);return({value:n})=>t.includes($c(n))},InputComponent:ace}],aue=e=>typeof e[0]=="object",cue=e=>Jx(e)?e.value:e,uue=e=>Jx(e)?e.label:String(e),due=S({},Wl,{type:"singleSelect",getOptionLabel:uue,getOptionValue:cue,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Ta(i))return"";let s;if(typeof i.valueOptions=="function"?s=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):s=i.valueOptions,r==null)return"";if(!s)return r;if(!aue(s))return i.getOptionLabel(r);const a=s.find(c=>i.getOptionValue(c)===r);return a?i.getOptionLabel(a):""},renderEditCell:tse,filterOperators:lue(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(a=>i(a)===e))return e}}),CA="__default__",fue=()=>({string:Wl,number:sue,date:nue,dateTime:rue,boolean:yA,singleSelect:due,[ry]:Rce,[CA]:Wl});function xA(e,t){if(typeof e=="string"){const n=e.replace(/"/g,'""');return[t,`
|
|
334
|
+
`,"\r"].some(r=>n.includes(r))?`"${n}"`:n}return e}const SA=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const a=e.colDef.type;if(a==="number")o=String(e.value);else if(a==="date"||a==="dateTime"){var s;o=(s=e.value)==null?void 0:s.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return xA(o,n)};hs(["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 pue=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>t.map(i=>{const s=n(e,i.field);return SA(s,{delimiterCharacter:r,ignoreValueFormatter:o})});function hue(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:i,ignoreValueFormatter:s}=e,a=n.reduce((d,p)=>`${d}${pue({id:p,columns:t,getCellParams:r,delimiterCharacter:o,ignoreValueFormatter:s}).join(o)}\r
|
|
335
|
+
`,"").trim();return i?`${`${t.filter(d=>d.field!==Sp.field).map(d=>xA(d.headerName||d.field,o)).join(o)}\r
|
|
336
|
+
`}${a}`.trim():a}function J$(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)}}function mue(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{J$(e)}):J$(e)}function gue(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const vue=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=u.useCallback(s=>{if(!((s.ctrlKey||s.metaKey)&&s.key==="c")||gue(s.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const d=Jo(e);if(d){const p=e.current.getCellParams(d.id,d.field);a=SA(p,{delimiterCharacter:o,ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(mue(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);rle(e,e.current.rootElementRef,"keydown",i),yn(e,"clipboardCopy",t.onClipboardCopy)},yue=e=>S({},e,{columnMenu:{open:!1}}),bue=e=>{const t=Or(e,"useGridColumnMenu"),n=u.useCallback(s=>{e.current.setState(c=>c.columnMenu.open&&c.columnMenu.field===s?c:(t.debug("Opening Column Menu"),S({},c,{columnMenu:{open:!0,field:s}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{const s=pw(e.current.state);if(s.field){const c=Qu(e),d=Ti(e),p=os(e);let h=s.field;if(c[h]||(h=p[0]),d[h]===!1){const m=p.filter(b=>b===h?!0:d[b]!==!1),g=m.indexOf(h);h=m[g+1]||m[g-1]}e.current.setColumnHeaderFocus(h)}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(s=>{t.debug("Toggle Column Menu");const a=pw(e.current.state);!a.open||a.field!==s?n(s):r()},[e,t,n,r]);Rt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),lt(e,"columnResizeStart",r),lt(e,"virtualScrollerWheel",e.current.hideColumnMenu),lt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},EA=["maxWidth","minWidth","width","flex"];function wue({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(d=>{s-=r.all[d].computedWidth,a-=r.all[d].flex});for(let d=0;d<n.length;d+=1){const p=n[d];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(d=>{r.freeze(d)}):c>0?Object.keys(i.min).forEach(d=>{r.freeze(d)}):n.forEach(({field:d})=>{r.freeze(d)}),o()}return o(),r.all}const PA=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(a=>{const c=S({},e.lookup[a]);if(e.columnVisibilityModel[a]===!1)c.computedWidth=0;else{let d;c.flex&&c.flex>0?(r+=c.flex,d=0,i.push(c)):d=Lu(c.width,c.minWidth,c.maxWidth),o+=d,c.computedWidth=d}n[a]=c});const s=Math.max(t-o,0);if(r>0&&t>0){const a=wue({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(a).forEach(c=>{n[c].computedWidth=a[c].computedWidth})}return S({},e,{lookup:n})},Cue=(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.orderedFields:[...s,...e.orderedFields.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(([g,b])=>{m[g]=b===-1?1/0:b}),c[h]=m}return S({},e,{orderedFields:a,lookup:c})},Ac=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=Ti(e),keepOnlyColumnsToUpsert:i=!1})=>{var s,a,c,d;const p=!e.current.state.columns;let h;if(p)h={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const v=Ru(e.current.state);h={orderedFields:i?[]:[...v.orderedFields],lookup:S({},v.lookup),columnVisibilityModel:o}}let m={};i&&!p&&(m=Object.keys(h.lookup).reduce((v,E)=>S({},v,{[E]:!1}),{})),t.forEach(v=>{const{field:E}=v;m[E]=!0;let w=h.lookup[E];if(w==null){let x=r[CA];v.type&&r[v.type]&&(x=r[v.type]),w=S({},x,{field:E,hasBeenResized:!1}),h.orderedFields.push(E)}else i&&h.orderedFields.push(E);let C=w.hasBeenResized;EA.forEach(x=>{v[x]!==void 0&&(C=!0,v[x]===-1&&(v[x]=1/0))}),h.lookup[E]=S({},w,v,{hasBeenResized:C})}),i&&!p&&Object.keys(h.lookup).forEach(v=>{m[v]||delete h.lookup[v]});const g=e.current.unstable_applyPipeProcessors("hydrateColumns",h),b=Cue(g,n);return PA(b,(s=(a=(c=e.current).getRootDimensions)==null||(d=a.call(c))==null?void 0:d.viewportInnerSize.width)!=null?s:0)},Z$=e=>t=>S({},t,{columns:e});function gw({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,d=t.current.unstable_getCellColSpanInfo(c,e);d&&d.spannedByColSpan&&(i=d.leftVisibleCellIndex)}return i}function xue({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:s}){const a=Math.max(e-n,t);return gw({firstColumnToRender:a,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}function iS(e,t){const n=Ju(e),r=Cp(e);return Math.floor(t*n)*((r!=null?r:0)+1)}const kA=fue(),Sue=(e,t,n)=>{var r,o,i,s,a;const c=Ac({apiRef:n,columnTypes:kA,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(i=t.columnVisibilityModel)!=null?i:(s=t.initialState)==null||(a=s.columns)==null?void 0:a.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return S({},e,{columns:c})};function Eue(e,t){var n,r;const o=Or(e,"useGridColumns"),i=kA,s=u.useRef(t.columns),a=u.useRef(i);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Ti,changeEvent:"columnVisibilityModelChange"});const c=u.useCallback(R=>{o.debug("Updating columns state."),e.current.setState(Z$(R)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",R.orderedFields)},[o,e]),d=u.useCallback(R=>Qu(e)[R],[e]),p=u.useCallback(()=>is(e),[e]),h=u.useCallback(()=>_r(e),[e]),m=u.useCallback((R,N=!0)=>(N?_r(e):is(e)).findIndex(V=>V.field===R),[e]),g=u.useCallback(R=>{const N=m(R);return Ou(e)[N]},[e,m]),b=u.useCallback(R=>{Ti(e)!==R&&(e.current.setState(H=>S({},H,{columns:Ac({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:R,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),v=u.useCallback(R=>{const N=Ac({apiRef:e,columnTypes:i,columnsToUpsert:R,initialState:void 0,keepOnlyColumnsToUpsert:!1});c(N)},[e,c,i]),E=u.useCallback((R,N)=>{var H;const V=Ti(e),F=(H=V[R])!=null?H:!0;if(N!==F){const z=S({},V,{[R]:N});e.current.setColumnVisibilityModel(z)}},[e]),w=u.useCallback(R=>os(e).findIndex(H=>H===R),[e]),C=u.useCallback((R,N)=>{const H=os(e),V=w(R);if(V===N)return;o.debug(`Moving column ${R} to index ${N}`);const F=[...H],z=F.splice(V,1)[0];F.splice(N,0,z),c(S({},Ru(e.current.state),{orderedFields:F}));const W={column:e.current.getColumn(R),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(R),oldIndex:V};e.current.publishEvent("columnIndexChange",W)},[e,o,c,w]),x=u.useCallback((R,N)=>{o.debug(`Updating column ${R} width to ${N}`);const H=e.current.getColumn(R),V=S({},H,{width:N});e.current.updateColumns([V]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(R),colDef:V,width:N})},[e,o]),P={getColumn:d,getAllColumns:p,getColumnIndex:m,getColumnPosition:g,getVisibleColumns:h,getColumnIndexRelativeToVisibleColumns:w,updateColumns:v,setColumnVisibilityModel:b,setColumnVisibility:E,setColumnWidth:x},$={setColumnIndex:C};Rt(e,P,"public"),Rt(e,$,t.signature===ss.DataGrid?"private":"public");const I=u.useCallback((R,N)=>{var H,V,F;const z={},W=Ti(e);(!N.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((H=(V=t.initialState)==null||(F=V.columns)==null?void 0:F.columnVisibilityModel)!=null?H:{}).length>0||Object.keys(W).length>0)&&(z.columnVisibilityModel=W),z.orderedFields=os(e);const Y=is(e),ae={};return Y.forEach(re=>{if(re.hasBeenResized){const de={};EA.forEach(ie=>{let se=re[ie];se===1/0&&(se=-1),de[ie]=se}),ae[re.field]=de}}),Object.keys(ae).length>0&&(z.dimensions=ae),S({},R,{columns:z})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),k=u.useCallback((R,N)=>{var H;const V=(H=N.stateToRestore.columns)==null?void 0:H.columnVisibilityModel,F=N.stateToRestore.columns;if(V==null&&F==null)return R;const z=Ac({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:F,columnVisibilityModel:V,keepOnlyColumnsToUpsert:!1});return e.current.setState(Z$(z)),F!=null&&e.current.publishEvent("columnsChange",z.orderedFields),R},[e,i]),M=u.useCallback((R,N)=>{if(N===Wa.columns){var H;const V=t.slots.columnsPanel;return _.jsx(V,S({},(H=t.slotProps)==null?void 0:H.columnsPanel))}return R},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),O=u.useCallback(R=>t.disableColumnSelector?R:[...R,"columnMenuColumnsItem"],[t.disableColumnSelector]);tr(e,"columnMenu",O),tr(e,"exportState",I),tr(e,"restoreState",k),tr(e,"preferencePanel",M);const A=u.useRef(null);lt(e,"viewportInnerSizeChange",R=>{A.current!==R.width&&(A.current=R.width,c(PA(Ru(e.current.state),R.width)))});const D=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const R=Ac({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});c(R)},[e,o,c,i]);oS(e,"hydrateColumns",D);const j=u.useRef(!0);u.useEffect(()=>{if(j.current){j.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&a.current===i)return;const R=Ac({apiRef:e,columnTypes:i,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,a.current=i,c(R)},[o,e,c,t.columns,i]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const Pue=.7,kue=1.3,IA={compact:Pue,comfortable:kue,standard:1},Iue=(e,t)=>S({},e,{density:{value:t.density,factor:IA[t.density]}}),$ue=(e,t)=>{const n=Or(e,"useDensity"),r=u.useCallback(i=>{n.debug(`Set grid density to ${i}`),e.current.setState(s=>{const a=qx(s),c={value:i,factor:IA[i]};return _a(a,c)?s:S({},s,{density:c})}),e.current.forceUpdate()},[n,e]);u.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Rt(e,{setDensity:r},"public")};function Tue(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 $A=({apiRef:e,options:t})=>{const n=is(e);return t.fields?t.fields.map(o=>n.find(i=>i.field===o)).filter(o=>!!o):(t.allColumns?n:_r(e)).filter(o=>!o.disableExport)},_ue=({apiRef:e})=>{var t,n;const r=Yoe(e),o=ni(e),i=e.current.getSelectedRows(),s=r.filter(p=>o[p].type!=="footer"),a=Xu(e),c=(a==null||(t=a.top)==null?void 0:t.map(p=>p.id))||[],d=(a==null||(n=a.bottom)==null?void 0:n.map(p=>p.id))||[];return s.unshift(...c),s.push(...d),i.size>0?s.filter(p=>i.has(p)):s},Mue=(e,t)=>{const n=Or(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=u.useCallback((d={})=>{var p,h;n.debug("Get data as CSV");const m=$A({apiRef:e,options:d}),b=((p=d.getRowsToExport)!=null?p:_ue)({apiRef:e});return hue({columns:m,rowIds:b,getCellParams:e.current.getCellParams,delimiterCharacter:d.delimiter||",",includeHeaders:(h=d.includeHeaders)!=null?h:!0,ignoreValueFormatter:o})},[n,e,o]),s=u.useCallback(d=>{n.debug("Export data as CSV");const p=i(d),h=new Blob([d!=null&&d.utf8WithBom?new Uint8Array([239,187,191]):"",p],{type:"text/csv"});Tue(h,"csv",d==null?void 0:d.fileName)},[n,i]);Rt(e,{getDataAsCsv:i,exportDataAsCsv:s},"public");const c=u.useCallback((d,p)=>{var h;return(h=p.csvOptions)!=null&&h.disableToolbarButton?d:[...d,{component:_.jsx(dce,{options:p.csvOptions}),componentName:"csvExport"}]},[]);tr(e,"exportMenu",c)};function Rue(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Oue(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const Lue=(e,t)=>{const n=Or(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),i=u.useRef({});u.useEffect(()=>{r.current=Cn(e.current.rootElementRef.current)},[e]);const s=u.useCallback((m,g)=>new Promise(b=>{if(!m&&!g){b();return}const v=$A({apiRef:e,options:{fields:m,allColumns:g}}).map(C=>C.field),E=is(e),w={};E.forEach(C=>{w[C.field]=v.includes(C.field)}),e.current.setColumnVisibilityModel(w),b()}),[e]),a=u.useCallback((m,g)=>{var b,v;const E=S({copyStyles:!0,hideToolbar:!1,hideFooter:!1},g),w=m.contentDocument;if(!w)return;const C=Zf(e.current.state),x=e.current.rootElementRef.current,P=x.cloneNode(!0),$=P.querySelector(`.${X.main}`);$.style.overflow="visible",P.style.contain="size";const k=P.querySelector(`.${X.columnHeaders}`).querySelector(`.${X.columnHeadersInner}`);k.style.width="100%";let M=((b=x.querySelector(`.${X.toolbarContainer}`))==null?void 0:b.offsetHeight)||0,O=((v=x.querySelector(`.${X.footerContainer}`))==null?void 0:v.offsetHeight)||0;if(E.hideToolbar){var A;(A=P.querySelector(`.${X.toolbarContainer}`))==null||A.remove(),M=0}if(E.hideFooter){var L;(L=P.querySelector(`.${X.footerContainer}`))==null||L.remove(),O=0}P.style.height=`${C.currentPageTotalHeight+iS(e,t.columnHeaderHeight)+M+O}px`,P.style.boxSizing="content-box";const D=document.createElement("div");D.appendChild(P),w.body.innerHTML=D.innerHTML;const j=typeof E.pageStyle=="function"?E.pageStyle():E.pageStyle;if(typeof j=="string"){const R=w.createElement("style");R.appendChild(w.createTextNode(j)),w.head.appendChild(R)}if(E.bodyClassName&&w.body.classList.add(...E.bodyClassName.split(" ")),E.copyStyles){const R=x.getRootNode(),H=(R.constructor.name==="ShadowRoot"?R:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let V=0;V<H.length;V+=1){const F=H[V];if(F.tagName==="STYLE"){const z=w.createElement(F.tagName),W=F.sheet;if(W){let K="";for(let Y=0;Y<W.cssRules.length;Y+=1)typeof W.cssRules[Y].cssText=="string"&&(K+=`${W.cssRules[Y].cssText}\r
|
|
337
|
+
`);z.appendChild(w.createTextNode(K)),w.head.appendChild(z)}}else if(F.getAttribute("href")){const z=w.createElement(F.tagName);for(let W=0;W<F.attributes.length;W+=1){const K=F.attributes[W];K&&z.setAttribute(K.nodeName,K.nodeValue||"")}w.head.appendChild(z)}}}m.contentWindow.print()},[e,r,t.columnHeaderHeight]),c=u.useCallback(m=>{var g,b;r.current.body.removeChild(m),e.current.restoreState(o.current||{}),(g=o.current)!=null&&(b=g.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_enableVirtualization(),o.current=null,i.current={}},[e]),p={exportDataAsPrint:u.useCallback(m=>pt(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=Ti(e),t.pagination){const b=zL(e);e.current.setPageSize(b)}yield s(m==null?void 0:m.fields,m==null?void 0:m.allColumns),e.current.unstable_disableVirtualization(),yield Rue();const g=Oue(m==null?void 0:m.fileName);g.onload=()=>{a(g,m),g.contentWindow.matchMedia("print").addEventListener("change",v=>{v.matches===!1&&c(g)})},r.current.body.appendChild(g)}),[t,n,e,a,c,s])};Rt(e,p,"public");const h=u.useCallback((m,g)=>{var b;return(b=g.printOptions)!=null&&b.disableToolbarButton?m:[...m,{component:_.jsx(fce,{options:g.printOptions}),componentName:"printExport"}]},[]);tr(e,"exportMenu",h)},vw=(e,t)=>{const n=S({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Qu(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},Aue=hs(["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"),Fue=hs("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),Nue=hs("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),TA=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Aue(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),s=o.some(a=>a.operator==null);return i&&Fue(),s&&Nue(),s||i?S({},e,{items:o.map(a=>vw(a,n))}):e.items!==o?S({},e,{items:o}):e},eT=(e,t,n)=>r=>S({},r,{filterModel:TA(e,t,n)}),_A=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const p=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(h=>p(h)):p(e.value)}else r=e.value;const i=S({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=s.find(p=>p.value===i.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const c=a.getApplyFilterFn(i,n);return typeof c!="function"?null:{fn:p=>{const h=t.current.getCellParams(p,i.field);return c(h)},item:i}},Due=(e,t)=>{const{items:n}=e,r=n.map(o=>_A(o,t)).filter(o=>!!o);return r.length===0?null:(o,i)=>{const s={};return(i?r.filter(c=>i(c.item.field)):r).forEach(c=>{s[c.item.id]=c.fn(o)}),s}},Bue=(e,t)=>{const{quickFilterValues:n=[]}=e;if(n.length===0)return null;const r=os(t),o={};r.forEach(s=>{const a=t.current.getColumn(s),c=a==null?void 0:a.getApplyQuickFilterFn;c&&(o[s]=n.map(d=>c(d,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={},d=[];Object.keys(o).forEach(h=>{(!a||a(h))&&(c[h]=t.current.getCellParams(s,h),d.push(h))});const p={};return i.forEach((h,m)=>{const g=d.some(b=>{var v,E;return o[b][m]==null?!1:(v=(E=o[b])[m])==null?void 0:v.call(E,c[b])});p[h]=g}),p}},zue=(e,t)=>{const n=Due(e,t),r=Bue(e,t);return(o,i)=>({passingFilterItems:n&&n(o,i),passingQuickFilterValues:r&&r(o,i)})},tT=e=>e!=null,Hue=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>_A(r,t)!==null)),e.cleanedFilterItems),jue=(e,t,n,r,o)=>{const i=Hue(o,r,n.items),s=e.filter(tT),a=t.filter(tT);if(s.length>0){var c;const p=m=>s.some(g=>g[m.id]);if(((c=n.logicOperator)!=null?c:Xf().logicOperator)===Xr.And){if(!i.every(p))return!1}else if(!i.some(p))return!1}if(a.length>0&&n.quickFilterValues!=null){var d;const p=m=>a.some(g=>g[m]);if(((d=n.quickFilterLogicOperator)!=null?d:Xf().quickFilterLogicOperator)===Xr.And){if(!n.quickFilterValues.every(p))return!1}else if(!n.quickFilterValues.some(p))return!1}return!0},Vue=(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:Xf();return S({},e,{filter:{filterModel:TA(a,t.disableMultipleColumnsFiltering,n),filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Uue=e=>e.filteredRowsLookup;function nT(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}const Wue=(e,t)=>{var n,r,o;const i=Or(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:kr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState(O=>{const A=kr(O,e.current.instanceId),L=t.filterMode==="client"?zue(A,e):null,D=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:L,filterModel:A!=null?A:Xf()}),j=S({},O,{filter:S({},O.filter,D)}),R=nT(e,j);return S({},j,{visibleRowsLookup:R})}),e.current.publishEvent("filteredRowsSet")},[t.filterMode,e]),a=u.useCallback((O,A)=>A==null||A.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),c=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),d=u.useCallback(O=>{const A=kr(e),L=[...A.items],D=L.findIndex(j=>j.id===O.id);D===-1?L.push(O):L[D]=O,e.current.setFilterModel(S({},A,{items:L}),"upsertFilterItem")},[e]),p=u.useCallback(O=>{const A=kr(e),L=[...A.items];O.forEach(D=>{const j=O.findIndex(R=>R.id===D.id);j===-1?L.push(D):L[j]=D}),e.current.setFilterModel(S({},A,{items:O}),"upsertFilterItems")},[e]),h=u.useCallback(O=>{const A=kr(e),L=A.items.filter(D=>D.id!==O.id);L.length!==A.items.length&&e.current.setFilterModel(S({},A,{items:L}),"deleteFilterItem")},[e]),m=u.useCallback((O,A,L)=>{if(i.debug("Displaying filter panel"),O){const D=kr(e),j=D.items.filter(V=>{var F;if(V.value!==void 0)return!(Array.isArray(V.value)&&V.value.length===0);const W=(F=e.current.getColumn(V.field).filterOperators)==null?void 0:F.find(Y=>Y.value===V.operator);return!(typeof(W==null?void 0:W.requiresFilterValue)=="undefined"?!0:W==null?void 0:W.requiresFilterValue)});let R;const N=j.find(V=>V.field===O),H=e.current.getColumn(O);N?R=j:t.disableMultipleColumnsFiltering?R=[vw({field:O,operator:H.filterOperators[0].value},e)]:R=[...j,vw({field:O,operator:H.filterOperators[0].value},e)],e.current.setFilterModel(S({},D,{items:R}))}e.current.showPreferences(Wa.filters,A,L)},[e,i,t.disableMultipleColumnsFiltering]),g=u.useCallback(()=>{i.debug("Hiding filter panel"),e.current.hidePreferences()},[e,i]),b=u.useCallback(O=>{const A=kr(e);A.logicOperator!==O&&e.current.setFilterModel(S({},A,{logicOperator:O}),"changeLogicOperator")},[e]),v=u.useCallback(O=>{const A=kr(e);_a(A.quickFilterValues,O)||e.current.setFilterModel(S({},A,{quickFilterValues:[...O]}))},[e]),E=u.useCallback((O,A)=>{kr(e)!==O&&(i.debug("Setting filter model"),e.current.updateControlState("filter",eT(O,t.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,i,t.disableMultipleColumnsFiltering]);Rt(e,{setFilterLogicOperator:b,unstable_applyFilters:c,deleteFilterItem:h,upsertFilterItem:d,upsertFilterItems:p,setFilterModel:E,showFilterPanel:m,hideFilterPanel:g,setQuickFilterValues:v},"public");const C=u.useCallback((O,A)=>{var L,D;const j=kr(e);return!A.exportOnlyDirtyModels||t.filterModel!=null||((L=t.initialState)==null||(D=L.filter)==null?void 0:D.filterModel)!=null||!_a(j,Xf())?S({},O,{filter:{filterModel:j}}):O},[e,t.filterModel,(n=t.initialState)==null||(r=n.filter)==null?void 0:r.filterModel]),x=u.useCallback((O,A)=>{var L;const D=(L=A.stateToRestore.filter)==null?void 0:L.filterModel;return D==null?O:(e.current.updateControlState("filter",eT(D,t.disableMultipleColumnsFiltering,e),"restoreState"),S({},O,{callbacks:[...O.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),P=u.useCallback((O,A)=>{if(A===Wa.filters){var L;const D=t.slots.filterPanel;return _.jsx(D,S({},(L=t.slotProps)==null?void 0:L.filterPanel))}return O},[t.slots.filterPanel,(o=t.slotProps)==null?void 0:o.filterPanel]),$=u.useCallback(O=>{if(t.filterMode==="client"&&O.isRowMatchingFilters){const L=ni(e)[$r].children,D={},j={};for(let R=0;R<L.length;R+=1){const N=L[R];let H;if(typeof N=="string"&&N.startsWith("auto-generated-group-footer"))H=!0;else{const{passingFilterItems:V,passingQuickFilterValues:F}=O.isRowMatchingFilters(N);H=jue([V],[F],O.filterModel,e,j)}D[N]=H}return{filteredRowsLookup:D,filteredDescendantCountLookup:{}}}return{filteredRowsLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode]);tr(e,"columnMenu",a),tr(e,"exportState",C),tr(e,"restoreState",x),tr(e,"preferencePanel",P),xg(e,Ga,"filtering",$),xg(e,Ga,"visibleRowsLookupCreation",Uue);const I=u.useCallback(()=>{i.debug("onColUpdated - GridColumns changed, applying filters");const O=kr(e),A=zoe(e),L=O.items.filter(D=>D.field&&A[D.field]);L.length<O.items.length&&e.current.setFilterModel(S({},O,{items:L}))},[e,i]),k=u.useCallback(O=>{O==="filtering"&&e.current.unstable_applyFilters()},[e]),M=u.useCallback(()=>{e.current.setState(O=>S({},O,{visibleRowsLookup:nT(e,O)})),e.current.forceUpdate()},[e]);lt(e,"rowsSet",s),lt(e,"columnsChange",I),lt(e,"activeStrategyProcessorChange",k),lt(e,"rowExpansionChange",M),xp(()=>{e.current.unstable_applyFilters()}),sn(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,i,t.filterModel])},Gue=e=>S({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),Kue=(e,t)=>{const n=Or(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((I,k)=>{I&&e.current.getRow(I.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(I.id,I.field),k)},[e]),i=u.useCallback((I,k)=>{const M=Jo(e);(M==null?void 0:M.id)===I&&(M==null?void 0:M.field)===k||(e.current.setState(O=>(n.debug(`Focusing on cell with id=${I} and field=${k}`),S({},O,{tabIndex:{cell:{id:I,field:k},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:I,field:k},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(I)&&(M&&o(M,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(I,k))))},[e,n,o]),s=u.useCallback((I,k={})=>{const M=Jo(e);o(M,k),e.current.setState(O=>(n.debug(`Focusing on column header with colIndex=${I}`),S({},O,{tabIndex:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=u.useCallback((I,k={})=>{const M=Jo(e);o(M,k),e.current.setState(O=>(n.debug(`Focusing on column header filter with colIndex=${I}`),S({},O,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),c=u.useCallback((I,k,M={})=>{const O=Jo(e);O&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(O.id,O.field),M),e.current.setState(A=>S({},A,{tabIndex:{columnGroupHeader:{field:I,depth:k},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:I,depth:k},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),d=u.useCallback(()=>mg(e),[e]),p=u.useCallback((I,k,M)=>{let O=e.current.getColumnIndex(k);const A=_r(e),L=tS(e,{pagination:t.pagination,paginationMode:t.paginationMode}),D=Xu(e),j=[].concat(D.top||[],L.rows,D.bottom||[]);let R=j.findIndex(F=>F.id===I);M==="right"?O+=1:M==="left"?O-=1:R+=1,O>=A.length?(R+=1,R<j.length&&(O=0)):O<0&&(R-=1,R>=0&&(O=A.length-1)),R=Lu(R,0,j.length-1);const N=j[R];if(!N)return;const H=e.current.unstable_getCellColSpanInfo(N.id,O);H&&H.spannedByColSpan&&(M==="left"||M==="below"?O=H.leftVisibleCellIndex:M==="right"&&(O=H.rightVisibleCellIndex)),O=Lu(O,0,A.length-1);const V=A[O];e.current.setCellFocus(N.id,V.field)},[e,t.pagination,t.paginationMode]),h=u.useCallback(({id:I,field:k})=>{e.current.setCellFocus(I,k)},[e]),m=u.useCallback((I,k)=>{k.key==="Enter"||k.key==="Tab"||k.key==="Shift"||wg(k.key)||e.current.setCellFocus(I.id,I.field)},[e]),g=u.useCallback(({field:I},k)=>{k.target===k.currentTarget&&e.current.setColumnHeaderFocus(I,k)},[e]),b=u.useCallback(({fields:I,depth:k},M)=>{if(M.target!==M.currentTarget)return;const O=mg(e);O!==null&&O.depth===k&&I.includes(O.field)||e.current.setColumnGroupHeaderFocus(I[0],k,M)},[e]),v=u.useCallback((I,k)=>{var M;(M=k.relatedTarget)!=null&&M.className.includes(X.columnHeader)||(n.debug("Clearing focus"),e.current.setState(O=>S({},O,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),E=u.useCallback(I=>{r.current=I},[]),w=u.useCallback(I=>{const k=r.current;r.current=null;const M=Jo(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:I,cell:k}))return;if(!M){k&&e.current.setCellFocus(k.id,k.field);return}if((k==null?void 0:k.id)===M.id&&(k==null?void 0:k.field)===M.field)return;const A=e.current.getCellElement(M.id,M.field);A!=null&&A.contains(I.target)||(k?e.current.setCellFocus(k.id,k.field):(e.current.setState(L=>S({},L,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(M,I)))},[e,o]),C=u.useCallback(I=>{if(I.cellMode==="view")return;const k=Jo(e);((k==null?void 0:k.id)!==I.id||(k==null?void 0:k.field)!==I.field)&&e.current.setCellFocus(I.id,I.field)},[e]),x=u.useCallback(()=>{const I=Jo(e);I&&!e.current.getRow(I.id)&&e.current.setState(k=>S({},k,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),P={setCellFocus:i,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:a},$={moveFocusToRelativeCell:p,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:d};Rt(e,P,"public"),Rt(e,$,"private"),u.useEffect(()=>{const I=Cn(e.current.rootElementRef.current);return I.addEventListener("mouseup",w),()=>{I.removeEventListener("mouseup",w)}},[e,w]),lt(e,"columnHeaderBlur",v),lt(e,"headerFilterBlur",v),lt(e,"cellDoubleClick",h),lt(e,"cellMouseDown",E),lt(e,"cellKeyDown",m),lt(e,"cellModeChange",C),lt(e,"columnHeaderFocus",g),lt(e,"columnGroupHeaderFocus",b),lt(e,"rowsSet",x)};function que(e,t){const n=Xu(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const $1=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e<n)return e+1}else if(r==="ltr"&&e>t)return e-1;return null},T1=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e<n)return e+1;return null},Yue=(e,t)=>{const n=Or(e,"useGridKeyboardNavigation"),r=nc(e,t).rows,o=pr(),i=u.useMemo(()=>que(e,r),[e,r]),s=t.signature!=="DataGrid"&&t.unstable_headerFilters,a=u.useCallback((w,C,x="left")=>{const P=Zl(e),$=e.current.unstable_getCellColSpanInfo(C,w);$&&$.spannedByColSpan&&(x==="left"?w=$.leftVisibleCellIndex:x==="right"&&(w=$.rightVisibleCellIndex));const I=P.findIndex(M=>M.id===C);n.debug(`Navigating to cell row ${I}, col ${w}`),e.current.scrollToIndexes({colIndex:w,rowIndex:I});const k=e.current.getVisibleColumns()[w].field;e.current.setCellFocus(C,k)},[e,n]),c=u.useCallback((w,C)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(x,C)},[e,n]),d=u.useCallback((w,C)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(x,C)},[e,n]),p=u.useCallback((w,C,x)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:P}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(P,C,x)},[e,n]),h=u.useCallback(w=>i==null?void 0:i[w].id,[i]),m=u.useCallback((w,C)=>{const x=C.currentTarget.querySelector(`.${X.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(C.target)&&w.field!==Sp.field||!e.current.getRootDimensions())return;const I=e.current.getViewportPageSize(),k=w.field?e.current.getColumnIndex(w.field):0,M=0,O=i.length-1,A=0,L=_r(e).length-1,D=Cp(e);let j=!0;switch(C.key){case"ArrowDown":{s?d(k,C):a(k,h(M));break}case"ArrowRight":{const R=T1({currentColIndex:k,firstColIndex:A,lastColIndex:L,direction:o.direction});R!==null&&c(R,C);break}case"ArrowLeft":{const R=$1({currentColIndex:k,firstColIndex:A,lastColIndex:L,direction:o.direction});R!==null&&c(R,C);break}case"ArrowUp":{D>0&&p(k,D-1,C);break}case"PageDown":{O!==null&&a(k,h(Math.min(M+I,O)));break}case"Home":{c(A,C);break}case"End":{c(L,C);break}case"Enter":{(C.ctrlKey||C.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:j=!1}j&&C.preventDefault()},[e,i.length,s,d,a,h,o.direction,c,p]),g=u.useCallback((w,C)=>{if(!e.current.getRootDimensions())return;const P=ble(e)===w.field,$=wle(e)===w.field;if(P||$||!wg(C.key))return;const I=e.current.getViewportPageSize(),k=w.field?e.current.getColumnIndex(w.field):0,M=0,O=i.length-1,A=0,L=_r(e).length-1;let D=!0;switch(C.key){case"ArrowDown":{const j=h(M);j!=null&&a(k,j);break}case"ArrowRight":{const j=T1({currentColIndex:k,firstColIndex:A,lastColIndex:L,direction:o.direction});j!==null&&d(j,C);break}case"ArrowLeft":{const j=$1({currentColIndex:k,firstColIndex:A,lastColIndex:L,direction:o.direction});j!==null?d(j,C):e.current.setColumnHeaderFilterFocus(w.field,C);break}case"ArrowUp":{c(k,C);break}case"PageDown":{O!==null&&a(k,h(Math.min(M+I,O)));break}case"Home":{d(A,C);break}case"End":{d(L,C);break}case" ":break;default:D=!1}D&&C.preventDefault()},[e,i.length,d,o.direction,c,a,h]),b=u.useCallback((w,C)=>{if(!e.current.getRootDimensions())return;const P=mg(e);if(P===null)return;const{field:$,depth:I}=P,{fields:k,depth:M,maxDepth:O}=w,A=e.current.getViewportPageSize(),L=e.current.getColumnIndex($),D=$?e.current.getColumnIndex($):0,j=0,R=i.length-1,N=0,H=_r(e).length-1;let V=!0;switch(C.key){case"ArrowDown":{M===O-1?c(L,C):p(L,I+1,C);break}case"ArrowUp":{M>0&&p(L,I-1,C);break}case"ArrowRight":{const F=k.length-k.indexOf($)-1;L+F+1<=H&&p(L+F+1,I,C);break}case"ArrowLeft":{const F=k.indexOf($);L-F-1>=N&&p(L-F-1,I,C);break}case"PageDown":{R!==null&&a(D,h(Math.min(j+A,R)));break}case"Home":{p(N,I,C);break}case"End":{p(H,I,C);break}case" ":break;default:V=!1}V&&C.preventDefault()},[e,i.length,c,p,a,h]),v=u.useCallback((w,C)=>{if(!C.currentTarget.contains(C.target))return;const x=e.current.getCellParams(w.id,w.field);if(x.cellMode===en.Edit||!wg(C.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:C,cell:x}))return;const $=e.current.getRootDimensions();if(i.length===0||!$)return;const I=o.direction,k=e.current.getViewportPageSize(),M=w.field?e.current.getColumnIndex(w.field):0,O=i.findIndex(N=>N.id===w.id),A=0,L=i.length-1,D=0,j=_r(e).length-1;let R=!0;switch(C.key){case"ArrowDown":{O<L&&a(M,h(O+1));break}case"ArrowUp":{O>A?a(M,h(O-1)):s?d(M,C):c(M,C);break}case"ArrowRight":{const N=T1({currentColIndex:M,firstColIndex:D,lastColIndex:j,direction:I});N!==null&&a(N,h(O),I==="rtl"?"left":"right");break}case"ArrowLeft":{const N=$1({currentColIndex:M,firstColIndex:D,lastColIndex:j,direction:I});N!==null&&a(N,h(O),I==="rtl"?"right":"left");break}case"Tab":{C.shiftKey&&M>D?a(M-1,h(O),"left"):!C.shiftKey&&M<j&&a(M+1,h(O),"right");break}case" ":{if(w.field===nS)break;const H=w.colDef;if(H&&H.type==="treeDataGroup")break;!C.shiftKey&&O<L&&a(M,h(Math.min(O+k,L)));break}case"PageDown":{O<L&&a(M,h(Math.min(O+k,L)));break}case"PageUp":{const N=Math.max(O-k,A);N!==O&&N>=A?a(M,h(N)):c(M,C);break}case"Home":{C.ctrlKey||C.metaKey||C.shiftKey?a(D,h(A)):a(D,h(O));break}case"End":{C.ctrlKey||C.metaKey||C.shiftKey?a(j,h(L)):a(j,h(O));break}default:R=!1}R&&C.preventDefault()},[e,i,o.direction,a,h,s,d,c]),E=u.useCallback((w,{event:C})=>C.key===" "?!1:w,[]);tr(e,"canStartEditing",E),lt(e,"columnHeaderKeyDown",m),lt(e,"headerFilterKeyDown",g),lt(e,"columnGroupHeaderKeyDown",b),lt(e,"cellKeyDown",v)},Que=(e,t)=>{var n,r,o;const i=S({},sA(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(o=r.pagination)==null?void 0:o.paginationModel);return lA(i.pageSize,t.signature),S({},e,{pagination:{paginationModel:i}})},_1=(e,t,n)=>r=>{var o;let i=r.paginationModel;const s=(o=n==null?void 0:n.pageSize)!=null?o:i.pageSize,a=iA(e,s);n&&((n==null?void 0:n.page)!==i.page||(n==null?void 0:n.pageSize)!==i.pageSize)&&(i=n);const c=sle(i.page,a);return c!==i.page&&(i=S({},i,{page:c})),lA(i.pageSize,t),{paginationModel:i}},Xue=(e,t)=>{var n,r;const o=Or(e,"useGridPagination"),i=Ge(e,Jv),s=Ge(e,Ju),a=Math.floor(t.rowHeight*s);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Zo,changeEvent:"paginationModelChange"});const c=u.useCallback(E=>{const w=Zo(e);E!==w.page&&(o.debug(`Setting page to ${E}`),e.current.setPaginationModel({page:E,pageSize:w.pageSize}))},[e,o]),d=u.useCallback(E=>{const w=Zo(e);E!==w.pageSize&&(o.debug(`Setting page size to ${E}`),e.current.setPaginationModel({pageSize:E,page:w.page}))},[e,o]),p=u.useCallback(E=>{var w;const C=Zo(e);E!==C&&(o.debug("Setting 'paginationModel' to",E),e.current.updateControlState("pagination",_1((w=t.rowCount)!=null?w:i,t.signature,E),"setPaginationModel"),e.current.forceUpdate())},[e,o,t.rowCount,t.signature,i]);Rt(e,{setPage:c,setPageSize:d,setPaginationModel:p},"public");const m=u.useCallback((E,w)=>{var C,x;const P=Zo(e);return!w.exportOnlyDirtyModels||t.paginationModel!=null||((C=t.initialState)==null||(x=C.pagination)==null?void 0:x.paginationModel)!=null||P.page!==0&&P.pageSize!==ile(t.autoPageSize)?S({},E,{pagination:S({},E.pagination,{paginationModel:P})}):E},[e,t.paginationModel,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.paginationModel,t.autoPageSize]),g=u.useCallback((E,w)=>{var C,x,P;const $=(C=w.stateToRestore.pagination)!=null&&C.paginationModel?S({},sA(t.autoPageSize),(x=w.stateToRestore.pagination)==null?void 0:x.paginationModel):Zo(e);return e.current.updateControlState("pagination",_1((P=t.rowCount)!=null?P:i,t.signature,$),"stateRestorePreProcessing"),E},[e,t.autoPageSize,t.rowCount,t.signature,i]);tr(e,"exportState",m),tr(e,"restoreState",g);const b=()=>{var E;const w=Zo(e);(E=e.current.virtualScrollerRef)!=null&&E.current&&e.current.scrollToIndexes({rowIndex:w.page*w.pageSize}),e.current.forceUpdate()},v=u.useCallback(()=>{const E=e.current.getRootDimensions();if(!t.autoPageSize||!E)return;const w=WL(e),C=Math.floor((E.viewportInnerSize.height-w.top-w.bottom)/a);e.current.setPageSize(C)},[e,t.autoPageSize,a]);lt(e,"viewportInnerSizeChange",v),lt(e,"paginationModelChange",b),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{var E;e.current.updateControlState("pagination",_1((E=t.rowCount)!=null?E:i,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,i,t.signature]),u.useEffect(()=>{v()},[v])},Jue=(e,t)=>{var n,r;return S({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},Zue=(e,t)=>{var n;const r=Or(e,"useGridPreferencesPanel"),o=u.useRef(),i=u.useRef(),s=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=Jf(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(g=>S({},g,{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]),d=u.useCallback((m,g,b)=>{r.debug("Opening Preferences Panel"),a(),e.current.setState(v=>S({},v,{preferencePanel:S({},v.preferencePanel,{open:!0,openedPanelValue:m,panelId:g,labelId:b})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,a,e]);Rt(e,{showPreferences:d,hidePreferences:c},"public");const p=u.useCallback((m,g)=>{var b;const v=Jf(e.current.state);return!g.exportOnlyDirtyModels||((b=t.initialState)==null?void 0:b.preferencePanel)!=null||v.open?S({},m,{preferencePanel:v}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),h=u.useCallback((m,g)=>{const b=g.stateToRestore.preferencePanel;return b!=null&&e.current.setState(v=>S({},v,{preferencePanel:b})),m},[e]);tr(e,"exportState",p),tr(e,"restoreState",h),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},ede=["id","field"],tde=["id","field"],nde=hs(["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/#server-side-persistence."],"error"),rde=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:d}=t,p=R=>(...N)=>{t.editMode===ds.Cell&&R(...N)},h=u.useCallback((R,N)=>{const H=e.current.getCellParams(R,N);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${R} and field=${N} is not editable.`)},[e]),m=u.useCallback((R,N,H)=>{if(e.current.getCellMode(R,N)!==H)throw new Error(`MUI: The cell with id=${R} and field=${N} is not in ${H} mode.`)},[e]),g=u.useCallback((R,N)=>{if(!R.isEditable||R.cellMode===en.Edit)return;const H=S({},R,{reason:al.cellDoubleClick});e.current.publishEvent("cellEditStart",H,N)},[e]),b=u.useCallback((R,N)=>{if(R.cellMode===en.View||e.current.getCellMode(R.id,R.field)===en.View)return;const H=S({},R,{reason:Pi.cellFocusOut});e.current.publishEvent("cellEditStop",H,N)},[e]),v=u.useCallback((R,N)=>{if(R.cellMode===en.Edit){if(N.which===229)return;let H;if(N.key==="Escape"?H=Pi.escapeKeyDown:N.key==="Enter"?H=Pi.enterKeyDown:N.key==="Tab"&&(H=N.shiftKey?Pi.shiftTabKeyDown:Pi.tabKeyDown,N.preventDefault()),H){const V=S({},R,{reason:H});e.current.publishEvent("cellEditStop",V,N)}}else if(R.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:R,editMode:"cell"}))return;if(JL(N)||(N.ctrlKey||N.metaKey)&&N.key==="v"?H=al.printableKeyDown:N.key==="Enter"?H=al.enterKeyDown:(N.key==="Delete"||N.key==="Backspace")&&(H=al.deleteKeyDown),H){const F=S({},R,{reason:H,key:N.key});e.current.publishEvent("cellEditStart",F,N)}}},[e]),E=u.useCallback(R=>{const{id:N,field:H,reason:V,key:F,colDef:z}=R,W={id:N,field:H};if(V===al.printableKeyDown)if(u.version.startsWith("17"))W.deleteValue=!0;else{const K=z.valueParser?z.valueParser(F):F;W.initialValue=K}else V===al.deleteKeyDown&&(W.deleteValue=!0);e.current.startCellEditMode(W)},[e]),w=u.useCallback(R=>{const{id:N,field:H,reason:V}=R;e.current.runPendingEditCellValueMutation(N,H);let F;V===Pi.enterKeyDown?F="below":V===Pi.tabKeyDown?F="right":V===Pi.shiftTabKeyDown&&(F="left");const z=V==="escapeKeyDown";e.current.stopCellEditMode({id:N,field:H,ignoreModifications:z,cellToFocusAfter:F})},[e]);lt(e,"cellDoubleClick",p(g)),lt(e,"cellFocusOut",p(b)),lt(e,"cellKeyDown",p(v)),lt(e,"cellEditStart",p(E)),lt(e,"cellEditStop",p(w)),yn(e,"cellEditStart",t.onCellEditStart),yn(e,"cellEditStop",t.onCellEditStop);const C=u.useCallback((R,N)=>{const H=Br(e.current.state);return H[R]&&H[R][N]?en.Edit:en.View},[e]),x=In(R=>{const N=R!==t.cellModesModel;d&&N&&d(R,{}),!(t.cellModesModel&&N)&&(r(R),o.current=R,e.current.publishEvent("cellModesModelChange",R))}),P=u.useCallback((R,N,H)=>{const V=S({},o.current);if(H!==null)V[R]=S({},V[R],{[N]:S({},H)});else{const F=V[R],z=ne(F,[N].map(tp));V[R]=z,Object.keys(V[R]).length===0&&delete V[R]}x(V)},[x]),$=u.useCallback((R,N,H)=>{e.current.setState(V=>{const F=S({},V.editRows);return H!==null?F[R]=S({},F[R],{[N]:S({},H)}):(delete F[R][N],Object.keys(F[R]).length===0&&delete F[R]),S({},V,{editRows:F})}),e.current.forceUpdate()},[e]),I=u.useCallback(R=>{const{id:N,field:H}=R,V=ne(R,ede);h(N,H),m(N,H,en.View),P(N,H,S({mode:en.Edit},V))},[h,m,P]),k=In(R=>{const{id:N,field:H,deleteValue:V,initialValue:F}=R;let z=e.current.getCellValue(N,H),W=!1;(V||F)&&(z=V?"":F,W=!0),$(N,H,{value:z,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:W}),e.current.setCellFocus(N,H)}),M=u.useCallback(R=>{const{id:N,field:H}=R,V=ne(R,tde);m(N,H,en.Edit),P(N,H,S({mode:en.View},V))},[m,P]),O=In(R=>pt(void 0,null,function*(){const{id:N,field:H,ignoreModifications:V,cellToFocusAfter:F="none"}=R;m(N,H,en.Edit),e.current.runPendingEditCellValueMutation(N,H);const z=()=>{$(N,H,null),P(N,H,null),F!=="none"&&e.current.moveFocusToRelativeCell(N,H,F)};if(V){z();return}const W=Br(e.current.state),{error:K,isProcessingProps:Y}=W[N][H];if(K||Y){i.current[N][H].mode=en.Edit,P(N,H,{mode:en.Edit});return}const ae=e.current.getRowWithUpdatedValuesFromCellEditing(N,H);if(s){const re=de=>{i.current[N][H].mode=en.Edit,P(N,H,{mode:en.Edit}),a?a(de):nde()};try{const de=e.current.getRow(N);Promise.resolve(s(ae,de)).then(ie=>{e.current.updateRows([ie]),z()}).catch(re)}catch(de){re(de)}}else e.current.updateRows([ae]),z()})),A=u.useCallback(R=>pt(void 0,null,function*(){var N,H;const{id:V,field:F,value:z,debounceMs:W,unstable_skipValueParser:K}=R;h(V,F),m(V,F,en.Edit);const Y=e.current.getColumn(F),ae=e.current.getRow(V);let re=z;Y.valueParser&&!K&&(re=Y.valueParser(z,e.current.getCellParams(V,F)));let de=Br(e.current.state),ie=S({},de[V][F],{value:re,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(Y.preProcessEditCellProps){const se=z!==de[V][F].value;ie=S({},ie,{isProcessingProps:!0}),$(V,F,ie),ie=yield Promise.resolve(Y.preProcessEditCellProps({id:V,row:ae,props:ie,hasChanged:se}))}return e.current.getCellMode(V,F)===en.View?!1:(de=Br(e.current.state),ie=S({},ie,{isProcessingProps:!1}),ie.value=Y.preProcessEditCellProps?de[V][F].value:re,$(V,F,ie),de=Br(e.current.state),!((N=de[V])!=null&&(H=N[F])!=null&&H.error))}),[e,h,m,$]),L=u.useCallback((R,N)=>{const H=e.current.getColumn(N),V=Br(e.current.state),F=e.current.getRow(R);if(!V[R]||!V[R][N])return e.current.getRow(R);const{value:z}=V[R][N];return H.valueSetter?H.valueSetter({value:z,row:F}):S({},F,{[N]:z})},[e]),D={getCellMode:C,startCellEditMode:I,stopCellEditMode:M},j={setCellEditingEditCellValue:A,getRowWithUpdatedValuesFromCellEditing:L};Rt(e,D,"public"),Rt(e,j,"private"),u.useEffect(()=>{c&&x(c)},[c,x]),u.useEffect(()=>{const R=hg(e),N=i.current;i.current=oA(n),Object.entries(n).forEach(([H,V])=>{Object.entries(V).forEach(([F,z])=>{var W,K,Y;const ae=((W=N[H])==null||(K=W[F])==null?void 0:K.mode)||en.View,re=(Y=R[H])!=null?Y:H;z.mode===en.Edit&&ae===en.View?k(S({id:re,field:F},z)):z.mode===en.View&&ae===en.Edit&&O(S({id:re,field:F},z))})})},[e,n,k,O])},ode=["id"],ide=["id"],sde=hs(["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/#server-side-persistence."],"error"),lde=(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:d,rowModesModel:p,onRowModesModelChange:h}=t,m=F=>(...z)=>{t.editMode===ds.Row&&F(...z)},g=u.useCallback((F,z)=>{const W=e.current.getCellParams(F,z);if(!e.current.isCellEditable(W))throw new Error(`MUI: The cell with id=${F} and field=${z} is not editable.`)},[e]),b=u.useCallback((F,z)=>{if(e.current.getRowMode(F)!==z)throw new Error(`MUI: The row with id=${F} is not in ${z} mode.`)},[e]),v=u.useCallback((F,z)=>{if(!F.isEditable||e.current.getRowMode(F.id)===fn.Edit)return;const W=e.current.getRowParams(F.id),K=S({},W,{field:F.field,reason:cl.cellDoubleClick});e.current.publishEvent("rowEditStart",K,z)},[e]),E=u.useCallback(F=>{a.current=F},[]),w=u.useCallback((F,z)=>{F.isEditable&&e.current.getRowMode(F.id)!==fn.View&&(a.current=null,s.current=setTimeout(()=>{var W;if(s.current=null,((W=a.current)==null?void 0:W.id)!==F.id){if(!e.current.getRow(F.id)||e.current.getRowMode(F.id)===fn.View)return;const K=e.current.getRowParams(F.id),Y=S({},K,{field:F.field,reason:$s.rowFocusOut});e.current.publishEvent("rowEditStop",Y,z)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(s.current)},[]);const C=u.useCallback((F,z)=>{if(F.cellMode===fn.Edit){if(z.which===229)return;let W;if(z.key==="Escape")W=$s.escapeKeyDown;else if(z.key==="Enter")W=$s.enterKeyDown;else if(z.key==="Tab"){const K=os(e).filter(Y=>e.current.getColumn(Y).type===ry?!0:e.current.isCellEditable(e.current.getCellParams(F.id,Y)));if(z.shiftKey?F.field===K[0]&&(W=$s.shiftTabKeyDown):F.field===K[K.length-1]&&(W=$s.tabKeyDown),z.preventDefault(),!W){const Y=K.findIndex(re=>re===F.field),ae=K[z.shiftKey?Y-1:Y+1];e.current.setCellFocus(F.id,ae)}}if(W){const K=S({},e.current.getRowParams(F.id),{reason:W,field:F.field});e.current.publishEvent("rowEditStop",K,z)}}else if(F.isEditable){let W;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:z,cellParams:F,editMode:"row"}))return;if(JL(z)||(z.ctrlKey||z.metaKey)&&z.key==="v"?W=cl.printableKeyDown:z.key==="Enter"?W=cl.enterKeyDown:(z.key==="Delete"||z.key==="Backspace")&&(W=cl.deleteKeyDown),W){const Y=e.current.getRowParams(F.id),ae=S({},Y,{field:F.field,key:z.key,reason:W});e.current.publishEvent("rowEditStart",ae,z)}}},[e]),x=u.useCallback(F=>{const{id:z,field:W,reason:K,key:Y,columns:ae}=F,re={id:z,fieldToFocus:W};if(K===cl.printableKeyDown)if(u.version.startsWith("17"))re.deleteValue=!!W;else{const de=ae.find(ie=>ie.field===W);re.initialValue=de.valueParser?de.valueParser(Y):Y}else K===cl.deleteKeyDown&&(re.deleteValue=!!W);e.current.startRowEditMode(re)},[e]),P=u.useCallback(F=>{const{id:z,reason:W,field:K}=F;e.current.runPendingEditCellValueMutation(z);let Y;W===$s.enterKeyDown?Y="below":W===$s.tabKeyDown?Y="right":W===$s.shiftTabKeyDown&&(Y="left");const ae=W==="escapeKeyDown";e.current.stopRowEditMode({id:z,ignoreModifications:ae,field:K,cellToFocusAfter:Y})},[e]);lt(e,"cellDoubleClick",m(v)),lt(e,"cellFocusIn",m(E)),lt(e,"cellFocusOut",m(w)),lt(e,"cellKeyDown",m(C)),lt(e,"rowEditStart",m(x)),lt(e,"rowEditStop",m(P)),yn(e,"rowEditStart",t.onRowEditStart),yn(e,"rowEditStop",t.onRowEditStop);const $=u.useCallback(F=>{if(t.editMode===ds.Cell)return fn.View;const z=Br(e.current.state);return z[F]&&Object.keys(z[F]).length>0?fn.Edit:fn.View},[e,t.editMode]),I=In(F=>{const z=F!==t.rowModesModel;h&&z&&h(F,{}),!(t.rowModesModel&&z)&&(r(F),o.current=F,e.current.publishEvent("rowModesModelChange",F))}),k=u.useCallback((F,z)=>{const W=S({},o.current);z!==null?W[F]=S({},z):delete W[F],I(W)},[I]),M=u.useCallback((F,z)=>{e.current.setState(W=>{const K=S({},W.editRows);return z!==null?K[F]=z:delete K[F],S({},W,{editRows:K})}),e.current.forceUpdate()},[e]),O=u.useCallback((F,z,W)=>{e.current.setState(K=>{const Y=S({},K.editRows);return W!==null?Y[F]=S({},Y[F],{[z]:S({},W)}):(delete Y[F][z],Object.keys(Y[F]).length===0&&delete Y[F]),S({},K,{editRows:Y})}),e.current.forceUpdate()},[e]),A=u.useCallback(F=>{const{id:z}=F,W=ne(F,ode);b(z,fn.View),k(z,S({mode:fn.Edit},W))},[b,k]),L=In(F=>{const{id:z,fieldToFocus:W,deleteValue:K,initialValue:Y}=F,re=os(e).reduce((de,ie)=>{if(!e.current.getCellParams(z,ie).isEditable)return de;let Se=e.current.getCellValue(z,ie),ye=!1;return W===ie&&(K||Y)&&(Se=K?"":Y,ye=!0),de[ie]={value:Se,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:ye},de},{});M(z,re),W&&e.current.setCellFocus(z,W)}),D=u.useCallback(F=>{const{id:z}=F,W=ne(F,ide);b(z,fn.Edit),k(z,S({mode:fn.View},W))},[b,k]),j=In(F=>{const{id:z,ignoreModifications:W,field:K,cellToFocusAfter:Y="none"}=F;e.current.runPendingEditCellValueMutation(z);const ae=()=>{Y!=="none"&&K&&e.current.moveFocusToRelativeCell(z,K,Y),M(z,null),k(z,null)};if(W){ae();return}const re=Br(e.current.state),de=e.current.getRow(z);if(Object.values(re[z]).some(ye=>ye.isProcessingProps)){i.current[z].mode=fn.Edit;return}if(Object.values(re[z]).some(ye=>ye.error)){i.current[z].mode=fn.Edit,k(z,{mode:fn.Edit});return}const Se=e.current.getRowWithUpdatedValuesFromRowEditing(z);if(c){const ye=Ie=>{i.current[z].mode=fn.Edit,k(z,{mode:fn.Edit}),d?d(Ie):sde()};try{Promise.resolve(c(Se,de)).then(Ie=>{e.current.updateRows([Ie]),ae()}).catch(ye)}catch(Ie){ye(Ie)}}else e.current.updateRows([Se]),ae()}),R=u.useCallback(F=>{const{id:z,field:W,value:K,debounceMs:Y,unstable_skipValueParser:ae}=F;g(z,W);const re=e.current.getColumn(W),de=e.current.getRow(z);let ie=K;re.valueParser&&!ae&&(ie=re.valueParser(K,e.current.getCellParams(z,W)));let se=Br(e.current.state),Se=S({},se[z][W],{value:ie,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return re.preProcessEditCellProps||O(z,W,Se),new Promise(ye=>{const Ie=[];if(re.preProcessEditCellProps){const ee=Se.value!==se[z][W].value;Se=S({},Se,{isProcessingProps:!0}),O(z,W,Se);const ke=se[z],_e=ne(ke,[W].map(tp)),Ee=Promise.resolve(re.preProcessEditCellProps({id:z,row:de,props:Se,hasChanged:ee,otherFieldsProps:_e})).then(pe=>{if(e.current.getRowMode(z)===fn.View){ye(!1);return}se=Br(e.current.state),pe=S({},pe,{isProcessingProps:!1}),pe.value=re.preProcessEditCellProps?se[z][W].value:ie,O(z,W,pe)});Ie.push(Ee)}Object.entries(se[z]).forEach(([ee,ke])=>{if(ee===W)return;const _e=e.current.getColumn(ee);if(!_e.preProcessEditCellProps)return;ke=S({},ke,{isProcessingProps:!0}),O(z,ee,ke),se=Br(e.current.state);const Ee=se[z],pe=ne(Ee,[ee].map(tp)),be=Promise.resolve(_e.preProcessEditCellProps({id:z,row:de,props:ke,hasChanged:!1,otherFieldsProps:pe})).then(te=>{if(e.current.getRowMode(z)===fn.View){ye(!1);return}te=S({},te,{isProcessingProps:!1}),O(z,ee,te)});Ie.push(be)}),Promise.all(Ie).then(()=>{e.current.getRowMode(z)===fn.Edit?(se=Br(e.current.state),ye(!se[z][W].error)):ye(!1)})})},[e,g,O]),N=u.useCallback(F=>{const z=Br(e.current.state),W=e.current.getRow(F);if(!z[F])return e.current.getRow(F);let K=S({},W);return Object.entries(z[F]).forEach(([Y,ae])=>{const re=e.current.getColumn(Y);re.valueSetter?K=re.valueSetter({value:ae.value,row:K}):K[Y]=ae.value}),K},[e]),H={getRowMode:$,startRowEditMode:A,stopRowEditMode:D},V={setRowEditingEditCellValue:R,getRowWithUpdatedValuesFromRowEditing:N};Rt(e,H,"public"),Rt(e,V,"private"),u.useEffect(()=>{p&&I(p)},[p,I]),u.useEffect(()=>{const F=hg(e),z=i.current;i.current=oA(n),Object.entries(n).forEach(([W,K])=>{var Y,ae;const re=((Y=z[W])==null?void 0:Y.mode)||fn.View,de=(ae=F[W])!=null?ae:W;K.mode===fn.Edit&&re===fn.View?L(S({id:de},K)):K.mode===fn.View&&re===fn.Edit&&j(S({id:de},K))})},[e,n,L,j])},ade=e=>S({},e,{editRows:{}}),cde=(e,t)=>{rde(e,t),lde(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(m=>Qf(m.rowNode)||!m.colDef.editable||!m.colDef.renderEditCell?!1:r?r(m):!0,[r]),i=(m,g,b,v)=>{if(!b){v();return}if(n.current[m]||(n.current[m]={}),n.current[m][g]){const[C]=n.current[m][g];clearTimeout(C)}const E=()=>{const[C]=n.current[m][g];clearTimeout(C),v(),delete n.current[m][g]},w=setTimeout(()=>{v(),delete n.current[m][g]},b);n.current[m][g]=[w,E]};u.useEffect(()=>{const m=n.current;return()=>{Object.entries(m).forEach(([g,b])=>{Object.keys(b).forEach(v=>{const[E]=m[g][v];clearTimeout(E),delete m[g][v]})})}},[]);const s=u.useCallback((m,g)=>{if(n.current[m]){if(!g)Object.keys(n.current[m]).forEach(b=>{const[,v]=n.current[m][b];v()});else if(n.current[m][g]){const[,b]=n.current[m][g];b()}}},[]),a=u.useCallback(m=>{const{id:g,field:b,debounceMs:v}=m;return new Promise(E=>{i(g,b,v,()=>pt(void 0,null,function*(){const w=t.editMode===ds.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(g,b)===en.Edit){const C=yield w(m);E(C)}}))})},[e,t.editMode]),c=u.useCallback((m,g)=>t.editMode===ds.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(m,g):e.current.getRowWithUpdatedValuesFromRowEditing(m),[e,t.editMode]),d=u.useCallback((m,g)=>Br(e.current.state)[m][g],[e]),p={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:c,unstable_getEditCellMeta:d},h={runPendingEditCellValueMutation:s};Rt(e,p,"public"),Rt(e,h,"private")},ude=(e,t,n)=>(n.current.caches.rows=ym({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),S({},e,{rows:UL({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),dde=(e,t)=>{const n=Or(e,"useGridRows"),r=nc(e,t),o=u.useRef(Date.now()),i=u.useRef(null),s=u.useCallback(L=>{const D=wa(e)[L];if(D)return D;const j=e.current.getRowNode(L);return j&&Qf(j)?{}:null},[e]),a=u.useMemo(()=>r.rows.reduce((L,{id:D},j)=>(L[D]=j,L),{}),[r.rows]),c=u.useCallback(({cache:L,throttle:D})=>{const j=()=>{i.current=null,o.current=Date.now(),e.current.setState(N=>S({},N,{rows:UL({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ni(e),previousTreeDepths:M$(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.current&&(clearTimeout(i.current),i.current=null),e.current.caches.rows=L,!D){j();return}const R=t.throttleRowsMs-(Date.now()-o.current);if(R>0){i.current=setTimeout(j,R);return}j()},[t.throttleRowsMs,t.rowCount,t.loading,e]),d=u.useCallback(L=>{n.debug(`Updating all rows, new length ${L.length}`);const D=ym({rows:L,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),j=e.current.caches.rows;D.rowsBeforePartialUpdates=j.rowsBeforePartialUpdates,c({cache:D,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),p=u.useCallback(L=>{if(t.signature===ss.DataGrid&&L.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(`
|
|
338
|
+
`));const D=[];L.forEach(R=>{const N=vg(R,t.getRowId,"A row was provided without id when calling updateRows():"),H=e.current.getRowNode(N);if((H==null?void 0:H.type)==="pinnedRow"){const V=e.current.caches.pinnedRows,F=V.idLookup[N];F&&(V.idLookup[N]=S({},F,R))}else D.push(R)});const j=lie({updates:D,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:j,throttle:!0})},[t.signature,t.getRowId,c,e]),h=u.useCallback(()=>{const L=Wh(e),D=wa(e);return new Map(L.map(j=>{var R;return[j,(R=D[j])!=null?R:{}]}))},[e]),m=u.useCallback(()=>Qv(e),[e]),g=u.useCallback(()=>Wh(e),[e]),b=u.useCallback(L=>a[L],[a]),v=u.useCallback((L,D)=>{const j=e.current.getRowNode(L);if(!j)throw new Error(`MUI: No row with id #${L} found`);if(j.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const R=S({},j,{childrenExpanded:D});e.current.setState(N=>S({},N,{rows:S({},N.rows,{tree:S({},N.rows.tree,{[L]:R})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",R)},[e]),E=u.useCallback(L=>{var D;return(D=ni(e)[L])!=null?D:null},[e]),w=u.useCallback(({skipAutoGeneratedRows:L=!0,groupId:D,applySorting:j,applyFiltering:R})=>{const N=ni(e);let H;if(j){const V=N[D];if(!V)return[];const F=Wx(e);H=[];const z=F.findIndex(W=>W===D)+1;for(let W=z;W<F.length&&N[F[W]].depth>V.depth;W+=1){const K=F[W];(!L||!Qf(N[K]))&&H.push(K)}}else H=Yx(N,D,L);if(R){const V=DL(e);H=H.filter(F=>V[F]!==!1)}return H},[e]),C=u.useCallback((L,D)=>{const j=e.current.getRowNode(L);if(!j)throw new Error(`MUI: No row with id #${L} found`);if(j.parent!==$r)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(j.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(R=>{const N=ni(R,e.current.instanceId)[$r],H=N.children,V=H.findIndex(z=>z===L);if(V===-1||V===D)return R;n.debug(`Moving row ${L} to index ${D}`);const F=[...H];return F.splice(D,0,F.splice(V,1)[0]),S({},R,{rows:S({},R.rows,{tree:S({},R.rows.tree,{[$r]:S({},N,{children:F})})})})}),e.current.publishEvent("rowsSet")},[e,n]),x=u.useCallback((L,D)=>{if(t.signature===ss.DataGrid&&D.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
339
|
+
`));if(D.length===0)return;if(Xv(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const R=S({},ni(e)),N=S({},wa(e)),H=S({},hg(e)),V=R[$r],F=[...V.children];for(let W=0;W<D.length;W+=1){const K=D[W],Y=vg(K,t.getRowId,"A row was provided without id when calling replaceRows()."),[ae]=F.splice(L+W,1,Y);delete N[ae],delete H[ae],delete R[ae];const re={id:Y,depth:0,parent:$r,type:"leaf",groupingKey:null};N[Y]=K,H[Y]=Y,R[Y]=re}R[$r]=S({},V,{children:F});const z=F.filter(W=>R[W].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=N,e.current.caches.rows.dataRowIdToIdLookup=H,e.current.setState(W=>S({},W,{rows:S({},W.rows,{dataRowIdToModelLookup:N,dataRowIdToIdLookup:H,dataRowIds:z,tree:R})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),P={getRow:s,getRowModels:h,getRowsCount:m,getAllRowIds:g,setRows:d,updateRows:p,getRowNode:E,getRowIndexRelativeToVisibleRows:b,unstable_replaceRows:x},$={setRowIndex:C,setRowChildrenExpansion:v,getRowGroupChildren:w},I=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let L;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?L=S({},e.current.caches.rows,{updates:{type:"full",rows:Wh(e)}}):L=ym({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:L,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),k=u.useCallback(L=>{L==="rowTreeCreation"&&I()},[I]),M=u.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Voe(e)&&I()},[e,I]);lt(e,"activeStrategyProcessorChange",k),lt(e,"strategyAvailabilityChange",M);const O=u.useCallback(()=>{e.current.setState(L=>{const D=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ni(L,e.current.instanceId),treeDepths:M$(L,e.current.instanceId),dataRowIds:Wh(L,e.current.instanceId),dataRowIdToModelLookup:wa(L,e.current.instanceId),dataRowIdToIdLookup:hg(L,e.current.instanceId)});return S({},L,{rows:S({},L.rows,D,{totalTopLevelRowCount:VL({tree:D.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);oS(e,"hydrateRows",O),Rt(e,P,"public"),Rt(e,$,t.signature===ss.DataGrid?"private":"public"),u.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const A=u.useRef(!0);u.useEffect(()=>{if(A.current){A.current=!1;return}const L=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,D=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,j=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(L){D||(e.current.setState(R=>S({},R,{rows:S({},R.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),j||(e.current.setState(R=>S({},R,{rows:S({},R.rows,{totalRowCount:Math.max(t.rowCount||0,R.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,R.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:ym({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},fde=e=>{const t={[$r]:S({},iie(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:$r,type:"leaf",groupingKey:null}}return{groupingName:Ga,tree:t,treeDepths:{0:e.length},dataRowIds:e}},pde=({previousTree:e,actions:t})=>{const n=S({},e),r={};for(let s=0;s<t.remove.length;s+=1){const a=t.remove[s];r[a]=!0,delete n[a]}for(let s=0;s<t.insert.length;s+=1){const a=t.insert[s];n[a]={id:a,depth:0,parent:$r,type:"leaf",groupingKey:null}}const o=n[$r];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(s=>!r[s])),n[$r]=S({},o,{children:i}),{groupingName:Ga,tree:n,treeDepths:{0:i.length},dataRowIds:i}},hde=e=>e.updates.type==="full"?fde(e.updates.rows):pde({previousTree:e.previousTree,actions:e.updates.actions}),mde=e=>{xg(e,Ga,"rowTreeCreation",hde)},MA=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],gde=(e,t)=>{var n;return S({},e,{rowSelection:t.rowSelection?(n=MA(t.rowSelectionModel))!=null?n:[]:[]})},vde=(e,t)=>{const n=Or(e,"useGridSelection"),r=R=>(...N)=>{t.rowSelection&&R(...N)},o=u.useMemo(()=>MA(t.rowSelectionModel,Qo(e.current.state)),[e,t.rowSelectionModel]),i=u.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Qo,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableMultipleRowSelection:a,disableRowSelectionOnClick:c,isRowSelectable:d}=t,p=!a||s,h=nc(e,t),m=u.useCallback(R=>{var N;let H=R;const V=(N=i.current)!=null?N:R,F=e.current.isRowSelected(R);if(F){const z=gf(e),W=z.findIndex(Y=>Y===V),K=z.findIndex(Y=>Y===H);if(W===K)return;W>K?H=z[K+1]:H=z[K-1]}i.current=R,e.current.selectRowRange({startId:V,endId:H},!F)},[e]),g=u.useCallback(R=>{if(t.signature===ss.DataGrid&&!t.checkboxSelection&&Array.isArray(R)&&R.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
|
|
340
|
+
`));Qo(e.current.state)!==R&&(n.debug("Setting selection model"),e.current.setState(H=>S({},H,{rowSelection:t.rowSelection?R:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),b=u.useCallback(R=>Qo(e.current.state).includes(R),[e]),v=u.useCallback(R=>{if(d&&!d(e.current.getRowParams(R)))return!1;const N=e.current.getRowNode(R);return!((N==null?void 0:N.type)==="footer"||(N==null?void 0:N.type)==="pinnedRow")},[e,d]),E=u.useCallback(()=>dle(e),[e]),w=u.useCallback((R,N=!0,H=!1)=>{if(e.current.isRowSelectable(R))if(i.current=R,H)n.debug(`Setting selection for row ${R}`),e.current.setRowSelectionModel(N?[R]:[]);else{n.debug(`Toggling selection for row ${R}`);const F=Qo(e.current.state).filter(W=>W!==R);N&&F.push(R),(F.length<2||p)&&e.current.setRowSelectionModel(F)}},[e,n,p]),C=u.useCallback((R,N=!0,H=!1)=>{n.debug("Setting selection for several rows");const V=R.filter(W=>e.current.isRowSelectable(W));let F;if(H)F=N?V:[];else{const W=S({},Cg(e));V.forEach(K=>{N?W[K]=K:delete W[K]}),F=Object.values(W)}(F.length<2||p)&&e.current.setRowSelectionModel(F)},[e,n,p]),x=u.useCallback(({startId:R,endId:N},H=!0,V=!1)=>{if(!e.current.getRow(R)||!e.current.getRow(N))return;n.debug(`Expanding selection from row ${R} to row ${N}`);const F=gf(e),z=F.indexOf(R),W=F.indexOf(N),[K,Y]=z>W?[W,z]:[z,W],ae=F.slice(K,Y+1);e.current.selectRows(ae,H,V)},[e,n]),P={selectRow:w,setRowSelectionModel:g,getSelectedRows:E,isRowSelected:b,isRowSelectable:v},$={selectRows:C,selectRowRange:x};Rt(e,P,"public"),Rt(e,$,t.signature===ss.DataGrid?"private":"public");const I=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const R=Qo(e.current.state),N=wa(e),H=S({},Cg(e));let V=!1;R.forEach(F=>{N[F]||(delete H[F],V=!0)}),V&&e.current.setRowSelectionModel(Object.values(H))},[e,t.keepNonExistentRowsSelected]),k=u.useCallback((R,N)=>{const H=N.metaKey||N.ctrlKey,V=!s&&!H&&!Yie(N),F=!p||V,z=e.current.isRowSelected(R);F?e.current.selectRow(R,V?!0:!z,!0):e.current.selectRow(R,!z,!1)},[e,p,s]),M=u.useCallback((R,N)=>{var H;if(c)return;const V=(H=N.target.closest(`.${X.cell}`))==null?void 0:H.getAttribute("data-field");V===Sp.field||V===nS||V&&e.current.getColumn(V).type===ry||e.current.getRowNode(R.id).type==="pinnedRow"||(N.shiftKey&&(p||s)?m(R.id):k(R.id,N))},[c,p,s,e,m,k]),O=u.useCallback((R,N)=>{if(p&&N.shiftKey){var H;(H=window.getSelection())==null||H.removeAllRanges()}},[p]),A=u.useCallback((R,N)=>{N.nativeEvent.shiftKey?m(R.id):e.current.selectRow(R.id,R.value)},[e,m]),L=u.useCallback(R=>{const H=t.checkboxSelectionVisibleOnly&&t.pagination?cA(e):gf(e);e.current.selectRows(H,R.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),D=u.useCallback((R,N)=>{if(e.current.getCellMode(R.id,R.field)!==en.Edit&&N.currentTarget.contains(N.target)){if(wg(N.key)&&N.shiftKey){const H=Jo(e);if(H&&H.id!==R.id){N.preventDefault();const V=e.current.isRowSelected(H.id);if(!p){e.current.selectRow(H.id,!V,!0);return}const F=e.current.getRowIndexRelativeToVisibleRows(H.id),z=e.current.getRowIndexRelativeToVisibleRows(R.id);let W,K;F>z?V?(W=z,K=F-1):(W=z,K=F):V?(W=F+1,K=z):(W=F,K=z);const Y=h.rows.slice(W,K+1).map(ae=>ae.id);e.current.selectRows(Y,!V);return}}if(N.key===" "&&N.shiftKey){N.preventDefault(),k(R.id,N);return}N.key==="a"&&(N.ctrlKey||N.metaKey)&&(N.preventDefault(),C(e.current.getAllRowIds(),!0))}},[e,k,C,h.rows,p]);lt(e,"sortedRowsSet",r(I)),lt(e,"rowClick",r(M)),lt(e,"rowSelectionCheckboxChange",r(A)),lt(e,"headerSelectionCheckboxChange",L),lt(e,"cellMouseDown",r(O)),lt(e,"cellKeyDown",r(D)),u.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),u.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const j=o!=null;u.useEffect(()=>{if(j||!t.rowSelection)return;const R=Qo(e.current.state);if(v){const N=R.filter(H=>v(H));N.length<R.length&&e.current.setRowSelectionModel(N)}},[e,v,j,t.rowSelection]),u.useEffect(()=>{if(!t.rowSelection||j)return;const R=Qo(e.current.state);!p&&R.length>1&&e.current.setRowSelectionModel([])},[e,p,s,j,t.rowSelection])},yde={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",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",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"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","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",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"},bde=e=>{const{classes:t}=e;return u.useMemo(()=>Me({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Ft,t),[t])},wde=(e,t)=>{const n={classes:t.classes},r=bde(n),o=u.useCallback(i=>{const s=S({},Sp,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[ul]!=null;return a&&!c?(i.lookup[ul]=s,i.orderedFields=[ul,...i.orderedFields]):!a&&c?(delete i.lookup[ul],i.orderedFields=i.orderedFields.filter(d=>d!==ul)):a&&c&&(i.lookup[ul]=S({},s,i.lookup[ul])),i},[e,r,t.checkboxSelection]);tr(e,"hydrateColumns",o)},Cde=(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:uA(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},xde=(e,t)=>{var n,r;const o=Or(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Yo,changeEvent:"sortModelChange"});const i=u.useCallback((k,M)=>{const O=Yo(e),A=O.findIndex(D=>D.field===k);let L=[...O];return A>-1?M?L.splice(A,1,M):L.splice(A,1):L=[...O,M],L},[e]),s=u.useCallback((k,M)=>{var O;const L=Yo(e).find(j=>j.field===k.field);if(L){var D;const j=M===void 0?F$((D=k.sortingOrder)!=null?D:t.sortingOrder,L.sort):M;return j==null?void 0:S({},L,{sort:j})}return{field:k.field,sort:M===void 0?F$((O=k.sortingOrder)!=null?O:t.sortingOrder):M}},[e,t.sortingOrder]),a=u.useCallback((k,M)=>M==null||M.sortable===!1?k:(M.sortingOrder||t.sortingOrder).some(A=>!!A)?[...k,"columnMenuSortItem"]:k,[t.sortingOrder]),c=u.useCallback(()=>{e.current.setState(k=>{if(t.sortingMode==="server")return o.debug("Skipping sorting rows as sortingMode = server"),S({},k,{sorting:S({},k.sorting,{sortedRows:Yx(ni(e),$r,!1)})});const M=Yo(k,e.current.instanceId),O=gle(M,e),A=e.current.applyStrategyProcessor("sorting",{sortRowList:O});return S({},k,{sorting:S({},k.sorting,{sortedRows:A})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,o,t.sortingMode]),d=u.useCallback(k=>{Yo(e)!==k&&(o.debug("Setting sort model"),e.current.setState(A$(k,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,o,t.disableMultipleColumnsSorting]),p=u.useCallback((k,M,O)=>{if(!k.sortable)return;const A=s(k,M);let L;!O||t.disableMultipleColumnsSorting?L=A?[A]:[]:L=i(k.field,A),e.current.setSortModel(L)},[e,i,s,t.disableMultipleColumnsSorting]),h=u.useCallback(()=>Yo(e),[e]),m=u.useCallback(()=>Gx(e).map(M=>M.model),[e]),g=u.useCallback(()=>Wx(e),[e]),b=u.useCallback(k=>e.current.getSortedRowIds()[k],[e]);Rt(e,{getSortModel:h,getSortedRows:m,getSortedRowIds:g,getRowIdFromRowIndex:b,setSortModel:d,sortColumn:p,applySorting:c},"public");const E=u.useCallback((k,M)=>{var O,A;const L=Yo(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((O=t.initialState)==null||(A=O.sorting)==null?void 0:A.sortModel)!=null||L.length>0?S({},k,{sorting:{sortModel:L}}):k},[e,t.sortModel,(n=t.initialState)==null||(r=n.sorting)==null?void 0:r.sortModel]),w=u.useCallback((k,M)=>{var O;const A=(O=M.stateToRestore.sorting)==null?void 0:O.sortModel;return A==null?k:(e.current.setState(A$(A,t.disableMultipleColumnsSorting)),S({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),C=u.useCallback(k=>{const M=ni(e),O=M[$r],A=k.sortRowList?k.sortRowList(O.children.map(L=>M[L])):[...O.children];return O.footerId!=null&&A.push(O.footerId),A},[e]);tr(e,"exportState",E),tr(e,"restoreState",w),xg(e,Ga,"sorting",C);const x=u.useCallback(({colDef:k},M)=>{const O=M.shiftKey||M.metaKey||M.ctrlKey;p(k,void 0,O)},[p]),P=u.useCallback(({colDef:k},M)=>{Wie(M.key)&&!M.ctrlKey&&!M.metaKey&&p(k,void 0,M.shiftKey)},[p]),$=u.useCallback(()=>{const k=Yo(e),M=Qu(e);if(k.length>0){const O=k.filter(A=>M[A.field]);O.length<k.length&&e.current.setSortModel(O)}},[e]),I=u.useCallback(k=>{k==="sorting"&&e.current.applySorting()},[e]);tr(e,"columnMenu",a),lt(e,"columnHeaderClick",x),lt(e,"columnHeaderKeyDown",P),lt(e,"rowsSet",e.current.applySorting),lt(e,"columnsChange",$),lt(e,"activeStrategyProcessorChange",I),xp(()=>{e.current.applySorting()}),sn(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function rT(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 Sde=(e,t)=>{const n=pr(),r=Or(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.virtualScrollerRef,s=Ge(e,Zl),a=u.useCallback(h=>{const m=Qv(e),g=_r(e);if(!(h.rowIndex==null)&&m===0||g.length===0)return!1;r.debug(`Scrolling to cell at row ${h.rowIndex}, col: ${h.colIndex} `);let v={};if(h.colIndex!=null){const x=Ou(e);let P;if(typeof h.rowIndex!="undefined"){var E;const $=(E=s[h.rowIndex])==null?void 0:E.id,I=e.current.unstable_getCellColSpanInfo($,h.colIndex);I&&!I.spannedByColSpan&&(P=I.cellProps.width)}typeof P=="undefined"&&(P=g[h.colIndex].computedWidth),v.left=rT({clientHeight:i.current.clientWidth,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:P,offsetTop:x[h.colIndex]})}if(h.rowIndex!=null){var w,C;const x=Zf(e.current.state),P=lle(e),$=ale(e),I=t.pagination?h.rowIndex-P*$:h.rowIndex,k=x.positions[I+1]?x.positions[I+1]-x.positions[I]:x.currentPageTotalHeight-x.positions[I],M=((w=i.current.querySelector(`.${X["pinnedRows--top"]}`))==null?void 0:w.clientHeight)||0,O=((C=i.current.querySelector(`.${X["pinnedRows--bottom"]}`))==null?void 0:C.clientHeight)||0;v.top=rT({clientHeight:i.current.clientHeight-M-O,scrollTop:i.current.scrollTop,offsetHeight:k,offsetTop:x.positions[I]})}return v=e.current.unstable_applyPipeProcessors("scrollToIndexes",v,h),typeof v.left!==void 0||typeof v.top!==void 0?(e.current.scroll(v),!0):!1},[r,e,i,t.pagination,s]),c=u.useCallback(h=>{if(i.current&&h.left!=null&&o.current){const m=n.direction==="rtl"?-1:1;o.current.scrollLeft=h.left,i.current.scrollLeft=m*h.left,r.debug(`Scrolling left: ${h.left}`)}i.current&&h.top!=null&&(i.current.scrollTop=h.top,r.debug(`Scrolling top: ${h.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),d=u.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Rt(e,{scroll:c,scrollToIndexes:a,getScrollPosition:d},"public")};function Ede(e,t){yn(e,"columnHeaderClick",t.onColumnHeaderClick),yn(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),yn(e,"columnHeaderOver",t.onColumnHeaderOver),yn(e,"columnHeaderOut",t.onColumnHeaderOut),yn(e,"columnHeaderEnter",t.onColumnHeaderEnter),yn(e,"columnHeaderLeave",t.onColumnHeaderLeave),yn(e,"cellClick",t.onCellClick),yn(e,"cellDoubleClick",t.onCellDoubleClick),yn(e,"cellKeyDown",t.onCellKeyDown),yn(e,"preferencePanelClose",t.onPreferencePanelClose),yn(e,"preferencePanelOpen",t.onPreferencePanelOpen),yn(e,"menuOpen",t.onMenuOpen),yn(e,"menuClose",t.onMenuClose),yn(e,"rowDoubleClick",t.onRowDoubleClick),yn(e,"rowClick",t.onRowClick),yn(e,"stateChange",t.onStateChange)}const Pde=({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 kde(e,t){const n=Or(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),i=u.useRef(null),s=Ge(e,Zf),a=Ge(e,Ju),c=Math.floor(t.rowHeight*a),d=iS(e,t.columnHeaderHeight),p=u.useCallback(()=>{var k;const M=(k=e.current.rootElementRef)==null?void 0:k.current,O=Ux(e),A=WL(e);if(!o.current)return;let L;if(t.scrollbarSize!=null)L=t.scrollbarSize;else if(!O||!M)L=0;else{const z=Cn(M).createElement("div");z.style.width="99px",z.style.height="99px",z.style.position="absolute",z.style.overflow="scroll",z.className="scrollDiv",M.appendChild(z),L=z.offsetWidth-z.clientWidth,M.removeChild(z)}let D,j,R;if(t.autoHeight)R=!1,j=Math.round(O)>o.current.width,D={width:o.current.width,height:s.currentPageTotalHeight+(j?L:0)};else{D={width:o.current.width,height:o.current.height-d};const F=Pde({content:{width:Math.round(O),height:s.currentPageTotalHeight},container:{width:D.width,height:D.height-A.top-A.bottom},scrollBarSize:L});R=F.hasScrollY,j=F.hasScrollX}const N={width:D.width-(R?L:0),height:D.height-(j?L:0)},H={viewportOuterSize:D,viewportInnerSize:N,hasScrollX:j,hasScrollY:R,scrollBarSize:L},V=i.current;i.current=H,(H.viewportInnerSize.width!==(V==null?void 0:V.viewportInnerSize.width)||H.viewportInnerSize.height!==(V==null?void 0:V.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",H.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,d]),[h,m]=u.useState(),g=u.useMemo(()=>zl(m,60),[]),b=u.useRef();sn(()=>{h&&(p(),e.current.publishEvent("debouncedResize",o.current))},[e,h,p]);const v=u.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),E=u.useCallback(()=>i.current,[]),w=u.useCallback(()=>{const k=e.current.getRootDimensions();if(!k)return 0;const M=tS(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const A=e.current.getRenderContext(),L=A.lastRowIndex-A.firstRowIndex;return Math.min(L-1,M.rows.length)}const O=Math.floor(k.viewportInnerSize.height/c);return Math.min(O,M.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,c]),C=u.useCallback(()=>{var k,M,O;const A=(k=e.current.mainElementRef)==null?void 0:k.current;if(!A)return;const L=A.clientHeight||0,D=A.clientWidth||0,R=ui(A).getComputedStyle(A),N=parseInt(R.paddingLeft,10)||0,H=parseInt(R.paddingRight,10)||0,V=parseInt(R.paddingTop,10)||0,F=parseInt(R.paddingBottom,10)||0,z=L-V-F,W=D-N-H,K=z!==((M=b.current)==null?void 0:M.height),Y=W!==((O=b.current)==null?void 0:O.width);if(!b.current||K||Y){const ae={width:W,height:z};e.current.publishEvent("resize",ae),b.current=ae}},[e]),x={resize:v,getRootDimensions:E},P={getViewportPageSize:w,updateGridDimensionsRef:p,computeSizeAndPublishResizeEvent:C};Rt(e,x,"public"),Rt(e,P,"private");const $=u.useRef(!0),I=u.useCallback(k=>{o.current=k;const M=/jsdom/.test(window.navigator.userAgent);if(k.height===0&&!r.current&&!t.autoHeight&&!M&&(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(`
|
|
341
|
+
`)),r.current=!0),k.width===0&&!r.current&&!M&&(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(`
|
|
342
|
+
`)),r.current=!0),$.current){m(k),$.current=!1;return}g(k)},[t.autoHeight,g,n]);sn(()=>p(),[p]),yn(e,"sortedRowsSet",p),yn(e,"paginationModelChange",p),yn(e,"columnsChange",p),lt(e,"resize",I),yn(e,"debouncedResize",t.onResize)}const Ide=["style"],$de=["style"];function du(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?du(e,t,n,o):du(e,t,o+1,r)}function Tde(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return du(e,t,Math.floor(n/2),Math.min(n,t.length))}const ml=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Lu(e-n,r,o),Lu(t+n,r,o)],RA=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,_de={maxSize:3},Mde=e=>{var t,n;const r=tc(),o=rt(),i=Ge(r,_r),{ref:s,disableVirtualization:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:d=0,renderZoneMaxColumnIndex:p=i.length,getRowProps:h}=e,m=pr(),g=Ge(r,Ou),b=Ge(r,Ux),v=Ge(r,Jo),E=Ge(r,gg),w=Ge(r,Zf),C=Ge(r,Cg),x=nc(r,o),P=u.useRef(null),$=u.useRef(null),I=Ht(s,$),[k,M]=u.useState(null),O=u.useRef(k),A=u.useRef({top:0,left:0}),[L,D]=u.useState({width:null,height:null}),j=u.useRef(b),R=u.useRef(Object.create(null)),N=u.useRef(),H=u.useRef(),V=u.useRef(Vx((ee,ke,_e)=>ee.slice(ke,_e),_de)),F=u.useCallback(ee=>{var ke,_e;const Ee=r.current.getLastMeasuredRowIndex();let pe=Ee===1/0;(ke=x.range)!=null&&ke.lastRowIndex&&!pe&&(pe=Ee>=x.range.lastRowIndex);const be=Lu(Ee-(((_e=x.range)==null?void 0:_e.firstRowIndex)||0),0,w.positions.length);return pe||w.positions[be]>=ee?du(ee,w.positions):Tde(ee,w.positions,be)},[r,(t=x.range)==null?void 0:t.firstRowIndex,(n=x.range)==null?void 0:n.lastRowIndex,w.positions]),z=u.useCallback(()=>{if(a)return{firstRowIndex:0,lastRowIndex:x.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ee,left:ke}=A.current,_e=Math.min(F(ee),w.positions.length-1),Ee=o.autoHeight?_e+x.rows.length:F(ee+L.height);let pe=!1,be=0,te=g.length;const[Le,Ye]=ml({firstIndex:_e,lastIndex:Ee,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer});for(let Ke=Le;Ke<Ye&&!pe;Ke+=1){const Ue=x.rows[Ke];pe=r.current.rowHasAutoHeight(Ue.id)}return pe||(be=du(Math.abs(ke),g),te=du(Math.abs(ke)+L.width,g)),{firstRowIndex:_e,lastRowIndex:Ee,firstColumnIndex:be,lastColumnIndex:te}},[a,F,w.positions.length,o.autoHeight,o.rowBuffer,x.rows,g,i.length,r,L]);sn(()=>{a?P.current.style.transform="translate3d(0px, 0px, 0px)":($.current.scrollLeft=0,$.current.scrollTop=0)},[a]),sn(()=>{D({width:$.current.clientWidth,height:$.current.clientHeight})},[w.currentPageTotalHeight]);const W=u.useCallback(()=>{$.current&&D({width:$.current.clientWidth,height:$.current.clientHeight})},[]);lt(r,"debouncedResize",W);const K=u.useCallback(ee=>{const[ke,_e]=ml({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer}),[Ee]=ml({firstIndex:ee.firstColumnIndex,lastIndex:ee.lastColumnIndex,minFirstIndex:d,maxLastIndex:p,buffer:o.columnBuffer}),pe=gw({firstColumnToRender:Ee,apiRef:r,firstRowToRender:ke,lastRowToRender:_e,visibleRows:x.rows}),be=m.direction==="ltr"?1:-1,te=Zf(r.current.state).positions[ke],Le=be*Ou(r)[pe];P.current.style.transform=`translate3d(${Le}px, ${te}px, 0px)`,typeof c=="function"&&c({top:te,left:Le})},[r,x.rows,c,d,p,o.columnBuffer,o.rowBuffer,m.direction]),Y=u.useCallback(ee=>{if(O.current&&RA(ee,O.current)){K(ee);return}M(ee),K(ee);const[ke,_e]=ml({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ke,lastRowToRender:_e}),O.current=ee},[r,M,O,x.rows.length,o.rowBuffer,K]);sn(()=>{if(L.width==null)return;const ee=z();Y(ee);const{top:ke,left:_e}=A.current,Ee={top:ke,left:_e,renderContext:ee};r.current.publishEvent("scrollPositionChange",Ee)},[r,z,L.width,Y]);const ae=In(ee=>{const{scrollTop:ke,scrollLeft:_e}=ee.currentTarget;if(A.current.top=ke,A.current.left=_e,!O.current||ke<0||m.direction==="ltr"&&_e<0||m.direction==="rtl"&&_e>0)return;const Ee=a?O.current:z(),pe=Math.abs(Ee.firstRowIndex-O.current.firstRowIndex),be=Math.abs(Ee.lastRowIndex-O.current.lastRowIndex),te=Math.abs(Ee.firstColumnIndex-O.current.firstColumnIndex),Le=Math.abs(Ee.lastColumnIndex-O.current.lastColumnIndex),Ye=pe>=o.rowThreshold||be>=o.rowThreshold||te>=o.columnThreshold||Le>=o.columnThreshold||j.current!==b;r.current.publishEvent("scrollPositionChange",{top:ke,left:_e,renderContext:Ye?Ee:O.current},ee),Ye&&(zu.flushSync(()=>{Y(Ee)}),j.current=b)}),re=In(ee=>{r.current.publishEvent("virtualScrollerWheel",{},ee)}),de=In(ee=>{r.current.publishEvent("virtualScrollerTouchMove",{},ee)}),ie=(ee={renderContext:k})=>{var ke;const{onRowRender:_e,renderContext:Ee,minFirstColumn:pe=d,maxLastColumn:be=p,availableSpace:te=L.width,rowIndexOffset:Le=0,position:Ye="center"}=ee;if(!Ee||te==null)return null;const Ke=a?0:o.rowBuffer,Ue=a?0:o.columnBuffer,[Be,ut]=ml({firstIndex:Ee.firstRowIndex,lastIndex:Ee.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:Ke}),gt=[];if(ee.rows)ee.rows.forEach(ot=>{gt.push(ot),r.current.calculateColSpan({rowId:ot.id,minFirstColumn:pe,maxLastColumn:be,columns:i})});else{if(!x.range)return null;for(let ot=Be;ot<ut;ot+=1){const ht=x.rows[ot];gt.push(ht),r.current.calculateColSpan({rowId:ht.id,minFirstColumn:pe,maxLastColumn:be,columns:i})}}const[at,St]=ml({firstIndex:Ee.firstColumnIndex,lastIndex:Ee.lastColumnIndex,minFirstIndex:pe,maxLastIndex:be,buffer:Ue}),vt=gw({firstColumnToRender:at,apiRef:r,firstRowToRender:Be,lastRowToRender:ut,visibleRows:x.rows}),Ne=V.current(i,vt,St),Fe=((ke=o.slotProps)==null?void 0:ke.row)||{},{style:ze}=Fe,et=ne(Fe,Ide);(N.current!==h||H.current!==ze)&&(R.current=Object.create(null));const Ae=[];for(let ot=0;ot<gt.length;ot+=1){var Ve;const{id:ht,model:Qt}=gt[ot],xn=Be+ot===x.rows.length-1,Tn=r.current.rowHasAutoHeight(ht)?"auto":r.current.unstable_getRowHeight(ht);let Kn;C[ht]==null?Kn=!1:Kn=r.current.isRowSelectable(ht),_e&&_e(ht);const rr=v!==null&&v.id===ht?v.field:null;let or=null;E!==null&&E.id===ht&&(or=r.current.getCellParams(ht,E.field).cellMode==="view"?E.field:null);const mn=typeof h=="function"&&h(ht,Qt)||{},{style:Xt}=mn,Dn=ne(mn,$de);if(!R.current[ht]){const Bo=S({},Xt,ze);R.current[ht]=Bo}Ae.push(_.jsx(o.slots.row,S({row:Qt,rowId:ht,rowHeight:Tn,focusedCell:rr,tabbableCell:or,renderedColumns:Ne,visibleColumns:i,firstColumnToRender:vt,lastColumnToRender:St,selected:Kn,index:Le+((x==null||(Ve=x.range)==null?void 0:Ve.firstRowIndex)||0)+Be+ot,containerWidth:te,isLastVisible:xn,position:Ye},Dn,et,{style:R.current[ht]}),ht))}return N.current=h,H.current=ze,Ae},se=L.width&&b>=L.width,Se=u.useMemo(()=>{const ee=Math.max(w.currentPageTotalHeight,1);let ke=!1;$!=null&&$.current&&ee<=($==null?void 0:$.current.clientHeight)&&(ke=!0);const _e={width:se?b:"auto",height:ee,minHeight:ke?"100%":"auto"};return o.autoHeight&&x.rows.length===0&&(_e.height=GL(r,o.rowHeight)),_e},[r,$,b,w.currentPageTotalHeight,se,o.autoHeight,o.rowHeight,x.rows.length]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,Se]);const ye=u.useMemo(()=>{const ee={};return se||(ee.overflowX="hidden"),o.autoHeight&&(ee.overflowY="hidden"),ee},[se,o.autoHeight]),Ie=u.useCallback(()=>O.current,[]);return r.current.register("private",{getRenderContext:Ie}),{renderContext:k,updateRenderZonePosition:K,getRows:ie,getRootProps:(ee={})=>S({ref:I,onScroll:ae,onWheel:re,onTouchMove:de},ee,{style:ee.style?S({},ee.style,ye):ye}),getContentProps:({style:ee}={})=>({style:ee?S({},ee,Se):Se}),getRenderZoneProps:()=>({ref:P})}},Rde=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:i}=e;return Me({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",i===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Ft,t)};function Ode(e){var t;const{groupId:n,width:r,depth:o,maxDepth:i,fields:s,height:a,colIndex:c,hasFocus:d,tabIndex:p,isLastColumn:h}=e,m=rt(),g=u.useRef(null),b=At(),v=Ge(b,jL),E=n?v[n]:{},{headerName:w=n!=null?n:"",description:C="",headerAlign:x=void 0}=E;let P;const $=n&&((t=v[n])==null?void 0:t.renderHeaderGroup),I=u.useMemo(()=>({groupId:n,headerName:w,description:C,depth:o,maxDepth:i,fields:s,colIndex:c,isLastColumn:h}),[n,w,C,o,i,s,c,h]);n&&$&&(P=$(I));const k=m.showColumnVerticalBorder,M=S({},e,{classes:m.classes,showColumnBorder:k,headerAlign:x,depth:o,isDragging:!1}),O=w!=null?w:n,A=on(),L=n===null?`empty-group-cell-${A}`:n,D=Rde(M);u.useLayoutEffect(()=>{if(d){const V=g.current.querySelector('[tabindex="0"]')||g.current;V==null||V.focus()}},[b,d]);const j=u.useCallback(H=>V=>{V.currentTarget.contains(V.target)&&b.current.publishEvent(H,I,V)},[b,I]),R=u.useMemo(()=>({onKeyDown:j("columnGroupHeaderKeyDown"),onFocus:j("columnGroupHeaderFocus"),onBlur:j("columnGroupHeaderBlur")}),[j]),N=typeof E.headerClassName=="function"?E.headerClassName(I):E.headerClassName;return _.jsx(nA,S({ref:g,classes:D,columnMenuOpen:!1,colIndex:c,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:p,isDraggable:!1,headerComponent:P,headerClassName:N,description:C,elementId:L,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:O,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`},R))}const oT=fr("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function Lde(e){return!!e.target}const Ade=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnPositions:s,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:d,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:m,columnMenuState:g,columnVisibility:b,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:E}=e,w=mp(),[C,x]=u.useState(""),[P,$]=u.useState(""),I=tc(),k=rt(),M=u.useRef(null),O=Ht(t,M),[A,L]=u.useState(null),D=u.useRef(A),j=u.useRef(0),R=nc(I,k),N=iS(I,k.columnHeaderHeight),H=Math.floor(k.columnHeaderHeight*h),V=u.useCallback(ye=>{A&&ye&&RA(A,ye)||L(ye)},[A]);u.useEffect(()=>{I.current.columnHeadersContainerElementRef.current.scrollLeft=0},[I]);const F=u.useRef(Vx(xue,{equalityCheck:(ye,Ie)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ee=>ye[ee]===Ie[ee])})),z=u.useCallback(ye=>{const[Ie,ee]=ml({firstIndex:ye.firstRowIndex,lastIndex:ye.lastRowIndex,minFirstIndex:0,maxLastIndex:R.rows.length,buffer:k.rowBuffer}),ke=F.current({firstColumnIndex:ye.firstColumnIndex,minColumnIndex:n,columnBuffer:k.columnBuffer,firstRowToRender:Ie,lastRowToRender:ee,apiRef:I,visibleRows:R.rows}),_e=w.direction==="ltr"?1:-1,Ee=ke>0?j.current-_e*s[ke]:j.current;M.current.style.transform=`translate3d(${-Ee}px, 0px, 0px)`},[s,n,k.columnBuffer,I,R.rows,k.rowBuffer,w.direction]);u.useLayoutEffect(()=>{A&&z(A)},[A,z]);const W=u.useCallback(({left:ye,renderContext:Ie=null},ee)=>{var ke,_e;if(!M.current||j.current===ye&&((ke=D.current)==null?void 0:ke.firstColumnIndex)===(Ie==null?void 0:Ie.firstColumnIndex)&&((_e=D.current)==null?void 0:_e.lastColumnIndex)===(Ie==null?void 0:Ie.lastColumnIndex))return;j.current=ye;let Ee=!1;Ie!==D.current||!D.current?(Lde(ee)?(zu.flushSync(()=>{V(Ie)}),Ee=!0):V(Ie),D.current=Ie):Ee=!0,Ie&&Ee&&z(Ie)},[z,V]),K=u.useCallback(ye=>$(ye.field),[]),Y=u.useCallback(()=>$(""),[]),ae=u.useCallback(ye=>x(ye.field),[]),re=u.useCallback(()=>x(""),[]);lt(I,"columnResizeStart",K),lt(I,"columnResizeStop",Y),lt(I,"columnHeaderDragStart",ae),lt(I,"columnHeaderDragEnd",re),lt(I,"scrollPositionChange",W);const de=ye=>{const{renderContext:Ie=A,minFirstColumn:ee=n,maxLastColumn:ke=r.length}=ye||{};if(!Ie)return null;const[_e,Ee]=ml({firstIndex:Ie.firstRowIndex,lastIndex:Ie.lastRowIndex,minFirstIndex:0,maxLastIndex:R.rows.length,buffer:k.rowBuffer}),pe=F.current({firstColumnIndex:Ie.firstColumnIndex,minColumnIndex:ee,columnBuffer:k.columnBuffer,apiRef:I,firstRowToRender:_e,lastRowToRender:Ee,visibleRows:R.rows}),be=Math.min(Ie.lastColumnIndex+k.columnBuffer,ke);return{renderedColumns:r.slice(pe,be),firstColumnToRender:pe,lastColumnToRender:be,minFirstColumn:ee,maxLastColumn:ke}},ie=(ye,Ie={})=>{const ee=de(ye);if(ee==null)return null;const{renderedColumns:ke,firstColumnToRender:_e}=ee,Ee=[];for(let pe=0;pe<ke.length;pe+=1){const be=ke[pe],te=_e+pe,Le=te===0,Ye=a!==null&&a.field===be.field||Le&&!E?0:-1,Ke=d!==null&&d.field===be.field,Ue=g.open&&g.field===be.field;Ee.push(_.jsx(Gse,S({},o[be.field],{columnMenuOpen:Ue,filterItemsCounter:i[be.field]&&i[be.field].length,headerHeight:H,isDragging:be.field===C,colDef:be,colIndex:te,isResizing:P===be.field,hasFocus:Ke,tabIndex:Ye},Ie),be.field))}return _.jsx(oT,{role:"row","aria-rowindex":m+1,ownerState:k,children:Ee})},se=ye=>{if(m===0)return null;const Ie=de(ye);if(Ie==null||Ie.renderedColumns.length===0)return null;const{firstColumnToRender:ee,lastColumnToRender:ke}=Ie,_e=[],Ee=[];for(let te=0;te<m;te+=1){var pe,be;const Le=v[te],Ye=r[ee].field,Ke=(pe=I.current.unstable_getColumnGroupPath(Ye)[te])!=null?pe:null,Ue=Le.findIndex(({groupId:et,columnFields:Pe})=>et===Ke&&Pe.includes(Ye)),Be=r[ke-1].field,ut=(be=I.current.unstable_getColumnGroupPath(Be)[te])!=null?be:null,gt=Le.findIndex(({groupId:et,columnFields:Pe})=>et===ut&&Pe.includes(Be)),at=Le.slice(Ue,gt+1).map(et=>S({},et,{columnFields:et.columnFields.filter(Pe=>b[Pe]!==!1)})).filter(et=>et.columnFields.length>0),St=at[0].columnFields.indexOf(Ye),Ne=at[0].columnFields.slice(0,St).reduce((et,Pe)=>{var Ae;const Ve=I.current.getColumn(Pe);return et+((Ae=Ve.computedWidth)!=null?Ae:0)},0);let Fe=ee;const ze=at.map(({groupId:et,columnFields:Pe})=>{const Ae=p!==null&&p.depth===te&&Pe.includes(p.field),Ve=c!==null&&c.depth===te&&Pe.includes(c.field)?0:-1,ot={groupId:et,width:Pe.reduce((ht,Qt)=>ht+I.current.getColumn(Qt).computedWidth,0),fields:Pe,colIndex:Fe,hasFocus:Ae,tabIndex:Ve};return Fe+=Pe.length,ot});Ee.push({leftOverflow:Ne,elements:ze})}return Ee.forEach((te,Le)=>{_e.push(_.jsx(oT,{style:{height:`${H}px`,transform:`translateX(-${te.leftOverflow}px)`},role:"row","aria-rowindex":Le+1,ownerState:k,children:te.elements.map(({groupId:Ye,width:Ke,fields:Ue,colIndex:Be,hasFocus:ut,tabIndex:gt},at)=>_.jsx(Ode,{groupId:Ye,width:Ke,fields:Ue,colIndex:Be,depth:Le,isLastColumn:Be===r.length-Ue.length,maxDepth:Ee.length,height:H,hasFocus:ut,tabIndex:gt},at))},Le))}),_e},Se={minHeight:N,maxHeight:N,lineHeight:`${H}px`};return{renderContext:A,getColumnHeaders:ie,getColumnsToRender:de,getColumnGroupHeaders:se,isDragging:!!C,getRootProps:(ye={})=>S({style:Se},ye),getInnerProps:()=>({ref:O,role:"rowgroup"}),headerHeight:H}},Fde=["className"],Nde=e=>{const{classes:t}=e;return Me({root:["columnHeaders","withBorderColor"]},Ft,t)},Dde=fr("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),Bde=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,Fde),i=rt(),s=Nde(i);return _.jsx(Dde,S({ref:n,className:he(r,s.root),ownerState:i},o))}),zde=["isDragging","className"],Hde=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Me({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Ft,r)},jde=fr("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${X.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${X.columnHeaderDropZone} .${X.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${X["columnHeadersInner--scrollable"]} .${X.columnHeader}:last-child`]:{borderRight:"none"}})),Vde=u.forwardRef(function(t,n){var r,o;const{isDragging:i,className:s}=t,a=ne(t,zde),c=At(),d=rt(),p=S({},d,{isDragging:i,hasScrollX:(r=(o=c.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),h=Hde(p);return _.jsx(jde,S({ref:n,className:he(s,h.root),ownerState:p},a))}),Ude=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Wde=u.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:s,columnPositions:a,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:d,columnHeaderFocus:p,columnGroupHeaderFocus:h,densityFactor:m,headerGroupingMaxDepth:g,columnMenuState:b,columnVisibility:v,columnGroupsHeaderStructure:E,hasOtherElementInTabSequence:w}=t,C=ne(t,Ude),{isDragging:x,getRootProps:P,getInnerProps:$,getColumnHeaders:I,getColumnGroupHeaders:k}=Ade({innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:s,columnPositions:a,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:d,columnHeaderFocus:p,columnGroupHeaderFocus:h,densityFactor:m,headerGroupingMaxDepth:g,columnMenuState:b,columnVisibility:v,columnGroupsHeaderStructure:E,hasOtherElementInTabSequence:w});return _.jsx(Bde,S({ref:n},P(C),{children:_.jsxs(Vde,S({isDragging:x},$(),{children:[k(),I()]}))}))}),Gde=ny(Wde),Kde=u.forwardRef(function(t,n){const o=At().current.getLocaleText("noResultsOverlayLabel");return _.jsx(Xx,S({ref:n},t,{children:o}))}),qde=["sortingOrder"],Yde=u.memo(function(t){const{sortingOrder:n}=t,r=ne(t,qde),o=rt(),[i]=n,s=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return s?_.jsx(s,S({},r)):null}),Qde=["native"];function Xde(e){let{native:t}=e,n=ne(e,Qde);return t?_.jsx("option",S({},n)):_.jsx(so,S({},n))}const Jde={BooleanCellTrueIcon:Hle,BooleanCellFalseIcon:I1,ColumnMenuIcon:Nle,OpenFilterButtonIcon:_le,FilterPanelDeleteIcon:I1,ColumnFilteredIcon:H$,ColumnSelectorIcon:Rle,ColumnUnsortedIcon:Yde,ColumnSortedAscendingIcon:N$,ColumnSortedDescendingIcon:D$,ColumnResizeIcon:Ole,DensityCompactIcon:Lle,DensityStandardIcon:Ale,DensityComfortableIcon:Fle,ExportIcon:zle,MoreActionsIcon:jle,TreeDataCollapseIcon:z$,TreeDataExpandIcon:B$,GroupingCriteriaCollapseIcon:z$,GroupingCriteriaExpandIcon:B$,DetailPanelExpandIcon:j$,DetailPanelCollapseIcon:Dle,RowReorderIcon:V$,QuickFilterIcon:Mle,QuickFilterClearIcon:I1,ColumnMenuHideIcon:Vle,ColumnMenuSortAscendingIcon:N$,ColumnMenuSortDescendingIcon:D$,ColumnMenuFilterIcon:H$,ColumnMenuManageColumnsIcon:Ule,ColumnMenuClearIcon:Wle,LoadIcon:Ble,FilterPanelAddIcon:j$,FilterPanelRemoveAllIcon:Gle,ColumnReorderIcon:V$},Zde=S({},Jde,{BaseCheckbox:vO,BaseTextField:yp,BaseFormControl:SO,BaseSelect:px,BaseSwitch:VO,BaseButton:ur,BaseIconButton:Zr,BaseInputAdornment:Uf,BaseTooltip:Ku,BasePopper:Ja,BaseInputLabel:RO,BaseSelectOption:Xde,BaseChip:sx}),efe=Zde,tfe=S({},efe,{Cell:hw,SkeletonCell:fse,ColumnHeaderFilterIconButton:xle,ColumnMenu:lae,ColumnHeaders:Gde,Footer:Cce,Toolbar:null,PreferencesPanel:Aae,LoadingOverlay:Sce,NoResultsOverlay:Kde,NoRowsOverlay:Ece,Pagination:kce,FilterPanel:oce,ColumnsPanel:Tae,Panel:Lae,Row:Nce}),OA=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function nfe({defaultSlots:e,slots:t,components:n}){const r=t!=null?t:n?OA(n):null;return!r||Object.keys(r).length===0?e:S({},e,r)}const rfe=["components","componentsProps"];function ofe(e){var t;const n=Object.keys(e);if(!n.some(i=>i.startsWith("aria-")||i.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let i=0;i<n.length;i+=1){const s=n[i];s.startsWith("aria-")||s.startsWith("data-")?o[s]=e[s]:r[s]=e[s]}return r.forwardedProps=o,r}function ife(e){return u.useMemo(()=>{const{components:t,componentsProps:n}=e,r=ne(e,rfe);return[t,n,ofe(r)]},[e])}const sfe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},LA={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:ds.Cell,filterMode:"client",columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" "},lfe=OA(tfe),afe=e=>{const[t,n,r]=ife(nt({props:e,name:"MuiDataGrid"})),o=u.useMemo(()=>S({},yde,r.localeText),[r.localeText]),i=u.useMemo(()=>nfe({defaultSlots:lfe,slots:r.slots,components:t}),[t,r.slots]);return u.useMemo(()=>{var s;return S({},LA,r,{localeText:o,slots:i,slotProps:(s=r.slotProps)!=null?s:n},sfe)},[r,o,i,n])},cfe=e=>S({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),iT=(e,t,n)=>typeof e=="number"&&e>0?e:t,ufe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=u.useRef(Object.create(null)),s=u.useRef(-1),a=u.useRef(!1),c=Ge(e,Ju),d=Ge(e,kr),p=Ge(e,aA),h=Ge(e,Yo),m=nc(e,t),g=Ge(e,Xu),b=iT(t.rowHeight,LA.rowHeight),v=Math.floor(b*c),E=u.useCallback(()=>{var D,j;a.current=!1;const R=V=>{i.current[V.id]||(i.current[V.id]={sizes:{baseCenter:v},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:F,needsFirstMeasurement:z,sizes:W}=i.current[V.id];let K=typeof v=="number"&&v>0?v:52;const Y=W.baseCenter;if(F)K=Y;else if(n){const se=n(S({},V,{densityFactor:c}));if(se==="auto"){if(z){const Se=o?o(S({},V,{densityFactor:c})):v;K=Se!=null?Se:v}else K=Y;a.current=!0,i.current[V.id].autoHeight=!0}else K=iT(se,v),i.current[V.id].needsFirstMeasurement=!1,i.current[V.id].autoHeight=!1}else i.current[V.id].needsFirstMeasurement=!1;const ae={};for(const se in W)/^base[A-Z]/.test(se)&&(ae[se]=W[se]);if(ae.baseCenter=K,r){var re,de;const se=e.current.getRowIndexRelativeToVisibleRows(V.id),Se=r(S({},V,{isFirstVisible:se===0,isLastVisible:se===m.rows.length-1,indexRelativeToCurrentPage:se}));ae.spacingTop=(re=Se.top)!=null?re:0,ae.spacingBottom=(de=Se.bottom)!=null?de:0}const ie=e.current.unstable_applyPipeProcessors("rowHeight",ae,V);return i.current[V.id].sizes=ie,ie},N=[],H=m.rows.reduce((V,F)=>{N.push(V);let z=0,W=0;const K=R(F);for(const Y in K){const ae=K[Y];/^base[A-Z]/.test(Y)?z=ae>z?ae:z:W+=ae}return V+z+W},0);g==null||(D=g.top)==null||D.forEach(V=>{R(V)}),g==null||(j=g.bottom)==null||j.forEach(V=>{R(V)}),e.current.setState(V=>S({},V,{rowsMeta:{currentPageTotalHeight:H,positions:N}})),a.current||(s.current=1/0),e.current.forceUpdate()},[e,m.rows,v,n,r,o,g,c]),w=u.useCallback(D=>{const j=i.current[D];return j?j.sizes.baseCenter:v},[v]),C=D=>{var j;return(j=i.current[D])==null?void 0:j.sizes},x=u.useCallback((D,j)=>{i.current[D].sizes.baseCenter=j,i.current[D].isResized=!0,i.current[D].needsFirstMeasurement=!1,E()},[E]),P=u.useMemo(()=>zl(E),[E]),$=u.useCallback((D,j,R)=>{if(!i.current[D]||!i.current[D].autoHeight)return;const N=i.current[D].sizes[`base${ue(R)}`]!==j;i.current[D].needsFirstMeasurement=!1,i.current[D].sizes[`base${ue(R)}`]=j,N&&P()},[P]),I=u.useCallback(D=>{var j;return((j=i.current[D])==null?void 0:j.autoHeight)||!1},[]),k=u.useCallback(()=>s.current,[]),M=u.useCallback(D=>{a.current&&D>s.current&&(s.current=D)},[]),O=u.useCallback(()=>{i.current={},E()},[E]);u.useEffect(()=>{E()},[v,d,p,h,E]),oS(e,"rowHeight",E);const A={unstable_setLastMeasuredRowIndex:M,unstable_getRowHeight:w,unstable_getRowInternalSizes:C,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:$,resetRowHeights:O},L={getLastMeasuredRowIndex:k,rowHasAutoHeight:I};Rt(e,A,"public"),Rt(e,L,"private")},dfe=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]);Rt(e,{exportState:t,restoreState:n},"public")},ffe=e=>{const t=u.useRef({}),n=u.useCallback((d,p,h)=>{const m=t.current;m[d]||(m[d]={}),m[d][p]=h},[]),r=u.useCallback((d,p)=>{var h;return(h=t.current[d])==null?void 0:h[p]},[]),o=u.useCallback(d=>{const{columnIndex:p,rowId:h,minFirstColumnIndex:m,maxLastColumnIndex:g,columns:b}=d,v=b.length,E=b[p],w=typeof E.colSpan=="function"?E.colSpan(e.current.getCellParams(h,E.field)):E.colSpan;if(!w||w===1)return n(h,p,{spannedByColSpan:!1,cellProps:{colSpan:1,width:E.computedWidth}}),{colSpan:1};let C=E.computedWidth;for(let x=1;x<w;x+=1){const P=p+x;if(P>=m&&P<g){const $=b[P];C+=$.computedWidth,n(h,p+x,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(p+w,v-1),leftVisibleCellIndex:p})}n(h,p,{spannedByColSpan:!1,cellProps:{colSpan:w,width:C}})}return{colSpan:w}},[e,n]),i=u.useCallback(({rowId:d,minFirstColumn:p,maxLastColumn:h,columns:m})=>{for(let g=p;g<h;g+=1){const b=o({columnIndex:g,rowId:d,minFirstColumnIndex:p,maxLastColumnIndex:h,columns:m});b.colSpan>1&&(g+=b.colSpan-1)}},[o]),s={unstable_getCellColSpanInfo:r},a={calculateColSpan:i};Rt(e,s,"public"),Rt(e,a,"private");const c=u.useCallback(()=>{t.current={}},[]);lt(e,"columnOrderChange",c)},AA=(e,t,n)=>{if(KL(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
|
|
343
|
+
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{AA(i,[...t,r],n)})},yw=e=>{if(!e)return{};const t={};return e.forEach(n=>{AA(n,[],t)}),t},bw=(e,t)=>{const n=s=>{var a;return(a=t[s])!=null?a:[]},r=[],o=Math.max(...e.map(s=>n(s).length)),i=(s,a,c)=>_a(n(s).slice(0,c+1),n(a).slice(0,c+1));for(let s=0;s<o;s+=1){const a=e.reduce((c,d)=>{var p;const h=(p=n(d)[s])!=null?p:null;if(c.length===0)return[{columnFields:[d],groupId:h}];const m=c[c.length-1],g=m.columnFields[m.columnFields.length-1];return m.groupId!==h||!i(g,d,s)?[...c,{columnFields:[d],groupId:h}]:[...c.slice(0,c.length-1),{columnFields:[...m.columnFields,d],groupId:h}]},[]);r.push(a)}return r},pfe=["groupId","children"],sS=e=>{let t={};return e.forEach(n=>{if(KL(n))return;const{groupId:r,children:o}=n,i=ne(n,pfe);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=sS(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)},hfe=(e,t,n)=>{var r,o,i;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const s=os(n),a=AL(n),c=sS((o=t.columnGroupingModel)!=null?o:[]),d=yw((i=t.columnGroupingModel)!=null?i:[]),p=bw(s,d),h=a.length===0?0:Math.max(...a.map(m=>{var g,b;return(g=(b=d[m])==null?void 0:b.length)!=null?g:0}));return S({},e,{columnGrouping:{lookup:c,unwrappedGroupingModel:d,headerStructure:p,maxDepth:h}})},mfe=(e,t)=>{var n;const r=u.useCallback(c=>{var d;return(d=tie(e)[c])!=null?d:[]},[e]),o=u.useCallback(()=>jL(e),[e]);Rt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const s=u.useCallback(()=>{var c;const d=yw((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(p=>{var h,m;const g=(h=(m=p.columns)==null?void 0:m.orderedFields)!=null?h:[],b=bw(g,d);return S({},p,{columnGrouping:S({},p.columnGrouping,{headerStructure:b})})})},[e,t.columnGroupingModel]),a=u.useCallback(c=>{var d;if(!((d=t.experimentalFeatures)!=null&&d.columnGrouping))return;const p=os(e),h=AL(e),m=sS(c!=null?c:[]),g=yw(c!=null?c:[]),b=bw(p,g),v=h.length===0?0:Math.max(...h.map(E=>{var w,C;return(w=(C=g[E])==null?void 0:C.length)!=null?w:0}));e.current.setState(E=>S({},E,{columnGrouping:{lookup:m,unwrappedGroupingModel:g,headerStructure:b,maxDepth:v}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);lt(e,"columnIndexChange",s),lt(e,"columnsChange",()=>{a(t.columnGroupingModel)}),lt(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),u.useEffect(()=>{a(t.columnGroupingModel)},[a,t.columnGroupingModel])},gfe=(e,t)=>{const n=Xce(e,t);return wde(n,t),mde(n),go(gde,n,t),go(Sue,n,t),go(ude,n,t),go(ade,n,t),go(Gue,n,t),go(Cde,n,t),go(Jue,n,t),go(Vue,n,t),go(Iue,n,t),go(Que,n,t),go(cfe,n,t),go(yue,n,t),go(hfe,n,t),Yue(n,t),vde(n,t),Eue(n,t),dde(n,t),bie(n),ffe(n),mfe(n,t),cde(n,t),Kue(n,t),Zue(n,t),Wue(n,t),xde(n,t),$ue(n,t),Xue(n,t),ufe(n,t),Sde(n,t),bue(n),Mue(n,t),Lue(n,t),vue(n,t),kde(n,t),Ede(n,t),dfe(n),n},vfe=e=>{const{classes:t}=e;return Me({root:["virtualScroller"]},Ft,t)},yfe=fr("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"}}),bfe=u.forwardRef(function(t,n){const r=rt(),o=vfe(r);return _.jsx(yfe,S({ref:n},t,{className:he(o.root,t.className),ownerState:r}))}),wfe=(e,t)=>{const{classes:n}=e;return Me({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Ft,n)},Cfe=fr("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),xfe=u.forwardRef(function(t,n){var r;const o=rt(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",s=wfe(o,i);return _.jsx(Cfe,S({ref:n},t,{ownerState:o,className:he(s.root,t.className)}))}),Sfe=["className"],Efe=e=>{const{classes:t}=e;return Me({root:["virtualScrollerRenderZone"]},Ft,t)},Pfe=fr("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),kfe=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,Sfe),i=rt(),s=Efe(i);return _.jsx(Pfe,S({ref:n,className:he(s.root,r),ownerState:i},o))}),Ife=["className","disableVirtualization"],$fe=u.forwardRef(function(t,n){const{className:r,disableVirtualization:o}=t,i=ne(t,Ife),{getRootProps:s,getContentProps:a,getRenderZoneProps:c,getRows:d}=Mde({ref:n,disableVirtualization:o});return _.jsxs(bfe,S({className:r},s(i),{children:[_.jsx(fie,{}),_.jsx(xfe,S({},a(),{children:_.jsx(kfe,S({},c(),{children:d()}))}))]}))}),FA=u.forwardRef(function(t,n){const r=afe(t),o=gfe(r.apiRef,r);return _.jsx(Dce,{privateApiRef:o,props:r,children:_.jsxs(vse,S({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[_.jsx(xce,{}),_.jsx(rie,{VirtualScrollerComponent:$fe}),_.jsx(oie,{})]}))})}),Zu=u.memo(FA);FA.propTypes={apiRef:ce.shape({current:ce.object.isRequired}),"aria-label":ce.string,"aria-labelledby":ce.string,autoHeight:ce.bool,autoPageSize:ce.bool,cellModesModel:ce.object,checkboxSelection:ce.bool,classes:ce.object,clipboardCopyCellDelimiter:ce.string,columnBuffer:ce.number,columnGroupingModel:ce.arrayOf(ce.object),columnHeaderHeight:ce.number,columns:zj(ce.array.isRequired),columnThreshold:ce.number,columnVisibilityModel:ce.object,components:ce.object,componentsProps:ce.object,density:ce.oneOf(["comfortable","compact","standard"]),disableColumnFilter:ce.bool,disableColumnMenu:ce.bool,disableColumnSelector:ce.bool,disableDensitySelector:ce.bool,disableRowSelectionOnClick:ce.bool,disableVirtualization:ce.bool,editMode:ce.oneOf(["cell","row"]),experimentalFeatures:ce.shape({columnGrouping:ce.bool,warnIfFocusStateIsNotSynced:ce.bool}),filterMode:ce.oneOf(["client","server"]),filterModel:ce.shape({items:ce.arrayOf(ce.shape({field:ce.string.isRequired,id:ce.oneOfType([ce.number,ce.string]),operator:ce.string.isRequired,value:ce.any})).isRequired,logicOperator:ce.oneOf(["and","or"]),quickFilterLogicOperator:ce.oneOf(["and","or"]),quickFilterValues:ce.array}),forwardedProps:ce.object,getCellClassName:ce.func,getDetailPanelContent:ce.func,getEstimatedRowHeight:ce.func,getRowClassName:ce.func,getRowHeight:ce.func,getRowId:ce.func,getRowSpacing:ce.func,hideFooter:ce.bool,hideFooterPagination:ce.bool,hideFooterSelectedRowCount:ce.bool,initialState:ce.object,isCellEditable:ce.func,isRowSelectable:ce.func,keepNonExistentRowsSelected:ce.bool,loading:ce.bool,localeText:ce.object,logger:ce.shape({debug:ce.func.isRequired,error:ce.func.isRequired,info:ce.func.isRequired,warn:ce.func.isRequired}),logLevel:ce.oneOf(["debug","error","info","warn",!1]),nonce:ce.string,onCellClick:ce.func,onCellDoubleClick:ce.func,onCellEditStart:ce.func,onCellEditStop:ce.func,onCellKeyDown:ce.func,onCellModesModelChange:ce.func,onClipboardCopy:ce.func,onColumnHeaderClick:ce.func,onColumnHeaderDoubleClick:ce.func,onColumnHeaderEnter:ce.func,onColumnHeaderLeave:ce.func,onColumnHeaderOut:ce.func,onColumnHeaderOver:ce.func,onColumnOrderChange:ce.func,onColumnVisibilityModelChange:ce.func,onFilterModelChange:ce.func,onMenuClose:ce.func,onMenuOpen:ce.func,onPaginationModelChange:ce.func,onPreferencePanelClose:ce.func,onPreferencePanelOpen:ce.func,onProcessRowUpdateError:ce.func,onResize:ce.func,onRowClick:ce.func,onRowDoubleClick:ce.func,onRowEditCommit:ce.func,onRowEditStart:ce.func,onRowEditStop:ce.func,onRowModesModelChange:ce.func,onRowSelectionModelChange:ce.func,onSortModelChange:ce.func,onStateChange:ce.func,pageSizeOptions:ce.arrayOf(ce.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(`
|
|
344
|
+
`)):null,paginationMode:ce.oneOf(["client","server"]),paginationModel:ce.shape({page:ce.number.isRequired,pageSize:ce.number.isRequired}),processRowUpdate:ce.func,rowBuffer:ce.number,rowCount:ce.number,rowHeight:ce.number,rowModesModel:ce.object,rows:ce.arrayOf(ce.object).isRequired,rowSelection:ce.bool,rowSelectionModel:ce.oneOfType([ce.arrayOf(ce.oneOfType([ce.number,ce.string]).isRequired),ce.number,ce.string]),rowSpacingType:ce.oneOf(["border","margin"]),rowThreshold:ce.number,scrollbarSize:ce.number,showCellVerticalBorder:ce.bool,showColumnVerticalBorder:ce.bool,slotProps:ce.object,slots:ce.object,sortingMode:ce.oneOf(["client","server"]),sortingOrder:ce.arrayOf(ce.oneOf(["asc","desc"])),sortModel:ce.arrayOf(ce.shape({field:ce.string.isRequired,sort:ce.oneOf(["asc","desc"])})),sx:ce.oneOfType([ce.arrayOf(ce.oneOfType([ce.func,ce.object,ce.bool])),ce.func,ce.object]),unstable_ignoreValueFormatterDuringExport:ce.oneOfType([ce.shape({clipboardExport:ce.bool,csvExport:ce.bool}),ce.bool])};function Tfe(){return u.createElement(u.Fragment,{},u.createElement(Mfe),u.createElement(Rfe))}const _fe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Mfe(){const{data:e,element:t}=To("get_status"),{data:n}=Sne("get_connection_stats");e&&n&&Object.assign(e,n);const r=Ul("md"),o=Ul("sm");return t||u.createElement(tt,{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:Vl,minWidth:"4em"}),o&&i("got",{render:Vl,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:NA}));function i(a,{label:c,minWidth:d,render:p}={}){let h=It.get(e,a);if(h===void 0)return null;typeof h=="string"&&_fe.test(h)&&(h=new Date(h).toLocaleString());let m;return p&&(h=p(h),Array.isArray(h)&&([h,m]=h)),c||(c=It.capitalize(a.replaceAll("_"," "))),u.createElement(sx,{variant:"filled",color:m,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:d}},h))})}function s(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function Rfe(){const{list:e,error:t,props:n}=ec("get_connections"),[r,o]=u.useState(!0),[i,s]=u.useState(!1),a=u.useMemo(()=>e==null?void 0:e.filter(c=>!r||c.path).map((c,d)=>$e({id:d},c)),[!i&&e,r]);return u.createElement(u.Fragment,{},u.createElement(tt,{display:"flex",alignItems:"center"},u.createElement(us,{fullWidth:!1,value:r,onChange:o,options:{"Show only files":!0,"Show all connections":!1}}),u.createElement(tt,{flex:1}),u.createElement(Fn,{title:i?"Resume":"Pause",icon:i?gx:cne,sx:{mr:1},onClick(){s(!i)}})),t?u.createElement(Do,{severity:"error"},t):u.createElement(Zu,{rows:a,localeText:r?{noRowsLabel:"No downloads at the moment"}:void 0,initialState:{columns:{columnVisibilityModel:{v:!1}}},columns:[{field:"ip",headerName:"Address",flex:1,maxWidth:400,valueGetter:({row:c,value:d})=>(c.v===6?`[${d}]`:d)+" :"+c.port},{field:"user",headerName:"User"},{field:"started",headerName:"Started",type:"dateTime",width:130,valueFormatter:({value:c})=>new Date(c).toLocaleTimeString()},{field:"path",headerName:"File",flex:1,renderCell({value:c,row:d}){if(!c)return;if(d.archive)return u.createElement(u.Fragment,{},u.createElement(Jte,{sx:{mr:1}}),d.archive,u.createElement(tt,{ml:2,color:"text.secondary"},c));const p=c==null?void 0:c.lastIndexOf("/");return u.createElement(u.Fragment,{},d.op&&u.createElement(PL,{icon:d.op==="upload"?Hv:qO,progress:d.opProgress,offset:d.opOffset,addTitle:d.opTotal&&u.createElement("div",{},"Total: "+Vl(d.opTotal)),sx:{mr:1}}),c.slice(p+1),p>0&&u.createElement(tt,{ml:2,color:"text.secondary"},c.slice(0,p)))}},{field:"v",headerName:"Protocol",align:"center",renderCell:({value:c,row:d})=>u.createElement(u.Fragment,{},"IPv"+c,d.secure&&yo(XO,"HTTPS",{opacity:.5}))},{field:"outSpeed",headerName:"Speed",type:"number",renderCell:({value:c,row:d})=>NA(Math.max(c||0,d.inSpeed||0))},{field:"sent",headerName:"Sent",type:"number",renderCell:({value:c,row:d})=>Vl(Math.max(c||0,d.got||0))},{field:"agent",headerName:"Agent"},{field:"Actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:c}){return u.createElement("div",{},u.createElement(Fn,{icon:ps,title:"Disconnect",onClick:()=>xt("disconnect",It.pick(c,["ip","port"]))}),u.createElement(Fn,{icon:jte,title:"Block IP",disabled:c.ip===(n==null?void 0:n.you),onClick:()=>Ofe(c.ip)}))}}]}))}function Ofe(e){return roe("block",t=>[...t,{ip:e}])}function NA(e){return e?Vl(e*1e3,{post:"B/s",k:1e3,digits:1}):""}function Lfe(){const e=vi({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=DA();return u.createElement(u.Fragment,{},u.createElement(tt,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under "+(t.isRoot?"(home)":t.id)),u.createElement(OF,{from:t.source,onSelect(r){return pt(this,null,function*(){const o=bp(yield Promise.all(r.map(i=>xt("add_vfs",{parent:t.id,source:i}).then(()=>null,s=>[i,s.message]))));o.length&&(yield cn(u.createElement(tt,{},"Some elements have been rejected",u.createElement("ul",{},o.map(([i,s])=>u.createElement("li",{key:i},i,": ",s)))),"error")),qa(),e()})}}))}})}function Afe(){return pt(this,null,function*(){try{const e=yield toe("Enter folder name");if(!e)return;const{id:t}=DA();yield xt("add_vfs",{parent:t,name:e}),qa([t+e]),yield cn(`Folder "${e}" created`,"success")}catch(e){yield cn(e)}})}function DA(){const e=un.selectedFiles[0]||un.vfs;return e.type==="folder"?e:e.parent}function BA(n){var r=n,{items:e}=r,t=Zt(r,["items"]);const[o,i]=Po.useState(),s=!!o,a=u.useCallback(()=>i(void 0),[]);return u.createElement(Po.Fragment,{},u.createElement(ur,$e({"aria-controls":s?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c=>{i(c.currentTarget)}},t)),u.createElement(NO,{anchorEl:o,open:s,onClose:a,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((c,d)=>u.createElement(so,kt($e({key:d},c),{onClick(){var p;a(),(p=c.onClick)==null||p.apply(this,arguments)}})))}))}function Ffe(){return u.createElement(tt,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(BA,{variant:"contained",startIcon:u.createElement(hx),items:[{children:"from disk",onClick:Lfe},{children:"virtual folder",onClick:Afe}]},"Add"),Lx(()=>qa()))}function Ms(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))}const lS=Symbol.for("yaml.alias"),ww=Symbol.for("yaml.document"),Al=Symbol.for("yaml.map"),zA=Symbol.for("yaml.pair"),Us=Symbol.for("yaml.scalar"),ed=Symbol.for("yaml.seq"),hi=Symbol.for("yaml.node.type"),rc=e=>!!e&&typeof e=="object"&&e[hi]===lS,td=e=>!!e&&typeof e=="object"&&e[hi]===ww,nd=e=>!!e&&typeof e=="object"&&e[hi]===Al,$n=e=>!!e&&typeof e=="object"&&e[hi]===zA,hn=e=>!!e&&typeof e=="object"&&e[hi]===Us,rd=e=>!!e&&typeof e=="object"&&e[hi]===ed;function Ln(e){if(e&&typeof e=="object")switch(e[hi]){case Al:case ed:return!0}return!1}function Gn(e){if(e&&typeof e=="object")switch(e[hi]){case lS:case Al:case Us:case ed:return!0}return!1}const Nfe=e=>(hn(e)||Ln(e))&&!!e.anchor,Qr=Symbol("break visit"),HA=Symbol("skip children"),ls=Symbol("remove node");function Gl(e,t){const n=jA(t);td(e)?Qc(null,e.contents,n,Object.freeze([e]))===ls&&(e.contents=null):Qc(null,e,n,Object.freeze([]))}Gl.BREAK=Qr;Gl.SKIP=HA;Gl.REMOVE=ls;function Qc(e,t,n,r){const o=VA(e,t,n,r);if(Gn(o)||$n(o))return UA(e,r,o),Qc(e,o,n,r);if(typeof o!="symbol"){if(Ln(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=Qc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Qr)return Qr;s===ls&&(t.items.splice(i,1),i-=1)}}}else if($n(t)){r=Object.freeze(r.concat(t));const i=Qc("key",t.key,n,r);if(i===Qr)return Qr;i===ls&&(t.key=null);const s=Qc("value",t.value,n,r);if(s===Qr)return Qr;s===ls&&(t.value=null)}}return o}function oy(e,t){return pt(this,null,function*(){const n=jA(t);td(e)?(yield Xc(null,e.contents,n,Object.freeze([e])))===ls&&(e.contents=null):yield Xc(null,e,n,Object.freeze([]))})}oy.BREAK=Qr;oy.SKIP=HA;oy.REMOVE=ls;function Xc(e,t,n,r){return pt(this,null,function*(){const o=yield VA(e,t,n,r);if(Gn(o)||$n(o))return UA(e,r,o),Xc(e,o,n,r);if(typeof o!="symbol"){if(Ln(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=yield Xc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Qr)return Qr;s===ls&&(t.items.splice(i,1),i-=1)}}}else if($n(t)){r=Object.freeze(r.concat(t));const i=yield Xc("key",t.key,n,r);if(i===Qr)return Qr;i===ls&&(t.key=null);const s=yield Xc("value",t.value,n,r);if(s===Qr)return Qr;s===ls&&(t.value=null)}}return o})}function jA(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 VA(e,t,n,r){var o,i,s,a,c;if(typeof n=="function")return n(e,t,r);if(nd(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(rd(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if($n(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(hn(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(rc(t))return(c=n.Alias)==null?void 0:c.call(n,e,t,r)}function UA(e,t,n){const r=t[t.length-1];if(Ln(r))r.items[e]=n;else if($n(r))e==="key"?r.key=n:r.value=n;else if(td(r))r.contents=n;else{const o=rc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Dfe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Bfe=e=>e.replace(/[!,[\]{}]/g,t=>Dfe[t]);class Dr{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Dr.defaultYaml,t),this.tags=Object.assign({},Dr.defaultTags,n)}clone(){const t=new Dr(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Dr(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Dr.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Dr.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Dr.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Dr.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+Bfe(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&&Gn(t.contents)){const i={};Gl(t.contents,(s,a)=>{Gn(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(`
|
|
345
|
+
`)}}Dr.defaultYaml={explicit:!1,version:"1.2"};Dr.defaultTags={"!!":"tag:yaml.org,2002:"};function WA(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 GA(e){const t=new Set;return Gl(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function KA(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function zfe(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o||(o=GA(e));const s=KA(t,o);return o.add(s),s},setAnchors:()=>{for(const i of n){const s=r.get(i);if(typeof s=="object"&&s.anchor&&(hn(s.node)||Ln(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}}function Jc(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=Jc(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=Jc(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=Jc(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=Jc(e,r,o,i);s===void 0?delete r[o]:s!==i&&(r[o]=s)}return e.call(t,n,r)}function li(e,t,n){if(Array.isArray(e))return e.map((r,o)=>li(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Nfe(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}class aS{constructor(t){Object.defineProperty(this,hi,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:i}={}){if(!td(t))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=li(this,"",s);if(typeof o=="function")for(const{count:c,res:d}of s.anchors.values())o(d,c);return typeof i=="function"?Jc(i,{"":a},"",a):a}}class iy extends aS{constructor(t){super(lS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Gl(t,{Node:(r,o)=>{if(o===this)return Gl.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)}let a=r.get(s);if(a||(li(s,null,n),a=r.get(s)),!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=wm(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(WA(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 wm(e,t,n){if(rc(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(Ln(t)){let r=0;for(const o of t.items){const i=wm(e,o,n);i>r&&(r=i)}return r}else if($n(t)){const r=wm(e,t.key,n),o=wm(e,t.value,n);return Math.max(r,o)}return 1}const qA=e=>!e||typeof e!="function"&&typeof e!="object";class $t extends aS{constructor(t){super(Us),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:li(this.value,t,n)}toString(){return String(this.value)}}$t.BLOCK_FOLDED="BLOCK_FOLDED";$t.BLOCK_LITERAL="BLOCK_LITERAL";$t.PLAIN="PLAIN";$t.QUOTE_DOUBLE="QUOTE_DOUBLE";$t.QUOTE_SINGLE="QUOTE_SINGLE";const Hfe="tag:yaml.org,2002:";function jfe(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 np(e,t,n){var h,m,g;if(td(e)&&(e=e.contents),Gn(e))return e;if($n(e)){const b=(m=(h=n.schema[Al]).createNode)==null?void 0:m.call(h,n.schema,null,n);return b.items.push(e),b}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&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 iy(c.anchor);c={anchor:null,node:null},a.set(e,c)}t!=null&&t.startsWith("!!")&&(t=Hfe+t.slice(2));let d=jfe(e,t,s.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const b=new $t(e);return c&&(c.node=b),b}d=e instanceof Map?s[Al]:Symbol.iterator in Object(e)?s[ed]:s[Al]}i&&(i(d),delete n.onTagObj);const p=d!=null&&d.createNode?d.createNode(n.schema,e,n):typeof((g=d==null?void 0:d.nodeClass)==null?void 0:g.from)=="function"?d.nodeClass.from(n.schema,e,n):new $t(e);return t?p.tag=t:d.default||(p.tag=d.tag),c&&(c.node=p),p}function Sg(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 np(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 Zd=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class sy extends aS{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=>Gn(r)||$n(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Zd(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if(Ln(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,Sg(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(Ln(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&&hn(i)?i.value:i:Ln(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!$n(n))return!1;const r=n.value;return r==null||t&&hn(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 Ln(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(Ln(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,Sg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}sy.maxFlowStringSingleLineLength=60;const Vfe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ls(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Sl=(e,t,n)=>e.endsWith(`
|
|
346
|
+
`)?Ls(n,t):n.includes(`
|
|
347
|
+
`)?`
|
|
348
|
+
`+Ls(n,t):(e.endsWith(" ")?"":" ")+n,YA="flow",Cw="block",Cm="quoted";function ly(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 d=[],p={};let h=o-t.length;typeof r=="number"&&(r>o-Math.max(2,i)?d.push(0):h=o-r);let m,g,b=!1,v=-1,E=-1,w=-1;n===Cw&&(v=sT(e,v),v!==-1&&(h=v+c));for(let x;x=e[v+=1];){if(n===Cm&&x==="\\"){switch(E=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}w=v}if(x===`
|
|
349
|
+
`)n===Cw&&(v=sT(e,v)),h=v+c,m=void 0;else{if(x===" "&&g&&g!==" "&&g!==`
|
|
350
|
+
`&&g!==" "){const P=e[v+1];P&&P!==" "&&P!==`
|
|
351
|
+
`&&P!==" "&&(m=v)}if(v>=h)if(m)d.push(m),h=m+c,m=void 0;else if(n===Cm){for(;g===" "||g===" ";)g=x,x=e[v+=1],b=!0;const P=v>w+1?v-2:E-1;if(p[P])return e;d.push(P),p[P]=!0,h=P+c,m=void 0}else b=!0}g=x}if(b&&a&&a(),d.length===0)return e;s&&s();let C=e.slice(0,d[0]);for(let x=0;x<d.length;++x){const P=d[x],$=d[x+1]||e.length;P===0?C=`
|
|
352
|
+
${t}${e.slice(0,$)}`:(n===Cm&&p[P]&&(C+=`${e[P]}\\`),C+=`
|
|
353
|
+
${t}${e.slice(P+1,$)}`)}return C}function sT(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
|
|
354
|
+
`);n=e[t+1]}return t}const ay=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),cy=e=>/^(%|---|\.\.\.)/m.test(e);function Ufe(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]===`
|
|
355
|
+
`){if(i-s>r)return!0;if(s=i+1,o-s<=r)return!1}return!0}function vf(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(cy(e)?" ":"");let s="",a=0;for(let c=0,d=n[c];d;d=n[++c])if(d===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(s+=n.slice(a,c)+"\\ ",c+=1,a=c,d="\\"),d==="\\")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)+`
|
|
356
|
+
|
|
357
|
+
`;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)s+=`
|
|
358
|
+
`,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:ly(s,i,Cm,ay(t,!1))}function xw(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
359
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return vf(e,t);const n=t.indent||(cy(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
360
|
+
${n}`)+"'";return t.implicitKey?r:ly(r,n,YA,ay(t,!1))}function Zc(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=vf;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=xw:i&&!o?r=vf:r=n?xw:vf}return r(e,t)}let Sw;try{Sw=new RegExp(`(^|(?<!
|
|
361
|
+
))
|
|
362
|
+
+(?!
|
|
363
|
+
|$)`,"g")}catch(e){Sw=/\n+(?!\n|$)/g}function xm({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 Zc(n,r);const d=r.indent||(r.forceBlockIndent||cy(n)?" ":""),p=s==="literal"?!0:s==="folded"||t===$t.BLOCK_FOLDED?!1:t===$t.BLOCK_LITERAL?!0:!Ufe(n,c,d.length);if(!n)return p?`|
|
|
364
|
+
`:`>
|
|
365
|
+
`;let h,m;for(m=n.length;m>0;--m){const I=n[m-1];if(I!==`
|
|
366
|
+
`&&I!==" "&&I!==" ")break}let g=n.substring(m);const b=g.indexOf(`
|
|
367
|
+
`);b===-1?h="-":n===g||b!==g.length-1?(h="+",i&&i()):h="",g&&(n=n.slice(0,-g.length),g[g.length-1]===`
|
|
368
|
+
`&&(g=g.slice(0,-1)),g=g.replace(Sw,`$&${d}`));let v=!1,E,w=-1;for(E=0;E<n.length;++E){const I=n[E];if(I===" ")v=!0;else if(I===`
|
|
369
|
+
`)w=E;else break}let C=n.substring(0,w<E?w+1:E);C&&(n=n.substring(C.length),C=C.replace(/\n+/g,`$&${d}`));let P=(p?"|":">")+(v?d?"2":"1":"")+h;if(e&&(P+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p)return n=n.replace(/\n+/g,`$&${d}`),`${P}
|
|
370
|
+
${d}${C}${n}${g}`;n=n.replace(/\n+/g,`
|
|
371
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const $=ly(`${C}${n}${g}`,d,Cw,ay(r,!0));return`${P}
|
|
372
|
+
${d}${$}`}function Wfe(e,t,n,r){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:c,indentStep:d,inFlow:p}=t;if(a&&/[\n[\]{},]/.test(i)||p&&/[[\]{},]/.test(i))return Zc(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||p||!i.includes(`
|
|
373
|
+
`)?Zc(i,t):xm(e,t,n,r);if(!a&&!p&&o!==$t.PLAIN&&i.includes(`
|
|
374
|
+
`))return xm(e,t,n,r);if(cy(i)){if(c==="")return t.forceBlockIndent=!0,xm(e,t,n,r);if(a&&c===d)return Zc(i,t)}const h=i.replace(/\n+/g,`$&
|
|
375
|
+
${c}`);if(s){const m=v=>{var E;return v.default&&v.tag!=="tag:yaml.org,2002:str"&&((E=v.test)==null?void 0:E.test(h))},{compat:g,tags:b}=t.doc.schema;if(b.some(m)||g!=null&&g.some(m))return Zc(i,t)}return a?h:ly(h,c,YA,ay(t,!1))}function Ep(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!==$t.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=$t.QUOTE_DOUBLE);const c=p=>{switch(p){case $t.BLOCK_FOLDED:case $t.BLOCK_LITERAL:return o||i?Zc(s.value,t):xm(s,t,n,r);case $t.QUOTE_DOUBLE:return vf(s.value,t);case $t.QUOTE_SINGLE:return xw(s.value,t);case $t.PLAIN:return Wfe(s,t,n,r);default:return null}};let d=c(a);if(d===null){const{defaultKeyType:p,defaultStringType:h}=t.options,m=o&&p||h;if(d=c(m),d===null)throw new Error(`Unsupported default string type ${m}`)}return d}function QA(e,t){const n=Object.assign({blockQuote:!0,commentString:Vfe,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,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,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function Gfe(e,t){var o,i,s,a;if(t.tag){const c=e.filter(d=>d.tag===t.tag);if(c.length>0)return(o=c.find(d=>d.format===t.format))!=null?o:c[0]}let n,r;if(hn(t)){r=t.value;const c=e.filter(d=>{var p;return(p=d.identify)==null?void 0:p.call(d,r)});n=(i=c.find(d=>d.format===t.format))!=null?i:c.find(d=>!d.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 Kfe(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(hn(e)||Ln(e))&&e.anchor;i&&WA(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 Au(e,t,n,r){var c,d;if($n(e))return e.toString(t,n,r);if(rc(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=Gn(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=Gfe(t.doc.schema.tags,i));const s=Kfe(i,o,t);s.length>0&&(t.indentAtStart=((d=t.indentAtStart)!=null?d:0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,n,r):hn(i)?Ep(i,t,n,r):i.toString(t,n,r);return s?hn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
|
|
376
|
+
${t.indent}${a}`:a}function qfe({key:e,value:t},n,r,o){var k,M;const{allNullValues:i,doc:s,indent:a,indentStep:c,options:{commentString:d,indentSeq:p,simpleKeys:h}}=n;let m=Gn(e)&&e.comment||null;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(Ln(e)){const O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let g=!h&&(!e||m&&t==null&&!n.inFlow||Ln(e)||(hn(e)?e.type===$t.BLOCK_FOLDED||e.type===$t.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!g&&(h||!i),indent:a+c});let b=!1,v=!1,E=Au(e,n,()=>b=!0,()=>v=!0);if(!g&&!n.inFlow&&E.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(n.inFlow){if(i||t==null)return b&&r&&r(),E===""?"?":g?`? ${E}`:E}else if(i&&!h||t==null&&g)return E=`? ${E}`,m&&!b?E+=Sl(E,n.indent,d(m)):v&&o&&o(),E;b&&(m=null),g?(m&&(E+=Sl(E,n.indent,d(m))),E=`? ${E}
|
|
377
|
+
${a}:`):(E=`${E}:`,m&&(E+=Sl(E,n.indent,d(m))));let w,C,x;Gn(t)?(w=!!t.spaceBefore,C=t.commentBefore,x=t.comment):(w=!1,C=null,x=null,t&&typeof t=="object"&&(t=s.createNode(t))),n.implicitKey=!1,!g&&!m&&hn(t)&&(n.indentAtStart=E.length+1),v=!1,!p&&c.length>=2&&!n.inFlow&&!g&&rd(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let P=!1;const $=Au(t,n,()=>P=!0,()=>v=!0);let I=" ";if(m||w||C){if(I=w?`
|
|
378
|
+
`:"",C){const O=d(C);I+=`
|
|
379
|
+
${Ls(O,n.indent)}`}$===""&&!n.inFlow?I===`
|
|
380
|
+
`&&(I=`
|
|
381
|
+
|
|
382
|
+
`):I+=`
|
|
383
|
+
${n.indent}`}else if(!g&&Ln(t)){const O=$[0],A=$.indexOf(`
|
|
384
|
+
`),L=A!==-1,D=(M=(k=n.inFlow)!=null?k:t.flow)!=null?M:t.items.length===0;if(L||!D){let j=!1;if(L&&(O==="&"||O==="!")){let R=$.indexOf(" ");O==="&"&&R!==-1&&R<A&&$[R+1]==="!"&&(R=$.indexOf(" ",R+1)),(R===-1||A<R)&&(j=!0)}j||(I=`
|
|
385
|
+
${n.indent}`)}}else($===""||$[0]===`
|
|
386
|
+
`)&&(I="");return E+=I+$,n.inFlow?P&&r&&r():x&&!P?E+=Sl(E,n.indent,d(x)):v&&o&&o(),E}function XA(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const lT="<<";function JA(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&Yfe(n))if(r=rc(r)?r.resolve(e.doc):r,rd(r))for(const o of r.items)M1(e,t,o);else if(Array.isArray(r))for(const o of r)M1(e,t,o);else M1(e,t,r);else{const o=li(n,"",e);if(t instanceof Map)t.set(o,li(r,o,e));else if(t instanceof Set)t.add(o);else{const i=Qfe(n,o,e),s=li(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const Yfe=e=>e===lT||hn(e)&&e.value===lT&&(!e.type||e.type===$t.PLAIN);function M1(e,t,n){const r=e&&rc(n)?n.resolve(e.doc):n;if(!nd(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 Qfe(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Gn(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)+'..."'),XA(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 cS(e,t,n){const r=np(e,void 0,n),o=np(t,void 0,n);return new Mr(r,o)}class Mr{constructor(t,n=null){Object.defineProperty(this,hi,{value:zA}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Gn(n)&&(n=n.clone(t)),Gn(r)&&(r=r.clone(t)),new Mr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return JA(n,r,this)}toString(t,n,r){return t!=null&&t.doc?qfe(this,t,n,r):JSON.stringify(this)}}function ZA(e,t,n){var i;return(((i=t.inFlow)!=null?i:e.flow)?Jfe:Xfe)(e,t,n)}function Xfe({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:c,options:{commentString:d}}=n,p=Object.assign({},n,{indent:i,type:null});let h=!1;const m=[];for(let b=0;b<t.length;++b){const v=t[b];let E=null;if(Gn(v))!h&&v.spaceBefore&&m.push(""),Eg(n,m,v.commentBefore,h),v.comment&&(E=v.comment);else if($n(v)){const C=Gn(v.key)?v.key:null;C&&(!h&&C.spaceBefore&&m.push(""),Eg(n,m,C.commentBefore,h))}h=!1;let w=Au(v,p,()=>E=null,()=>h=!0);E&&(w+=Sl(w,i,d(E))),h&&E&&(h=!1),m.push(r+w)}let g;if(m.length===0)g=o.start+o.end;else{g=m[0];for(let b=1;b<m.length;++b){const v=m[b];g+=v?`
|
|
387
|
+
${c}${v}`:`
|
|
388
|
+
`}}return e?(g+=`
|
|
389
|
+
`+Ls(d(e),c),a&&a()):h&&s&&s(),g}function Jfe({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,flowCollectionPadding:c,options:{commentString:d}}=n;o+=a;const p=Object.assign({},n,{indent:o,inFlow:!0,type:null});let h=!1,m=0;const g=[];for(let w=0;w<t.length;++w){const C=t[w];let x=null;if(Gn(C))C.spaceBefore&&g.push(""),Eg(n,g,C.commentBefore,!1),C.comment&&(x=C.comment);else if($n(C)){const $=Gn(C.key)?C.key:null;$&&($.spaceBefore&&g.push(""),Eg(n,g,$.commentBefore,!1),$.comment&&(h=!0));const I=Gn(C.value)?C.value:null;I?(I.comment&&(x=I.comment),I.commentBefore&&(h=!0)):C.value==null&&$&&$.comment&&(x=$.comment)}x&&(h=!0);let P=Au(C,p,()=>x=null);w<t.length-1&&(P+=","),x&&(P+=Sl(P,o,d(x))),!h&&(g.length>m||P.includes(`
|
|
390
|
+
`))&&(h=!0),g.push(P),m=g.length}let b;const{start:v,end:E}=r;if(g.length===0)b=v+E;else if(h||(h=g.reduce((C,x)=>C+x.length+2,2)>sy.maxFlowStringSingleLineLength),h){b=v;for(const w of g)b+=w?`
|
|
391
|
+
${a}${s}${w}`:`
|
|
392
|
+
`;b+=`
|
|
393
|
+
${s}${E}`}else b=`${v}${c}${g.join(" ")}${c}${E}`;return e&&(b+=Sl(b,s,d(e)),i&&i()),b}function Eg({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=Ls(t(r),e);n.push(i.trimStart())}}function Ca(e,t){const n=hn(t)?t.value:t;for(const r of e)if($n(r)&&(r.key===t||r.key===n||hn(r.key)&&r.key.value===n))return r}class Eo extends sy{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Al,t),this.items=[]}static from(t,n,r){const{keepUndefined:o,replacer:i}=r,s=new this(t),a=(c,d)=>{if(typeof i=="function")d=i.call(n,c,d);else if(Array.isArray(i)&&!i.includes(c))return;(d!==void 0||o)&&s.items.push(cS(c,d,r))};if(n instanceof Map)for(const[c,d]of n)a(c,d);else if(n&&typeof n=="object")for(const c of Object.keys(n))a(c,n[c]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,n){var s;let r;$n(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Mr(t,t==null?void 0:t.value):r=new Mr(t.key,t.value);const o=Ca(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`);hn(o.value)&&qA(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=Ca(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var i;const r=Ca(this.items,t),o=r==null?void 0:r.value;return(i=!n&&hn(o)?o.value:o)!=null?i:void 0}has(t){return!!Ca(this.items,t)}set(t,n){this.add(new Mr(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)JA(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!$n(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})),ZA(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const od={collection:"map",default:!0,nodeClass:Eo,tag:"tag:yaml.org,2002:map",resolve(e,t){return nd(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Eo.from(e,t,n)};class Kl extends sy{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(ed,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Gh(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Gh(t);if(typeof r!="number")return;const o=this.items[r];return!n&&hn(o)?o.value:o}has(t){const n=Gh(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Gh(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];hn(o)&&qA(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(li(i,String(o++),n));return r}toString(t,n,r){return t?ZA(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:o}=r,i=new this(t);if(n&&Symbol.iterator in Object(n)){let s=0;for(let a of n){if(typeof o=="function"){const c=n instanceof Set?a:String(s++);a=o.call(n,c,a)}i.items.push(np(a,void 0,r))}}return i}}function Gh(e){let t=hn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const id={collection:"seq",default:!0,nodeClass:Kl,tag:"tag:yaml.org,2002:seq",resolve(e,t){return rd(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Kl.from(e,t,n)},uy={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),Ep(e,t,n,r)}},dy={identify:e=>e==null,createNode:()=>new $t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new $t(null),stringify:({source:e},t)=>typeof e=="string"&&dy.test.test(e)?e:t.options.nullStr},uS={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new $t(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&uS.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 Fi({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 eF={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:Fi},tF={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():Fi(e)}},nF={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 $t(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Fi},fy=e=>typeof e=="bigint"||Number.isInteger(e),dS=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function rF(e,t,n){const{value:r}=e;return fy(r)&&r>=0?n+r.toString(t):Fi(e)}const oF={identify:e=>fy(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>dS(e,2,8,n),stringify:e=>rF(e,8,"0o")},iF={identify:fy,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>dS(e,0,10,n),stringify:Fi},sF={identify:e=>fy(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>dS(e,2,16,n),stringify:e=>rF(e,16,"0x")},Zfe=[od,id,uy,dy,uS,oF,iF,sF,eF,tF,nF];function aT(e){return typeof e=="bigint"||Number.isInteger(e)}const Kh=({value:e})=>JSON.stringify(e),epe=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Kh},{identify:e=>e==null,createNode:()=>new $t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Kh},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Kh},{identify:aT,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})=>aT(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:Kh}],tpe={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},npe=[od,id].concat(epe,tpe),fS={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 d=0;d<s.length;++d)c+=String.fromCharCode(s[d]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=$t.BLOCK_LITERAL),t!==$t.QUOTE_DOUBLE){const c=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),d=Math.ceil(a.length/c),p=new Array(d);for(let h=0,m=0;h<d;++h,m+=c)p[h]=a.substr(m,c);a=p.join(t===$t.BLOCK_LITERAL?`
|
|
394
|
+
`:" ")}return Ep({comment:e,type:t,value:a},r,o,i)}};function lF(e,t){var n;if(rd(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!$n(o)){if(nd(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const i=o.items[0]||new Mr(new $t(null));if(o.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${o.commentBefore}
|
|
395
|
+
${i.key.commentBefore}`:o.commentBefore),o.comment){const s=(n=i.value)!=null?n:i.key;s.comment=s.comment?`${o.comment}
|
|
396
|
+
${s.comment}`:o.comment}o=i}e.items[r]=$n(o)?o:new Mr(o)}}else t("Expected a sequence for this tag");return e}function aF(e,t,n){const{replacer:r}=n,o=new Kl(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 d=Object.keys(s);if(d.length===1)a=d[0],c=s[a];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else a=s;o.items.push(cS(a,c,n))}return o}const pS={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:lF,createNode:aF};class fu extends Kl{constructor(){super(),this.add=Eo.prototype.add.bind(this),this.delete=Eo.prototype.delete.bind(this),this.get=Eo.prototype.get.bind(this),this.has=Eo.prototype.has.bind(this),this.set=Eo.prototype.set.bind(this),this.tag=fu.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($n(o)?(i=li(o.key,"",n),s=li(o.value,i,n)):i=li(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}static from(t,n,r){const o=aF(t,n,r),i=new this;return i.items=o.items,i}}fu.tag="tag:yaml.org,2002:omap";const hS={collection:"seq",identify:e=>e instanceof Map,nodeClass:fu,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=lF(e,t),r=[];for(const{key:o}of n.items)hn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new fu,n)},createNode:(e,t,n)=>fu.from(e,t,n)};function cF({value:e,source:t},n){return t&&(e?uF:dF).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const uF={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 $t(!0),stringify:cF},dF={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 $t(!1),stringify:cF},rpe={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:Fi},ope={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():Fi(e)}},ipe={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 $t(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:Fi},Pp=e=>typeof e=="bigint"||Number.isInteger(e);function py(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 mS(e,t,n){const{value:r}=e;if(Pp(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return Fi(e)}const spe={identify:Pp,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>py(e,2,2,n),stringify:e=>mS(e,2,"0b")},lpe={identify:Pp,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>py(e,1,8,n),stringify:e=>mS(e,8,"0")},ape={identify:Pp,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>py(e,0,10,n),stringify:Fi},cpe={identify:Pp,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>py(e,2,16,n),stringify:e=>mS(e,16,"0x")};class pu extends Eo{constructor(t){super(t),this.tag=pu.tag}add(t){let n;$n(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Mr(t.key,null):n=new Mr(t,null),Ca(this.items,n.key)||this.items.push(n)}get(t,n){const r=Ca(this.items,t);return!n&&$n(r)?hn(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=Ca(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Mr(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")}static from(t,n,r){const{replacer:o}=r,i=new this(t);if(n&&Symbol.iterator in Object(n))for(let s of n)typeof o=="function"&&(s=o.call(n,s,s)),i.items.push(cS(s,null,r));return i}}pu.tag="tag:yaml.org,2002:set";const gS={collection:"map",identify:e=>e instanceof Set,nodeClass:pu,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>pu.from(e,t,n),resolve(e,t){if(nd(e)){if(e.hasAllNullValues(!0))return Object.assign(new pu,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function vS(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 fF(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return Fi(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=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const pF={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})=>vS(e,n),stringify:fF},hF={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=>vS(e,!1),stringify:fF},hy={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(hy.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 d=Date.UTC(n,r-1,o,i||0,s||0,a||0,c);const p=t[8];if(p&&p!=="Z"){let h=vS(p,!1);Math.abs(h)<30&&(h*=60),d-=6e4*h}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},cT=[od,id,uy,dy,uF,dF,spe,lpe,ape,cpe,rpe,ope,ipe,fS,hS,pS,gS,pF,hF,hy],uT=new Map([["core",Zfe],["failsafe",[od,id,uy]],["json",npe],["yaml11",cT],["yaml-1.1",cT]]),dT={binary:fS,bool:uS,float:nF,floatExp:tF,floatNaN:eF,floatTime:hF,int:iF,intHex:sF,intOct:oF,intTime:pF,map:od,null:dy,omap:hS,pairs:pS,seq:id,set:gS,timestamp:hy},upe={"tag:yaml.org,2002:binary":fS,"tag:yaml.org,2002:omap":hS,"tag:yaml.org,2002:pairs":pS,"tag:yaml.org,2002:set":gS,"tag:yaml.org,2002:timestamp":hy};function R1(e,t){let n=uT.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(uT.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=dT[r];if(o)return o;const i=Object.keys(dT).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}const dpe=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class my{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?R1(t,"compat"):t?R1(null,t):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=o?upe:{},this.tags=R1(n,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,Al,{value:od}),Object.defineProperty(this,Us,{value:uy}),Object.defineProperty(this,ed,{value:id}),this.sortMapEntries=typeof s=="function"?s:s===!0?dpe:null}clone(){const t=Object.create(my.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function fpe(e,t){var c;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const d=e.directives.toString(e);d?(n.push(d),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 d=i(e.commentBefore);n.unshift(Ls(d,""))}let s=!1,a=null;if(e.contents){if(Gn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(Ls(h,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const d=a?void 0:()=>s=!0;let p=Au(e.contents,o,()=>a=null,d);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(Au(e.contents,o));if((c=e.directives)!=null&&c.docEnd)if(e.comment){const d=i(e.comment);d.includes(`
|
|
397
|
+
`)?(n.push("..."),n.push(Ls(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=e.comment;d&&s&&(d=d.replace(/^\n+/,"")),d&&((!s||a)&&n[n.length-1]!==""&&n.push(""),n.push(Ls(i(d),"")))}return n.join(`
|
|
398
|
+
`)+`
|
|
399
|
+
`}class sd{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,hi,{value:ww});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 Dr({version:s}),this.setSchema(s,r),this.contents=t===void 0?null:this.createNode(t,o,r)}clone(){const t=Object.create(sd.prototype,{[hi]:{value:ww}});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=Gn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Tc(this.contents)&&this.contents.add(t)}addIn(t,n){Tc(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=GA(this);t.anchor=!n||r.has(n)?KA(n||"a",r):n}return new iy(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 E=C=>typeof C=="number"||C instanceof String||C instanceof Number,w=n.filter(E).map(String);w.length>0&&(n=n.concat(w)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:d,tag:p}=r!=null?r:{},{onAnchor:h,setAnchors:m,sourceObjects:g}=zfe(this,s||"a"),b={aliasDuplicateObjects:i!=null?i:!0,keepUndefined:c!=null?c:!1,onAnchor:h,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:g},v=np(t,p,b);return a&&Ln(v)&&(v.flow=!0),m(),v}createPair(t,n,r={}){const o=this.createNode(t,null,r),i=this.createNode(n,null,r);return new Mr(o,i)}delete(t){return Tc(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Zd(t)?this.contents==null?!1:(this.contents=null,!0):Tc(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Ln(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Zd(t)?!n&&hn(this.contents)?this.contents.value:this.contents:Ln(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Ln(this.contents)?this.contents.has(t):!1}hasIn(t){return Zd(t)?this.contents!==void 0:Ln(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Sg(this.schema,[t],n):Tc(this.contents)&&this.contents.set(t,n)}setIn(t,n){Zd(t)?this.contents=n:this.contents==null?this.contents=Sg(this.schema,Array.from(t),n):Tc(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 Dr({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 Dr({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 my(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},c=li(this.contents,n!=null?n:"",a);if(typeof i=="function")for(const{count:d,res:p}of a.anchors.values())i(p,d);return typeof s=="function"?Jc(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 fpe(this,t)}}function Tc(e){if(Ln(e))return!0;throw new Error("Expected a YAML collection as document contents")}class yS extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class xa extends yS{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class mF extends yS{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Pg=(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)+`…
|
|
400
|
+
`),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=n.linePos[1];c&&c.line===r&&c.col>o&&(a=Math.max(1,Math.min(c.col-o,80-i)));const d=" ".repeat(i)+"^".repeat(a);n.message+=`:
|
|
401
|
+
|
|
402
|
+
${s}
|
|
403
|
+
${d}
|
|
404
|
+
`}};function Fu(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,d=s,p="",h="",m=!1,g=!1,b=!1,v=null,E=null,w=null,C=null,x=null;for(const I of e)switch(b&&(I.type!=="space"&&I.type!=="newline"&&I.type!=="comma"&&i(I.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),I.type){case"space":!t&&c&&n!=="doc-start"&&I.source[0]===" "&&i(I,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=!0;break;case"comment":{d||i(I,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const k=I.source.substring(1)||" ";p?p+=h+k:p=k,h="",c=!1;break}case"newline":c?p?p+=I.source:a=!0:h+=I.source,c=!0,m=!0,(v||E)&&(g=!0),d=!0;break;case"anchor":v&&i(I,"MULTIPLE_ANCHORS","A node can have at most one anchor"),I.source.endsWith(":")&&i(I.offset+I.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),v=I,x===null&&(x=I.offset),c=!1,d=!1,b=!0;break;case"tag":{E&&i(I,"MULTIPLE_TAGS","A node can have at most one tag"),E=I,x===null&&(x=I.offset),c=!1,d=!1,b=!0;break}case n:(v||E)&&i(I,"BAD_PROP_ORDER",`Anchors and tags must be after the ${I.source} indicator`),C&&i(I,"UNEXPECTED_TOKEN",`Unexpected ${I.source} in ${t!=null?t:"collection"}`),C=I,c=!1,d=!1;break;case"comma":if(t){w&&i(I,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),w=I,c=!1,d=!1;break}default:i(I,"UNEXPECTED_TOKEN",`Unexpected ${I.type} token`),c=!1,d=!1}const P=e[e.length-1],$=P?P.offset+P.source.length:o;return b&&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:w,found:C,spaceBefore:a,comment:p,hasNewline:m,hasNewlineAfterProp:g,anchor:v,tag:E,end:$,start:x!=null?x:$}}function rp(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
405
|
+
`))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(rp(t.key)||rp(t.value))return!0}return!1;default:return!0}}function Ew(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&rp(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function gF(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,s)=>i===s||hn(i)&&hn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,n))}const fT="All mapping items must start at the same column";function ppe({composeNode:e,composeEmptyNode:t},n,r,o,i){var p,h;const s=(p=i==null?void 0:i.nodeClass)!=null?p:Eo,a=new s(n.schema);n.atRoot&&(n.atRoot=!1);let c=r.offset,d=null;for(const m of r.items){const{start:g,key:b,sep:v,value:E}=m,w=Fu(g,{indicator:"explicit-key-ind",next:b!=null?b:v==null?void 0:v[0],offset:c,onError:o,startOnNewline:!0}),C=!w.found;if(C){if(b&&(b.type==="block-seq"?o(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in b&&b.indent!==r.indent&&o(c,"BAD_INDENT",fT)),!w.anchor&&!w.tag&&!v){d=w.end,w.comment&&(a.comment?a.comment+=`
|
|
406
|
+
`+w.comment:a.comment=w.comment);continue}(w.hasNewlineAfterProp||rp(b))&&o(b!=null?b:g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((h=w.found)==null?void 0:h.indent)!==r.indent&&o(c,"BAD_INDENT",fT);const x=w.end,P=b?e(n,b,w,o):t(n,x,g,null,w,o);n.schema.compat&&Ew(r.indent,b,o),gF(n,a.items,P)&&o(x,"DUPLICATE_KEY","Map keys must be unique");const $=Fu(v!=null?v:[],{indicator:"map-value-ind",next:E,offset:P.range[2],onError:o,startOnNewline:!b||b.type==="block-scalar"});if(c=$.end,$.found){C&&((E==null?void 0:E.type)==="block-map"&&!$.hasNewline&&o(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&w.start<$.found.offset-1024&&o(P.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const I=E?e(n,E,$,o):t(n,c,v,null,$,o);n.schema.compat&&Ew(r.indent,E,o),c=I.range[2];const k=new Mr(P,I);n.options.keepSourceTokens&&(k.srcToken=m),a.items.push(k)}else{C&&o(P.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),$.comment&&(P.comment?P.comment+=`
|
|
407
|
+
`+$.comment:P.comment=$.comment);const I=new Mr(P);n.options.keepSourceTokens&&(I.srcToken=m),a.items.push(I)}}return d&&d<c&&o(d,"IMPOSSIBLE","Map comment with trailing content"),a.range=[r.offset,c,d!=null?d:c],a}function hpe({composeNode:e,composeEmptyNode:t},n,r,o,i){var p;const s=(p=i==null?void 0:i.nodeClass)!=null?p:Kl,a=new s(n.schema);n.atRoot&&(n.atRoot=!1);let c=r.offset,d=null;for(const{start:h,value:m}of r.items){const g=Fu(h,{indicator:"seq-item-ind",next:m,offset:c,onError:o,startOnNewline:!0});if(!g.found)if(g.anchor||g.tag||m)m&&m.type==="block-seq"?o(g.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{d=g.end,g.comment&&(a.comment=g.comment);continue}const b=m?e(n,m,g,o):t(n,g.end,h,null,g,o);n.schema.compat&&Ew(r.indent,m,o),c=b.range[2],a.items.push(b)}return a.range=[r.offset,c,d!=null?d:c],a}function kp(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:c,type:d}=a;switch(d){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 ${d} at node end`)}t+=c.length}}return{comment:o,offset:t}}const O1="Block collections are not allowed within flow collections",L1=e=>e&&(e.type==="block-map"||e.type==="block-seq");function mpe({composeNode:e,composeEmptyNode:t},n,r,o,i){var E,w;const s=r.start.source==="{",a=s?"flow map":"flow sequence",c=(E=i==null?void 0:i.nodeClass)!=null?E:s?Eo:Kl,d=new c(n.schema);d.flow=!0;const p=n.atRoot;p&&(n.atRoot=!1);let h=r.offset+r.start.source.length;for(let C=0;C<r.items.length;++C){const x=r.items[C],{start:P,key:$,sep:I,value:k}=x,M=Fu(P,{flow:a,indicator:"explicit-key-ind",next:$!=null?$:I==null?void 0:I[0],offset:h,onError:o,startOnNewline:!1});if(!M.found){if(!M.anchor&&!M.tag&&!I&&!k){C===0&&M.comma?o(M.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):C<r.items.length-1&&o(M.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),M.comment&&(d.comment?d.comment+=`
|
|
408
|
+
`+M.comment:d.comment=M.comment),h=M.end;continue}!s&&n.options.strict&&rp($)&&o($,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(C===0)M.comma&&o(M.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(M.comma||o(M.start,"MISSING_CHAR",`Missing , between ${a} items`),M.comment){let O="";e:for(const A of P)switch(A.type){case"comma":case"space":break;case"comment":O=A.source.substring(1);break e;default:break e}if(O){let A=d.items[d.items.length-1];$n(A)&&(A=(w=A.value)!=null?w:A.key),A.comment?A.comment+=`
|
|
409
|
+
`+O:A.comment=O,M.comment=M.comment.substring(O.length+1)}}if(!s&&!I&&!M.found){const O=k?e(n,k,M,o):t(n,M.end,I,null,M,o);d.items.push(O),h=O.range[2],L1(k)&&o(O.range,"BLOCK_IN_FLOW",O1)}else{const O=M.end,A=$?e(n,$,M,o):t(n,O,P,null,M,o);L1($)&&o(A.range,"BLOCK_IN_FLOW",O1);const L=Fu(I!=null?I:[],{flow:a,indicator:"map-value-ind",next:k,offset:A.range[2],onError:o,startOnNewline:!1});if(L.found){if(!s&&!M.found&&n.options.strict){if(I)for(const R of I){if(R===L.found)break;if(R.type==="newline"){o(R,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}M.start<L.found.offset-1024&&o(L.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else k&&("source"in k&&k.source&&k.source[0]===":"?o(k,"MISSING_CHAR",`Missing space after : in ${a}`):o(L.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const D=k?e(n,k,L,o):L.found?t(n,L.end,I,null,L,o):null;D?L1(k)&&o(D.range,"BLOCK_IN_FLOW",O1):L.comment&&(A.comment?A.comment+=`
|
|
410
|
+
`+L.comment:A.comment=L.comment);const j=new Mr(A,D);if(n.options.keepSourceTokens&&(j.srcToken=x),s){const R=d;gF(n,R.items,A)&&o(O,"DUPLICATE_KEY","Map keys must be unique"),R.items.push(j)}else{const R=new Eo(n.schema);R.flow=!0,R.items.push(j),d.items.push(R)}h=D?D.range[2]:L.end}}const m=s?"}":"]",[g,...b]=r.end;let v=h;if(g&&g.source===m)v=g.offset+g.source.length;else{const C=a[0].toUpperCase()+a.substring(1),x=p?`${C} must end with a ${m}`:`${C} in block collection must be sufficiently indented and end with a ${m}`;o(h,p?"MISSING_CHAR":"BAD_INDENT",x),g&&g.source.length!==1&&b.unshift(g)}if(b.length>0){const C=kp(b,v,n.options.strict,o);C.comment&&(d.comment?d.comment+=`
|
|
411
|
+
`+C.comment:d.comment=C.comment),d.range=[r.offset,v,C.offset]}else d.range=[r.offset,v,v];return d}function A1(e,t,n,r,o,i){const s=n.type==="block-map"?ppe(e,t,n,r,i):n.type==="block-seq"?hpe(e,t,n,r,i):mpe(e,t,n,r,i),a=s.constructor;return o==="!"||o===a.tagName?(s.tag=a.tagName,s):(o&&(s.tag=o),s)}function gpe(e,t,n,r,o){var h,m;const i=r?t.directives.tagName(r.source,g=>o(r,"TAG_RESOLVE_FAILED",g)):null,s=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!i||i==="!"||i===Eo.tagName&&s==="map"||i===Kl.tagName&&s==="seq"||!s)return A1(e,t,n,o,i);let a=t.schema.tags.find(g=>g.tag===i&&g.collection===s);if(!a){const g=t.schema.knownTags[i];if(g&&g.collection===s)t.schema.tags.push(Object.assign({},g,{default:!1})),a=g;else return g!=null&&g.collection?o(r,"BAD_COLLECTION_TYPE",`${g.tag} used for ${s} collection, but expects ${g.collection}`,!0):o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),A1(e,t,n,o,i)}const c=A1(e,t,n,o,i,a),d=(m=(h=a.resolve)==null?void 0:h.call(a,c,g=>o(r,"TAG_RESOLVE_FAILED",g),t.options))!=null?m:c,p=Gn(d)?d:new $t(d);return p.range=c.range,p.tag=i,a!=null&&a.format&&(p.format=a.format),p}function vF(e,t,n){const r=e.offset,o=vpe(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?$t.BLOCK_FOLDED:$t.BLOCK_LITERAL,s=e.source?ype(e.source):[];let a=s.length;for(let v=s.length-1;v>=0;--v){const E=s[v][1];if(E===""||E==="\r")a=v;else break}if(a===0){const v=o.chomp==="+"&&s.length>0?`
|
|
412
|
+
`.repeat(Math.max(1,s.length-1)):"";let E=r+o.length;return e.source&&(E+=e.source.length),{value:v,type:i,comment:o.comment,range:[r,E,E]}}let c=e.indent+o.indent,d=e.offset+o.length,p=0;for(let v=0;v<a;++v){const[E,w]=s[v];if(w===""||w==="\r")o.indent===0&&E.length>c&&(c=E.length);else{if(E.length<c){const C="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(d+E.length,"MISSING_CHAR",C)}o.indent===0&&(c=E.length),p=v;break}d+=E.length+w.length+1}for(let v=s.length-1;v>=a;--v)s[v][0].length>c&&(a=v+1);let h="",m="",g=!1;for(let v=0;v<p;++v)h+=s[v][0].slice(c)+`
|
|
413
|
+
`;for(let v=p;v<a;++v){let[E,w]=s[v];d+=E.length+w.length+1;const C=w[w.length-1]==="\r";if(C&&(w=w.slice(0,-1)),w&&E.length<c){const P=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-w.length-(C?2:1),"BAD_INDENT",P),E=""}i===$t.BLOCK_LITERAL?(h+=m+E.slice(c)+w,m=`
|
|
414
|
+
`):E.length>c||w[0]===" "?(m===" "?m=`
|
|
415
|
+
`:!g&&m===`
|
|
416
|
+
`&&(m=`
|
|
417
|
+
|
|
418
|
+
`),h+=m+E.slice(c)+w,m=`
|
|
419
|
+
`,g=!0):w===""?m===`
|
|
420
|
+
`?h+=`
|
|
421
|
+
`:m=`
|
|
422
|
+
`:(h+=m+w,m=" ",g=!1)}switch(o.chomp){case"-":break;case"+":for(let v=a;v<s.length;++v)h+=`
|
|
423
|
+
`+s[v][0].slice(c);h[h.length-1]!==`
|
|
424
|
+
`&&(h+=`
|
|
425
|
+
`);break;default:h+=`
|
|
426
|
+
`}const b=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,b,b]}}function vpe({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 g=o[m];if(!a&&(g==="-"||g==="+"))a=g;else{const b=Number(g);!s&&b?s=b:c===-1&&(c=e+m)}}c!==-1&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,p="",h=o.length;for(let m=1;m<t.length;++m){const g=t[m];switch(g.type){case"space":d=!0;case"newline":h+=g.source.length;break;case"comment":n&&!d&&r(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=g.source.length,p=g.source.substring(1);break;case"error":r(g,"UNEXPECTED_TOKEN",g.message),h+=g.source.length;break;default:{const b=`Unexpected token in block scalar header: ${g.type}`;r(g,"UNEXPECTED_TOKEN",b);const v=g.source;v&&typeof v=="string"&&(h+=v.length)}}}return{mode:i,indent:s,chomp:a,comment:p,length:h}}function ype(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 yF(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,c;const d=(m,g,b)=>n(r+m,g,b);switch(o){case"scalar":a=$t.PLAIN,c=bpe(i,d);break;case"single-quoted-scalar":a=$t.QUOTE_SINGLE,c=wpe(i,d);break;case"double-quoted-scalar":a=$t.QUOTE_DOUBLE,c=Cpe(i,d);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=kp(s,p,t,n);return{value:c,type:a,comment:h.comment,range:[r,p,h.offset]}}function bpe(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}`),bF(e)}function wpe(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),bF(e.slice(1,-1)).replace(/''/g,"'")}function bF(e){var c;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
427
|
+
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
428
|
+
`,"sy")}catch(d){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===`
|
|
429
|
+
`?o+=i:i=`
|
|
430
|
+
`:(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 Cpe(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
|
|
431
|
+
`))if(o===`
|
|
432
|
+
`){const{fold:i,offset:s}=xpe(e,r);n+=i,r=s}else if(o==="\\"){let i=e[++r];const s=Spe[i];if(s)n+=s;else if(i===`
|
|
433
|
+
`)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
|
|
434
|
+
`)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+=Epe(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!==`
|
|
435
|
+
`&&!(s==="\r"&&e[r+2]===`
|
|
436
|
+
`)&&(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 xpe(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|
437
|
+
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|
438
|
+
`);)r===`
|
|
439
|
+
`&&(n+=`
|
|
440
|
+
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Spe={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
441
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Epe(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 wF(e,t,n,r){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?vF(t,e.options.strict,r):yF(t,e.options.strict,r),c=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null,d=n&&c?Ppe(e.schema,o,c,n,r):t.type==="scalar"?kpe(e,o,t,r):e.schema[Us];let p;try{const h=d.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);p=hn(h)?h:new $t(h)}catch(h){const m=h instanceof Error?h.message:String(h);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),p=new $t(o)}return p.range=a,p.source=o,i&&(p.type=i),c&&(p.tag=c),d.format&&(p.format=d.format),s&&(p.comment=s),p}function Ppe(e,t,n,r,o){var a;if(n==="!")return e[Us];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[Us])}function kpe({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[Us];if(t.compat){const a=(s=t.compat.find(c=>{var d;return c.default&&((d=c.test)==null?void 0:d.test(n))}))!=null?s:t[Us];if(i.tag!==a.tag){const c=e.tagString(i.tag),d=e.tagString(a.tag),p=`Value may be parsed as either ${c} or ${d}`;o(r,"TAG_RESOLVE_FAILED",p,!0)}}return i}function Ipe(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 $pe={composeNode:CF,composeEmptyNode:bS};function CF(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let c,d=!0;switch(t.type){case"alias":c=Tpe(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=wF(e,t,a,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=gpe($pe,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=bS(e,t.offset,void 0,null,n,r),d=!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&&d&&(c.srcToken=t),c}function bS(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a,end:c},d){const p={type:"scalar",offset:Ipe(t,n,r),indent:-1,source:""},h=wF(e,p,a,d);return s&&(h.anchor=s.source.substring(1),h.anchor===""&&d(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),i&&(h.comment=i,h.range[2]=c),h}function Tpe({options:e},{offset:t,source:n,end:r},o){const i=new iy(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=kp(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function _pe(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({_directives:t},e),c=new sd(void 0,a),d={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=Fu(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?CF(d,o,p,s):bS(d,p.end,r,null,p,s);const h=c.contents.range[2],m=kp(i,h,!1,s);return m.comment&&(c.comment=m.comment),c.range=[n,h,m.offset],c}function Hd(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 pT(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?`
|
|
442
|
+
|
|
443
|
+
`:`
|
|
444
|
+
`)+(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 wS{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const s=Hd(n);i?this.warnings.push(new mF(s,r,o)):this.errors.push(new xa(s,r,o))},this.directives=new Dr({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=pT(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
445
|
+
${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if(Ln(i)&&!i.flow&&i.items.length>0){let s=i.items[0];$n(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
|
|
446
|
+
${a}`:r}else{const s=i.commentBefore;i.commentBefore=s?`${r}
|
|
447
|
+
${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:pT(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=Hd(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=_pe(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 xa(Hd(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 xa(Hd(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=kp(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}
|
|
448
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new xa(Hd(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 sd(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 Mpe(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 xa([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yF(e,t,r);case"block-scalar":return vF(e,t,r)}}return null}function Rpe(e,t){var d;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=Ep({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=(d=t.end)!=null?d:[{type:"newline",offset:-1,indent:r,source:`
|
|
449
|
+
`}];switch(a[0]){case"|":case">":{const p=a.indexOf(`
|
|
450
|
+
`),h=a.substring(0,p),m=a.substring(p+1)+`
|
|
451
|
+
`,g=[{type:"block-scalar-header",offset:i,indent:r,source:h}];return xF(g,c)||g.push({type:"newline",offset:-1,indent:r,source:`
|
|
452
|
+
`}),{type:"block-scalar",offset:i,indent:r,props:g,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 Ope(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 d=e.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=d.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const c=Ep({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">":Lpe(e,c);break;case'"':F1(e,c,"double-quoted-scalar");break;case"'":F1(e,c,"single-quoted-scalar");break;default:F1(e,c,"scalar")}}function Lpe(e,t){const n=t.indexOf(`
|
|
453
|
+
`),r=t.substring(0,n),o=t.substring(n+1)+`
|
|
454
|
+
`;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}];xF(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
|
|
455
|
+
`});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 xF(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 F1(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:`
|
|
456
|
+
`};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 Ape=e=>"type"in e?kg(e):Sm(e);function kg(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=kg(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Sm(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Sm(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Sm(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 Sm({start:e,key:t,sep:n,value:r}){let o="";for(const i of e)o+=i.source;if(t&&(o+=kg(t)),n)for(const i of n)o+=i.source;return r&&(o+=kg(r)),o}const Pw=Symbol("break visit"),Fpe=Symbol("skip children"),SF=Symbol("remove item");function Ka(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),EF(Object.freeze([]),e,t)}Ka.BREAK=Pw;Ka.SKIP=Fpe;Ka.REMOVE=SF;Ka.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};Ka.parentCollection=(e,t)=>{const n=Ka.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 EF(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=EF(Object.freeze(e.concat([[o,s]])),i.items[s],n);if(typeof a=="number")s=a-1;else{if(a===Pw)return Pw;a===SF&&(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 gy="\uFEFF",vy="",yy="",op="",Npe=e=>!!e&&"items"in e,Dpe=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function Bpe(e){switch(e){case gy:return"<BOM>";case vy:return"<DOC>";case yy:return"<FLOW_END>";case op:return"<SCALAR>";default:return JSON.stringify(e)}}function PF(e){switch(e){case gy:return"byte-order-mark";case vy:return"doc-mode";case yy:return"flow-error-end";case op:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
457
|
+
`:case`\r
|
|
458
|
+
`: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 zpe=Object.freeze(Object.defineProperty({__proto__:null,BOM:gy,DOCUMENT:vy,FLOW_END:yy,SCALAR:op,createScalarToken:Rpe,isCollection:Npe,isScalar:Dpe,prettyToken:Bpe,resolveAsScalar:Mpe,setScalarValue:Ope,stringify:Ape,tokenType:PF,visit:Ka},Symbol.toStringTag,{value:"Module"}));function qo(e){switch(e){case void 0:case" ":case`
|
|
459
|
+
`:case"\r":case" ":return!0;default:return!1}}const hT="0123456789ABCDEFabcdef".split(""),Hpe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),N1=",[]{}".split(""),jpe=` ,[]{}
|
|
460
|
+
\r `.split(""),D1=e=>!e||jpe.includes(e);class kF{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===`
|
|
461
|
+
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
462
|
+
`:!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===`
|
|
463
|
+
`||!o&&!this.atEnd)return t+r+1}return n===`
|
|
464
|
+
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&qo(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(`
|
|
465
|
+
`,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]===gy&&(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 vy,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==="---"&&qo(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&qo(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!qo(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===":")&&qo(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(D1),"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("..."))&&qo(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield yy,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(D1),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||qo(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(`
|
|
466
|
+
`,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
|
|
467
|
+
`,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=>qo(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`
|
|
468
|
+
`:t=o,n=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
|
|
469
|
+
`)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(`
|
|
470
|
+
`,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===`
|
|
471
|
+
`&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield op,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(qo(i)||t&&i===",")break;n=r}else if(qo(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
|
|
472
|
+
`?(r+=1,o=`
|
|
473
|
+
`,i=this.buffer[r+1]):n=r),i==="#"||t&&N1.includes(i))break;if(o===`
|
|
474
|
+
`){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 op,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(D1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(qo(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(;!qo(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(Hpe.includes(n))n=this.buffer[++t];else if(n==="%"&&hT.includes(this.buffer[t+1])&&hT.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===`
|
|
475
|
+
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
476
|
+
`?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 IF{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 Si(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function mT(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 qh(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 _c(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 gT(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Si(t.start,"explicit-key-ind")&&!Si(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)}let CS=class{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 kF,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=PF(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"&&gT(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=!Si(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&&mT(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":{mT(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=qh(this.peek(2)),r=_c(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(`
|
|
477
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
478
|
+
`,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&&!Si(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(Si(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Si(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)&&!Si(n.sep,"newline")){const s=_c(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(Si(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=_c(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]}):Si(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"&&Si(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||Si(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=qh(r),i=_c(o);gT(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(`
|
|
479
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
480
|
+
`,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=qh(t),r=_c(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=qh(t),r=_c(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 TF(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new IF||null,prettyErrors:t}}function Vpe(e,t={}){const{lineCounter:n,prettyErrors:r}=TF(t),o=new CS(n==null?void 0:n.addNewLine),i=new wS(t),s=Array.from(i.compose(o.parse(e)));if(r&&n)for(const a of s)a.errors.forEach(Pg(e,n)),a.warnings.forEach(Pg(e,n));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function _F(e,t={}){const{lineCounter:n,prettyErrors:r}=TF(t),o=new CS(n==null?void 0:n.addNewLine),i=new wS(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 xa(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Pg(e,n)),s.warnings.forEach(Pg(e,n))),s}function Upe(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=_F(e,n);if(!o)return null;if(o.warnings.forEach(i=>XA(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 Wpe(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 sd(e,r,n).toString(n)}const vT=Object.freeze(Object.defineProperty({__proto__:null,Alias:iy,CST:zpe,Composer:wS,Document:sd,Lexer:kF,LineCounter:IF,Pair:Mr,Parser:CS,Scalar:$t,Schema:my,YAMLError:yS,YAMLMap:Eo,YAMLParseError:xa,YAMLSeq:Kl,YAMLWarning:mF,isAlias:rc,isCollection:Ln,isDocument:td,isMap:nd,isNode:Gn,isPair:$n,isScalar:hn,isSeq:rd,parse:Upe,parseAllDocuments:Vpe,parseDocument:_F,stringify:Wpe,visit:Gl,visitAsync:oy},Symbol.toStringTag,{value:"Module"})),Gpe="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function Kpe({file:e,anyMask:t,defaultPerms:n,addToBar:r,statusApi:o}){var A,D;const O=e,{parent:i,children:s,isRoot:a,byMasks:c}=O,d=Zt(O,["parent","children","isRoot","byMasks"]),[p,h]=u.useState(d);u.useEffect(()=>{h(Object.assign(kx(n,()=>null),d))},[e]);const{source:m}=e,g=e.type==="folder",b=m!==void 0,v=b&&g,E=u.useMemo(()=>{const j={};let R=i;for(;R;)It.defaults(j,R,R.byMasks),R=R.parent;return It.defaults(j,n)},[i]),w=b&&!!p.ctime,C=b&&!v,x=e.accept>""||g&&((A=e.can_upload)!=null?A:E.can_upload),P=_x(),{data:$,element:I}=To("get_accounts");if(I||!$)return I;const k=$.list;return u.createElement(wp,{values:p,set(j,R){var V;if(R==="link")return;const H=R==="source"&&((V=p.source)==null?void 0:V.endsWith(p.name))?gre(j):p.name;h(kt($e({},p),{name:H,[R]:j}))},barSx:$e({gap:2,width:"100%"},P),stickyBar:!0,addToBar:[!a&&u.createElement(Fn,{icon:ps,title:"Delete",confirm:"Delete?",onClick:()=>xt("del_vfs",{uris:[e.id]}).then(()=>qa())}),r],onError:cn,save:{sx:Yv(!Mx(p,d)),onClick(){return pt(this,null,function*(){const j=It.omit(p,["ctime","mtime","size","id"]);j.masks||(j.masks=null),yield xt("set_vfs",{uri:p.id,props:j}),j.name!==e.name&&(un.selectedFiles[0].id=e.parent.id+j.name+(g?"/":"")),qa()})}},fields:[a?u.createElement(Do,{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:b&&"You can decide a name that's different from the one on your disk"},{k:"id",comp:Ype,statusApi:o},{k:"source",label:"Source on disk",comp:yf,files:!g,folders:g,multiline:!0,placeholder:"Not on disk, this is a virtual folder"},M("can_read","Who can see but not download will be asked to login"),M("can_see","If you don't see, you may still download with a direct link",{after:g&&p.can_see!=null&&u.createElement(xo,{size:"small",label:"Propagate permission inside this folder",value:((D=p.propagate)==null?void 0:D.can_see)!==!1,onChange(j){const R=kt($e({},p.propagate),{can_see:j?void 0:!1});h(kt($e({},p),{propagate:It.every(R,N=>N===void 0)?null:R}))}})}),g&&M("can_list","Permission to see content of folders"),g&&M("can_delete",b?"":"Works only on folders with source"),g&&M("can_upload",b?"":"Works only on folders with source",{lg:x?6:12}),x&&{k:"accept",label:"Accept on upload",placeholder:"anything",helperText:u.createElement(ts,{href:Gpe,target:"_blank"},"Example: .zip"),lg:6},C&&{k:"size",comp:vm,lg:4,toField:Vl},w&&{k:"ctime",comp:vm,md:6,lg:C&&4,label:"Created",toField:yT},w&&{k:"mtime",comp:vm,md:6,lg:C&&4,label:"Modified",toField:yT},e.website&&{k:"default",comp:xo,label:"Serve index.html",toField:Boolean,fromField:j=>j?"index.html":null,helperText:Ms("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")},g&&{k:"masks",multiline:!0,lg:!0,toField:vT.stringify,fromField:j=>j?vT.parse(j):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:["Special field, leave empty unless you know what you are doing. YAML syntax. ",qu("Permissions","(examples)")]}]});function M(j,R,N={}){return $e({showInherited:t,otherPerms:It.without(Object.keys(n),j).map(H=>({value:H,label:"As "+kw(H)})),k:j,lg:6,comp:qpe,parent:i,accounts:k,helperText:R,label:"Who can "+kw(j),inherit:E[j],byMasks:c==null?void 0:c[j]},N)}}function kw(e){const t=e.split("_")[1];return t==="read"?"download":t}function yT(e){return e?new Date(e).toLocaleString():"-"}function qpe(p){var h=p,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:i,showInherited:s,otherPerms:a,byMasks:c}=h,d=Zt(h,["value","onChange","parent","inherit","accounts","helperText","showInherited","otherPerms","byMasks"]);const m=(c!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+bT(c!=null?c:r),g=u.useMemo(()=>bp([{value:null,label:m},{value:!0},{value:!1},{value:"*"},...a,{value:[],label:"Select accounts"}].map(v=>(v.value===e||s||v.value!==r)&&$e({label:It.capitalize(bT(v.value))},v))),[r,n,e]),b=Array.isArray(e);return u.createElement("div",{},u.createElement(us,kt($e({},d),{helperText:!b&&i,value:b?[]:e,onChange(v,{was:E,event:w}){t(v,{was:E,event:w})},options:g})),b&&u.createElement(Tx,{label:o!=null&&o.length?"Choose accounts for "+d.label:"You didn't create any account yet",value:e,onChange:t,helperText:i,options:(o==null?void 0:o.map(v=>({value:v.username,label:v.username})))||[]}))}function bT(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+kw(e):"*UNKNOWN*"+JSON.stringify(e)}function Ype({value:e,statusApi:t}){const{data:n,reload:r,error:o}=t,i=n==null?void 0:n.suggestedUrls,s=n==null?void 0:n.baseUrl,a=(s||(i==null?void 0:i[0])||"")+e;return u.createElement(tt,{display:"flex"},i?u.createElement(vm,{label:"Link",value:a,error:o,end:u.createElement(tt,{},u.createElement(Fn,{icon:Kte,title:"Copy",onClick:()=>navigator.clipboard.writeText(a)}),u.createElement(Fn,{icon:YO,title:"Change",onClick:c}))}):"error");function c(){const d=vi({title:"Change link",Content(){const[p,h]=u.useState(s||""),m=new URL(p||i[0]).protocol+"//",g=i.includes(p)?"":p.slice(m.length);return u.createElement(tt,{display:"flex",flexDirection:"column"},u.createElement(tt,{mb:2},"You can choose a different base address for your links"),u.createElement(Bv,{},i.map(E=>u.createElement(so,{key:E,selected:E===p,onClick:()=>b(E)},E,E===p&&u.createElement(KO,{sx:{ml:2}})))),u.createElement(eo,{label:"Custom IP or domain",helperText:Ms(`You can type any address but *you* are responsible to make the address work.
|
|
481
|
+
This functionality is just to help you copy the link in case you have a domain or a complex network configuration.`),value:g,onChange:E=>b(cu(m,E)),start:u.createElement(us,{value:m,onChange:E=>g?b(E+g):Hr("Enter domain first"),options:["http://","https://"],size:"small",variant:"standard",sx:{"& .MuiSelect-select":{pt:"1px",pb:0}}}),sx:{mt:2}}),u.createElement(tt,{mt:2,textAlign:"right"},u.createElement(uu,{icon:yx,children:"Save",onClick(){return pt(this,null,function*(){p!==s&&(yield xt("set_config",{values:{base_url:p}}),yield r()),d()})}})));function b(E){E.endsWith("/")&&(E=E.slice(0,-1)),h(E)}}})}}let Iw;function Qpe(){var E,w,C;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n}=Jl(),{data:r,reload:o,element:i}=To("get_vfs");u.useMemo(()=>t||o(),[t,o]);const s=u.useMemo(()=>function x(P){var $;return!It.isEmpty(P==null?void 0:P.masks)||(($=P==null?void 0:P.children)==null?void 0:$.some(x))}(t),[t]),a="md",c=Ul(a),d=To("get_status"),{data:p}=d,h=u.useMemo(()=>{const x=p==null?void 0:p.baseUrl,P=It.sortBy((p==null?void 0:p.urls.https)||(p==null?void 0:p.urls.http),$=>$.includes("[")&&$!==x);return p&&(p.suggestedUrls=P),x&&!P.includes(x)?[x,...P]:P},[p]);function m(){un.selectedFiles=[]}const g=n.length?n.length===1?u.createElement(Kpe,{addToBar:c&&u.createElement(Fn,{icon:zv,title:"Close",onClick:m}),defaultPerms:r==null?void 0:r.defaultPerms,anyMask:s,statusApi:d,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(Kf,{alignItems:"center"},u.createElement(Tr,{variant:"h6"},n.length+" selected"),u.createElement(ur,{onClick:Xpe,startIcon:u.createElement(ps)},"Remove")),u.createElement(Dv,{dense:!0,disablePadding:!0},n.map(x=>u.createElement(AO,{key:x.id},u.createElement(ns,{primary:x.name,secondary:x.source}))))):null;if(u.useEffect(()=>{if(!(c||!g))return vi({title:n.length>1?"Multiple selection":n[0].name,Content:()=>g,onClose:m})},[c,n]),u.useEffect(()=>{if(un.vfs=void 0,!r)return;e.clear();const{root:x}=r;if(!x)return;x.isRoot=!0,$(x),un.vfs=x;const P=Iw||un.selectedFiles.map(I=>I.id);Iw=void 0,un.selectedFiles=bp(P.map(I=>e.get(I)));function $(I,k="/",M=void 0){if(I.parent=M,I.id=I.isRoot?"/":cu(k,encodeURIComponent(I.name),I.type==="folder"?"/":""),e.set(I.id,I),!!I.children)for(const O of I.children)$(O,I.id,I)}},[r,e]),i)return e.clear(),i;const v=!((w=(E=r==null?void 0:r.root)==null?void 0:E.children)!=null&&w.length)&&!((C=r==null?void 0:r.root)!=null&&C.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:h&&{severity:"info",children:["Your shared files can be browsed from ",$ne(" or ",h.slice(0,3).map(x=>u.createElement(ts,{href:x},x)))]};return u.createElement(qn,{container:!0,rowSpacing:1,maxWidth:"80em",columnSpacing:2},v&&u.createElement(qn,{item:!0,mb:2,xs:12},u.createElement(Do,v)),u.createElement(qn,{item:!0,[a]:6,lg:5},u.createElement(Tr,{variant:"h6",mb:1},"Virtual File System"),u.createElement(Ffe),t&&u.createElement(Jpe,{id2node:e})),c&&g&&u.createElement(qn,{item:!0,[a]:6,lg:7,maxWidth:"100%"},u.createElement(hO,{},u.createElement(mO,{},g))))}function qa(e){Iw=e,un.vfs=void 0}function Xpe(){return pt(this,null,function*(){const e=un.selectedFiles;if(e.length&&(yield Vs(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);It.pull(t,"/");const{errors:n}=yield xt("del_vfs",{uris:t}),r=t.filter((o,i)=>n[i]);if(r.length)return cn("Following elements couldn't be deleted: "+r.join(", "),"error");qa()}catch(t){yield cn(t)}})}const MF=Xte,RF=rne;function Jpe({id2node:e}){const{vfs:t,selectedFiles:n}=Jl(),[r,o]=u.useState(n.map(m=>m.id)),[i,s]=u.useState(Array.from(e.keys())),a=u.useRef(),c=u.useRef();if(!t)return null;const d="vfs";return u.createElement(yL,{ref:c,expanded:i,selected:r,multiSelect:!0,id:d,sx:{overflowX:"auto",maxWidth:c.current&&`calc(100vw - ${16+c.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px"}},onNodeSelect(m,g){o(g),un.selectedFiles=bp(g.map(b=>e.get(b)))}},h(t));function p(m){return m!==void 0&&m!==!0}function h(m){var C,x;let{id:g,name:b,isRoot:v}=m;if(!g)debugger;const E=m.type==="folder";return u.createElement(lw,{ref(P){P==null||P.addEventListener("focusin",$=>$.stopImmediatePropagation())},label:u.createElement(tt,{draggable:!v,onDragStart(){a.current=g},onDragOver(P){if(!E)return;const $=a.current;$!=null&&$.startsWith(g)&&!$.slice(g.length+1).includes("/")||P.preventDefault()},onDrop(){return pt(this,null,function*(){const P=a.current;P&&(yield Vs(`Moving ${P} under ${g}`))&&xt("move_vfs",{from:P,parent:g}).then(()=>{qa([g+P.slice(1+P.lastIndexOf("/",P.length-2))])},cn)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(tt,{display:"flex",flex:0},v?yo(nne,"home, or root if you like"):E?yo(MF,"Folder"):yo(RF,"File"),u.createElement(tt,{sx:{flex:0,ml:"2px",my:"2px","&>*":{fontSize:"87%",opacity:.6,mt:"-2px"},display:"grid",gridAutoFlow:"column",gridTemplateRows:"auto auto"}},m.can_delete!==void 0&&yo(ps,"Delete permission"),m.can_upload!==void 0&&yo(Hv,"Upload permission"),!v&&!m.source&&yo(Wte,"Virtual (no source)"),p(m.can_see)&&yo(hne,"Restrictions on who can see"),p(m.can_read)&&yo(XO,"Restrictions on who can download"),m.default&&yo(wne,"Act as website"),m.masks&&yo(gne,"Masks"),m.size===-1&&yo(ene,"Source not found"))),v?"Home":(()=>{var k;const P=(k=m.parent)==null?void 0:k.source,{source:$}=m,I=P&&($!=null&&$.startsWith(P))?"."+$.slice(P.length):$;return!I||!($!=null&&$.endsWith(b))||I.length>45?u.createElement(tt,{lineHeight:"1.2em"},b):u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},I.slice(0,-b.length)),I.slice(-b.length))})()),key:b,collapseIcon:u.createElement(Yte,{onClick(P){s(i.filter($=>$!==g)),P.preventDefault(),P.stopPropagation()}}),expandIcon:u.createElement(Ute,{onClick(P){s([...i,g]),P.preventDefault(),P.stopPropagation()}}),nodeId:g},v&&!((C=m.children)!=null&&C.length)?u.createElement(lw,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(x=m.children)==null?void 0:x.map(h))}}var wT=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Zpe(e,t){return!!(e===t||wT(e)&&wT(t))}function ehe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Zpe(e[n],t[n]))return!1;return!0}function B1(e,t){t===void 0&&(t=ehe);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 the=typeof performance=="object"&&typeof performance.now=="function",CT=the?function(){return performance.now()}:function(){return Date.now()};function xT(e){cancelAnimationFrame(e.id)}function nhe(e,t){var n=CT();function r(){CT()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var z1=-1;function ST(e){if(e===void 0&&(e=!1),z1===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),z1=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return z1}var Mc=null;function ET(e){if(e===void 0&&(e=!1),Mc===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?Mc="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Mc="negative":Mc="positive-ascending"),document.body.removeChild(t),Mc}return Mc}var rhe=150,ohe=function(t,n){return t};function ihe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(h){nx(m,h);function m(b){var v;return v=h.call(this,b)||this,v._instanceProps=c(v.props,Yb(v)),v._outerRef=void 0,v._resetIsScrollingTimeoutId=null,v.state={instance:Yb(v),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof v.props.initialScrollOffset=="number"?v.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},v._callOnItemsRendered=void 0,v._callOnItemsRendered=B1(function(E,w,C,x){return v.props.onItemsRendered({overscanStartIndex:E,overscanStopIndex:w,visibleStartIndex:C,visibleStopIndex:x})}),v._callOnScroll=void 0,v._callOnScroll=B1(function(E,w,C){return v.props.onScroll({scrollDirection:E,scrollOffset:w,scrollUpdateWasRequested:C})}),v._getItemStyle=void 0,v._getItemStyle=function(E){var w=v.props,C=w.direction,x=w.itemSize,P=w.layout,$=v._getItemStyleCache(d&&x,d&&P,d&&C),I;if($.hasOwnProperty(E))I=$[E];else{var k=n(v.props,E,v._instanceProps),M=o(v.props,E,v._instanceProps),O=C==="horizontal"||P==="horizontal",A=C==="rtl",L=O?k:0;$[E]=I={position:"absolute",left:A?void 0:L,right:A?L:void 0,top:O?0:k,height:O?"100%":M,width:O?M:"100%"}}return I},v._getItemStyleCache=void 0,v._getItemStyleCache=B1(function(E,w,C){return{}}),v._onScrollHorizontal=function(E){var w=E.currentTarget,C=w.clientWidth,x=w.scrollLeft,P=w.scrollWidth;v.setState(function($){if($.scrollOffset===x)return null;var I=v.props.direction,k=x;if(I==="rtl")switch(ET()){case"negative":k=-x;break;case"positive-descending":k=P-C-x;break}return k=Math.max(0,Math.min(k,P-C)),{isScrolling:!0,scrollDirection:$.scrollOffset<x?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._onScrollVertical=function(E){var w=E.currentTarget,C=w.clientHeight,x=w.scrollHeight,P=w.scrollTop;v.setState(function($){if($.scrollOffset===P)return null;var I=Math.max(0,Math.min(P,x-C));return{isScrolling:!0,scrollDirection:$.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._outerRefSetter=function(E){var w=v.props.outerRef;v._outerRef=E,typeof w=="function"?w(E):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=E)},v._resetIsScrollingDebounced=function(){v._resetIsScrollingTimeoutId!==null&&xT(v._resetIsScrollingTimeoutId),v._resetIsScrollingTimeoutId=nhe(v._resetIsScrolling,rhe)},v._resetIsScrolling=function(){v._resetIsScrollingTimeoutId=null,v.setState({isScrolling:!1},function(){v._getItemStyleCache(-1,null)})},v}m.getDerivedStateFromProps=function(v,E){return she(v,E),p(v),null};var g=m.prototype;return g.scrollTo=function(v){v=Math.max(0,v),this.setState(function(E){return E.scrollOffset===v?null:{scrollDirection:E.scrollOffset<v?"forward":"backward",scrollOffset:v,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(v,E){E===void 0&&(E="auto");var w=this.props,C=w.itemCount,x=w.layout,P=this.state.scrollOffset;v=Math.max(0,Math.min(v,C-1));var $=0;if(this._outerRef){var I=this._outerRef;x==="vertical"?$=I.scrollWidth>I.clientWidth?ST():0:$=I.scrollHeight>I.clientHeight?ST():0}this.scrollTo(i(this.props,v,E,P,this._instanceProps,$))},g.componentDidMount=function(){var v=this.props,E=v.direction,w=v.initialScrollOffset,C=v.layout;if(typeof w=="number"&&this._outerRef!=null){var x=this._outerRef;E==="horizontal"||C==="horizontal"?x.scrollLeft=w:x.scrollTop=w}this._callPropsCallbacks()},g.componentDidUpdate=function(){var v=this.props,E=v.direction,w=v.layout,C=this.state,x=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var $=this._outerRef;if(E==="horizontal"||w==="horizontal")if(E==="rtl")switch(ET()){case"negative":$.scrollLeft=-x;break;case"positive-ascending":$.scrollLeft=x;break;default:var I=$.clientWidth,k=$.scrollWidth;$.scrollLeft=k-I-x;break}else $.scrollLeft=x;else $.scrollTop=x}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&xT(this._resetIsScrollingTimeoutId)},g.render=function(){var v=this.props,E=v.children,w=v.className,C=v.direction,x=v.height,P=v.innerRef,$=v.innerElementType,I=v.innerTagName,k=v.itemCount,M=v.itemData,O=v.itemKey,A=O===void 0?ohe:O,L=v.layout,D=v.outerElementType,j=v.outerTagName,R=v.style,N=v.useIsScrolling,H=v.width,V=this.state.isScrolling,F=C==="horizontal"||L==="horizontal",z=F?this._onScrollHorizontal:this._onScrollVertical,W=this._getRangeToRender(),K=W[0],Y=W[1],ae=[];if(k>0)for(var re=K;re<=Y;re++)ae.push(u.createElement(E,{data:M,key:A(re,M),index:re,isScrolling:N?V:void 0,style:this._getItemStyle(re)}));var de=r(this.props,this._instanceProps);return u.createElement(D||j||"div",{className:w,onScroll:z,ref:this._outerRefSetter,style:S({position:"relative",height:x,width:H,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},R)},u.createElement($||I||"div",{children:ae,ref:P,style:{height:F?"100%":de,pointerEvents:V?"none":void 0,width:F?de:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var v=this.props.itemCount;if(v>0){var E=this._getRangeToRender(),w=E[0],C=E[1],x=E[2],P=E[3];this._callOnItemsRendered(w,C,x,P)}}if(typeof this.props.onScroll=="function"){var $=this.state,I=$.scrollDirection,k=$.scrollOffset,M=$.scrollUpdateWasRequested;this._callOnScroll(I,k,M)}},g._getRangeToRender=function(){var v=this.props,E=v.itemCount,w=v.overscanCount,C=this.state,x=C.isScrolling,P=C.scrollDirection,$=C.scrollOffset;if(E===0)return[0,0,0,0];var I=s(this.props,$,this._instanceProps),k=a(this.props,I,$,this._instanceProps),M=!x||P==="backward"?Math.max(1,w):1,O=!x||P==="forward"?Math.max(1,w):1;return[Math.max(0,I-M),Math.max(0,Math.min(E-1,k+O)),I,k]},m}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var she=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},lhe=ihe({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,i,s){var a=t.direction,c=t.height,d=t.itemCount,p=t.itemSize,h=t.layout,m=t.width,g=a==="horizontal"||h==="horizontal",b=g?m:c,v=Math.max(0,d*p-b),E=Math.min(v,n*p),w=Math.max(0,n*p-b+p+s);switch(r==="smart"&&(o>=w-b&&o<=E+b?r="auto":r="center"),r){case"start":return E;case"end":return w;case"center":{var C=Math.round(w+(E-w)/2);return C<Math.ceil(b/2)?0:C>v+Math.floor(b/2)?v:C}case"auto":default:return o>=w&&o<=E?o:o<w?w:E}},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,d=t.width,p=o==="horizontal"||c==="horizontal",h=n*a,m=p?d:i,g=Math.ceil((m+r-h)/a);return Math.max(0,Math.min(s-1,n+g-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function OF({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:i=""}){const[s,a]=u.useState(i),[c,d]=u.useState(!1),p=u.useRef(!1);u.useEffect(()=>{xt("resolve_path",{path:i,closestFolder:!0}).then(D=>{typeof D.path=="string"&&(a(D.path),p.current=D.path[1]===":")}).finally(()=>d(!0))},[i]);const{list:h,error:m,loading:g}=ec(c&&"ls",{path:s,files:n,fileMask:o});u.useEffect(()=>{v([]),w("")},[s]);const[b,v]=u.useState([]),[E,w]=u.useState(""),C=u.useMemo(()=>It.debounce(D=>w(D)),[]),x=u.useMemo(()=>{const D=new RegExp(It.escapeRegExp(E),"i");return j=>D.test(j)},[E]),[P,$]=u.useState(0),I=u.useMemo(()=>h.filter(D=>x(D.n)),[h,x]);if(g)return SL();const k=p.current?"":"/",M=p.current?"\\":"/",O=are(M,s),A=s.length<2;return u.createElement(u.Fragment,{},u.createElement(tt,{display:"flex",gap:1},u.createElement(ur,{title:"root",disabled:A,onClick(){a(k)}},u.createElement(bne)),u.createElement(ur,{disabled:A,title:"parent folder",onClick(){const D=/[\\/]$/.test(s)?s.slice(0,-1):s,j=noe(D)?k:D.slice(0,D.lastIndexOf(M)||1);a(j)}},u.createElement(Hte)),u.createElement(eo,{label:"Current path",value:s,InputLabelProps:{shrink:!0},onChange(D){return pt(this,null,function*(){if(!D)return a(k);const j=yield xt("resolve_path",{path:D});a(j.path)})}})),m?u.createElement(Do,{severity:"error"},EL(m)):u.createElement(u.Fragment,{},u.createElement(tt,{ref(D){if(!D)return;const j=(D==null?void 0:D.clientHeight)-1;j-P>1&&$(j)},sx:{flex:1,display:"flex",flexDirection:"column"}},h.length?u.createElement(lhe,{width:"100%",height:P,itemSize:46,itemCount:I.length,overscanCount:5,children({index:D,style:j}){const R=I[D],N=R.k==="d";return u.createElement(so,{style:kt($e({},j),{padding:0}),key:R.n,onClick(){N?a(O+R.n):e([O+R.n])}},t&&u.createElement(vO,{checked:b.includes(R.n),disabled:!r&&N,onClick(H){const V=R.n,F=b.filter(z=>z!==V);v(F.length<b.length?F:[...b,V]),H.stopPropagation()}}),u.createElement(Ol,{},u.createElement(R.k?MF:RF)),u.createElement(ns,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},R.n),!N&&R.s!==void 0&&u.createElement(Tr,{variant:"body2",color:"text.secondary",ml:4,mr:1},Vl(R.s)))}}):u.createElement(Ox,{flex:1,mt:"4em"},"No elements in this folder")),u.createElement(tt,{display:"flex",gap:1},(t||r||!n)&&u.createElement(ur,{variant:"contained",disabled:!s||!r&&!b.length&&n,sx:{minWidth:"max-content"},onClick(){e(b.length?b.map(D=>O+D):[s])}},n&&(b.length||!r)?`Select (${b.length})`:"Select this folder"),u.createElement(yp,{value:E,label:`Filter results (${I.length}${I.length<h.length?"/"+h.length:""})`,onChange(D){C(D.target.value)},sx:{flex:1}}))))}function yf(c){var d=c,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:i,title:s}=d,a=Zt(d,["value","onChange","files","folders","fileMask","defaultPath","title"]);const p=Ul("md");return u.createElement(eo,kt($e({},a),{value:e,onChange:t,InputProps:{endAdornment:u.createElement(Uf,{position:"end"},u.createElement(Fn,{icon:qte,title:"Browse files...",edge:"end",onClick(){const h=vi({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(OF,{multiple:!1,folders:r,files:n,fileMask:o,from:e||i,onSelect(g){return pt(this,null,function*(){var E;let b=g==null?void 0:g[0];if(!b)return;const v=(E=yield xt("get_cwd"))==null?void 0:E.path;b.startsWith(v)&&(b=b.slice(v.length+1)||"."),t(b,{was:e,event:"picker"}),h()})}})}})}}))}}))}function ahe(){var P,$,I;const e=" — ",{username:t}=Jl(),{data:n,reload:r,element:o}=To("get_status"),{data:i}=To("get_vfs"),[s]=jv(t&&"get_account"),{data:a,reload:c}=To("get_config",{only:["https_port","cert","private_key","proxies"]}),{list:d}=ec("get_plugins"),[p,h]=u.useState("");if(o||!n)return o;const{http:m,https:g}=n,b=!(m!=null&&m.listening)&&(g!=null&&g.listening)?"s":"",v=b?g:(m==null?void 0:m.listening)&&m,E=v&&`http${b}://`+window.location.hostname+(v.port===(b?443:80)?"":":"+v.port),w=It.pick(n,["http","https"]),C=kx(w,M=>M.busy?[`port ${M.port} already used by ${M.busy}${e}choose a `,Yh("different port"),` or stop ${M.busy}`]:M.error),x=C&&bp(Object.entries(C).map(([M,O])=>O&&[Ms(`Protocol _${M}_ cannot work: `),O,(xS(O)||SS(O))&&[e,u.createElement(ts,{sx:{cursor:"pointer"},onClick(){ES().then(c).then(r)}},"make one")," or ",e,Yh("provide adequate files")]]));return u.createElement(tt,{display:"flex",gap:2,flexDirection:"column"},t&&vo("","Welcome "+t),x.length?Wf(x.map(M=>vo("error",Wf(M)))):vo("success","Server is working"),i?!(($=(P=i.root)==null?void 0:P.children)!=null&&$.length)&&!((I=i.root)!=null&&I.source)?vo("warning","You have no files shared",e,che("add some")):vo("",Ms("This is Admin-panel, where you manage your server. Access your files on "),u.createElement(ts,{target:"frontend",href:"../.."},"Front-end",u.createElement(one,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(XX),!E&&vo("warning","Frontend unreachable: ",It.map(C,(M,O)=>O+" "+(M?"is in error":"is off")).join(", "),!x.length&&[e,Yh("switch http or https on")]),d.find(M=>M.badApi)&&vo("warning","Some plugins may be incompatible"),!(s!=null&&s.adminActualAccess)&&vo("",Ms("On _localhost_ you don't need to login"),e,u.createElement(Rx,{to:"accounts"},Ms("to access from another computer create an account with /admin/ permission"))),$w(a,n)&&vo("warning",$w(a,n),e,Yh("set the number of proxies"),e,"unless you are sure and you can ",u.createElement(ur,{size:"small",onClick(){return pt(this,null,function*(){(yield Vs("Go on only if you know what you are doing"))&&(yield xt("set_config",{values:{ignore_proxies:!0}}))&&c()})}},"ignore this warning"),e,qu("Proxy-warning","Explanation")),n.frpDetected&&vo("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",{},Ms("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)`))),vo("",u.createElement(ts,{target:"support",href:dL+"discussions"},"Get support")),u.createElement(tt,{mt:4},n.update==="local"?u.createElement(uu,{icon:y1,onClick:PT},"Update from local file"):p?(n==null?void 0:n.version)===p?vo("","You got the latest version"):n.update?u.createElement(uu,{icon:y1,onClick:PT},cu("Update to ",p)):vo("",`Version ${p} available`):u.createElement(uu,{variant:"outlined",icon:y1,onClick:()=>xt("check_update").then(M=>h(M.name),M=>{h(""),cn(M).then()})},"Check for updates")))}function PT(){return pt(this,null,function*(){if(!(yield Vs("Update may take less than a minute, depending on the speed of your server")))return;Hr("Downloading"),yield xt("update"),Hr("Restarting");const e=Date.now();for(;yield xt("NONE").then(()=>0,t=>!t.code);)Date.now()-e>1e4&&Hr("This is taking too long, please check your server","warning"),yield sre(500);kL(un,"loginRequired",()=>un.loginRequired=!1),yield cn("Procedure complete","success"),window.location.reload()})}function vo(e,...t){return u.createElement(tt,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:Vte,info:lg,"":lg,warning:bx,error:mx}[e],{sx:{mb:"-3px",mr:1,color:e?void 0:"primary.main"}}),...t)}function che(e="File System page"){return u.createElement(Rx,{to:"fs"},e)}function Yh(e="Options page"){return u.createElement(Rx,{to:"options"},e)}function $w(e,t){return e&&!e.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}let Fl,Tw;const LF=xx({changes:{}});Sx(un,e=>{e.some(t=>t[1][0]==="config")&&AF()});const Ig={log:"Access log file",error_log:"Access error log file"},kT=eo;function uhe(){var g;const{data:e,reload:t,element:n}=To("get_config",{omit:["vfs"]}),r=Jl(),{changes:o}=Ex(LF),i=To(e&&"get_status"),s=i.data,a=Tw=i.reload;u.useEffect(()=>void a(),[e]),u.useEffect(()=>()=>Tw=void 0,[]);const c=(g=jv("get_admins")[0])==null?void 0:g.list;if(n)return n;if(i.error)return i.element;const d=Fl!==e?un.config=Fl=e:r.config,p={comp:Ki,min:1,placeholder:"no limit",md:3},h=d.https_port>=0;return u.createElement(wp,{sx:{maxWidth:"60em"},values:d,set(b,v){un.config[v]=b},stickyBar:!0,onError:cn,save:{onClick:m,sx:Yv(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(ur,{onClick(){t(),a()},startIcon:u.createElement(vx)},"Reload")],defaults(){return{sm:6}},fields:[{k:"port",comp:IT,md:3,label:"HTTP port",status:(s==null?void 0:s.http)||!0,suggestedPort:80},{k:"https_port",comp:IT,md:3,label:"HTTPS port",status:(s==null?void 0:s.https)||!0,suggestedPort:443,onChange(b){return b>=0&&!h&&!d.cert&&fhe(),b}},kt($e({k:"max_kbps"},p),{label:"Limit output KB/s",helperText:"Doesn't apply to localhost"}),kt($e({k:"max_kbps_per_ip"},p),{label:"Limit output KB/s per-ip"}),h&&d.port>=0&&{k:"force_https",comp:xo,sm:12,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},h&&{k:"cert",comp:yf,md:4,label:"HTTPS certificate file",helperText:qu("HTTPS#certificate","What is this?"),error:v$(s==null?void 0:s.https.error,b=>xS(b)&&[b," - ",u.createElement(ts,{key:"fix",sx:{cursor:"pointer"},onClick:ES},"make one")])},h&&$e({k:"private_key",comp:yf,md:4,label:"HTTPS private key file"},v$(s==null?void 0:s.https.error,b=>SS(b)?{error:!0,helperText:b}:null)),{k:"open_browser_at_start",comp:xo,label:"Open Admin-panel at start",md:4,helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:xo,label:"Unprotected admin on localhost",md:4,getError:b=>!b&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"Access Admin-panel without entering credentials"},{k:"file_menu_on_link",comp:us,label:"Access file menu",sm:12,md:4,options:{"by clicking on file name":!0,"by dedicated button":!1}},{k:"title",helperText:"You can see this in the tab of your browser"},{k:"favicon",comp:yf,placeholder:"None",fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"log",label:Ig.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:Ig.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:us,md:3,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To keep log-files smaller"},{k:"dont_log_net",comp:kT,label:"Don't log address",md:3,placeholder:"no exception",helperText:u.createElement(Em)},{k:"log_gui",comp:xo,label:"Log interface loading"},{k:"log_api",comp:xo,label:"Log API requests"},{k:"proxies",comp:Ki,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:$w(d,s),helperText:"Wrong number will prevent detection of users' IP address"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:dhe},{k:"dont_overwrite_uploading",comp:xo,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:Ki,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Ki,md:3,min:0,unit:"MBytes",placeholder:"None",label:"Min. available disk space",helperText:"Reject uploads that don't comply"},{k:"keep_session_alive",comp:xo,helperText:"Keeps you logged in while the page is left open and the computer is on"},{k:"session_duration",comp:Ki,sm:3,min:5,unit:"seconds",required:!0},{k:"zip_calculate_size_for_seconds",comp:Ki,sm:3,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"admin_net",comp:kT,label:"Admin-panel accessible from",placeholder:"any address",md:12,helperText:u.createElement(u.Fragment,{},"IP address of browser machine. ",u.createElement(Em))},{k:"mime",comp:Jre,keyLabel:"Files",keyWidth:7,valueLabel:"Mime type",valueWidth:4},{k:"block",label:"Blocked IPs",multiline:!0,minRows:3,helperText:u.createElement(u.Fragment,{},"Enter an IP address for each line. ",u.createElement(Em)),fromField:b=>b.split(`
|
|
482
|
+
`).map(v=>v.trim()).filter(Boolean).map(v=>({ip:v})),toField:b=>Array.isArray(b)?b.map(v=>v==null?void 0:v.ip).filter(Boolean).join(`
|
|
483
|
+
`):""}]});function m(){return pt(this,null,function*(){var M,O;if(It.isEmpty(o))return Hr("Nothing to save");const b=window.location,v=["port","https_port"];if(v.every(A=>o[A]!==void 0))return cn("You cannot change both http and https port at once. Please, do one, save, and then do the other.","warning");const E=[(M=s==null?void 0:s.http)==null?void 0:M.listening,(O=s==null?void 0:s.https)==null?void 0:O.listening],w=location.protocol==="https:";w&&(v.reverse(),E.reverse());const C=o[v[0]],x=d[v[1]],P=x>0&&E[1],$=w?"http":"https";if(C<0&&!P)return cn("You cannot switch off this port unless you have a working fixed port for "+$,"warning");if(C===0&&!P)return cn("You cannot randomize this port unless you have a working fixed port for "+$,"warning");if(C>0&&!(yield Vs("You are changing the port and you may be disconnected")))return;const I="cert"in o||"private_key"in o;if(w&&I&&!(yield Vs("You may disrupt https service, kicking you out")))return;if(yield xt("set_config",{values:o}),C!==void 0)return yield cn("You are being redirected but in some cases this may fail. Hold on tight!","warning"),window.location.href=C<=0?(w?"http:":"https:")+"//"+b.hostname+":"+x+b.pathname:b.protocol+"//"+b.hostname+":"+C+b.pathname;const k="port"in o||"https_port"in o;setTimeout(a,k||I?1e3:0),Object.assign(Fl,o),AF(),Hr("Changes applied","success")})}}function AF(){const e={};if(un.config)for(const[t,n]of Object.entries(un.config))JSON.stringify(n)!==JSON.stringify(Fl==null?void 0:Fl[t])&&(e[t]=n);LF.changes=e}function xS(e){return/certificate/.test(e)}function SS(e){return/private key/.test(e)}function IT({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 d=Number(t>0?c.current:t)||0;let p=o==null?void 0:o.error;return p&&(xS(p)||SS(p)?p=void 0:s=!0),u.createElement(tt,{},u.createElement(tt,{display:"flex"},u.createElement(us,{sx:{flexGrow:1},label:e,error:s,value:d,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:c.current}],onChange:n}),t>0&&u.createElement(Ki,{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(Nv,{error:s},o===!0?"...":p!=null?p:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function dhe({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",i="example.com";return u.createElement(tt,{display:"flex"},u.createElement(us,{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(eo,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:u.createElement(Em)}))}function Em(){return qu("Wildcards","Wildcards supported")}function fhe(){vi({Content:()=>u.createElement(tt,{},u.createElement(tt,{display:"flex",gap:1},u.createElement(lg),"You are enabling HTTPs. It needs a valid certificate + private key to work."),u.createElement(tt,{mt:4,display:"flex",gap:1,justifyContent:"space-around"},u.createElement(ur,{variant:"contained",onClick(){Li(),ES().then()}},"Help me!"),u.createElement(ur,{onClick:Li},"I will handle the matter myself")))})}function ES(){return pt(this,null,function*(){if(!window.crypto.subtle)return cn("Retry this procedure on localhost","warning");const e=vi({title:"Get a certificate",Content:()=>u.createElement(Kf,{flexDirection:"column"},u.createElement("p",{},"HTTPS needs a certificate to work."),"We suggest you to ",u.createElement(ts,{target:"cert",href:"https://letsencrypt.org/",onClick:e},u.createElement(ur,{size:"small",color:"success"},"get a free but proper certificate")),"or, if you are in a hurry",u.createElement(ur,{size:"small",color:"warning",onClick(){return pt(this,null,function*(){try{const n=yield xt("save_pem",yield phe({}));yield xt("set_config",{values:n}),Fl&&Object.assign(Fl,n),setTimeout(Tw,1e3),Object.assign(un.config,n),yield cn("Certificate saved","success")}finally{e()}})}},"make a basic certificate"),qu("HTTPS#certificate",u.createElement(Kf,{},u.createElement(bx,{color:"warning"}),"but BEWARE it won't be perfect")))})})}function phe(e){return pt(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 hhe({account:e,done:t,groups:n,addToBar:r,reload:o}){const[i,s]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var g,b;s(e),c(n.filter(v=>v!==e.username)),hre()||(b=(g=h.current)==null?void 0:g.querySelector("input"))==null||b.focus()},[JSON.stringify(e)]);const d=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(wp,{formRef:h,values:i,set(g,b){s(kt($e({},i),{[b]:g}))},barSx:$e({gap:2,width:"100%"},_x()),stickyBar:!0,addToBar:[!d&&u.createElement(Fn,{icon:ps,title:"Delete",confirm:"Delete?",onClick:()=>xt("del_account",{username:e.username}).then(()=>o())}),r,u.createElement(tt,{flex:1}),FF(i,{fontSize:"large",sx:{p:1}})],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:g=>g!==e.username&&xt("get_account",{username:g}).then(b=>(b==null?void 0:b.username)===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:d,label:d?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(g,{values:b})=>(g||"")!==(b.password||"")&&"Enter same password"},{k:"ignore_limits",comp:xo,xl:6,helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},$e({k:"admin",comp:xo,xl:6,fromField:g=>g||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"}),p&&u.createElement(Do,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:Tx,label:"Inherit from groups",options:a,helperText:"Specify groups to inherit permissions from"+(p?". A group can inherit from another group":"")+(a.length?"":". Now disabled because there are no groups to select, create one first.")},{k:"redirect",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:cn,save:{sx:Yv(!Mx(i,e)),onClick(){return pt(this,null,function*(){const P=i,{password:g="",password2:b,adminActualAccess:v,hasPassword:E}=P,w=Zt(P,["password","password2","adminActualAccess","hasPassword"]),{username:C}=i;if(d){const $=yield xt("add_account",w);if(g)try{yield _w(C,g)}catch(I){throw xt("del_account",{username:C}).then(),I}t($==null?void 0:$.username),Hr("Account created","success");return}const x=yield xt("set_account",{username:e.username,changes:w});g&&(yield _w(C,g)),setTimeout(()=>Hr("Account modified","success"),1),t(x==null?void 0:x.username)})}}})}function _w(e,t){return pt(this,null,function*(){const n=new $a.SRPRoutines(new $a.SRPParameters),r=yield $a.createVerifierAndSalt(n,e,t);return xt("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==406)throw o;return xt("change_password_others",{username:e,newPassword:t})})})}const H1={fieldSeparator:",",lineSeparator:`
|
|
484
|
+
`,quote:'"'},Qh={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class $T extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class mhe{constructor(t=H1){Hi(this,"_rows",[]);Hi(this,"_row",[]);Hi(this,"_cell","");Hi(this,"_options",H1);Hi(this,"_state",$e({},Qh));Hi(this,"_index",0);Hi(this,"_current","");Hi(this,"_previous","");Hi(this,"_quoteState",$e({},Qh));this._options=Object.assign({},H1,t)}parse(t){for(this.reset(),this._index=0;this._index<t.length;this._index++)this._state.appendCell=!0,this._previous=this._current,this._current=t[this._index],this.handleNext();if(this._row.length>0&&(this.addField(this.fieldValue(this._cell),this._row,this._state),this.addRow(this._row,this._rows,this._state)),this._state.quoted)throw new $T(this._quoteState.line,this._quoteState.lineOffset);return this.makeImmutable(),this._rows}get rows(){return this._rows}get json(){if(this.rows.length>0){const t=this.rows[0].filter(n=>typeof n=="string");return Object.freeze(this.rows.filter((n,r)=>n&&r>0).map(n=>{const r={};return t.forEach((o,i)=>{r[o]=n[i]}),Object.freeze(r)}))}return Object.freeze([])}handleNext(){this.handleQuote()||this.handleFieldSeparator()||this.handleLineSeparator(),this.processState()}handleQuote(){return this._current===this._options.quote?(this._quoteState=$e({},this._state),this._previous==="\\"?this.handleQuoteEscaped():this.handleQuoteNotEscaped(),!0):!1}handleQuoteEscaped(){this._cell=this._cell.slice(0,Math.max(0,this._cell.length-1))}handleQuoteNotEscaped(){if(this._cell.length===0||this._state.quoted)this._state.quoted=!this._state.quoted;else throw new $T(this._state.line,this._state.lineOffset);this._state.appendCell=!1}handleFieldSeparator(){return this._current===this._options.fieldSeparator?(this._state.quoted||(this._state.appendCell=!1,this._state.appendField=!0),!0):!1}handleLineSeparator(){return this._current===this._options.lineSeparator?(this._state.quoted||(this._state.appendCell=!1,this._state.appendField=!0,this._state.appendRow=!0),!0):!1}processState(){this._state.appendCell&&(this._cell+=this._current),this._state.appendField&&(this.addField(this.fieldValue(this._cell),this._row,this._state),this._cell=""),this._state.appendRow&&(this.addRow(this._row,this._rows,this._state),this._row=[]),this._state.lineOffset++,this._state.fieldOffset++}fieldValue(t){return t}addField(t,n,r){n.push(t),r.field++,r.fieldOffset=-1,r.appendField=!1}addRow(t,n,r){n.push(t),r.field=0,r.line++,r.lineOffset=-1,r.appendRow=!1}makeImmutable(){this.rows.forEach(t=>{t.forEach(n=>Object.freeze(n)),Object.freeze(t)}),Object.freeze(this._rows)}reset(){this._rows=[],this._row=[],this._cell="",this._state=$e({},Qh),this._index=0,this._current="",this._previous="",this._quoteState=$e({},Qh)}}function ghe(e){return pt(this,null,function*(){fL(t=>pt(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield pL(n);if(!r)return;const i=new mhe().parse(r.trim()),s={comp:Ki,min:1,max:9,xs:6,typing:!0},a={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,redirectColumn:4,overwriteExistingAccounts:!1},c=yield Gf({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:a,form:h=>{const m=i[h.skipFirstLines||0],g=p(m,$e($e({},a),h));return{save:{startIcon:u.createElement(Hv),children:"Go"},fields:[u.createElement(tt,{p:1},"Total lines:",i.length),{k:"skipFirstLines",comp:Ki,min:0,max:i.length-1,typing:!0,md:6,helperText:u.createElement(u.Fragment,{},"First line: ",u.createElement("code",{},m.join(", ")))},{k:"overwriteExistingAccounts",comp:xo,md:6},kt($e({k:"usernameColumn"},s),{helperText:u.createElement(u.Fragment,{},"First username: ",g.u)}),kt($e({k:"passwordColumn"},s),{helperText:u.createElement(u.Fragment,{},"First password: ",g.p)}),kt($e({k:"groupColumn"},s),{helperText:u.createElement(u.Fragment,{},"First group: ",g.g)}),kt($e({k:"redirectColumn"},s),{helperText:u.createElement(u.Fragment,{},"First redirect: ",g.r)})]}}});if(!c)return;const d=vi({title:"Importing...",Content(){const[h,m]=u.useState(0),[g,b]=u.useState();return u.useEffect(()=>{let v=!1;return setTimeout(()=>pt(this,null,function*(){var P;if(v)return;let E=0,w=0,C=c.skipFirstLines;const x=i.length-C;try{let $=0;for(const I of i){if(v)return;if(C){C--;continue}const k=p(I,c);b(k),m($++/x),yield xt("add_account",{username:k.u,belongs:(P=k.g)==null?void 0:P.split(","),redirect:k.r,overwrite:c.overwriteExistingAccounts}).then(()=>{if(k.p)return _w(k.u,k.p)},M=>{if(M.code===409)return w++;E++})}}finally{d();const $=x-E-w,I="Results: "+[cu("",E," failed"),cu("",$," succeeded"),cu("",w," skipped because already present")].filter(Boolean).join(", ");cn(I,!$&&E?"error":E||w?"warning":"success"),e==null||e()}})),()=>{v=!0}},[]),u.createElement(tt,{display:"flex",gap:2,alignItems:"center"},u.createElement(PL,{icon:QO,progress:h}),g==null?void 0:g.u)}});function p(h,m){return{u:h[m.usernameColumn-1],p:h[m.passwordColumn-1],g:h[m.groupColumn-1],r:h[m.redirectColumn-1]}}}),{multiple:!1,accept:".csv"})})}function vhe(){const{username:e}=Jl(),{data:t,reload:n,element:r}=To("get_accounts"),[o,i]=u.useState([]),s=Array.isArray(o);u.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&s&&i(o.filter(b=>t.list.find(v=>(v==null?void 0:v.username)===b)))},[t]);const a=t==null?void 0:t.list,c=s&&It.find(a,{username:o[0]}),p=Ul("md"),h=!(o.length>0)||!a?null:s&&o.length>1?u.createElement(u.Fragment,{},u.createElement(Kf,{alignItems:"center"},u.createElement(Tr,{variant:"h6"},o.length+" selected"),u.createElement(ur,{onClick:g,startIcon:u.createElement(ps)},"Remove")),u.createElement(Dv,{},o.map(b=>u.createElement(AO,{key:b},u.createElement(ns,{},b))))):u.createElement(hhe,{account:c||{username:"",hasPassword:o==="new-user"},groups:a.filter(b=>!b.hasPassword).map(b=>b.username),addToBar:p&&u.createElement(Fn,{icon:zv,title:"Close",onClick:m}),reload:n,done(b){i([b]),n()}});return u.useEffect(()=>{if(!(p||!h||!o.length))return vi({title:It.isString(o)?It.startCase(o):o.length>1?"Multiple selection":c?(c.hasPassword?"User: ":"Group: ")+c.username:"?",Content:()=>h,onClose:m})},[p,o,c]),r||u.createElement(qn,{container:!0,maxWidth:"80em"},u.createElement(qn,{item:!0,xs:12},u.createElement(tt,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(BA,{variant:"contained",startIcon:u.createElement(dne),items:[{children:"user",onClick:()=>i("new-user")},{children:"group",onClick:()=>i("new-group")},{children:"from CSV",onClick:()=>ghe(n)}]},"Add"),Lx(n),(a==null?void 0:a.length)>0&&u.createElement(Tr,{p:1},`${a.length} account(s)`))),u.createElement(qn,{item:!0,md:5},!(a!=null&&a.length)&&u.createElement(Do,{severity:"info"},Ms`To access administration _remotely_ you will need to create a user account with admin permission`),u.createElement(yL,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:s?o:[],onNodeSelect(b,v){i(v)}},a==null?void 0:a.map(b=>{var v,E;return u.createElement(lw,{key:b.username,nodeId:b.username,label:u.createElement(tt,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},FF(b),b.adminActualAccess&&yo(lne,"Can login into Admin"),b.username,!!((v=b.belongs)!=null&&v.length)&&u.createElement(tt,{sx:{color:"text.secondary",fontSize:"small"}},"(",(E=b.belongs)==null?void 0:E.join(", "),")"))})}))),p&&h&&u.createElement(qn,{item:!0,md:7},u.createElement(hO,{},u.createElement(mO,{},h))));function m(){i([])}function g(){return pt(this,null,function*(){if(o.length>It.pull(o,e).length&&(yield cn("Won't delete current account","warning")),!!o.length&&(yield Vs(`Delete ${o.length} item(s)?`)))try{const b=[];for(const v of o)(yield xt("del_account",{username:v}).then(()=>1,()=>0))||b.push(v);if(n(),b.length)return cn("Following elements couldn't be deleted: "+b.join(", "),"error")}catch(b){yield cn(b)}})}}function FF(e,t={}){return u.createElement(e.hasPassword?une:QO,t)}function yhe(){const{element:e}=To("get_config",{only:[]}),{username:t}=Jl();return e||u.createElement(tt,{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2},t?u.createElement(u.Fragment,{},"You are logged in as: "+t,u.createElement(uu,{icon:JO,size:"large",variant:"contained",onClick:()=>xt("logout").catch(r=>r.code!==401&&cn(r))},"I want to logout")):u.createElement(Do,{severity:"info"},"You are not logged in, because authentication is not required on localhost"),u.createElement(uu,{icon:fne,size:"large",variant:"contained",color:"warning",confirm:"Stopping the server, this interface won't respond anymore",onClick(){return pt(this,null,function*(){yield xt("quit"),yield cn("Good-bye","success"),location.reload()})}},"Quit HFS"))}function bhe(){const{list:e,error:t,connecting:n,reload:r}=ec("list_langs",void 0,{addId:!0}),o=u.useMemo(()=>["en",...It.uniq(e.map(a=>a.code))],[e]),i=Ul("md");return t||u.createElement(u.Fragment,{},i&&u.createElement(Do,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),u.createElement(tt,{mt:1,maxWidth:"40em",flex:1,display:"flex",flexDirection:"column"},u.createElement(tt,{mb:1,display:"flex"},u.createElement(ur,{variant:"contained",startIcon:u.createElement(Hv),onClick:s},"Add"),u.createElement(tt,{flex:1}),u.createElement(whe,{langs:o})),u.createElement(Zu,{loading:n,rows:e,hideFooter:!0,sx:{flex:1},columns:[{field:"code",width:80},{field:"version",width:80},{field:"hfs_version",headerName:"HFS version"},{field:"author",flex:1},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:a}){return a.embedded?"Embedded":u.createElement("div",{},u.createElement(Fn,{icon:ps,title:"Delete",confirm:"Delete?",onClick(){return pt(this,null,function*(){yield xt("del_lang",It.pick(a,"code")),r(),Hr("Deleted")})}}))}}]})));function s(){fL(a=>pt(this,null,function*(){if(!a)return;const c={};for(const d of a)c[d.name]=yield pL(d);try{yield xt("add_langs",{langs:c}),r(),Hr("Loaded")}catch(d){yield cn(d)}}),{accept:".json"})}}function whe({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=To("get_config",{only:[t]}),[i,s]=u.useState();u.useEffect(()=>s(o?i:n[t]),[o]);const[a,c]=u.useState();return u.createElement(us,{fullWidth:!1,disabled:o||typeof a=="string",value:a!=null?a:i,onChange(p){return pt(this,null,function*(){c(p);try{yield xt("set_config",{values:{[t]:p}}),yield r()}finally{c(void 0)}})},options:[{label:"Respect browser language",value:""},...e.map(p=>({value:p,label:"Force language: "+p}))]})}function Che(){const[e,t]=u.useState(0),n=ooe(Ig);return u.createElement(u.Fragment,{},u.createElement(GO,{value:e,onChange(r,o){t(o)}},n.map(r=>u.createElement(UO,{label:Ig[r],key:r}))),u.createElement(xhe,{key:e,file:n[e]}))}function xhe({file:e}){const{list:t,error:n,connecting:r}=ec("get_log",{file:e},{addId:!0});return n||u.createElement(Zu,{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})=>Vl(o)},{field:"uri",headerName:"URI",flex:2,minWidth:100,valueFormatter:({value:o})=>{if(!o.startsWith(cg))return o;const i=cg.length,s=o.indexOf("?",i),a=o.slice(i,s>0?s:1/0),c=s<0?"":Array.from(new URLSearchParams(o.slice(s))).map(d=>{var p;return`${d[0]}=${(p=yre(d[1]))!=null?p:d[1]}`}).join(" ; ");return`API ${a} ${c}`}}]})}function NF(c){var d=c,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:i,getApi:s}=d,a=Zt(d,["label","helperText","fields","value","onChange","onError","getApi"]);const p=u.useMemo(()=>(r||[]).map((g,b)=>ure($e({},g),"id"in g?{$idx:b}:{id:b})),[JSON.stringify(r)]),h={fields:n.map(E=>{var w=E,{$width:g,$column:b}=w,v=Zt(w,["$width","$column"]);return v})},m=u.useMemo(()=>[...n.map(g=>{var b;return $e($e({field:g.k,headerName:(b=g.headerName)!=null?b:typeof g.label=="string"?g.label:wL(g.k),disableColumnMenu:!0},g.$width>=8?{width:g.$width}:{flex:g.$width||1}),g.$column)}),{field:"",width:80,disableColumnMenu:!0,sortable:!1,align:"center",headerAlign:"center",renderHeader(){const g="Add";return u.createElement(Fn,{icon:hx,title:g,onClick:b=>Gf({form:h,title:g}).then(v=>v&&o([...r||[],v],{was:r,event:b}))})},renderCell({row:g}){const{$idx:b=g.id}=g,v="Modify";return u.createElement("div",{},u.createElement(Fn,{icon:YO,title:v,onClick:E=>Gf({values:g,form:h,title:v}).then(w=>{if(!w)return;const C=r.map((x,P)=>P===b?w:x);o(C,{was:r,event:E})})}),u.createElement(Fn,{icon:ps,title:"Delete",confirm:"Delete?",onClick(E){const w=r.filter((C,x)=>x!==b);o(w,{was:r,event:E})}}))}}],[n,r,o]);return u.createElement(u.Fragment,{},e&&u.createElement(PO,{sx:{ml:1}},e),t&&u.createElement(Nv,{},t),u.createElement(tt,$e({height:"20em"},a),u.createElement(Zu,{columns:m,rows:p,hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}}})))}function TT({updates:e}){const{list:t,updateEntry:n,error:r,initializing:o}=ec(e?"get_plugin_updates":"get_plugins");return r?zF(r):u.createElement(Zu,{rows:t.length?t:[],loading:o,disableColumnSelector:!0,disableColumnMenu:!0,columnVisibilityModel:{started:!e},localeText:e&&{noRowsLabel:'No updates available. Only plugins available on "search online" are checked.'},columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell:DF},{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,updated:c}=i;return e?u.createElement(HF,{id:a,updated:c,then:()=>n({id:a},{updated:!0})}):u.createElement("div",{},u.createElement(Fn,i.started?{icon:a$,title:u.createElement(tt,{},`Stop ${a}`,u.createElement("br"),"Started "+new Date(i.started).toLocaleString()),color:"success",onClick(){return pt(this,null,function*(){yield xt("stop_plugin",{id:a}),Hr("Plugin stopped",u.createElement(a$,{color:"warning"}))})}}:{icon:gx,title:`Start ${a}`,onClick:()=>jF(a)}),u.createElement(Fn,{icon:ZO,title:"Options",disabled:!i.started&&"Start plugin to access options"||!s&&"No options available for this plugin",progress:!1,onClick(){return pt(this,null,function*(){const m=yield xt("get_plugin",{id:a}),g=yield Gf({title:`${a} options`,form:{before:u.createElement(tt,{mx:2,mb:3},i.description),fields:BF(s)},values:m.config,dialogProps:i.configDialog});!g||It.isEqual(m.config,g)||(yield xt("set_plugin",{id:a,config:g}),Hr("Configuration saved"))})}}),u.createElement(Fn,{icon:ps,title:"Uninstall",confirm:"Remove?",onClick(){return pt(this,null,function*(){yield xt("uninstall_plugin",{id:a}),Hr("Plugin uninstalled")})}}))}}]})}function DF({row:e,value:t}){const{repo:n}=e,r=n==null?void 0:n.split("/");return u.createElement(u.Fragment,{},o(e.badApi,!0),o(e.error),...n?[u.createElement(ts,{href:"https://github.com/"+n,target:"plugin"},r[1])," by ",r[0]]:[t]);function o(i,s=!1){return i&&u.createElement(Ku,{title:i,children:u.createElement(mx,{fontSize:"small",color:s?"warning":"error",sx:{ml:-.5,mr:.5}})})}}function BF(e){return Object.entries(e).map(([t,n])=>{if(!It.isPlainObject(n))return n;let d=n,{type:r,defaultValue:o,fields:i,frontend:s}=d,a=Zt(d,["type","defaultValue","fields","frontend"]);const c=She[r];return c===NF&&(i=BF(i)),o!==void 0&&r==="boolean"&&(a.placeholder=`Default value is ${JSON.stringify(o)}`),$e({k:t,comp:c,fields:i},a)})}const She={string:eo,number:Ki,boolean:xo,select:us,multiselect:Tx,array:NF,real_path:yf};function zF(e){return u.createElement(Do,{severity:"error"},ioe(e,{github_quota:"Request denied. You may have reached the limit, retry later.",ENOTFOUND:"Couldn't reach github.com"}))}function HF({id:e,updated:t,then:n}){return u.createElement(Fn,{icon:yne,title:t?"Already updated":"Update",disabled:t,onClick(){return pt(this,null,function*(){yield xt("update_plugin",{id:e},{timeout:!1}),n==null||n(e),Hr("Plugin updated")})}})}function jF(e){return pt(this,null,function*(){yield xt("start_plugin",{id:e}),Hr("Plugin started",u.createElement(gx,{color:"success"}))})}function Ehe(){const[e,t]=u.useState(""),n=wx(e,1e3),{list:r,error:o,initializing:i,updateList:s}=ec("search_online_plugins",{text:n}),a=Jl();return o?zF(o):u.createElement(u.Fragment,{},u.createElement(eo,{value:e,onChange:t,start:u.createElement(mne),typing:!0,label:"Search text"}),u.createElement(Zu,{rows:r.length?r:[],localeText:{noRowsLabel:"No compatible plugins have been found"},loading:i,columnVisibilityModel:a.onlinePluginsColumns,onColumnVisibilityModelChange:c=>Object.assign(un.onlinePluginsColumns,c),columns:[{field:"id",headerName:"name",flex:1,renderCell:DF},{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:d}=c;return u.createElement("div",{},c.update?u.createElement(HF,{id:d,then(){s(h=>It.find(h,{id:d}).update=!1)}}):u.createElement(Fn,{icon:qO,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 pt(this,null,function*(){const h=c.branch||c.default_branch;try{const m=yield xt("download_plugin",{id:d,branch:h},{timeout:!1});yield jF(m.id)}catch(m){if(m.code!==424)throw m;const g=u.createElement(u.Fragment,{},"This plugin has some dependencies unmet:",m.data.map(b=>u.createElement("li",{},b.repo+": "+b.error)));return cn(g,"error")}})}}))}}]}))}const VF={Installed:TT,"Search online|Search":Ehe,"Check updates|Updates":()=>u.createElement(TT,{updates:!0})},Phe=Object.keys(VF),khe=Object.values(VF);function Ihe(){const[e,t]=u.useState(0),n=!Ul("sm");return u.createElement(u.Fragment,{},u.createElement(GO,{value:e,onChange(r,o){t(o)}},Phe.map(r=>u.createElement(UO,{key:r,label:r.split("|").slice(n?-1:0)[0]}))),u.createElement(khe[e]))}var UF={},$he=bn&&bn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lr=bn&&bn.__assign||function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lr.apply(this,arguments)},The=bn&&bn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),_he=bn&&bn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Mhe=bn&&bn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&The(t,e,n);return _he(t,e),t},Rhe=bn&&bn.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(UF,"__esModule",{value:!0});var jd=Mhe(u),Ohe=13,Lhe=9,Ahe=8,Fhe=89,Xh=90,Nhe=77,_T=57,MT=219,RT=222,OT=192,Dhe=27,LT=100,Bhe=3e3,zhe=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),j1=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Pm="npm__react-simple-code-editor__textarea",Hhe=`
|
|
485
|
+
/**
|
|
486
|
+
* Reset the text fill color so that placeholder is visible
|
|
487
|
+
*/
|
|
488
|
+
.`.concat(Pm,`:empty {
|
|
489
|
+
-webkit-text-fill-color: inherit !important;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Hack to apply on some CSS on IE10 and IE11
|
|
494
|
+
*/
|
|
495
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
496
|
+
/**
|
|
497
|
+
* IE doesn't support '-webkit-text-fill-color'
|
|
498
|
+
* So we use 'color: transparent' to make the text transparent on IE
|
|
499
|
+
* Unlike other browsers, it doesn't affect caret color in IE
|
|
500
|
+
*/
|
|
501
|
+
.`).concat(Pm,` {
|
|
502
|
+
color: transparent !important;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.`).concat(Pm,`::selection {
|
|
506
|
+
background-color: #accef7 !important;
|
|
507
|
+
color: transparent !important;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
`),jhe=function(e){$he(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={capture:!0},n._recordCurrentState=function(){var r=n._input;if(r){var o=r.value,i=r.selectionStart,s=r.selectionEnd;n._recordChange({value:o,selectionStart:i,selectionEnd:s})}},n._getLines=function(r,o){return r.substring(0,o).split(`
|
|
511
|
+
`)},n._recordChange=function(r,o){var i,s,a;o===void 0&&(o=!1);var c=n._history,d=c.stack,p=c.offset;if(d.length&&p>-1){n._history.stack=d.slice(0,p+1);var h=n._history.stack.length;if(h>LT){var m=h-LT;n._history.stack=d.slice(m,h),n._history.offset=Math.max(n._history.offset-m,0)}}var g=Date.now();if(o){var b=n._history.stack[n._history.offset];if(b&&g-b.timestamp<Bhe){var v=/[^a-z0-9]([a-z0-9]+)$/i,E=(i=n._getLines(b.value,b.selectionStart).pop())===null||i===void 0?void 0:i.match(v),w=(s=n._getLines(r.value,r.selectionStart).pop())===null||s===void 0?void 0:s.match(v);if(E!=null&&E[1]&&(!((a=w==null?void 0:w[1])===null||a===void 0)&&a.startsWith(E[1]))){n._history.stack[n._history.offset]=lr(lr({},r),{timestamp:g});return}}}n._history.stack.push(lr(lr({},r),{timestamp:g})),n._history.offset++},n._updateInput=function(r){var o=n._input;o&&(o.value=r.value,o.selectionStart=r.selectionStart,o.selectionEnd=r.selectionEnd,n.props.onValueChange(r.value))},n._applyEdits=function(r){var o=n._input,i=n._history.stack[n._history.offset];i&&o&&(n._history.stack[n._history.offset]=lr(lr({},i),{selectionStart:o.selectionStart,selectionEnd:o.selectionEnd})),n._recordChange(r),n._updateInput(r)},n._undoEdit=function(){var r=n._history,o=r.stack,i=r.offset,s=o[i-1];s&&(n._updateInput(s),n._history.offset=Math.max(i-1,0))},n._redoEdit=function(){var r=n._history,o=r.stack,i=r.offset,s=o[i+1];s&&(n._updateInput(s),n._history.offset=Math.min(i+1,o.length-1))},n._handleKeyDown=function(r){var o=n.props,i=o.tabSize,s=o.insertSpaces,a=o.ignoreTabKey,c=o.onKeyDown;if(!(c&&(c(r),r.defaultPrevented))){r.keyCode===Dhe&&r.currentTarget.blur();var d=r.currentTarget,p=d.value,h=d.selectionStart,m=d.selectionEnd,g=(s?" ":" ").repeat(i);if(r.keyCode===Lhe&&!a&&n.state.capture)if(r.preventDefault(),r.shiftKey){var b=n._getLines(p,h),v=b.length-1,E=n._getLines(p,m).length-1,w=p.split(`
|
|
512
|
+
`).map(function(D,j){return j>=v&&j<=E&&D.startsWith(g)?D.substring(g.length):D}).join(`
|
|
513
|
+
`);if(p!==w){var C=b[v];n._applyEdits({value:w,selectionStart:C!=null&&C.startsWith(g)?h-g.length:h,selectionEnd:m-(p.length-w.length)})}}else if(h!==m){var b=n._getLines(p,h),x=b.length-1,P=n._getLines(p,m).length-1,C=b[x];n._applyEdits({value:p.split(`
|
|
514
|
+
`).map(function(R,N){return N>=x&&N<=P?g+R:R}).join(`
|
|
515
|
+
`),selectionStart:C&&/\S/.test(C)?h+g.length:h,selectionEnd:m+g.length*(P-x+1)})}else{var $=h+g.length;n._applyEdits({value:p.substring(0,h)+g+p.substring(m),selectionStart:$,selectionEnd:$})}else if(r.keyCode===Ahe){var I=h!==m,k=p.substring(0,h);if(k.endsWith(g)&&!I){r.preventDefault();var $=h-g.length;n._applyEdits({value:p.substring(0,h-g.length)+p.substring(m),selectionStart:$,selectionEnd:$})}}else if(r.keyCode===Ohe){if(h===m){var M=n._getLines(p,h).pop(),O=M==null?void 0:M.match(/^\s+/);if(O!=null&&O[0]){r.preventDefault();var A=`
|
|
516
|
+
`+O[0],$=h+A.length;n._applyEdits({value:p.substring(0,h)+A+p.substring(m),selectionStart:$,selectionEnd:$})}}}else if(r.keyCode===_T||r.keyCode===MT||r.keyCode===RT||r.keyCode===OT){var L=void 0;r.keyCode===_T&&r.shiftKey?L=["(",")"]:r.keyCode===MT?r.shiftKey?L=["{","}"]:L=["[","]"]:r.keyCode===RT?r.shiftKey?L=['"','"']:L=["'","'"]:r.keyCode===OT&&!r.shiftKey&&(L=["`","`"]),h!==m&&L&&(r.preventDefault(),n._applyEdits({value:p.substring(0,h)+L[0]+p.substring(h,m)+L[1]+p.substring(m),selectionStart:h,selectionEnd:m+2}))}else(j1?r.metaKey&&r.keyCode===Xh:r.ctrlKey&&r.keyCode===Xh)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(j1?r.metaKey&&r.keyCode===Xh&&r.shiftKey:zhe?r.ctrlKey&&r.keyCode===Fhe:r.ctrlKey&&r.keyCode===Xh&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===Nhe&&r.ctrlKey&&(!j1||r.shiftKey)&&(r.preventDefault(),n.setState(function(D){return{capture:!D.capture}}))}},n._handleChange=function(r){var o=r.currentTarget,i=o.value,s=o.selectionStart,a=o.selectionEnd;n._recordChange({value:i,selectionStart:s,selectionEnd:a},!0),n.props.onValueChange(i)},n._history={stack:[],offset:-1},n._input=null,n}return t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(n){this._history=n.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this,r=this.props,o=r.value,i=r.style,s=r.padding,a=r.highlight,c=r.textareaId,d=r.textareaClassName,p=r.autoFocus,h=r.disabled,m=r.form,g=r.maxLength,b=r.minLength,v=r.name,E=r.placeholder,w=r.readOnly,C=r.required,x=r.onClick,P=r.onFocus,$=r.onBlur,I=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var k=r.preClassName,M=Rhe(r,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),O={paddingTop:typeof s=="object"?s.top:s,paddingRight:typeof s=="object"?s.right:s,paddingBottom:typeof s=="object"?s.bottom:s,paddingLeft:typeof s=="object"?s.left:s},A=a(o);return jd.createElement("div",lr({},M,{style:lr(lr({},Vd.container),i)}),jd.createElement("pre",lr({className:k,"aria-hidden":"true",style:lr(lr(lr({},Vd.editor),Vd.highlight),O)},typeof A=="string"?{dangerouslySetInnerHTML:{__html:A+"<br />"}}:{children:A})),jd.createElement("textarea",{ref:function(L){return n._input=L},style:lr(lr(lr({},Vd.editor),Vd.textarea),O),className:Pm+(d?" ".concat(d):""),id:c,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:x,onKeyUp:I,onFocus:P,onBlur:$,disabled:h,form:m,maxLength:g,minLength:b,name:v,placeholder:E,readOnly:w,required:C,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),jd.createElement("style",{dangerouslySetInnerHTML:{__html:Hhe}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(jd.Component),Vhe=UF.default=jhe,Vd={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};function Uhe(){const{data:e,reload:t}=To("get_custom_html"),[n,r]=u.useState(""),[o,i]=u.useState({}),[s,a]=u.useState({});u.useEffect(()=>e&&a(e==null?void 0:e.sections),[e]),u.useEffect(()=>i(s),[s]);const c=u.useMemo(()=>{const h=Object.keys(o);return h.includes(n)||r((h==null?void 0:h[0])||""),h.map(m=>{var g;return{value:m,label:It.startCase(m)+((g=o[m])!=null&&g.trim()?" *":"")}})},[wx(o,500)]),d=u.useMemo(()=>!It.isEqualWith(s,o,(h,m)=>!h&&!m||void 0),[s,o]);return u.createElement(u.Fragment,{},u.createElement(Do,{severity:"info"},Ms("Add HTML code to some parts of the Front-end. It's saved to file `custom.html`, that you can edit directly with your editor of choice. "),qu("customization","More help")),u.createElement(tt,{display:"flex",alignItems:"center",gap:1,mb:1},u.createElement(us,{label:"Section",value:n,options:c,onChange:r}),Lx(t),u.createElement(Fn,{icon:yx,title:`Save
|
|
517
|
+
(ctrl+s)`,sx:Yv(d),onClick:p})),u.createElement(Vhe,{value:(o==null?void 0:o[n])||"",onValueChange:h=>i(m=>kt($e({},m),{[n]:h})),highlight:Whe,onKeyDown:h=>{loe(h)==="s"&&(p().then(),h.preventDefault())},padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:{fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",fontSize:"1em",flex:1,background:"#8881"}}));function p(){return xt("set_custom_html",{sections:o}).then(()=>a(o))}}function Whe(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}const Mw=[{path:"",icon:pne,label:"Home",title:"Admin panel",comp:ahe},{path:"fs",icon:zte,label:"Shared files",comp:Qpe},{path:"accounts",icon:ine,comp:vhe},{path:"options",icon:ZO,comp:uhe},{path:"monitoring",icon:ane,comp:Tfe},{path:"logs",icon:tne,comp:Che},{path:"language",icon:vne,comp:bhe},{path:"plugins",icon:Qte,comp:Ihe},{path:"html",icon:Gte,label:"Custom HTML",comp:Uhe},{path:"logout",icon:JO,comp:yhe}];let V1;function AT({onSelect:e}){var n;const[t]=jv(!V1&&"get_status");return V1||(V1=(n=t==null?void 0:t.version)==null?void 0:n.replace("-"," ")),u.createElement(tt,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(Dv,{sx:{pr:1,color:"primary.contrastText",height:"100vh",boxSizing:"border-box",overflowY:"auto",position:"sticky",top:0,display:"flex",flexDirection:"column","&>a":{flex:"0"}}},u.createElement(tt,{display:"flex",px:2,py:1,gap:2,alignItems:"flex-end"},u.createElement(Tr,{variant:"h3"},"HFS"),u.createElement(tt,{pb:1,fontSize:"small"},V1)),Mw.map(r=>u.createElement(SJ,{key:r.path,to:r.path,component:Tj,onClick:e,style:({isActive:o})=>o?{textDecoration:"underline"}:{},children:void 0},r.icon&&u.createElement(Ol,{sx:{color:"primary.contrastText",minWidth:48}},u.createElement(r.icon)),u.createElement(ns,{sx:{whiteSpace:"nowrap"},primary:WF(r)}))),u.createElement(tt,{sx:{flex:1,opacity:.7,background:"url(hfs-logo.svg) no-repeat bottom",backgroundSize:"contain",margin:2}})))}function WF(e){var t;return e&&((t=e.label)!=null?t:It.capitalize(e.path))}function Ghe({children:e}){const{loginRequired:t}=Jl();return t===403?u.createElement(Ox,{},u.createElement(Do,{severity:"error"},"Admin-panel only for localhost"),u.createElement(tt,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(Khe):u.createElement(u.Fragment,{},e)}function Khe(){var s;const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState(""),o=u.useRef(),i=(s=o.current)==null?void 0:s.querySelector('input[value=""]');return u.useEffect(()=>{var c;return(c=i==null?void 0:i.focus)==null?void 0:c.call(i)},[i]),u.createElement(Ox,{},u.createElement(wp,{formRef:o,values:e,set(c,d){t(kt($e({},e),{[d]:c}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(Do,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return pt(this,null,function*(){try{r(""),yield qhe(e.username,e.password)}catch(c){r(String(c))}})}}}))}function qhe(e,t){return pt(this,null,function*(){const n=yield ore(e,t,xt).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";un.loginRequired=!1,GF(n)})}const GF=vre(un);GF(Ix().session);function Yhe(){return u.createElement(fU,{theme:eoe()},u.createElement(Qhe,{},u.createElement(Ghe,{},u.createElement(kj,{},u.createElement(Xhe)))))}function Qhe(e){return u.createElement(tt,$e({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1}},e))}function Xhe(){const e=Vu().pathname.slice(1),t=Mw.find(s=>s.path===e),n=t&&(t.title||WF(t)),[r,o]=u.useState(!1),i=Ul("lg");return u.createElement(u.Fragment,{},!i&&u.createElement(Jhe,{title:n,openMenu:()=>o(!0)}),!i&&u.createElement(TQ,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(AT,{onSelect:()=>o(!1)})),u.createElement(tt,{display:"flex",flex:1},i&&u.createElement(AT),u.createElement(tt,{component:"main",sx:{background:"url(cup.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(Tr,{variant:"h2",mb:2},n),u.createElement(Cj,{},Mw.map((s,a)=>u.createElement(nR,{key:a,path:s.path,element:u.createElement(s.comp)})))),u.createElement(qne)))}function Jhe({title:e,openMenu:t}){return u.createElement($K,{position:"sticky",sx:{mb:2}},u.createElement(WO,{},u.createElement(Zr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(sne)),e))}qM(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(Yhe)));export{bn as c,ip as g};
|